/* Hunter Grade marketing site. Tokens mirror the app's "System" palette (src/theme.ts). */

@font-face { font-family: 'Orbitron'; font-weight: 700; font-display: swap; src: url('/assets/fonts/orbitron-700.woff') format('woff'); }
@font-face { font-family: 'Orbitron'; font-weight: 900; font-display: swap; src: url('/assets/fonts/orbitron-900.woff') format('woff'); }
@font-face { font-family: 'Rajdhani'; font-weight: 500; font-display: swap; src: url('/assets/fonts/rajdhani-500.woff') format('woff'); }
@font-face { font-family: 'Rajdhani'; font-weight: 600; font-display: swap; src: url('/assets/fonts/rajdhani-600.woff') format('woff'); }
@font-face { font-family: 'Rajdhani'; font-weight: 700; font-display: swap; src: url('/assets/fonts/rajdhani-700.woff') format('woff'); }

:root {
  --bg: #02040a;
  --bg-elev: #050a16;
  --surface: rgba(7, 17, 38, 0.84);
  --surface-solid: #071226;
  --surface-alt: #0b1a36;
  --border: #123566;
  --border-strong: #1f5ba8;
  --primary: #36b5ff;
  --primary-bright: #8fdcff;
  --primary-dim: #14558f;
  --glow: #2a9dff;
  --accent: #8e62ff;
  --gold: #ffc94d;
  --success: #3ee8b5;
  --danger: #ff3b5c;
  --custom: #ff6bd6;
  --text: #e6f4ff;
  --text-dim: #8fb3d9;
  --text-muted: #5f7fa6;

  --display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --ui: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1240px;
  --cut: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100dvh;
  font: 500 18px/1.55 var(--ui);
  background:
    radial-gradient(1200px 800px at 85% 120%, rgba(142, 98, 255, 0.08), transparent 60%),
    linear-gradient(rgba(54, 181, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(54, 181, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--primary); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ── Shared type ───────────────────────────────────────────────────────────── */

.section-title {
  font: 900 clamp(30px, 4.4vw, 54px)/1.04 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-lede {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: clamp(18px, 1.5vw, 20px);
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 68px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(2, 4, 10, 0.82);
  border-color: rgba(18, 53, 102, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  font: 900 15px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(42, 157, 255, 0.7)); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font: 600 15px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--primary-bright); }

/* Nav CTA: cut-corner outline that fills on hover. */
.nav-cta {
  --c: var(--primary);
  position: relative;
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 18px;
  white-space: nowrap;
  text-decoration: none;
  font: 700 11.5px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-bright);
  background: var(--c);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: color 0.25s;
}
.nav-cta::before {
  content: '';
  position: absolute; inset: 1px;
  background: var(--bg);
  clip-path: inherit;
  transition: transform 0.35s var(--ease);
  transform-origin: right;
}
.nav-cta span { position: relative; }
.nav-cta:hover { color: var(--bg); }
.nav-cta:hover::before { transform: scaleX(0); }
.nav-cta:active { transform: translateY(1px); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav__brand span { display: none; }
  .nav-cta { height: 38px; padding: 0 14px; letter-spacing: 0.12em; }
}

/* ── Film ──────────────────────────────────────────────────────────────────── */

.film { position: relative; }
.film__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}
/* The scene covers the stage (object-fit: cover maths) and main.js scales it for the push-in.
   Portal and vortex geometry comes from tools/build-portal.py. */
.film__scene {
  position: absolute; left: 50%; top: 50%;
  width: max(100%, 176.842vh); width: max(100%, 176.842dvh);
  aspect-ratio: 2688 / 1520;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.film__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__portal {
  position: absolute; left: 44.568%; top: 19.803%; width: 11.272%; height: 43.75%;
  -webkit-mask-image: url(/assets/film/portal-mask.webp); mask-image: url(/assets/film/portal-mask.webp);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.js .film__portal { opacity: 0; transition: opacity 1s; }
.js .film.is-live .film__portal { opacity: 1; }
/* The vortex is stored round; scaleY puts it back in the gate's perspective. */
.film__vortex {
  position: absolute; left: 45.875%; top: 44.511%; width: 208.581%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scaleY(1.4);
}
.film__spin, .film__disc { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Near full sync the gate turns red: main.js sets --red (0..1) on the stage. */
.film__red { opacity: var(--red, 0); }
.film__vortex::after {
  content: '';
  position: absolute; inset: 40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.16) 55%, transparent);
  mix-blend-mode: screen;
  opacity: 0.6;
}
@media (prefers-reduced-motion: no-preference) {
  /* Counter-clockwise, so the arms flow inward. main.js speeds it up as the gate syncs. */
  .film__spin { animation: vortex-spin 36s linear infinite; }
  .film__vortex::after { animation: vortex-core 4.6s ease-in-out infinite alternate; }
}
@keyframes vortex-spin { to { transform: rotate(-1turn); } }
@keyframes vortex-core {
  from { opacity: 0.35; transform: scale(0.86); }
  to { opacity: 0.85; transform: scale(1.12); }
}
.film__motes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; mix-blend-mode: screen;
}
.film__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 4, 10, 0.6) 0%, transparent 18%, transparent 62%, rgba(2, 4, 10, 0.92) 100%),
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(2, 4, 10, 0.72) 100%);
}
.film__emblem {
  --reveal: 0;
  --x: 50%;
  --y: 26%;
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(110px, 17vh, 190px); height: auto;
  opacity: var(--reveal);
  transform: translate(-50%, -50%) scale(calc(0.6 + 0.4 * var(--reveal)));
  filter: drop-shadow(0 0 22px rgba(42, 157, 255, 0.9)) drop-shadow(0 0 60px rgba(143, 220, 255, 0.5));
  pointer-events: none;
}
.film__hud {
  position: absolute; right: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap;
  font: 700 10.5px/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.film__sync b { color: var(--primary-bright); font-weight: 700; display: inline-block; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.film__meter {
  width: 120px; height: 3px;
  background: rgba(54, 181, 255, 0.18);
  overflow: hidden;
}
.film__meter i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  box-shadow: 0 0 10px var(--glow);
  transform-origin: left;
  transform: scaleX(0);
}

.film__chapters {
  position: relative; z-index: 2;
  margin-top: -100vh; margin-top: -100dvh;
}
.chapter {
  display: flex; align-items: center;
  min-height: 125vh; min-height: 125dvh;
  padding: 120px var(--gutter);
}
.chapter--hero { min-height: 100vh; min-height: 100dvh; padding-top: 96px; }
.chapter--right { justify-content: flex-end; }
.chapter--end {
  justify-content: center; align-items: flex-end;
  min-height: 150vh; min-height: 150dvh;
  padding-bottom: 12vh;
  text-align: center;
}
.chapter--end .window { margin-inline: auto; }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .chapter, .chapter--right { align-items: flex-end; justify-content: center; padding-bottom: 10vh; }
  .chapter--hero { padding-bottom: 6vh; }
  .film__hud { right: auto; left: 50%; transform: translateX(-50%); bottom: auto; top: 80px; }
}

