/* Spotter XR landing page — dark HUD aesthetic.
   Tokens follow docs/product/ux-spec.md §2 (night, surface, mint = defense, amber = offense). */

:root {
  --night: #0B1210;
  --surface: #131C18;
  --surface2: #1C2823;
  --line: #2A3832;
  --ink: #F5F7F6;
  --muted: #A7B3AE;
  --disabled: #7A8781;
  --mint: #34D399;
  --mint-bright: #6EE7B7;
  --mint-dim: #1F8A64;
  --amber: #F59E0B;
  --amber-bright: #FBBF24;
  --live: #FF5C5C;
  --info: #60A5FA;

  --mint-rgb: 52, 211, 153;
  --amber-rgb: 245, 158, 11;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --wrap: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 64px;

  --glass: rgba(19, 28, 24, 0.58);
  --glass-border: rgba(var(--mint-rgb), 0.28);
  --glow: 0 0 0 1px rgba(var(--mint-rgb), 0.12), 0 0 24px rgba(var(--mint-rgb), 0.10), 0 12px 40px rgba(0, 0, 0, 0.45);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--mint-bright); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
sup { font-size: 0.7em; line-height: 0; vertical-align: super; color: var(--muted); }
::selection { background: rgba(var(--mint-rgb), 0.35); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--mint); color: var(--night); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-sub { color: var(--muted); font-size: 1.0625rem; margin-top: 16px; max-width: 62ch; }
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split > *, .hero-grid > *, .panel > *, .beta > *, .features > *, .gallery > * { min-width: 0; }
.copy > p { color: var(--muted); margin-top: 16px; max-width: 58ch; }
.copy > p strong { color: var(--ink); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-rev > :first-child { order: 2; }
  .split-rev > :last-child { order: 1; }
}

/* ---------- Type ---------- */
.display-xl, .display-l, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95; font-weight: 700; }
.display-xl { font-size: clamp(3.25rem, 9.5vw, 7rem); }
.display-l { font-size: clamp(2.25rem, 5.4vw, 3.9rem); }
h3 { font-size: 1.45rem; letter-spacing: 0.03em; line-height: 1.05; font-weight: 600; }
.mint { color: var(--mint); text-shadow: 0 0 24px rgba(var(--mint-rgb), 0.35); }
.eyebrow {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.95rem; color: var(--mint); margin-bottom: 14px; line-height: 1.5;
}
.eyebrow .pip { vertical-align: middle; margin: -2px 8px 0 0; }
.eyebrow .tag-inline { vertical-align: middle; margin-left: 8px; }
.lede { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--amber); margin-top: 18px; }
.fine { font-size: 0.78rem; color: var(--disabled); margin-top: 14px; line-height: 1.5; }
.fine sup { color: var(--disabled); }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Background HUD ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(rgba(var(--mint-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--mint-rgb), 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 0%, transparent 100%);
  animation: gridDrift 30s linear infinite;
}
.bg-glow {
  position: absolute; left: 50%; top: -20vh; width: 120vw; height: 70vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--mint-rgb), 0.16), transparent 70%);
  filter: blur(20px);
}
.bg-scan {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
  opacity: 0.6;
}
.bg-scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(var(--mint-rgb), 0.07) 60%, rgba(var(--mint-rgb), 0.16) 100%);
  animation: scanBeam 9s linear infinite;
}
@keyframes gridDrift { to { transform: translate(48px, 48px); } }
@keyframes scanBeam { to { transform: translateY(700%); } }

.nav, main, .footer { position: relative; z-index: 1; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Animated glass: a slow rotating glow travels around the 1px border. */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glass-anim {
  position: relative;
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
}
.glass-anim::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ga), rgba(var(--mint-rgb), 0.15), rgba(var(--mint-rgb), 0.9), rgba(var(--amber-rgb), 0.6), rgba(var(--mint-rgb), 0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 8s linear infinite;
}
.glass-anim:hover::before, .glass-anim:focus-within::before { animation-duration: 3s; }
@keyframes spinBorder { to { --ga: 360deg; } }

