/* The players' landing page — "Frozen Citadel". Self-contained (no /site/site.css); all art is drawn here
   or in the view. Fonts are self-hosted (SIL OFL 1.1, licences in fonts/): Grenze Gotisch + Alegreya Sans
   for English, Lalezar + Vazirmatn for Farsi. Directional rules use logical properties so RTL just works. */

@font-face { font-family: "Grenze Gotisch"; src: url("fonts/GrenzeGotisch-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("fonts/Lalezar-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("fonts/Lalezar-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #05070d;
  --abyss: #0a1120;
  --deep: #0e1830;
  --glass: rgba(12, 20, 38, 0.72);
  --ice: #bff1ff;
  --frost: #5cc8ff;
  --frost-dim: rgba(92, 200, 255, 0.28);
  --gold: #e8c170;
  --gold-bright: #ffe3a3;
  --gold-deep: #a6772a;
  --text: #e8eef6;
  --muted: #98a8bd;
  --error: #ff9584;
  --ok: #8ef0b6;

  --font-display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --track: 0.28em;

  --chamfer: 14px;
  --shape: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[lang="fa"] {
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --track: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:root[lang="fa"] body { font-size: 16px; line-height: 1.8; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
code { font-family: Consolas, "SF Mono", monospace; color: var(--ice); font-size: 0.92em; }
bdi { unicode-bidi: isolate; }

/* ——— Buttons: chamfered runestones ——— */
.btn {
  --chamfer: 9px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.45em;
  border: 0;
  clip-path: var(--shape);
  /* clip-path hides the shine (::after) but does not stop it widening the page; in RTL it would. */
  overflow: hidden;
  font: 700 15px/1.2 var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
:root[lang="fa"] .btn { letter-spacing: 0; font-weight: 600; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { font-size: 16.5px; padding: 0.95em 1.7em; }
.btn-sm { font-size: 14px; padding: 0.6em 1.1em; }
.btn-block { width: 100%; }

.btn-gold {
  color: #1b1204;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.65) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-gold:hover { filter: brightness(1.08) drop-shadow(0 0 18px rgba(232, 193, 112, 0.45)); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-frost, .btn-ghost { color: var(--text); background: linear-gradient(135deg, var(--frost), rgba(92, 200, 255, 0.25) 50%, var(--frost)); }
.btn-ghost { background: linear-gradient(135deg, rgba(232, 193, 112, 0.7), rgba(232, 193, 112, 0.15) 50%, rgba(232, 193, 112, 0.7)); }
.btn-frost::before, .btn-ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: var(--shape);
  background: rgba(8, 14, 28, 0.88);
  transition: background 0.2s;
}
.btn-frost:hover::before { background: rgba(20, 52, 84, 0.92); }
.btn-ghost:hover::before { background: rgba(48, 36, 14, 0.9); }
.btn-frost:hover { filter: drop-shadow(0 0 14px rgba(92, 200, 255, 0.45)); }
.btn-ghost:hover { filter: drop-shadow(0 0 14px rgba(232, 193, 112, 0.35)); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); }

/* ——— Top bar ——— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.topbar.is-scrolled {
  padding-block: 10px;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(232, 193, 112, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .sigil { width: 34px; height: 34px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(232, 193, 112, 0.45)); transition: transform 0.6s var(--ease); }
.brand:hover .sigil { transform: rotate(90deg); }
.brand-name { font: 700 24px/1 "Grenze Gotisch", Georgia, serif; letter-spacing: 0.02em; color: var(--ice); text-shadow: 0 0 18px rgba(92, 200, 255, 0.35); }
.topnav { display: flex; gap: 6px; margin-inline-start: 12px; }
.topnav a {
  position: relative;
  padding: 6px 12px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.topnav a::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.topnav a:hover { color: var(--text); }
.topnav a:hover::after { transform: scaleX(1); }
.topbar-end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(232, 193, 112, 0.28);
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.6);
  backdrop-filter: blur(8px);
}
.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--muted);
  font: 500 14px/1.5 var(--font-body);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a[lang="en"] { font-family: "Alegreya Sans", sans-serif; }
.lang-switch a[lang="fa"] { font-family: "Vazirmatn", Tahoma, sans-serif; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: #1b1204; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  place-items: start center;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #0f2242 0%, #08101f 45%, var(--night) 75%);
}
.sky, .land, .snow { position: absolute; pointer-events: none; }
.sky { inset: 0; }
.stars {
  position: absolute;
  inset: 0 0 35%;
  opacity: 0.8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 42%, #cfefff, transparent),
    radial-gradient(1.5px 1.5px at 41% 12%, #fff, transparent), radial-gradient(1px 1px at 58% 33%, #fff, transparent),
    radial-gradient(1px 1px at 69% 8%, #cfefff, transparent), radial-gradient(1.5px 1.5px at 83% 27%, #fff, transparent),
    radial-gradient(1px 1px at 92% 51%, #fff, transparent), radial-gradient(1px 1px at 6% 61%, #cfefff, transparent),
    radial-gradient(1px 1px at 35% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 77% 64%, #cfefff, transparent);
  background-size: 420px 300px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora-1 { width: 60vw; height: 22vw; inset: 4% auto auto -8%; background: linear-gradient(90deg, rgba(56, 220, 200, 0), rgba(56, 220, 200, 0.55), rgba(92, 200, 255, 0)); transform: rotate(-12deg); }
.aurora-2 { width: 55vw; height: 18vw; inset: 10% -10% auto auto; background: linear-gradient(90deg, rgba(92, 200, 255, 0), rgba(92, 160, 255, 0.5), rgba(160, 230, 255, 0)); transform: rotate(10deg); animation-duration: 28s; animation-delay: -6s; }
.aurora-3 { width: 40vw; height: 14vw; inset: 26% auto auto 30%; background: radial-gradient(closest-side, rgba(120, 255, 210, 0.35), transparent); animation-duration: 18s; animation-delay: -3s; }
.moon {
  position: absolute;
  inset: 9% 7% auto auto;
  width: clamp(56px, 7vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffffff, #dbeefc 45%, #9cbad8 100%);
  box-shadow: 0 0 60px 18px rgba(170, 220, 255, 0.22), 0 0 160px 60px rgba(92, 200, 255, 0.1);
  opacity: 0.9;
}
/* overflow: visible lets the beam rise past the drawing's top edge instead of being cut off there. */
.land { inset: auto 0 0; width: 100%; height: 60%; overflow: visible; }
.land .beam { animation: pulse 5s ease-in-out infinite; }
.land .windows { animation: flicker 4s steps(1) infinite; filter: drop-shadow(0 0 4px #5cc8ff); }
.snow { inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--night));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  padding: clamp(118px, 17vh, 170px) 16px 0;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--frost);
  font: 700 13px/1.4 var(--font-body);
  letter-spacing: var(--track);
  text-transform: uppercase;
}
:root[lang="fa"] .eyebrow { font-size: 15px; text-transform: none; }
.eyebrow .rule { position: relative; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--frost)); }
.eyebrow .rule:last-child { transform: scaleX(-1); }
/* Physical side on purpose: each rule is mirrored as a whole (scaleX) so its diamond meets the text. */
.eyebrow .rule::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; background: var(--frost); transform: rotate(45deg); box-shadow: 0 0 10px var(--frost); }
:root[dir="rtl"] .eyebrow .rule { transform: scaleX(-1); }
:root[dir="rtl"] .eyebrow .rule:last-child { transform: none; }

.title {
  margin: 0;
  font: 800 clamp(64px, 12.5vw, 150px)/0.95 var(--font-display);
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, #ffffff 0%, #e3f6ff 38%, #8cc4e4 72%, #4f7fa6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(92, 200, 255, 0.35)) drop-shadow(0 4px 0 rgba(4, 10, 22, 0.8));
}
:root[lang="fa"] .title { font-weight: 400; font-size: clamp(54px, 11vw, 124px); line-height: 1.25; }
.lead {
  max-width: 640px;
  margin: 22px auto 34px;
  color: #c3d1e2;
  font-size: clamp(17px, 2vw, 20px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.scroll-cue {
  position: absolute;
  inset: auto 0 72px;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin: 0 auto;
  border: 1.5px solid rgba(191, 241, 255, 0.45);
  border-radius: 14px;
}
.scroll-cue span { position: absolute; inset: 8px 0 auto; width: 3px; height: 8px; margin: 0 auto; border-radius: 2px; background: var(--ice); animation: cue 2s var(--ease) infinite; }

/* ——— Sections ——— */
main { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -40px;
}
.feature {
  --chamfer: 16px;
  position: relative;
  isolation: isolate;
  padding: 30px 26px 26px;
  clip-path: var(--shape);
  background: linear-gradient(160deg, rgba(92, 200, 255, 0.45), rgba(92, 200, 255, 0.06) 40%, rgba(232, 193, 112, 0.3));
  transition: transform 0.35s var(--ease), filter 0.35s;
}
.feature::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--shape); background: linear-gradient(180deg, rgba(16, 28, 52, 0.94), rgba(8, 13, 26, 0.96)); }
.feature:hover { transform: translateY(-4px); filter: drop-shadow(0 12px 30px rgba(92, 200, 255, 0.18)); }
.feature h2 { margin: 18px 0 8px; font: 700 30px/1.1 var(--font-display); color: var(--gold); }
:root[lang="fa"] .feature h2 { font-weight: 400; font-size: 28px; line-height: 1.4; }
.feature p { margin: 0; color: var(--muted); }

.rune {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--ice);
  background: radial-gradient(circle, rgba(92, 200, 255, 0.28), rgba(92, 200, 255, 0.04) 70%);
  border: 1px solid rgba(92, 200, 255, 0.45);
  transform: rotate(45deg);
  box-shadow: 0 0 22px rgba(92, 200, 255, 0.25), inset 0 0 12px rgba(92, 200, 255, 0.2);
}
.rune .icon { width: 24px; height: 24px; transform: rotate(-45deg); }
.rune-sm { width: 34px; height: 34px; margin-inline-end: 14px; vertical-align: -6px; }
.rune-sm .icon { width: 17px; height: 17px; }

.journey { padding: 110px 0 40px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 0; font: 800 clamp(44px, 7vw, 76px)/1 var(--font-display); color: var(--text); text-shadow: 0 0 30px rgba(92, 200, 255, 0.25); }
:root[lang="fa"] .section-head h2 { font-weight: 400; line-height: 1.35; }

.steps-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
  text-align: center;
}
.steps-row::before {
  content: "";
  position: absolute;
  inset: 34px 16% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 193, 112, 0.5) 20%, rgba(92, 200, 255, 0.5) 80%, transparent);
}
.steps-row li { position: relative; padding: 0 12px; }
.mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  font: 800 30px/1 var(--font-display);
  color: var(--gold-bright);
  background: radial-gradient(circle, #13233f, var(--night) 75%);
  border: 1px solid rgba(232, 193, 112, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--night), 0 0 0 7px rgba(232, 193, 112, 0.2), 0 0 26px rgba(232, 193, 112, 0.25);
}
:root[lang="fa"] .mark { font-weight: 400; font-size: 32px; }
.steps-row h3 { margin: 0 0 4px; font: 700 21px/1.3 var(--font-body); }
.steps-row p { margin: 0; color: var(--muted); }