/* System window: the app's panel language. */
.window {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 28px clamp(20px, 3vw, 32px) 28px;
  background: linear-gradient(180deg, rgba(7, 17, 38, 0.88), rgba(3, 8, 20, 0.94));
  border: 1px solid rgba(54, 181, 255, 0.42);
  box-shadow: 0 0 34px rgba(42, 157, 255, 0.2), inset 0 0 44px rgba(42, 157, 255, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.window::before, .window::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--primary-bright);
  filter: drop-shadow(0 0 6px var(--glow));
}
.window::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.window::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.window--hero { max-width: 580px; }
.window--gold { border-color: rgba(255, 201, 77, 0.45); box-shadow: 0 0 34px rgba(255, 201, 77, 0.16), inset 0 0 44px rgba(255, 201, 77, 0.05); }
.window--gold::before, .window--gold::after { border-color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 201, 77, 0.8)); }

.window__bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(54, 181, 255, 0.22);
  font: 700 10.5px/1.2 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-bright);
}
.window__bar span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.window__bar span:first-child::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--primary-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--glow);
}
.window__bar span:last-child { color: var(--text-dim); }

.hero__title {
  font: 900 clamp(40px, 6vw, 80px)/0.98 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--primary-bright);
  text-shadow: 0 0 22px rgba(42, 157, 255, 0.85), 0 0 2px rgba(143, 220, 255, 0.8);
}
.hero__lede { margin-top: 18px; color: var(--text-dim); font-size: clamp(18px, 1.6vw, 21px); max-width: 44ch; }

