/* ===========================================================
   Heist Protocol — landing page
   Tokens follow Assets/Scripts/UI/Common/ColorPalette.cs (brief §10).
   Dark only: the game has no light theme.
   =========================================================== */

:root {
  /* Backgrounds */
  --bg-void: #04060D;
  --bg-base: #070912;
  --bg-surface: #0F1322;
  --bg-elevated: #161B30;

  /* Text */
  --fg-1: #F3F6FF;
  --fg-2: #B7BFD6;
  --fg-3: #6B7494;
  --fg-4: #3A4262;
  /* Telemetry labels: fg-3 lifted so 11–12px mono passes 4.5:1 on the void. */
  --tele: #8A93B3;

  /* Signal */
  --magenta: #FF006E; --magenta-soft: #FF4D9B; --magenta-deep: #B8004F;
  --cyan: #00F0FF;    --cyan-soft: #66F6FF;    --cyan-deep: #00A8B5;
  --amber: #FFB800;   --amber-soft: #FFD466;   --amber-deep: #B58300;
  --red: #FF2D55;     --red-deep: #B81E3C;
  --green: #21D07A;   --green-deep: #138C50;
  --violet: #8B5CF6;

  /* Lines */
  --line-hairline: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-focus: #00F0FF;

  /* Type */
  --font-display: 'Chakra Petch', 'Eurostile', 'Bahnschrift', system-ui, sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;

  /* Glow */
  --glow-magenta-md: 0 0 24px rgba(255, 0, 110, 0.5), 0 0 4px rgba(255, 0, 110, 0.95);
  --glow-magenta-lg: 0 0 48px rgba(255, 0, 110, 0.4), 0 0 8px rgba(255, 0, 110, 0.85);

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --gutter: 40px;
  --nav-h: 76px;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  background: var(--bg-void);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--cyan); }
a:hover { color: var(--cyan-soft); }

:focus-visible { outline: 2px solid rgba(0, 240, 255, 0.8); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--magenta); color: var(--bg-void);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 16px; color: var(--bg-void); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- Type ---------- */

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tele);
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--cyan);
  min-height: 1.5em;
}
.eyebrow::after {
  content: ""; flex: 1 1 auto; max-width: 160px; height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, .6), transparent);
}

.h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: .005em;
  color: var(--fg-1);
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.15; color: var(--fg-1);
}
.lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--fg-2); max-width: 40em; }
.body { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-2); }

/* ---------- Surfaces ---------- */

.sec { position: relative; padding: 120px 0; }
.sec + .sec { border-top: 1px solid rgba(255, 255, 255, .06); }
.sec--alt { background: var(--bg-base); }

.panel { position: relative; background: var(--bg-surface); border: 1px solid var(--line-hairline); }

/* Inset L-shaped corner brackets (buttons-action-system.md). --bc colour, --bs tick length. */
.brk { position: relative; }
.brk::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  --b: var(--bc, var(--cyan));
  --s: var(--bs, 14px);
  background:
    linear-gradient(var(--b), var(--b)) 0 0 / var(--s) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 0 0 / 2px var(--s) no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0 / var(--s) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0 / 2px var(--s) no-repeat,
    linear-gradient(var(--b), var(--b)) 0 100% / var(--s) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 0 100% / 2px var(--s) no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 100% / var(--s) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 100% / 2px var(--s) no-repeat;
}

.hatch { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  --bs: 9px;
  transition: background-color .12s, box-shadow .12s, transform .12s;
}
.btn.brk::before { inset: 4px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--magenta); color: var(--bg-void); box-shadow: var(--glow-magenta-md); --bc: rgba(4, 6, 13, .85); }
.btn--primary:hover { background: var(--magenta-soft); color: var(--bg-void); }
.btn--secondary { background: rgba(0, 240, 255, .1); color: var(--cyan-soft); border: 1px solid rgba(0, 240, 255, .4); --bc: var(--cyan); }
.btn--ghost { background: transparent; color: var(--fg-2); border: 1px solid var(--line-strong); --bc: rgba(255, 255, 255, .5); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn--static { cursor: default; pointer-events: none; }

/* Store badges. Placeholder frames until the official badge artwork is dropped in. */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 58px; min-width: 200px; padding: 8px 18px;
  background: #000; border: 1px dashed rgba(243, 246, 255, .5);
  color: var(--fg-1); text-decoration: none;
}
.badge:hover { border-color: var(--fg-1); color: var(--fg-1); }
.badge b { font-weight: 600; font-size: 17px; }
.badge span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--tele); }