.panels { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.panel-stack { display: grid; gap: 22px; }
.panel {
  --chamfer: 20px;
  position: relative;
  isolation: isolate;
  padding: 34px 32px 30px;
  clip-path: var(--shape);
  background: linear-gradient(170deg, rgba(232, 193, 112, 0.6), rgba(232, 193, 112, 0.08) 30%, rgba(92, 200, 255, 0.08) 70%, rgba(92, 200, 255, 0.5));
}
.panel::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--shape); background: radial-gradient(120% 60% at 50% 0%, rgba(26, 44, 78, 0.95), rgba(9, 15, 29, 0.97) 60%); }
.panel h2 { display: flex; align-items: center; margin: 0 0 14px; font: 800 36px/1.1 var(--font-display); color: var(--gold); }
:root[lang="fa"] .panel h2 { font-weight: 400; font-size: 32px; line-height: 1.4; }
.panel p { margin: 0 0 16px; }
.panel .hint { color: var(--muted); font-size: 15px; }
.panel-register { padding-top: 46px; }
.panel-register h2 { justify-content: center; font-size: 44px; }
.panel-register > .hint { text-align: center; }
.crest { position: absolute; inset: 14px 0 auto; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--gold); }
.crest::before, .crest::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.crest::after { transform: scaleX(-1); }
.crest svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(232, 193, 112, 0.6)); }