/* ---------- Buttons, tags, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--mint); color: var(--night);
  box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.4), 0 0 28px rgba(var(--mint-rgb), 0.35);
}
.btn-primary:hover { background: var(--mint-bright); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.6), 0 0 40px rgba(var(--mint-rgb), 0.5); }
.btn-ghost { color: var(--ink); border-color: rgba(var(--mint-rgb), 0.45); background: rgba(var(--mint-rgb), 0.06); }
.btn-ghost:hover { background: rgba(var(--mint-rgb), 0.14); border-color: var(--mint); }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn-wide { width: 100%; padding: 16px 22px; font-size: 1rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  padding: 5px 10px; border-radius: 6px; border: 1px solid; line-height: 1.1;
}
.tag-mint { color: var(--mint-bright); border-color: rgba(var(--mint-rgb), 0.5); background: rgba(var(--mint-rgb), 0.12); }
.tag-amber { color: var(--amber-bright); border-color: rgba(var(--amber-rgb), 0.55); background: rgba(var(--amber-rgb), 0.12); }
.tag-inline { font-size: 0.7rem; letter-spacing: 0.08em; padding: 3px 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li {
  font-size: 0.8rem; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(19, 28, 24, 0.6);
}
.chips li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px var(--mint); }

.pip { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pip-live { background: var(--live); box-shadow: 0 0 10px var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 16, 0.72);
  border-bottom: 1px solid rgba(var(--mint-rgb), 0.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 9px; box-shadow: 0 0 16px rgba(var(--mint-rgb), 0.35); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.08em; }
.brand-name span { color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 8px 12px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(var(--mint-rgb), 0.08); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--ink);
}
.bars { display: grid; gap: 5px; justify-items: center; }
.bars i { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px;
    background: rgba(11, 18, 16, 0.96); border-bottom: 1px solid rgba(var(--mint-rgb), 0.2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; font-size: 1rem; }
  .nav-links .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-body { color: var(--muted); margin-top: 18px; font-size: 1.0625rem; max-width: 50ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 48px; }
}
@media (max-width: 959px) { .display-xl br { display: none; } }

/* HUD figure */
.hud {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid rgba(var(--mint-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.15), 0 0 60px rgba(var(--mint-rgb), 0.18), 0 30px 80px rgba(0, 0, 0, 0.6);
  background: var(--surface);
  container-type: inline-size;
}
/* The stage is always the photo's 16:9 frame, pinned to the right edge of the figure.
   On desktop it fills the figure exactly; on phones the figure is 4:5, so the stage
   overflows to the left and the field side of the photo stays in view. */
.hud-stage { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 16 / 9; }
.hud-stage picture, .hud-stage img { width: 100%; height: 100%; object-fit: cover; }
.hud-stage img { filter: saturate(1.05) contrast(1.03); }
.hud-stage, .hud-chrome { font-family: var(--display); color: var(--mint-bright); font-size: 12px; font-size: clamp(10px, 1.75cqw, 15px); }
.hud-layer, .hud-chrome { position: absolute; inset: 0; }
.hud-chrome { pointer-events: none; }
.hud-chrome::before { /* vignette so the HUD reads over the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 16, 0.35), transparent 30%, transparent 70%, rgba(11, 18, 16, 0.45));
}
@media (max-width: 599px) { .hud { aspect-ratio: 4 / 5; } }
.hud-corner { position: absolute; width: 2.2em; height: 2.2em; border: 2px solid rgba(var(--mint-rgb), 0.8); }
.hud-corner.tl { left: 0.9em; top: 0.9em; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.hud-corner.tr { right: 0.9em; top: 0.9em; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.hud-corner.bl { left: 0.9em; bottom: 0.9em; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.hud-corner.br { right: 0.9em; bottom: 0.9em; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.scorebug {
  position: absolute; left: 50%; top: 1em; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.9em;
  background: rgba(11, 18, 16, 0.78); border: 1px solid rgba(var(--mint-rgb), 0.4); border-radius: 999px;
  color: var(--ink); font-size: 1.15em; letter-spacing: 0.08em; font-weight: 600; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scorebug b { font-weight: 700; }
.scorebug .sep { width: 1px; height: 1em; background: rgba(var(--mint-rgb), 0.4); }
.scorebug .live { color: var(--live); display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.85em; }
.scorebug .live i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 1.6s ease-in-out infinite; }
.hud-status { position: absolute; left: 4em; bottom: 1.3em; font-size: 0.95em; letter-spacing: 0.14em; color: var(--mint); opacity: 0.9; }
.hud-status .blink { animation: pulse 1.2s steps(2, end) infinite; }

/* Reticle */
.reticle {
  position: absolute; left: 71.5%; top: 47%; width: 7.5em; height: 7.5em;
  transform: translate(-50%, -50%);
  transition: left 0.8s var(--ease), top 0.8s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
  will-change: left, top;
}
.reticle .c { position: absolute; width: 1.4em; height: 1.4em; border: 2px solid var(--mint-bright); filter: drop-shadow(0 0 4px rgba(var(--mint-rgb), 0.9)); transition: transform 0.3s var(--ease), border-color 0.2s; }
.reticle .c.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.reticle .c.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.reticle .c.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.reticle .c.br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.reticle .ring { position: absolute; inset: 30%; border-radius: 50%; border: 1px dashed rgba(var(--mint-rgb), 0.8); animation: spin 6s linear infinite; }
.reticle .ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 6px var(--mint-bright); }
.reticle.lock { width: 5.5em; height: 5.5em; }
.reticle.lock .c { border-color: var(--amber-bright); filter: drop-shadow(0 0 6px rgba(var(--amber-rgb), 0.9)); }
.reticle.lock .ring { border-color: var(--amber-bright); border-style: solid; animation: lockRing 0.5s var(--ease) both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lockRing { from { inset: 0; opacity: 0; } to { inset: 30%; opacity: 1; } }

/* Targets + name cards */
.tgt { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.tgt .dot {
  position: absolute; left: 0; top: 0; width: 0.6em; height: 0.6em; margin: -0.3em; border-radius: 50%;
  background: var(--mint-bright); box-shadow: 0 0 10px var(--mint-bright); opacity: 0; transform: scale(0.4);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.tgt .lead {
  position: absolute; left: 0; bottom: 0.4em; width: 1px; height: calc(var(--lift, 3.1em) - 0.5em); background: linear-gradient(0deg, var(--mint-bright), rgba(var(--mint-rgb), 0.2));
  transform-origin: bottom; transform: scaleY(0); transition: transform 0.3s var(--ease) 0.1s;
}
.card {
  position: absolute; left: 0; bottom: var(--lift, 3.1em); transform: translate(-50%, 0.6em) scale(0.85);
  display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap;
  padding: 0.38em 0.6em 0.38em 0.38em; border-radius: 0.45em;
  background: rgba(11, 18, 16, 0.84); border: 1px solid var(--mint); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(var(--mint-rgb), 0.25), 0 0 18px rgba(var(--mint-rgb), 0.45), 0 6px 18px rgba(0, 0, 0, 0.5);
  font-size: 1.1em; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
  opacity: 0; transition: opacity 0.25s, transform 0.35s var(--ease);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card .pos { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.6em; padding: 0 0.3em; border-radius: 0.3em; background: var(--mint); color: var(--night); font-weight: 700; font-size: 0.85em; }
.card .num { color: var(--muted); font-weight: 600; font-size: 0.9em; }
.card.off { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(var(--amber-rgb), 0.25), 0 0 18px rgba(var(--amber-rgb), 0.45), 0 6px 18px rgba(0, 0, 0, 0.5); }
.card.off .pos { background: var(--amber); }
.tgt.off .lead { background: linear-gradient(0deg, var(--amber-bright), rgba(var(--amber-rgb), 0.2)); }
.tgt.edge .card { transform: translate(-92%, 0.6em) scale(0.85); }
.tgt.is-on .dot { opacity: 1; transform: scale(1); }
.tgt.is-on .lead { transform: scaleY(1); }
.tgt.is-on .card { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tgt.edge.is-on .card { transform: translate(-92%, 0) scale(1); }

/* ---------- Media figures ---------- */
.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: auto; }
.media .tag { position: absolute; left: 14px; bottom: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(11, 18, 16, 0.8); }
.media-tall { max-width: 520px; margin: 0 auto; }
@media (min-width: 960px) { .media-tall { margin: 0; justify-self: center; } }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 16px 16px 14px; display: grid; gap: 6px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(var(--mint-rgb), 0.4); }
.stat span { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { padding: 20px 20px 20px 22px; position: relative; display: grid; gap: 8px; }
.step::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--mint), rgba(var(--mint-rgb), 0.1)); box-shadow: 0 0 10px rgba(var(--mint-rgb), 0.6); }
.step-n { font-family: var(--display); font-weight: 700; color: var(--amber); letter-spacing: 0.12em; font-size: 0.9rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Features (AI) ---------- */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 18px 18px 22px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); font-size: 0.92rem; }
.viz {
  position: relative; height: 120px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 6px;
  background: radial-gradient(ellipse at 50% 120%, rgba(var(--mint-rgb), 0.18), transparent 60%), var(--surface2);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--display);
}
.viz .match {
  position: absolute; left: 10px; bottom: 8px; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--mint-bright);
  padding: 3px 8px; border: 1px solid rgba(var(--mint-rgb), 0.5); border-radius: 4px; background: rgba(11, 18, 16, 0.8);
}
/* OCR: a number with a scanning bar and a matched-name chip */
.viz-ocr .digits { font-size: 3.6rem; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; opacity: 0.9; text-shadow: 0 0 20px rgba(var(--mint-rgb), 0.3); }
.viz-ocr .scanbar { position: absolute; left: 10%; right: 10%; height: 2px; top: 10%; background: var(--mint-bright); box-shadow: 0 0 12px 2px rgba(var(--mint-rgb), 0.8); animation: ocrScan 2.4s ease-in-out infinite; }
.viz-ocr .match { animation: ocrMatch 2.4s ease-in-out infinite; }
@keyframes ocrScan { 0% { top: 10%; } 50% { top: 85%; } 100% { top: 10%; } }
@keyframes ocrMatch { 0%, 45% { opacity: 0; transform: translateY(4px); } 55%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* Feed: equalizer bars */
.viz-feed { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 30px; }
.viz-feed i { display: block; width: 8px; height: 40%; border-radius: 2px; background: linear-gradient(180deg, var(--mint-bright), var(--mint-dim)); box-shadow: 0 0 10px rgba(var(--mint-rgb), 0.4); animation: feedBar 1.6s ease-in-out infinite; transform-origin: bottom; }
.viz-feed i:nth-child(2) { animation-delay: 0.15s; } .viz-feed i:nth-child(3) { animation-delay: 0.3s; height: 55%; } .viz-feed i:nth-child(4) { animation-delay: 0.45s; height: 30%; }
.viz-feed i:nth-child(5) { animation-delay: 0.6s; height: 60%; background: linear-gradient(180deg, var(--amber-bright), var(--amber)); } .viz-feed i:nth-child(6) { animation-delay: 0.75s; } .viz-feed i:nth-child(7) { animation-delay: 0.9s; height: 50%; } .viz-feed i:nth-child(8) { animation-delay: 1.05s; height: 35%; }
.viz-feed .feed-label { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); }
@keyframes feedBar { 50% { transform: scaleY(1.6); } }
/* Anchor: wireframe diamond + pins */
.viz-anchor svg, .viz-privacy svg { width: 100%; height: 100%; }
.viz-anchor .diamond path, .viz-anchor .diamond circle { fill: none; stroke: var(--mint); stroke-width: 1.2; }
.viz-anchor .diamond circle { fill: rgba(var(--mint-rgb), 0.25); }
.viz-anchor .arc { stroke-dasharray: 3 3; opacity: 0.7; }
.viz-anchor .diamond { transform-origin: 60px 36px; animation: anchorBreathe 4s ease-in-out infinite; }
.viz-anchor .pins circle { fill: var(--amber-bright); filter: drop-shadow(0 0 4px var(--amber)); animation: pinPop 4s ease-in-out infinite; }
.viz-anchor .pins circle:nth-child(2) { animation-delay: 0.3s; } .viz-anchor .pins circle:nth-child(3) { animation-delay: 0.6s; } .viz-anchor .pins circle:nth-child(4) { animation-delay: 0.9s; }
@keyframes anchorBreathe { 50% { transform: scale(1.06); } }
@keyframes pinPop { 0%, 20% { opacity: 0; transform: translateY(-6px); } 40%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* Privacy: shield with a drawn tick */
.viz-privacy .shield { fill: rgba(var(--mint-rgb), 0.08); stroke: var(--mint); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(var(--mint-rgb), 0.5)); }
.viz-privacy .tick { fill: none; stroke: var(--mint-bright); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 45; stroke-dashoffset: 45; animation: drawTick 3s ease-in-out infinite; }
@keyframes drawTick { 20%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 45; } }