/* ---------- Chips & tags ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px;
  border: 1px solid var(--rc, var(--cyan)); background: rgba(4, 6, 13, .6);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--fg-1);
}
.chip i { display: block; width: 7px; height: 7px; background: var(--rc, var(--cyan)); box-shadow: 0 0 8px var(--rc, var(--cyan)); }

.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.tag--free { color: var(--green); border: 1px solid rgba(33, 208, 122, .5); background: rgba(33, 208, 122, .08); }
.tag--host { color: var(--amber-soft); border: 1px solid rgba(255, 184, 0, .5); background: rgba(255, 184, 0, .08); }

/* ---------- Background motifs ---------- */

.bg { position: absolute; pointer-events: none; }
.bg--grid {
  inset: 0;
  background:
    linear-gradient(rgba(0, 240, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(0, 240, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 62% 42%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 70% at 62% 42%, #000 25%, transparent 78%);
}
.bg--breathe {
  width: 1100px; height: 1100px; right: -260px; top: -300px;
  background: radial-gradient(circle, rgba(255, 0, 110, .24), rgba(255, 0, 110, .06) 40%, transparent 64%);
  animation: breathe 9s ease-in-out infinite;
}
.bg--cyan {
  width: 800px; height: 800px; left: -300px; bottom: -380px;
  background: radial-gradient(circle, rgba(0, 240, 255, .12), transparent 62%);
}
.bg--sweep {
  left: 0; right: 0; top: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, .07) 60%, rgba(0, 240, 255, .16) 62%, transparent 64%);
  animation: sweep 8s linear infinite;
}
.bg--scan {
  inset: -3px 0 0; z-index: 1;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255, 255, 255, .035) 2px 3px);
  animation: drift 6s linear infinite;
}
.bg--stream {
  top: 0; bottom: 0; width: 1px; opacity: .35;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, .55) 50%, transparent) 0 0 / 1px 260px repeat-y;
  animation: stream 6s linear infinite;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(4, 6, 13, .78);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg-1); text-decoration: none; }
.brand:hover { color: var(--fg-1); }
.brand img { width: 36px; height: 36px; }
.brand b { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.nav__links { display: flex; gap: 4px 26px; }
.nav__links a {
  padding: 12px 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: none;
}
.nav__links a:hover { color: var(--cyan); }
.nav__cta { display: flex; align-items: center; }
.live { color: var(--green); }
.nav__menu {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg-2); cursor: pointer;
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: 24px 0 0; overflow: hidden; }
.hero__tele { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 48px; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero__copy { position: relative; z-index: 3; }
.hero__kicker { margin: 0 0 22px; color: var(--fg-2); }
.cross { display: block; width: 46px; height: 46px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(0, 240, 255, .6)); }

.wm {
  position: relative; isolation: isolate;
  margin: 18px 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 6.6vw, 96px); line-height: .88; letter-spacing: .02em;
  text-transform: uppercase;
}
.wm__ln { display: block; position: relative; }
.wm__ln + .wm__ln { margin-top: .06em; }
.wm__ln::before, .wm__ln::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; opacity: .85;
}
.wm__ln::before { color: var(--cyan); transform: translate(-3px, 0); animation: glitchA 4.2s steps(4, end) infinite; }
.wm__ln::after { color: var(--magenta); transform: translate(3px, 0); animation: glitchB 4.2s steps(4, end) infinite; }

.tagline { margin: 34px 0 0; font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.tagline span { display: block; }
.tagline__hot { color: var(--magenta); text-shadow: 0 0 22px rgba(255, 0, 110, .45); }
.hero__sub { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 30em; }
.hero__cta { margin-top: 36px; }
.hero__meta { margin: 18px 0 0; }

.visual { position: relative; min-height: 720px; display: flex; align-items: center; justify-content: center; }
.fan {
  position: absolute; width: 236px; aspect-ratio: 1060 / 1484; margin: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .65);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  animation: float 10s ease-in-out infinite;
}
.fan img { width: 100%; height: 100%; object-fit: cover; }
.fan--1 { --x: -178px; --y: -10px;  --r: -14deg; --dx: -6px; animation-duration: 9s; }
.fan--2 { --x: 182px;  --y: -60px;  --r: 11deg;  --dx: 6px;  animation-duration: 10s; }
.fan--3 { --x: 150px;  --y: 170px;  --r: 19deg;  --dx: 6px;  animation-duration: 11s;
  box-shadow: 0 0 48px rgba(255, 0, 110, .45), 0 30px 60px rgba(0, 0, 0, .6); }