form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(146, 176, 214, 0.22);
  border-radius: 4px;
  background: rgba(3, 7, 15, 0.7);
  color: var(--text);
  font: 17px/1.2 "Alegreya Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input[dir="ltr"] { text-align: left; }
input:hover { border-color: rgba(146, 176, 214, 0.4); }
input:focus { outline: none; border-color: var(--frost); background: rgba(6, 16, 32, 0.9); box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.18), 0 0 22px rgba(92, 200, 255, 0.2); }
form .btn { margin-top: 6px; }
.status { min-height: 1.6em; margin: 0; font-size: 15px; text-align: center; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); text-shadow: 0 0 12px rgba(142, 240, 182, 0.35); }

.steps { margin: 0 0 22px; padding-inline-start: 0; list-style: none; counter-reset: s; color: #c3d1e2; }
.steps li { position: relative; margin-bottom: 10px; padding-inline-start: 34px; counter-increment: s; }
/* The number upright (::before) inside a rune diamond (::after). */
.steps li::before {
  content: counter(s);
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--ice);
  font: 700 12px/1 "Alegreya Sans", sans-serif;
}
.steps li::after {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(92, 200, 255, 0.55);
  background: rgba(92, 200, 255, 0.08);
  transform: rotate(45deg);
}
:root[lang="fa"] .steps li::before { content: counter(s, persian); font-family: "Vazirmatn", sans-serif; }
.steps bdi { white-space: nowrap; }
#download-info { margin: 12px 0 0; }