.chapter__title {
  font: 900 clamp(28px, 3.6vw, 46px)/1.04 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.chapter__body { margin-top: 14px; color: var(--text-dim); font-size: clamp(18px, 1.5vw, 20px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 7px 11px;
  font: 700 10.5px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-bright);
  background: rgba(54, 181, 255, 0.08);
  border: 1px solid rgba(54, 181, 255, 0.32);
}

/* Chapter CTA: gold text link with a drawing underline. */
.trial-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding-bottom: 6px;
  text-decoration: none;
  font: 700 12.5px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.trial-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.trial-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.trial-link:hover::after { transform: scaleX(1); }
.trial-link:hover svg { transform: translateX(4px); }

/* ── Waitlist form ─────────────────────────────────────────────────────────── */

.signup { margin-top: 26px; }
.signup__label {
  display: block; margin-bottom: 8px;
  font: 700 10.5px/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.signup__row { display: flex; gap: 10px; }
.signup__input {
  flex: 1 1 auto; min-width: 0;
  height: 54px; padding: 0 16px;
  font: 600 18px/1 var(--ui);
  letter-spacing: 0.02em;
  background: rgba(2, 6, 16, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup__input::placeholder { color: #6d8db3; }
.signup__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(54, 181, 255, 0.25), 0 0 18px rgba(42, 157, 255, 0.25); }
.signup__input[aria-invalid='true'] { border-color: var(--danger); }
.signup__help { margin-top: 10px; font-size: 15px; color: var(--text-muted); }
.signup__status { margin-top: 8px; min-height: 1.5em; font-weight: 600; font-size: 16px; }
.signup__status.is-ok { color: var(--success); }
.signup__status.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .signup__row { flex-direction: column; }
}

/* Hero CTA: charged blue slab, chevrons rise on hover. */
.hero-cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 22px;
  border: 0;
  font: 700 12.5px/1 var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #02040a;
  background: linear-gradient(180deg, #7fd3ff 0%, #36b5ff 45%, #1e8fe6 100%);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: 0 0 26px rgba(42, 157, 255, 0.55);
  transition: filter 0.2s, transform 0.12s;
}
.hero-cta svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.hero-cta:hover { filter: brightness(1.12) saturate(1.1); }
.hero-cta:hover svg { transform: translateY(-3px); }
.hero-cta:active { transform: scale(0.98); }
.hero-cta[disabled] { filter: grayscale(0.4) brightness(0.8); cursor: progress; }

/* Final CTA: gold, with a light sweep on hover. */
.gold-cta {
  position: relative; overflow: hidden;
  flex: 0 0 auto;
  height: 58px; padding: 0 28px;
  border: 0;
  font: 900 13px/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1203;
  background: linear-gradient(180deg, #ffe08f 0%, #ffc94d 50%, #e9a823 100%);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  transition: transform 0.12s, filter 0.2s;
}
.gold-cta::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-160%) skewX(-18deg);
}
.gold-cta:hover::after { transform: translateX(320%) skewX(-18deg); transition: transform 0.75s var(--ease); }
.gold-cta span { position: relative; }
.gold-cta:active { transform: scale(0.98); }
.gold-cta[disabled] { filter: grayscale(0.4) brightness(0.8); cursor: progress; }

/* ── Inside the app: a pinned tour of the screens ─────────────────────────── */
/* Without JS this is a plain section (every caption open, first screen shown). With JS the
   track grows tall, the pin sticks, and main.js steps through the screens as you scroll. */

@property --tone { syntax: '<color>'; inherits: true; initial-value: #36b5ff; }

.tour { position: relative; overflow-x: clip; }
.tour__pin {
  --tone: #36b5ff;
  --screen-h: min(72vh, 680px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". stage" "head stage" "list stage" ". stage";
  column-gap: clamp(32px, 6vw, 96px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(72px, 9vw, 120px);
  transition: --tone 0.8s;
}
.js .tour__track { height: calc(100vh + 6 * 62vh); }
.js .tour__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  padding-top: 84px; padding-bottom: 24px;
  --screen-h: min(680px, calc(100vh - 190px));
  --screen-h: min(680px, calc(100dvh - 190px));
}

.tour__head { grid-area: head; }
.tour__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 10.5px/1.2 var(--display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary-bright);
}
.tour__eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--primary-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--glow);
}
.tour__title { margin-top: 14px; font-size: clamp(30px, 3.4vw, 46px); }
.tour__lede { font-size: clamp(17px, 1.3vw, 19px); }

/* The quest log: the active step opens, glows in its tone and fills its bar as you scroll. */
.tour__list { grid-area: list; margin-top: clamp(20px, 3.5vh, 36px); border-top: 1px solid rgba(54, 181, 255, 0.14); }
.tour__list > li { border-bottom: 1px solid rgba(54, 181, 255, 0.14); }
.tour__item {
  position: relative;
  display: grid; grid-template-columns: 46px 1fr; align-items: baseline;
  width: 100%;
  padding: 15px 0 15px 16px;
  font: inherit; text-align: left;
  color: var(--text-muted);
  background: none; border: 0;
  cursor: pointer;
  transition: color 0.3s;
}
.tour__item::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px;
  background: var(--tone);
  box-shadow: 0 0 12px var(--tone);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.tour__item:hover { color: var(--text-dim); }
.tour__item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.tour__num { font: 700 11px/1 var(--display); letter-spacing: 0.14em; transition: color 0.3s, text-shadow 0.3s; }
.tour__name { font: 700 clamp(14px, 1.15vw, 16px)/1.25 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.tour__desc { grid-column: 2; display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease), opacity 0.4s; }
.tour__desc > span { overflow: hidden; padding-top: 8px; color: var(--text-dim); font-size: 17px; line-height: 1.45; }
.tour__bar { position: absolute; left: 62px; right: 0; bottom: -1px; height: 1px; display: none; }
.tour__bar i { display: block; height: 100%; background: var(--tone); box-shadow: 0 0 8px var(--tone); transform-origin: left; transform: scaleX(0); }

.js .tour__desc { grid-template-rows: 0fr; opacity: 0; }
.js .tour__bar { display: block; }
.js .is-on > .tour__item { color: var(--text); }
.js .is-on > .tour__item::before { transform: scaleY(1); }
.js .is-on > .tour__item .tour__num { color: var(--tone); text-shadow: 0 0 10px var(--tone); }
.js .is-on > .tour__item .tour__desc { grid-template-rows: 1fr; opacity: 1; }
.js li:not(.is-on) .tour__bar i { opacity: 0.3; box-shadow: none; }

.tour__dots { grid-area: dots; display: none; gap: 6px; }
.tour__dots i { flex: 1; height: 3px; background: rgba(54, 181, 255, 0.18); overflow: hidden; }
.tour__dots b { display: block; height: 100%; background: var(--tone); box-shadow: 0 0 8px var(--tone); transform-origin: left; transform: scaleX(0); }

/* The stage: tone glow, holo rings, the floating device and its callouts. */
.tour__stage { grid-area: stage; position: relative; display: grid; place-items: center; align-content: center; min-width: 0; }
.tour__glow {
  position: absolute; left: 50%; top: 47%;
  width: calc(var(--screen-h) * 1.15); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(54, 181, 255, 0.3), transparent);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 32%, transparent), transparent);
  pointer-events: none;
}
.tour__rings {
  position: absolute; left: 50%; top: 47%;
  width: calc(var(--screen-h) * 1.3); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--tone);
  overflow: visible;
  pointer-events: none;
}
.tour__ring { fill: none; stroke: currentColor; transform-box: fill-box; transform-origin: center; }
.tour__ring--a { stroke-width: 1.4; stroke-dasharray: 1 9; opacity: 0.55; }
.tour__ring--b { stroke-width: 2; stroke-dasharray: 160 36 18 36; opacity: 0.28; }
.tour__ring--c { stroke-width: 1; opacity: 0.16; }

