/* GoatCore landing page. Static; no external fonts or files (the CSP allows only this site). */
:root {
  --ink: #0e0c0b;
  --stone: #1b1815;
  --gold: #e3c07a;
  --gold-hi: #f6dfa6;
  --gold-lo: #9c7a3c;
  --text: #ece4d6;
  --muted: #bfb3a0;
  --elmorad: #8fb4e8;
  --karus: #e48a7a;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "P052", "URW Palladio L", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 56px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- the two nations behind ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
}
.side { background-repeat: no-repeat; background-size: cover; }
.elmorad {
  background-position: left center;
  background-image: url("../assets/bg-elmorad-720.jpg");
  background-image: image-set(url("../assets/bg-elmorad-720.webp") type("image/webp"), url("../assets/bg-elmorad-720.jpg") type("image/jpeg"));
}
.karus {
  background-position: right center;
  background-image: url("../assets/bg-karus-720.jpg");
  background-image: image-set(url("../assets/bg-karus-720.webp") type("image/webp"), url("../assets/bg-karus-720.jpg") type("image/jpeg"));
}
@media (min-width: 1000px), (min-resolution: 2dppx) {
  .elmorad {
    background-image: url("../assets/bg-elmorad-1200.jpg");
    background-image: image-set(url("../assets/bg-elmorad-1200.webp") type("image/webp"), url("../assets/bg-elmorad-1200.jpg") type("image/jpeg"));
  }
  .karus {
    background-image: url("../assets/bg-karus-1200.jpg");
    background-image: image-set(url("../assets/bg-karus-1200.webp") type("image/webp"), url("../assets/bg-karus-1200.jpg") type("image/jpeg"));
  }
}
@media (min-width: 2200px), (min-width: 1300px) and (min-resolution: 2dppx) {
  .elmorad {
    background-image: url("../assets/bg-elmorad-1800.jpg");
    background-image: image-set(url("../assets/bg-elmorad-1800.webp") type("image/webp"), url("../assets/bg-elmorad-1800.jpg") type("image/jpeg"));
  }
  .karus {
    background-image: url("../assets/bg-karus-1800.jpg");
    background-image: image-set(url("../assets/bg-karus-1800.webp") type("image/webp"), url("../assets/bg-karus-1800.jpg") type("image/jpeg"));
  }
}
/* portrait screens: El Morad above, Karus below */
@media (max-aspect-ratio: 1/1) {
  .bg { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .elmorad { background-position: 20% 40%; }
  .karus { background-position: 70% 40%; }
}
/* shade: dark in the middle where the text sits, a thin gold seam between the nations */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(10, 8, 7, .78) 0%, rgba(10, 8, 7, .55) 45%, rgba(10, 8, 7, .18) 80%),
    linear-gradient(180deg, rgba(10, 8, 7, .55) 0%, rgba(10, 8, 7, 0) 22%, rgba(10, 8, 7, 0) 70%, rgba(10, 8, 7, .85) 100%),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(227, 192, 122, .35) 50%, transparent calc(50% + 1px));
}
@media (max-aspect-ratio: 1/1) {
  .bg::after {
    background:
      radial-gradient(ellipse 90% 45% at 50% 50%, rgba(10, 8, 7, .82) 0%, rgba(10, 8, 7, .6) 50%, rgba(10, 8, 7, .2) 85%),
      linear-gradient(180deg, rgba(10, 8, 7, .5) 0%, rgba(10, 8, 7, 0) 18%, rgba(10, 8, 7, 0) 78%, rgba(10, 8, 7, .85) 100%),
      linear-gradient(180deg, transparent calc(50% - 1px), rgba(227, 192, 122, .35) 50%, transparent calc(50% + 1px));
  }
}