.footer {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  padding: 46px 16px 54px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(92, 200, 255, 0.08), transparent);
  border-top: 1px solid rgba(232, 193, 112, 0.12);
}
.footer .sigil { width: 38px; height: 38px; color: var(--gold); opacity: 0.8; }
.footer-eyebrow { margin: 10px 0 4px; color: var(--frost); font: 700 12px/1.4 "Alegreya Sans", sans-serif; letter-spacing: 0.28em; text-transform: uppercase; }
.footer p { margin: 0; }

/* ——— Motion ——— */
.rise { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
@keyframes drift { to { transform: translate3d(6vw, 2vw, 0) rotate(4deg) scale(1.1); } }
@keyframes twinkle { to { opacity: 0.45; } }
@keyframes pulse { 50% { opacity: 0.6; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.75; } 49% { opacity: 1; } 83% { opacity: 0.85; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ——— Smaller screens ——— */
@media (max-width: 960px) {
  .topnav { display: none; }
  .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .panels { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { gap: 10px; padding-inline: 12px; }
  .brand-name { display: none; }
  .topbar-end { gap: 8px; }
  .btn-sm { padding: 0.55em 0.9em; }
  .hero { min-height: max(600px, 100svh); }
  .hero-inner { padding-top: 104px; }
  .eyebrow { gap: 10px; letter-spacing: calc(var(--track) * 0.65); font-size: 12px; }
  :root[lang="fa"] .eyebrow { font-size: 14px; }
  .eyebrow .rule { width: 26px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; }
  .land { height: 42%; }
  .moon { inset: 74px 7% auto auto; width: 44px; }
  .scroll-cue { display: none; }
  .features { margin-top: -20px; }
  .journey { padding-top: 80px; }
  .steps-row { grid-template-columns: 1fr; gap: 26px; }
  .steps-row::before { display: none; }
  .panel { padding: 30px 22px 24px; }
  .panel-register h2 { font-size: 38px; }
}
@media (max-width: 380px) {
  .btn-sm span { display: none; }
}