.phone {
  position: relative; z-index: 2; width: 316px; aspect-ratio: 780 / 1688; margin: 0; padding: 11px;
  border-radius: 48px; background: #0A0D19; border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, .25), 0 0 40px rgba(0, 240, 255, .18), 0 50px 90px rgba(0, 0, 0, .75);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%;
  width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000;
}
.ring { position: absolute; z-index: 1; width: 620px; height: 620px; border: 1px solid rgba(0, 240, 255, .14); border-radius: 50%; pointer-events: none; }
.ring::after { content: ""; position: absolute; inset: 60px; border: 1px dashed rgba(255, 0, 110, .18); border-radius: 50%; animation: spin 60s linear infinite; }

.ticker {
  position: relative; z-index: 2; margin-top: 72px; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-hairline); border-bottom: 1px solid var(--line-hairline);
  background: rgba(15, 19, 34, .6);
}
.ticker__in { display: inline-flex; gap: 40px; padding: 16px 0; animation: marquee 48s linear infinite; }
.ticker__in span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: var(--tele); }
.ticker__in .c { color: var(--cyan); }

/* ---------- §01 The job ---------- */

.pitch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.facts { padding: 8px 28px; }
.facts__title { margin: 18px 0 4px; color: var(--cyan); }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-hairline); }
.fact:last-child { border-bottom: 0; }
.fact dt { margin: 0; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; text-align: right; }

/* ---------- §02 Turn sequence ---------- */

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { padding: 30px 26px 32px; min-height: 236px; }
.step__n { font-family: var(--font-mono); font-weight: 700; font-size: 44px; line-height: 1; color: var(--cyan); text-shadow: 0 0 18px rgba(0, 240, 255, .45); }
.step--hot .step__n { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 0, 110, .45); }
.step .h3 { margin-top: 26px; }
.step .body { margin-top: 10px; font-size: 15.5px; }
.ways {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; padding: 22px 26px;
  border: 1px solid rgba(255, 184, 0, .3); background: linear-gradient(90deg, rgba(255, 184, 0, .08), transparent 70%);
}
.ways .mono { color: var(--amber-soft); }
.ways b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.ways__or { font-family: var(--font-mono); color: var(--amber); font-size: 12px; letter-spacing: .2em; }
.small-print { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--tele); }

/* ---------- §03 Meet the crew ---------- */