.tour__float { position: relative; perspective: 1400px; }
.tour__tilt {
  --rx: 3deg;
  --ry: -9deg;
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.device {
  position: relative;
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(150deg, #33496b 0%, #0d1729 28%, #060b16 62%, #1d3050 100%);
  box-shadow:
    0 0 0 1px rgba(143, 220, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 90px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(42, 157, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(143, 220, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 90px rgba(0, 0, 0, 0.75),
    0 0 80px color-mix(in srgb, var(--tone) 30%, transparent);
}
.device::before, .device::after {
  content: '';
  position: absolute; width: 3px;
  border-radius: 2px;
  background: linear-gradient(#2c4366, #0f1a2e);
}
.device::before { right: -3px; top: 25%; height: 11%; }
.device::after { left: -3px; top: 20%; height: 6%; box-shadow: 0 calc(var(--screen-h) * 0.09) 0 #1c2d4a; }
.device__screen {
  position: relative;
  height: var(--screen-h);
  aspect-ratio: 640 / 1475;
  border-radius: 43px;
  overflow: hidden;
  background: #040a17;
  transform: translateZ(0);
}
.device__screen::after {
  content: '';
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 31%);
  pointer-events: none;
}
/* The screenshots start at the app's content, so the frame draws its own status bar. */
.device__status {
  position: relative; z-index: 3;
  height: 5.97%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7.5% 0 11%;
  color: #e9f4ff;
  font: 600 calc(var(--screen-h) * 0.019)/1 -apple-system, 'SF Pro Text', system-ui, sans-serif;
}
.device__status svg { width: 24%; height: auto; fill: currentColor; }
.device__island {
  position: absolute; left: 50%; top: 52%;
  width: 31%; height: 64%;
  transform: translate(-50%, -50%);
  background: #000;
  border-radius: 999px;
}
.device__shots { position: absolute; left: 0; right: 0; top: 5.97%; bottom: 0; }
.tour__shot { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.tour__shot.is-prev { visibility: visible; z-index: 1; }
.tour__shot.is-on { visibility: visible; z-index: 2; }
.device__scan {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to bottom, transparent 72%, rgba(54, 181, 255, 0.2));
  background: linear-gradient(to bottom, transparent 72%, color-mix(in srgb, var(--tone) 24%, transparent));
  opacity: 0;
  pointer-events: none;
}
.device__scan::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #fff 18%, #fff 82%, transparent);
  box-shadow: 0 0 16px 3px var(--tone);
}

/* System notifications that float off the device for each screen. */
.tour__callouts { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.callout {
  --c: var(--primary-bright);
  --from: -18px;
  position: absolute;
  display: grid; gap: 6px;
  margin: 0;
  padding: 11px 16px 12px;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(8, 18, 40, 0.95), rgba(3, 8, 20, 0.97));
  border: 1px solid rgba(54, 181, 255, 0.45);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(42, 157, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 26px color-mix(in srgb, var(--c) 28%, transparent);
  opacity: 0;
  transform: translate3d(var(--from), 0, 70px);
  transition: opacity 0.25s, transform 0.5s var(--ease);
}
.callout::before {
  content: '';
  position: absolute; top: -2px; left: -2px;
  width: 12px; height: 12px;
  border: 2px solid var(--c); border-right: 0; border-bottom: 0;
}
.callout span { font: 700 9px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); }
.callout b {
  font: 900 clamp(15px, 1.3vw, 19px)/1 var(--display);
  letter-spacing: 0.04em;
  color: var(--c);
  text-shadow: 0 0 14px var(--c);
}
.callout--a { right: calc(100% - 28px); top: 15%; }
.callout--b { left: calc(100% - 28px); bottom: 20%; --from: 18px; }
.callout--gold { --c: var(--gold); }
.callout--green { --c: var(--success); }
.callout--violet { --c: #b693ff; }
.callout.is-on { opacity: 1; transform: translate3d(0, 0, 70px); transition-delay: 0.55s; }

.tour__hud {
  position: relative;
  margin-top: 26px;
  font: 700 10px/1 var(--display);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tour__hud b { color: var(--tone); text-shadow: 0 0 10px var(--tone); }

@media (prefers-reduced-motion: no-preference) {
  .tour__ring--a { animation: ring-spin 90s linear infinite; }
  .tour__ring--b { animation: ring-spin 60s linear infinite reverse; }
  .tour__float { animation: tour-float 7s ease-in-out infinite; }
  .tour__shot.is-on { animation: shot-in 0.9s cubic-bezier(0.45, 0, 0.25, 1) both; }
  .device__scan.run { animation: scan 0.9s cubic-bezier(0.45, 0, 0.25, 1) both; }
}
@keyframes ring-spin { to { transform: rotate(1turn); } }
@keyframes tour-float { 50% { transform: translateY(-10px); } }
/* The new screen draws in under a scan line moving down with the same timing. */
@keyframes shot-in {
  from { clip-path: inset(0 0 100% 0); filter: brightness(1.7) saturate(1.2); }
  to { clip-path: inset(0); filter: none; }
}
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Phones and narrow windows: title, progress dots, the device, then the active caption. */
@media (max-width: 900px) {
  .tour__pin {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "stage" "list";
    row-gap: 40px;
  }
  .tour__stage { padding: 0 24px; }
  .js .tour__pin {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "head" "dots" "stage" "list";
    row-gap: 14px;
    padding-top: 76px; padding-bottom: 20px;
    --screen-h: clamp(260px, calc(100vh - 330px), 560px);
    --screen-h: clamp(260px, calc(100dvh - 330px), 560px);
  }
  .js .tour__eyebrow, .js .tour__lede, .js .tour__hud { display: none; }
  .js .tour__title { margin-top: 0; font-size: clamp(22px, 6.2vw, 32px); }
  .js .tour__dots { display: flex; }
  .js .tour__list { display: grid; margin-top: 0; border: 0; }
  .js .tour__list > li { grid-area: 1 / 1; border: 0; visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0.35s; }
  .js .tour__list > li.is-on { visibility: visible; opacity: 1; }
  .js .tour__item { padding: 0; grid-template-columns: 34px 1fr; cursor: default; }
  .js .tour__item::before, .js .tour__bar { display: none; }
  .js .tour__desc > span { font-size: 16px; padding-top: 6px; }
  .tour__tilt { --ry: -6deg; }
  .callout { padding: 8px 11px 9px; gap: 4px; }
  .callout span { font-size: 7.5px; }
  .callout b { font-size: 13px; }
  .callout--a { right: calc(100% - 44px); }
  .callout--b { left: calc(100% - 44px); }
}

/* ── Ranks ─────────────────────────────────────────────────────────────────── */

.ranks { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.rank-e { --rank: #9db4d6; }
.rank-d { --rank: #3ee8b5; }
.rank-c { --rank: #36b5ff; }
.rank-b { --rank: #8e62ff; }
.rank-a { --rank: #ff8a3d; }
.rank-s { --rank: #ffc94d; }

.ladder {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px; align-items: end;
  margin-top: 56px;
}
.rung {
  position: relative;
  padding-bottom: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rank) 9%, var(--bg-elev)), var(--bg-elev) 70%);
  border: 1px solid color-mix(in srgb, var(--rank) 38%, transparent);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.rung:nth-child(2) { margin-bottom: 30px; }
.rung:nth-child(3) { margin-bottom: 60px; }
.rung:nth-child(4) { margin-bottom: 90px; }
.rung:nth-child(5) { margin-bottom: 120px; }
.rung:nth-child(6) { margin-bottom: 150px; }
.rung:hover { transform: translateY(-6px); border-color: var(--rank); box-shadow: 0 0 32px color-mix(in srgb, var(--rank) 30%, transparent); }
.rung__art { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rung__badge {
  position: relative;
  width: 64px; height: 64px;
  margin: -34px 0 0 14px;
  color: var(--rank);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rank) 70%, transparent));
}
.rung__badge text { font: 900 40px var(--display); fill: currentColor; text-anchor: middle; }
.rung h3, .rung p { padding: 0 16px; }
.rung h3 {
  margin-top: 10px;
  font: 700 14px/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rank);
}
.rung__req {
  margin: 6px 0 10px;
  font: 700 10px/1.3 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rung p:last-child { color: var(--text-dim); font-size: 16px; line-height: 1.45; }

.trials {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center;
  margin-top: 48px; padding: 26px 30px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 201, 77, 0.06), transparent 50%), var(--bg-elev);
}
.trials__title {
  font: 700 14px/1.2 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.trials__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trials__list li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--border); }
.trials__list b { font-weight: 700; font-size: 17px; }
.trials__list span { color: var(--text-dim); font-size: 15px; line-height: 1.35; }
.trials__note { grid-column: 2; color: var(--text-muted); font-size: 15px; }

@media (max-width: 1080px) {
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .rung:nth-child(n) { margin-bottom: 0; }
  .trials { grid-template-columns: 1fr; }
  .trials__note { grid-column: 1; }
  .trials__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ladder { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rung h3 { font-size: 12.5px; }
  .rung p:last-child { font-size: 15px; }
  .trials__list { grid-template-columns: 1fr; }
}

/* ── Classes ───────────────────────────────────────────────────────────────── */

.classes { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter); }
.cls-fighter { --cls: #ff3b5c; }
.cls-ranger { --cls: #3ee8b5; }
.cls-assassin { --cls: #8e62ff; }
.cls-guardian { --cls: #ffc94d; }
.cls-mage { --cls: #36b5ff; }

.classes__body {
  display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
}
.class-tabs { display: flex; flex-direction: column; gap: 8px; }
.class-tab {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  text-align: left;
  background: rgba(5, 10, 22, 0.8);
  border: 1px solid var(--border);
  border-left: 3px solid color-mix(in srgb, var(--cls) 40%, transparent);
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.12s;
}
.class-tab b { font: 700 15px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.class-tab span { font: 700 10.5px/1 var(--display); letter-spacing: 0.18em; color: var(--text-muted); }
.class-tab:hover { border-color: color-mix(in srgb, var(--cls) 60%, transparent); }
.class-tab:active { transform: scale(0.99); }
.class-tab[aria-selected='true'] {
  background: linear-gradient(90deg, color-mix(in srgb, var(--cls) 18%, transparent), rgba(5, 10, 22, 0.8));
  border-color: var(--cls);
  box-shadow: 0 0 24px color-mix(in srgb, var(--cls) 25%, transparent);
}
.class-tab[aria-selected='true'] b, .class-tab[aria-selected='true'] span { color: var(--cls); }

.class-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.class-panel[hidden] { display: none; }
.class-panel__art {
  width: 100%; height: auto;
  aspect-ratio: 640 / 849; object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--cls) 35%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--cls) 22%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.class-panel__stat {
  font: 700 11px/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cls);
}
.class-panel h3 {
  margin-top: 12px;
  font: 900 clamp(38px, 5vw, 64px)/1 var(--display);
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 30px color-mix(in srgb, var(--cls) 55%, transparent);
}
.class-panel__tag { margin-top: 14px; font-size: 21px; font-weight: 600; color: var(--text-dim); }
.class-panel ul { margin-top: 22px; display: grid; gap: 12px; }
.class-panel li { position: relative; padding-left: 22px; color: var(--text); }
.class-panel li::before {
  content: '';
  position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--cls);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--cls);
}
.classes__note { margin-top: 36px; color: var(--text-muted); font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .class-panel:not([hidden]) .class-panel__art { animation: cls-in 0.6s var(--ease); }
  .class-panel:not([hidden]) .class-panel__text { animation: cls-in 0.6s 0.06s var(--ease) backwards; }
}
@keyframes cls-in { from { transform: translateY(14px); opacity: 0.4; } }

@media (max-width: 900px) {
  .classes__body { grid-template-columns: 1fr; }
  .class-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .class-tab { flex: 0 0 auto; gap: 14px; }
  .class-panel { grid-template-columns: 1fr; }
  .class-panel__art { max-width: 420px; }
}

/* ── Exercise library ─────────────────────────────────────────────────────── */

.library {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--gutter);
  align-items: start;
}
.library__text { position: sticky; top: 110px; }
.library__facts { display: grid; gap: 18px; margin-top: 36px; }
.library__facts div { display: flex; align-items: baseline; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.library__facts dt {
  min-width: 2.6em;
  font: 900 36px/1 var(--display);
  color: var(--primary-bright);
  text-shadow: 0 0 18px rgba(42, 157, 255, 0.6);
}
.library__facts dd { color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; }

.clips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.clip {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.clip--big { grid-column: span 2; grid-row: span 2; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px;
  font: 700 13px/1.15 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(2, 4, 10, 0.92), transparent);
}
.clip--big span { font-size: 16px; padding: 28px 14px 12px; }

@media (max-width: 980px) {
  .library { grid-template-columns: 1fr; }
  .library__text { position: static; }
  .library__facts { grid-template-columns: repeat(3, 1fr); }
  .library__facts div { flex-direction: column; gap: 6px; }
}
@media (max-width: 640px) {
  .clips { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .clip span { font-size: 11px; padding: 14px 6px 6px; }
  .library__facts dt { font-size: 28px; }
  .library__facts dd { font-size: 13px; }
}

/* ── Systems bento ────────────────────────────────────────────────────────── */

.systems { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter); }
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(230px, auto);
  grid-template-areas:
    'pen pen pen pen rest rest'
    'pen pen pen pen rift rift'
    'store store custom custom report report';
  margin-top: 48px;
}
.cell {
  --tone: var(--primary);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: var(--bg-elev);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--border));
}
.cell__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.cell:hover .cell__bg { transform: scale(1.04); }
.cell__bg + .cell__body::before {
  content: '';
  position: absolute; inset: -400px -26px -26px;
  z-index: -1;
  background: linear-gradient(to top, rgba(2, 4, 10, 0.96) 18%, rgba(2, 4, 10, 0.55) 55%, transparent 80%);
}
.cell__body { position: relative; z-index: 1; }
.cell h3 {
  display: flex; align-items: center; gap: 12px;
  font: 700 clamp(17px, 1.6vw, 21px)/1.15 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tone);
}
.cell p { margin-top: 10px; max-width: 48ch; color: var(--text-dim); font-size: 17px; line-height: 1.5; }
.cell--penalty { grid-area: pen; --tone: var(--danger); min-height: 480px; }
.cell--penalty h3 { font-size: clamp(22px, 2.4vw, 32px); }
.cell--rest { grid-area: rest; --tone: var(--accent); }
.cell--rift { grid-area: rift; --tone: var(--success); background: radial-gradient(120% 90% at 100% 0%, rgba(62, 232, 181, 0.12), transparent 60%), var(--bg-elev); justify-content: center; }
.cell--store { grid-area: store; --tone: var(--gold); background: radial-gradient(120% 100% at 0% 100%, rgba(255, 201, 77, 0.1), transparent 60%), var(--bg-elev); }
.cell--custom { grid-area: custom; --tone: var(--custom); }
.cell--report { grid-area: report; background: radial-gradient(120% 100% at 100% 100%, rgba(54, 181, 255, 0.12), transparent 60%), var(--bg-elev); }
.cell__sigil { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(255, 201, 77, 0.6)); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  padding: 5px 9px;
  font: 600 14px/1.1 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  border: 1px solid rgba(62, 232, 181, 0.3);
  background: rgba(62, 232, 181, 0.06);
}
.frames { display: flex; gap: 4px; margin-top: 16px; }
.frames li { flex: 1 1 0; max-width: 72px; }
.frames img { width: 100%; height: auto; transition: transform 0.3s var(--ease); }
.frames li:hover img { transform: translateY(-4px) scale(1.06); }

@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 'pen pen' 'rest rift' 'store custom' 'report report';
  }
  .cell--penalty { min-height: 380px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: 'pen' 'rest' 'rift' 'store' 'custom' 'report'; }
  .cell--penalty { min-height: 340px; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq { max-width: 900px; margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter); }
.faq__list { margin-top: 40px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px;
  list-style: none;
  cursor: pointer;
  font: 700 clamp(19px, 2vw, 22px)/1.3 var(--ui);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary { color: var(--primary-bright); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--primary-bright); }
.faq details p { padding: 0 4px 24px; max-width: 66ch; color: var(--text-dim); }

/* ── Final CTA ─────────────────────────────────────────────────────────────── */

.final {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: 92vh; min-height: 92dvh;
  padding: 120px var(--gutter);
  text-align: center;
  isolation: isolate;
}
.final__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.final::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(2, 4, 10, 0.4) 30%, rgba(2, 4, 10, 0.55) 70%, var(--bg) 100%),
    radial-gradient(ellipse at center, rgba(2, 4, 10, 0.35), rgba(2, 4, 10, 0.85) 75%);
}
.final__inner { max-width: 640px; }
.final__emblem {
  width: clamp(110px, 14vw, 170px); height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 26px rgba(42, 157, 255, 0.8));
}
@media (prefers-reduced-motion: no-preference) {
  .final__emblem { animation: breathe 3.6s ease-in-out infinite; }
}
@keyframes breathe { 50% { transform: scale(1.05); filter: drop-shadow(0 0 38px rgba(42, 157, 255, 1)); } }
.final__title {
  font: 900 clamp(34px, 5.6vw, 72px)/1 var(--display);
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(42, 157, 255, 0.55);
  text-wrap: balance;
}
.final__lede { margin-top: 16px; color: var(--text-dim); font-size: clamp(18px, 1.7vw, 21px); }
.signup--final { margin: 34px auto 0; max-width: 560px; text-align: left; }

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  padding: 36px var(--gutter) 44px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-dim);
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font: 900 13px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.footer__brand img { width: 28px; height: 28px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--primary-bright); }
.footer__legal { margin-left: auto; color: var(--text-muted); font-size: 15px; }
@media (max-width: 640px) { .footer__legal { margin-left: 0; width: 100%; } }