/* ---- embers (CSS only; off for reduced motion) ---- */
.embers { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.embers span {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe2a0 0%, #ff9a3c 55%, rgba(255, 120, 30, 0) 72%);
  box-shadow: 0 0 6px 2px rgba(255, 140, 50, .55);
  opacity: 0;
  --dx: 30px;
  animation: rise 11s linear infinite;
}
.embers span:nth-child(1)  { left: 6%;  animation-duration: 12s; animation-delay: -1s;  --dx: 40px; }
.embers span:nth-child(2)  { left: 13%; animation-duration: 9s;  animation-delay: -6s;  --dx: -25px; width: 3px; height: 3px; }
.embers span:nth-child(3)  { left: 21%; animation-duration: 14s; animation-delay: -3s;  --dx: 55px; }
.embers span:nth-child(4)  { left: 28%; animation-duration: 10s; animation-delay: -8s;  --dx: -40px; width: 5px; height: 5px; }
.embers span:nth-child(5)  { left: 35%; animation-duration: 13s; animation-delay: -11s; --dx: 20px; width: 3px; height: 3px; }
.embers span:nth-child(6)  { left: 42%; animation-duration: 8s;  animation-delay: -2s;  --dx: -15px; }
.embers span:nth-child(7)  { left: 47%; animation-duration: 15s; animation-delay: -9s;  --dx: 35px; width: 2px; height: 2px; }
.embers span:nth-child(8)  { left: 53%; animation-duration: 11s; animation-delay: -5s;  --dx: -30px; }
.embers span:nth-child(9)  { left: 58%; animation-duration: 9s;  animation-delay: -12s; --dx: 25px; width: 5px; height: 5px; }
.embers span:nth-child(10) { left: 64%; animation-duration: 12s; animation-delay: -7s;  --dx: -45px; width: 3px; height: 3px; }
.embers span:nth-child(11) { left: 70%; animation-duration: 10s; animation-delay: -4s;  --dx: 30px; }
.embers span:nth-child(12) { left: 76%; animation-duration: 14s; animation-delay: -10s; --dx: -20px; width: 2px; height: 2px; }
.embers span:nth-child(13) { left: 82%; animation-duration: 9s;  animation-delay: -1.5s; --dx: 45px; }
.embers span:nth-child(14) { left: 88%; animation-duration: 13s; animation-delay: -6.5s; --dx: -35px; width: 4px; height: 4px; }
.embers span:nth-child(15) { left: 93%; animation-duration: 11s; animation-delay: -3.5s; --dx: 15px; width: 3px; height: 3px; }
.embers span:nth-child(16) { left: 97%; animation-duration: 16s; animation-delay: -13s; --dx: -50px; }
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  8%   { opacity: .95; }
  60%  { opacity: .7; }
  100% { transform: translate3d(var(--dx), -105vh, 0); opacity: 0; }
}

/* ---- the card ---- */

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  text-align: center;
}
.logo { margin: 0; line-height: 0; }
.logo img {
  width: min(88vw, 760px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .85)) drop-shadow(0 0 22px rgba(227, 160, 80, .18));
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .85)) drop-shadow(0 0 18px rgba(227, 160, 80, .12)); }
  50%      { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .85)) drop-shadow(0 0 30px rgba(240, 175, 90, .32)); }
}
.divider {
  display: block;
  width: min(80vw, 560px);
  height: auto;
  margin: clamp(10px, 2.2vh, 22px) auto clamp(8px, 1.6vh, 16px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .9));
}
.soon {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .95)) drop-shadow(0 0 14px rgba(0, 0, 0, .7));
}
.line {
  max-width: 600px;
  margin: clamp(12px, 2.4vh, 22px) auto 0;
  font-size: clamp(16px, 1.55vw, 20px);
  color: var(--text);
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, .9);
}
.nations {
  margin: clamp(14px, 3vh, 28px) 0 0;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: .32em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
}
.nations .em { color: var(--elmorad); }
.nations .ka { color: var(--karus); }
.nations .sep { color: var(--gold-lo); margin: 0 .9em; letter-spacing: 0; font-size: .8em; }

.foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 32px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  text-shadow: 0 1px 2px #000;
}
body > .card { margin-top: auto; }

@media (max-width: 480px) {
  body { padding-top: 64px; }
  .soon { letter-spacing: .1em; }
  .nations { letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .logo img { animation: none; }
}