.crew__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.crew__head .lede { margin-top: 18px; }
.crew__hint { margin: 0; }
.crew {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px;
}
.crew__item { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flip {
  position: relative; display: block; width: 100%; aspect-ratio: 1060 / 1484;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; perspective: 1400px;
}
.flip__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s var(--ease-out); }
.flip.is-flipped .flip__in { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip__in { transform: rotateY(180deg); } }
.face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face--front { box-shadow: 0 22px 44px rgba(0, 0, 0, .6); }
.face--front img { width: 100%; height: 100%; object-fit: cover; }
.face--back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; gap: 14px; padding: 22px 20px;
  background: var(--bg-surface); border: 1px solid var(--rc, var(--cyan));
  --bc: var(--rc, var(--cyan));
}
.face__bar { height: 4px; background: var(--rc, var(--cyan)); box-shadow: 0 0 12px var(--rc, var(--cyan)); }
.face__num { font-family: var(--font-mono); font-weight: 700; font-size: 40px; line-height: 1; color: var(--rc, var(--cyan)); }
.face__name { color: var(--fg-1); }
.face__rules { font-size: 15px; line-height: 1.5; color: var(--fg-1); }
.face__short { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.flip__hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 5px 8px;
  background: rgba(4, 6, 13, .82);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2);
}
.crew__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.crew__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.1; }
.crew__name small { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .22em; color: var(--tele); }
.crew__copies { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--fg-2); }
.crew__line { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.crew__item--system .face--front { box-shadow: 0 0 0 1px rgba(255, 0, 110, .7), 0 0 48px rgba(255, 0, 110, .5), 0 22px 44px rgba(0, 0, 0, .6); }
.crew__item--system .crew__line { color: var(--magenta-soft); font-weight: 500; }

/* ---------- §04 Field reports ---------- */

.trailer {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px;
  margin-top: 56px; min-height: 120px; padding: 24px; text-align: center;
  border: 1px dashed rgba(255, 255, 255, .22);
}
.moments { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; overflow: hidden; }
.tile__media { position: relative; height: 300px; overflow: hidden; margin: 0; border-bottom: 1px solid var(--line-hairline); background: var(--bg-base); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__lbl {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 9px;
  background: rgba(4, 6, 13, .88);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
}
.tile__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 28px; }
.handoff {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 0, 110, .14), transparent 60%), var(--bg-base);
}
.handoff__big { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: .06em; }
.swap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .22), transparent 60%), var(--bg-base);
}
.swap img { width: 150px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.swap img:first-child { transform: rotate(-8deg) translateX(18px); }
.swap img:last-child { transform: rotate(8deg) translateX(-18px); box-shadow: 0 0 30px rgba(139, 92, 246, .5); }

/* ---------- §05 Mission select ---------- */

.modes { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.mode { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; }
.mode .h3 { font-size: 26px; }
.mode--feat { background: linear-gradient(180deg, rgba(0, 240, 255, .08), var(--bg-surface) 55%); border-color: rgba(0, 240, 255, .35); }
.mode__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.code { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; padding: 18px; border: 1px solid rgba(0, 240, 255, .3); background: var(--bg-base); }
.code__val { font-family: var(--font-mono); font-weight: 700; font-size: 40px; letter-spacing: .32em; color: var(--cyan); text-shadow: 0 0 16px rgba(0, 240, 255, .5); }
.code__row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- §06 System specs ---------- */

.specs { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.spec { padding: 28px 24px; }
.spec__k { color: var(--rc, var(--cyan)); }
.spec .h3 { margin-top: 10px; }
.spec ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.spec li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.spec li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--rc, var(--cyan)); }
.spec li b { color: var(--fg-1); font-weight: 600; }

/* ---------- §07 Fair and simple ---------- */

.fair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.fair__copy { margin: 28px 0 0; font-size: 20px; line-height: 1.65; color: var(--fg-2); }
.fair__copy b { color: var(--fg-1); font-weight: 600; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 170px; padding: 26px 22px; }
.stat__v { font-family: var(--font-mono); font-weight: 700; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__v--safe { color: var(--green); text-shadow: 0 0 18px rgba(33, 208, 122, .4); }
.stat__v--hot { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 0, 110, .4); font-size: 46px; }
.stat__unit { display: block; margin-top: 8px; }

/* ---------- §08 Debrief ---------- */

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 48px; align-items: start; }
.faq__col { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line-hairline); background: var(--bg-surface); }
.faq details[open] { border-color: rgba(0, 240, 255, .35); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 22px; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-mono); font-size: 20px; color: var(--cyan); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: var(--fg-2); }

/* ---------- Final CTA ---------- */

.final { position: relative; overflow: hidden; padding: 140px 0 130px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .06); }
.final .bg--breathe { right: auto; left: 50%; margin-left: -550px; top: -200px; }
.final__cards { position: absolute; inset: 0; pointer-events: none; opacity: .22; }
.final__cards img { position: absolute; width: 220px; }
.final__cards img:first-child { left: 4%; top: 18%; transform: rotate(-12deg); }
.final__cards img:last-child { right: 5%; top: 12%; transform: rotate(10deg); }
.final .wrap { z-index: 2; }
.final__kicker { margin: 0 0 24px; color: var(--cyan); }
.final .h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 15em; margin: 0 auto; }
.final .badges { justify-content: center; margin-top: 40px; }
.final__sign { margin: 22px 0 0; }

/* ---------- Footer ---------- */