/* ── System toast ──────────────────────────────────────────────────────────── */

.toast {
  position: fixed; top: 82px; left: 50%; z-index: 60;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 18px 16px;
  background: linear-gradient(90deg, rgba(54, 181, 255, 0.2), rgba(4, 10, 24, 0.97) 60%);
  border: 1px solid rgba(54, 181, 255, 0.65);
  box-shadow: 0 0 26px rgba(42, 157, 255, 0.45);
  transform: translateX(-50%);
}
.toast.is-error { border-color: rgba(255, 59, 92, 0.7); background: linear-gradient(90deg, rgba(255, 59, 92, 0.2), rgba(4, 10, 24, 0.97) 60%); box-shadow: 0 0 26px rgba(255, 59, 92, 0.35); }
.toast__label { font: 700 9.5px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--primary-bright); }
.toast.is-error .toast__label { color: var(--danger); }
.toast__title { margin-top: 6px; font-weight: 700; font-size: 19px; }
.toast__msg { color: var(--text-dim); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: toast-in 0.35s var(--ease); }
}
@keyframes toast-in { from { transform: translate(-50%, -18px) scaleX(0.92); } }

/* ── Scroll reveals: transform only, content is always visible ───────────── */

@media (prefers-reduced-motion: no-preference) {
  .js .rv { transform: translateY(28px); transition: transform 0.9s var(--ease); }
  .js .rv.in { transform: none; }
}

/* ── Reduced motion: the film becomes a still ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .film__motes, .film__hud, .film__emblem { display: none; }
  .chapter, .chapter--end { min-height: 80vh; min-height: 80dvh; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Sub-pages (privacy, joined, 404) ─────────────────────────────────────── */

.page { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 96px; }
.page__meta { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.page h2 {
  margin-top: 40px;
  font: 700 16px/1.3 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
}
.page p, .page li { margin-top: 12px; color: var(--text-dim); }
.page ul { padding-left: 4px; }
.page li { position: relative; padding-left: 20px; margin-top: 6px; }
.page li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; background: var(--primary); transform: rotate(45deg); }
.page a { color: var(--primary-bright); }
.notice { min-height: 100vh; min-height: 100dvh; }
.notice .final__inner { max-width: 600px; }
.notice .window__bar { text-align: left; }
