@font-face {
  font-family: 'Tibyan';
  src: url('/static/fonts/Changa.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --surface: #171610;
  --surface-raised: #201f18;
  --text: #f4f0e7;
  --muted: #c1bcad;
  --gold: #e2c17e;
  --gold-deep: #a78447;
  --rule: rgb(226 193 126 / 25%);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 52% 43%, rgb(122 91 42 / 15%), transparent 43%),
    linear-gradient(145deg, #1e1c15 0%, var(--surface) 54%, #11110e 100%);
  font-family: 'Tibyan', sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.launch-page {
  display: flex;
  flex-direction: column;
  width: min(100% - 56px, 1120px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
}

.launch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.wordmark-ar {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
}

.wordmark-en {
  color: var(--muted);
  font: 500 0.67rem/1 sans-serif;
  letter-spacing: 0.2em;
}

.language-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration-color: var(--rule);
  text-underline-offset: 5px;
  transition: color 180ms ease;
}

.language-link:hover { color: var(--gold); }

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 0.9fr;
  grid-template-areas:
    "copy emblem"
    "training training";
  align-content: center;
  align-items: center;
  column-gap: clamp(36px, 8vw, 120px);
  row-gap: clamp(28px, 5vh, 58px);
  padding-block: 44px;
}

.hero-copy {
  grid-area: copy;
  padding-block: 16px;
}

.coming-label {
  margin: 0 0 15px;
  color: var(--gold);
  font: 600 0.72rem/1.5 sans-serif;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.hero-description {
  max-width: 480px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.9;
}

.logo-stage {
  position: relative;
  display: grid;
  grid-area: emblem;
  min-height: 320px;
  place-items: center;
  perspective: 1100px;
}

.logo-stage::before {
  position: absolute;
  width: min(84%, 330px);
  aspect-ratio: 1;
  border: 1px solid rgb(226 193 126 / 12%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgb(226 193 126 / 12%), rgb(226 193 126 / 3%) 48%, transparent 70%);
  content: "";
}

.coming-logo {
  position: relative;
  display: block;
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 18px 32px rgb(0 0 0 / 40%));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation: emblem-arrive 1.25s cubic-bezier(0.18, 0.78, 0.25, 1) both;
}

.training-note {
  display: flex;
  grid-area: training;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: linear-gradient(110deg, rgb(255 255 255 / 2%), rgb(226 193 126 / 5%));
  animation: note-arrive 700ms 350ms ease both;
}

.training-note h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 600;
}

.training-note p {
  max-width: 660px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.training-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.training-link:hover {
  transform: translateY(-2px);
  color: var(--surface);
  background: var(--gold);
}

.training-link:active { transform: translateY(0) scale(0.98); }

.training-link span {
  font-family: sans-serif;
  font-size: 1rem;
}

.launch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

@keyframes emblem-arrive {
  from {
    opacity: 0;
    transform: rotateY(-92deg) rotateX(14deg) translateZ(-90px) scale(0.76);
  }
  to {
    opacity: 1;
    transform: rotateY(0) rotateX(0) translateZ(0) scale(1);
  }
}

@keyframes note-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --surface: #f1eee6;
    --surface-raised: #eae5d9;
    --text: #27251e;
    --muted: #58564e;
    --gold: #765a25;
    --gold-deep: #947539;
    --rule: rgb(118 90 37 / 27%);
  }

  body {
    background:
      radial-gradient(ellipse at 52% 43%, rgb(226 193 126 / 18%), transparent 43%),
      linear-gradient(145deg, #f7f4ed 0%, var(--surface) 54%, #e9e4d9 100%);
  }

  .logo-stage::before {
    border-color: rgb(118 90 37 / 16%);
    background: radial-gradient(circle, rgb(226 193 126 / 25%), transparent 70%);
  }

  .coming-logo { filter: drop-shadow(0 16px 26px rgb(50 42 25 / 20%)); }

  .training-note {
    background: linear-gradient(110deg, rgb(255 255 255 / 34%), rgb(226 193 126 / 11%));
  }

  .training-link:hover { color: #fffdf8; }
}

@media (max-width: 760px) {
  .launch-page { width: min(100% - 36px, 540px); }
  .launch-header { min-height: 72px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "emblem"
      "copy"
      "training";
    row-gap: 14px;
    padding-block: 28px;
  }

  .logo-stage { min-height: 210px; }
  .coming-logo { width: min(72%, 300px); }
  .logo-stage::before { width: min(65%, 240px); }
  .hero-copy { padding-block: 10px 22px; }
  .hero h1 { max-width: 14ch; font-size: clamp(2.2rem, 10vw, 3.3rem); }
  .hero-description { margin-top: 12px; }
  .training-note { align-items: flex-start; flex-direction: column; padding: 20px; }
  .training-link { align-self: flex-start; }
}

@media (max-width: 420px) {
  .launch-footer { font-size: 0.76rem; }
  .wordmark-en { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .coming-logo,
  .training-note { opacity: 1; }
}