.foot { padding: 44px 0 56px; border-top: 1px solid var(--line-hairline); background: var(--bg-base); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.foot__brand { display: flex; flex-direction: column; gap: 14px; }
.foot__credits { margin: 0; letter-spacing: .14em; }
.foot__legal { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__links a { padding: 10px 0; color: var(--fg-2); text-decoration: none; font-size: 15px; }
.foot__links a:hover { color: var(--cyan); }
.small { margin: 0; font-size: 13px; line-height: 1.6; color: var(--tele); }

/* Mobile download bar */
.dock { display: none; }

/* ---------- Keyframes ---------- */

@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes sweep { 0% { transform: translateY(-200px); } 100% { transform: translateY(1100px); } }
@keyframes drift { 0% { transform: translateY(0); } 100% { transform: translateY(3px); } }
@keyframes stream { 0% { background-position: 0 -260px; } 100% { background-position: 0 520px; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - 12px)) rotate(calc(var(--r) - 1deg)); }
}
@keyframes glitchA {
  0%, 84%, 100% { transform: translate(-3px, 0); clip-path: inset(0 0 0 0); }
  86% { transform: translate(-10px, 2px); clip-path: inset(12% 0 58% 0); }
  89% { transform: translate(7px, -2px); clip-path: inset(62% 0 8% 0); }
  92% { transform: translate(-5px, 0); clip-path: inset(34% 0 40% 0); }
}
@keyframes glitchB {
  0%, 84%, 100% { transform: translate(3px, 0); clip-path: inset(0 0 0 0); }
  86% { transform: translate(9px, -2px); clip-path: inset(55% 0 15% 0); }
  89% { transform: translate(-8px, 2px); clip-path: inset(8% 0 70% 0); }
  92% { transform: translate(5px, 0); clip-path: inset(40% 0 30% 0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .steps, .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { gap: 4px 18px; }
  .nav__cta { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  .sec { padding: 88px 0; }
  .hero { padding-top: 16px; }
  .hero__tele { margin-bottom: 32px; }
  .wm { font-size: clamp(56px, 15vw, 96px); }
  .hero__grid, .pitch, .fair { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .visual { min-height: 640px; }
  .modes, .faq { grid-template-columns: minmax(0, 1fr); }

  .nav__menu { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: rgba(4, 6, 13, .96); border-bottom: 1px solid var(--line-hairline);
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .nav.is-open .nav__links { display: flex; }
}

@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .sec { padding: 72px 0; }
  .h2 { font-size: 34px; }
  .lede { font-size: 17px; }
  .eyebrow, .mono { font-size: 11px; }

  .badges { flex-direction: column; }
  .badge { width: 100%; }
  .final .badges { align-items: stretch; text-align: left; }

  .visual { min-height: 560px; }
  .fan { width: 150px; }
  .fan--1 { --x: -112px; --y: -30px; }
  .fan--2 { --x: 114px;  --y: -80px; }
  .fan--3 { --x: 104px;  --y: 120px; --r: 18deg; }
  .phone { width: 228px; padding: 8px; border-radius: 36px; }
  .phone img { border-radius: 29px; }
  .phone::after { top: 16px; width: 66px; height: 19px; margin-left: -33px; border-radius: 10px; }
  .ring { width: 440px; height: 440px; }
  .ticker { margin-top: 24px; }

  .facts { padding: 4px 18px; }
  .fact dd { font-size: 17px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; }
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; min-height: 0; padding: 20px 18px; }
  .step__n { grid-row: span 2; font-size: 36px; }
  .step .h3 { margin-top: 0; }
  .step .body { margin-top: 0; }
  .ways { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; }

  /* Crew becomes a swipe rail. */
  .crew {
    display: flex; gap: 14px; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .crew::-webkit-scrollbar { display: none; }
  .crew__item { flex: 0 0 76%; scroll-snap-align: center; }
  .face__rules { font-size: 16px; }

  .trailer { flex-direction: column; aspect-ratio: 16 / 9; min-height: 0; gap: 8px; margin-top: 32px; }
  .moments, .specs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile__media { height: 240px; }
  .tile__body { padding: 20px 18px 22px; }
  .handoff__big { font-size: 26px; }
  .swap img { width: 126px; }

  .modes { gap: 16px; margin-top: 32px; }
  .mode { padding: 24px 20px; }
  .code__val { font-size: 32px; letter-spacing: .28em; }
  .code__row .btn { flex: 1 1 0; }

  .fair__copy { font-size: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { min-height: 0; padding: 20px 16px; gap: 14px; }
  .stat:last-child { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .stat__v { font-size: 48px; }

  .faq summary { font-size: 18px; padding: 14px 18px; min-height: 60px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }

  .final { padding: 88px 0 80px; }
  .final .h2 { font-size: 36px; }
  .final__cards { display: none; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7, 9, 18, .86);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .dock img { width: 40px; height: 40px; flex: 0 0 auto; }
  .dock__t { flex: 1 1 auto; min-width: 0; }
  .dock__t b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; }
  .dock__t .mono { font-size: 10px; letter-spacing: .14em; }
}

/* Reduced motion: no glitch, scramble, drift, sweep or typewriter. Show the final state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bg--sweep, .bg--stream { display: none; }
}