/* ---------- Tabs (sports) ---------- */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 10px; margin-bottom: 14px; }
.tablist [role="tab"] {
  flex: 0 0 auto; cursor: pointer; background: rgba(19, 28, 24, 0.6); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font: 600 0.95rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tablist [role="tab"]:hover { color: var(--ink); border-color: rgba(var(--mint-rgb), 0.5); }
.tablist [role="tab"][aria-selected="true"] { color: var(--night); background: var(--mint); border-color: var(--mint); box-shadow: 0 0 20px rgba(var(--mint-rgb), 0.45); }
.panel { display: grid; gap: 24px; padding: 20px; align-items: center; }
.panel[hidden] { display: none; }
@media (min-width: 760px) { .panel { grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; padding: 28px 32px; } }
.panel .phone { max-width: 260px; margin: 0 auto; }
.panel-copy { display: grid; gap: 12px; justify-items: start; }
.panel-copy h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.panel-copy p { color: var(--muted); max-width: 52ch; }

/* Phone frame around a 1:2 screen crop */
.phone {
  position: relative; border-radius: 28px; padding: 7px; background: #05080a;
  border: 1px solid rgba(var(--mint-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 40px rgba(var(--mint-rgb), 0.16), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.phone::before { content: ""; position: absolute; left: 50%; top: 11px; width: 28%; height: 6px; margin-left: -14%; border-radius: 4px; background: #0b0f0e; z-index: 1; }
.phone img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 22px; background: var(--surface); }

/* ---------- Local Games ---------- */
.flows { display: grid; gap: 16px; }
.flow { padding: 20px; }
.flow h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.25rem; }
.flow-who { font-size: 0.75rem; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 5px; background: var(--mint); color: var(--night); }
.flow-who-amber { background: var(--amber); }
.mini-steps { display: grid; gap: 12px; margin-top: 14px; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; counter-increment: ms; }
.mini-steps li::before { content: counter(ms); grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--mint-rgb), 0.5); color: var(--mint-bright); font: 700 0.85rem var(--display); box-shadow: 0 0 10px rgba(var(--mint-rgb), 0.25); }
.mini-steps b { font-weight: 600; font-size: 0.98rem; }
.mini-steps span { color: var(--muted); font-size: 0.9rem; }

.ticks { display: grid; gap: 8px; margin-top: 22px; color: var(--muted); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 28px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery li { display: grid; gap: 10px; text-align: center; justify-items: center; }
.gallery .phone { max-width: 280px; width: 100%; margin-bottom: 8px; }
.gallery p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; }

/* ---------- Beta form ---------- */
.section-beta { padding-bottom: clamp(64px, 9vw, 128px); }
.beta { display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.beta::after { content: ""; position: absolute; right: -20%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--mint-rgb), 0.18), transparent); pointer-events: none; }
@media (min-width: 900px) { .beta { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.beta-copy p { color: var(--muted); margin-top: 16px; max-width: 48ch; }
.beta-form { display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
input, select {
  width: 100%; font: 500 1rem var(--body); color: var(--ink); background: rgba(11, 18, 16, 0.7);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--disabled); }
input:focus, select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(var(--mint-rgb), 0.25); }
input[aria-invalid="true"] { border-color: var(--live); box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.2); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: var(--surface); color: var(--ink); }
.err { font-size: 0.82rem; color: var(--live); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; min-height: 1.4em; color: var(--mint-bright); }
.form-status.is-error { color: var(--live); }
.form-status.is-ok::before { content: "✓ "; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(var(--mint-rgb), 0.16); background: rgba(11, 18, 16, 0.8); padding: 32px 0 40px; }
.footer-row { display: grid; gap: 14px; font-size: 0.88rem; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.footer-brand img { border-radius: 7px; }
.footer-legal { max-width: 70ch; }
.footer-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-contact a { color: var(--mint-bright); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bg-scan::after { display: none; }
  /* Static lock-on state: every card on, reticle locked on the pitcher. */
  .tgt .dot, .tgt .card { opacity: 1; transform: translate(-50%, 0) scale(1); }
  .tgt .dot { transform: scale(1); }
  .tgt .lead { transform: scaleY(1); }
  .tgt.edge .card { transform: translate(-92%, 0) scale(1); }
  .reticle { left: 71.5% !important; top: 47% !important; width: 5.5em; height: 5.5em; }
  .reticle .c { border-color: var(--amber-bright); }
  .reticle .ring { border-color: var(--amber-bright); border-style: solid; }
  .viz-ocr .scanbar { top: 50%; }
  .viz-ocr .match, .viz-anchor .pins circle { opacity: 1; }
  .viz-privacy .tick { stroke-dashoffset: 0; }
  .glass-anim::before { background: linear-gradient(135deg, rgba(var(--mint-rgb), 0.7), rgba(var(--amber-rgb), 0.35)); }
}
