/* Self-hosted variable fonts (SIL OFL): Inter, Space Grotesk, JetBrains Mono — latin subset. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/space-grotesk.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('../fonts/jetbrains-mono.woff2') format('woff2'); }

/* ==========================================================================
   SNIPER AI — marketing site
   Design system: dark terminal-luxe, mint/cyan accent, glass surfaces.
   NOTE: the site CSP (see _headers) blocks inline styles and data: images,
   so everything visual lives in this file / inline SVG / real files.
   ========================================================================== */


:root {
  --bg: #04070b;
  --bg-2: #070c12;
  --surface: #0a1119;
  --surface-2: #0e1823;
  --surface-3: #132030;
  --line: rgba(160, 200, 230, 0.10);
  --line-2: rgba(160, 200, 230, 0.18);
  --text: #e9f1f7;
  --muted: #93a4b3;
  --dim: #6b7c8c;
  --mint: #00ffcc;
  --cyan: #22d3ee;
  --violet: #8b7bff;
  --gain: #39ff9c;
  --loss: #ff5d7a;
  --amber: #ffbf5e;
  --grad: linear-gradient(120deg, #00ffcc 0%, #22d3ee 55%, #8b7bff 115%);
  --grad-soft: linear-gradient(120deg, rgba(0, 255, 204, .16), rgba(34, 211, 238, .10) 55%, rgba(139, 123, 255, .14));
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 0 1px rgba(0, 255, 204, .25), 0 10px 40px -8px rgba(0, 255, 204, .35);
  --shadow-lg: 0 60px 140px -40px rgba(0, 255, 204, .22), 0 40px 90px -30px rgba(0, 0, 0, .9);
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --maxw: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(0, 255, 204, .28); color: #fff; }

/* keyboard focus */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--mint); color: #001a14; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ambient background: fixed grid + glows */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(160, 200, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 200, 230, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-fx .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.bg-fx .glow-a { width: 720px; height: 720px; left: -180px; top: -260px; background: radial-gradient(circle, rgba(0, 255, 204, .30), transparent 65%); }
.bg-fx .glow-b { width: 640px; height: 640px; right: -200px; top: 120px; background: radial-gradient(circle, rgba(139, 123, 255, .22), transparent 65%); }

/* ------------------------------------------------------------------ layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint);
  padding: 7px 14px; border: 1px solid rgba(0, 255, 204, .28); border-radius: 999px;
  background: rgba(0, 255, 204, .06);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.h2 {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.h2 .grad, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); border-radius: 14px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  color: #00120d; background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 0 0 1px rgba(0, 255, 204, .5), 0 18px 54px -10px rgba(0, 255, 204, .55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(0, 255, 204, .4); transform: translateY(-2px); }
.btn-lg { --pad-y: 18px; --pad-x: 34px; font-size: 1.08rem; border-radius: 16px; }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: .92rem; border-radius: 12px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(4, 7, 11, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; color: var(--mint); filter: drop-shadow(0 0 10px rgba(0, 255, 204, .5)); }
.brand span { color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links .btn { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav.open .nav-toggle .i-menu { display: none; }
.nav.open .nav-toggle .i-close { display: block; }

/* ------------------------------------------------------------------- hero */
.hero { padding: calc(var(--nav-h) + 72px) 0 0; text-align: center; position: relative; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted);
}
.pill b { color: var(--text); font-weight: 600; }
.pill .live { width: 7px; height: 7px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 0 0 rgba(57, 255, 156, .7); animation: pulse 2s infinite; }
.pill.new { border-color: rgba(0, 255, 204, .35); color: var(--mint); background: rgba(0, 255, 204, .07); }
.hero h1 {
  margin: 28px auto 0; max-width: 1120px; text-wrap: balance;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.5rem, 6.2vw, 4.9rem);
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero .sub { margin: 26px auto 0; max-width: 720px; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.22rem); line-height: 1.7; }
.hero .sub strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; color: var(--dim); font-size: .9rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 17px; height: 17px; color: var(--mint); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 156, .6); } 70% { box-shadow: 0 0 0 10px rgba(57, 255, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(57, 255, 156, 0); } }
/* ------------------------------------------------- app window (hero mock) */
.appwin-wrap { margin: 72px auto 0; max-width: 1120px; position: relative; padding: 0 24px; }
.appwin-wrap::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 30%; bottom: -10%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 255, 204, .22), transparent 68%); filter: blur(60px);
}
.appwin {
  position: relative; text-align: left; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #0b131c 0%, #080e15 100%);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.appwin::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 18%); mix-blend-mode: overlay;
}
.appwin-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.appwin-dots { display: flex; gap: 7px; }
.appwin-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.appwin-dots i:nth-child(1) { background: #ff5f56; }
.appwin-dots i:nth-child(2) { background: #ffbd2e; }
.appwin-dots i:nth-child(3) { background: #27c93f; }
.appwin-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); flex: 1; text-align: center; }
.appwin-net { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--gain); }
.appwin-net::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 10px var(--gain); }
.appwin-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; }
.appcol { padding: 20px; border-right: 1px solid var(--line); min-width: 0; }
.appcol:last-child { border-right: 0; }

.m-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.m-label:not(:first-child) { margin-top: 20px; }
.m-list { display: grid; gap: 8px; }
.m-list li { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.m-list .icon { width: 14px; height: 14px; color: var(--gain); stroke-width: 2.4; }
.m-kv { display: grid; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; }
.m-kv div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.m-kv b { color: var(--text); font-weight: 500; }
.m-kv .hl { color: var(--mint); }
.m-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 6px; }
.m-bar i { display: block; height: 100%; width: 10.3%; background: var(--grad); border-radius: inherit; }

.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tile { padding: 12px 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-left: 2px solid var(--mint); border-radius: 10px; }
.m-tile small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--dim); }
.m-tile strong { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.m-tile strong.up { color: var(--gain); }
.m-field { margin-top: 14px; }
.m-field .box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 10px; background: #03070b; border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 13px; color: var(--mint);
}
.m-field .box.dim { color: var(--dim); }
.m-field .box span:last-child { font-size: 10.5px; color: var(--dim); letter-spacing: .08em; }
.m-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-buy {
  width: 100%; margin-top: 14px; padding: 13px; border-radius: 10px; border: 0; cursor: default;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; font-size: 13px; color: #00140e; background: var(--gain);
  box-shadow: 0 0 24px rgba(57, 255, 156, .25); transition: background .3s, box-shadow .3s;
}
.m-buy.armed { background: transparent; color: var(--mint); border: 1px solid var(--mint); box-shadow: inset 0 0 20px rgba(0, 255, 204, .12), 0 0 26px rgba(0, 255, 204, .2); animation: armedGlow 1.6s ease-in-out infinite; }
@keyframes armedGlow { 50% { box-shadow: inset 0 0 26px rgba(0, 255, 204, .25), 0 0 40px rgba(0, 255, 204, .35); } }

.m-pos { padding: 13px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); margin-bottom: 10px; }
.m-pos-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-pos-top strong { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; }
.m-pnl { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.m-pnl.up { color: var(--gain); }
.m-pnl.down { color: var(--loss); }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.m-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.m-tag.mint { color: var(--mint); border-color: rgba(0, 255, 204, .35); }
.m-tag.amber { color: var(--amber); border-color: rgba(255, 191, 94, .35); }
.m-tag.cyan { color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
.m-tag.loss { color: var(--loss); border-color: rgba(255, 93, 122, .35); }
.m-pos-actions { display: flex; gap: 6px; }
.m-btn { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: default; }
.m-btn.danger { color: var(--loss); border-color: rgba(255, 93, 122, .4); }
.m-btn.add { color: var(--mint); border-color: rgba(0, 255, 204, .35); }
.m-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); line-height: 1.5; margin-top: 8px; }

.m-log {
  height: 208px; overflow: hidden; padding: 12px 13px; border-radius: 10px; background: #03070b; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.65; color: var(--muted);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.m-log .ln { white-space: pre-wrap; word-break: break-word; animation: lnIn .35s var(--ease) both; }
.m-log .ln .t { color: var(--dim); }
.m-log .ok { color: var(--gain); }
.m-log .info { color: var(--cyan); }
.m-log .warn { color: var(--amber); }
.m-log .err { color: var(--loss); }
.m-log .cursor { display: inline-block; width: 7px; height: 13px; background: var(--mint); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes lnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
.appwin-caption { margin-top: 18px; text-align: center; font-size: .82rem; color: var(--dim); }

/* ------------------------------------------------------------ stats strip */
.stats { margin-top: 88px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: linear-gradient(180deg, rgba(14, 24, 35, .9), rgba(8, 14, 21, .9)); padding: 32px 26px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; line-height: 1; }
.stat-num small { font-size: .5em; font-weight: 600; margin-left: 2px; }
.stat-label { margin-top: 12px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.stat-foot { margin-top: 16px; text-align: center; color: var(--dim); font-size: .8rem; }

/* ---------------------------------------------------------------- marquee */
.marquee { margin-top: 72px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 22px; padding: 18px 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; color: var(--dim); white-space: nowrap; }
.marquee-item::after { content: '◆'; color: var(--mint); font-size: 8px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- pipeline */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.pipeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.step { position: relative; padding: 0 6px; text-align: center; }
.step-node {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 20px;
  display: grid; place-items: center; color: var(--mint);
  background: linear-gradient(180deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 204, .35);
}
.step-node .icon { width: 28px; height: 28px; }
.step-node::after { counter-increment: step; content: counter(step); position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #00140e; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.step h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.callout {
  margin: 48px auto 0; max-width: 820px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px;
  border-radius: var(--radius); border: 1px solid rgba(255, 191, 94, .28); background: rgba(255, 191, 94, .05); color: #f3dcb4; font-size: .95rem;
}
.callout .icon { color: var(--amber); margin-top: 2px; }
.callout strong { color: #ffe7be; }
/* ------------------------------------------------------------ bento cards */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 27, 39, .85), rgba(9, 15, 22, .85));
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0, 255, 204, .11), transparent 60%);
}
.card:hover { border-color: rgba(0, 255, 204, .32); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card.span-2 { grid-column: span 2; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--mint);
  background: var(--grad-soft); border: 1px solid rgba(0, 255, 204, .22); margin-bottom: 22px;
}
.card h3 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin-top: 12px; color: var(--muted); font-size: .97rem; line-height: 1.7; }
.card p strong { color: var(--text); font-weight: 600; }
.badge-new {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 8px; border-radius: 6px;
  color: #00140e; background: var(--grad);
}
.spark { margin-top: 26px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); padding: 14px 16px 10px; }
.spark svg { width: 100%; height: auto; }
.spark-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.spark-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* ------------------------------------------------------------- strategies */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.tab {
  padding: 11px 20px; border-radius: 13px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #00140e; background: var(--grad); box-shadow: 0 6px 24px -6px rgba(0, 255, 204, .5); }
.tab small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; margin-left: 6px; opacity: .75; }
.tabpanel { display: none; }
.tabpanel.active { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; animation: panelIn .5s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.strategy-copy h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; line-height: 1.12; }
.strategy-copy > p { margin-top: 16px; color: var(--muted); line-height: 1.75; }
.checks { margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .97rem; line-height: 1.6; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks .icon { width: 19px; height: 19px; color: var(--mint); stroke-width: 2.4; margin-top: 3px; }
.viz { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, #0a131c, #070c12); border: 1px solid var(--line-2); padding: 18px; overflow: hidden; }
.viz::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(160, 200, 230, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 200, 230, .04) 1px, transparent 1px); background-size: 32px 32px; }
.viz svg { position: relative; width: 100%; height: auto; }
.viz-cap { position: relative; display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); }
.viz text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.viz .t-mint { fill: var(--mint); }
.viz .t-loss { fill: var(--loss); }
.viz .t-amber { fill: var(--amber); }
.viz .t-cyan { fill: var(--cyan); }
.v-price { fill: none; stroke: var(--mint); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0, 255, 204, .5)); }
.v-price.dead { stroke: var(--loss); filter: drop-shadow(0 0 6px rgba(255, 93, 122, .4)); }
.v-price.ghost { stroke: var(--cyan); opacity: .8; stroke-dasharray: 3 6; filter: none; }
.v-dash { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 5 6; fill: none; }
.v-dash.mint { stroke: rgba(0, 255, 204, .55); }
.v-dash.loss { stroke: rgba(255, 93, 122, .6); }
.v-dash.amber { stroke: rgba(255, 191, 94, .6); }
.v-area { fill: url(#gradArea); opacity: .7; }
.v-dot { fill: var(--bg); stroke: var(--mint); stroke-width: 2.4; }
.v-dot.loss { stroke: var(--loss); }
.v-dot.amber { stroke: var(--amber); }
.v-dot.cyan { stroke: var(--cyan); }
.tabpanel.active .v-price:not(.ghost) { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.8s .15s var(--ease) forwards; }
.tabpanel.active .v-fade { opacity: 0; animation: fadeIn .6s var(--ease) forwards; }
.tabpanel.active .v-fade.f1 { animation-delay: .7s; }
.tabpanel.active .v-fade.f2 { animation-delay: 1.1s; }
.tabpanel.active .v-fade.f3 { animation-delay: 1.5s; }
.tabpanel.active .v-fade.f4 { animation-delay: 1.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.manual-buttons { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.manual-buttons span { text-align: center; padding: 13px 6px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.manual-buttons span.hot { color: var(--loss); border-color: rgba(255, 93, 122, .45); }
.manual-buttons span.acc { color: var(--mint); border-color: rgba(0, 255, 204, .4); }

.subhead { margin: 76px 0 24px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.015em; text-align: center; }
.subhead + .subnote { margin: -10px auto 26px; text-align: center; color: var(--dim); font-size: .92rem; max-width: 640px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9, 15, 22, .7); -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .93rem; }
.ptable th, .ptable td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.ptable thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, .025); font-weight: 600; }
.ptable tbody tr:last-child td, .ptable tbody tr:last-child th { border-bottom: 0; }
.ptable tbody th { font-weight: 500; color: var(--text); }
.ptable td { font-family: var(--font-mono); color: var(--muted); }
.ptable td.rec { color: var(--mint); background: rgba(0, 255, 204, .045); }
.ptable .na { color: var(--dim); }
.table-note { margin-top: 14px; text-align: center; color: var(--dim); font-size: .85rem; }
.regimes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.regime { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(9, 15, 22, .7); }
.regime .r-head { display: flex; align-items: center; justify-content: space-between; }
.regime .r-name { font-family: var(--font-mono); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.regime.cold .r-name { color: var(--cyan); }
.regime.warm .r-name { color: var(--amber); }
.regime.hot .r-name { color: var(--loss); }
.regime .r-rule { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.regime p { margin-top: 12px; color: var(--muted); font-size: .93rem; line-height: 1.65; }

/* ----------------------------------------------------------- what's new */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--mint), rgba(0, 255, 204, .1)); }
.tl-item { position: relative; padding: 0 0 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--mint); box-shadow: 0 0 14px rgba(0, 255, 204, .6); }
.tl-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.tl-item h3 { margin-top: 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; }
.tl-item p { margin-top: 8px; color: var(--muted); line-height: 1.7; }
.tl-item ul { margin-top: 12px; display: grid; gap: 8px; }
.tl-item li { position: relative; padding-left: 22px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.tl-item li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); opacity: .7; transform: rotate(45deg); }

/* ------------------------------------------------------------ calculator */
.calc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0b141d, #070c12); box-shadow: var(--shadow-lg); }
.calc-in { padding: 38px 36px; border-right: 1px solid var(--line); }
.calc-out { padding: 38px 36px; background: rgba(0, 0, 0, .18); }
.calc h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }
.calc .calc-sub { margin-top: 8px; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.calc-field { margin-top: 30px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.calc-num { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 4px 6px 4px 18px; border-radius: 14px; background: #03070b; border: 1px solid var(--line-2); transition: border-color .2s; }
.calc-num:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 255, 204, .12); }
.calc-num input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--mint); font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; padding: 12px 0; }
.calc-num span { font-family: var(--font-mono); color: var(--dim); font-size: .9rem; padding-right: 14px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 22px 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); outline: none; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--mint), 0 0 18px rgba(0, 255, 204, .6); cursor: pointer; }
.calc input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--mint); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--mint), 0 0 18px rgba(0, 255, 204, .6); cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.calc-presets button { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 12px; cursor: pointer; transition: all .2s; }
.calc-presets button:hover, .calc-presets button.on { color: var(--mint); border-color: rgba(0, 255, 204, .5); background: rgba(0, 255, 204, .07); }
.calc-rows { display: grid; gap: 0; margin-top: 4px; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); font-size: .95rem; }
.calc-row span:first-child { color: var(--muted); }
.calc-row span:first-child small { display: block; color: var(--dim); font-size: .78rem; margin-top: 2px; }
.calc-row span:last-child { font-family: var(--font-mono); color: var(--text); text-align: right; white-space: nowrap; }
.calc-total { margin-top: 22px; padding: 22px; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(0, 255, 204, .28); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-total small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.calc-total strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -.03em; line-height: 1.1; }
.calc-total strong.amber { color: var(--amber); }
.calc-foot { margin-top: 16px; color: var(--dim); font-size: .82rem; line-height: 1.6; }

/* --------------------------------------------------- security / trust cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-3 .card { padding: 28px 26px; }
.limits { margin-top: 28px; padding: 30px 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(9, 15, 22, .7); display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.limits h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.limits > div:first-child p { margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.limits ul { display: grid; gap: 14px; }
.limits li { display: flex; gap: 12px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.limits li .icon { width: 18px; height: 18px; color: var(--amber); margin-top: 3px; }
.limits li strong { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------------- FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 17, 25, .8); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(0, 255, 204, .3); background: rgba(12, 21, 31, .95); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--mint); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-a { padding: 0 26px 24px; color: var(--muted); line-height: 1.75; font-size: .98rem; }
.faq .faq-a p + p { margin-top: 12px; }
.faq .faq-a strong { color: var(--text); font-weight: 600; }
.faq .faq-a a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- download */
.download { position: relative; padding: 0 0 112px; }
.dl-card {
  position: relative; overflow: hidden; text-align: center; padding: 84px 32px 72px; border-radius: 32px;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(0, 255, 204, .16), transparent 70%), linear-gradient(180deg, #0c1620, #070c12);
  border: 1px solid rgba(0, 255, 204, .28); box-shadow: var(--shadow-lg);
}
.dl-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(160, 200, 230, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 200, 230, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); }
.dl-card > * { position: relative; }
.dl-card h2 { margin: 22px auto 0; max-width: 780px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.dl-card .lead { max-width: 640px; margin-inline: auto; }
.dl-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dl-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.dl-meta li { display: inline-flex; align-items: center; gap: 8px; }
.dl-meta .icon { width: 15px; height: 15px; color: var(--mint); }
.dl-steps { margin: 56px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; counter-reset: dl; }
.dl-step { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(4, 7, 11, .55); }
.dl-step::before { counter-increment: dl; content: '0' counter(dl); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--mint); }
.dl-step h3 { margin-top: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.dl-step p { margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.dl-warn { margin: 26px auto 0; max-width: 720px; color: var(--dim); font-size: .88rem; line-height: 1.65; }
.dl-warn strong { color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------ risk + footer */
.risk { max-width: 980px; margin: 0 auto; padding: 30px 34px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 93, 122, .28); background: linear-gradient(180deg, rgba(255, 93, 122, .07), rgba(255, 93, 122, .02)); display: grid; grid-template-columns: auto 1fr; gap: 22px; }
.risk > .icon { width: 30px; height: 30px; color: var(--loss); margin-top: 3px; }
.risk h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }
.risk p { margin-top: 10px; color: #d9b4bc; font-size: .96rem; line-height: 1.75; }
.risk p strong { color: #ffd6dd; }

.footer { border-top: 1px solid var(--line); background: rgba(3, 6, 9, .8); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand { font-size: 1.2rem; }
.footer-blurb { margin-top: 16px; max-width: 380px; color: var(--muted); font-size: .93rem; line-height: 1.7; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer ul a:hover { color: var(--mint); }
.footer-legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; line-height: 1.75; }
.footer-legal p + p { margin-top: 10px; }

/* ----------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .appwin-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .appwin-body .appcol:first-child { display: none; }
  .appcol:nth-child(2) { border-right: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-2 { grid-column: span 2; }
  .tabpanel.active { grid-template-columns: 1fr; gap: 28px; }
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .pipeline::before { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .limits { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 28px;
    background: rgba(4, 7, 11, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav.open { background: rgba(4, 7, 11, .96); border-bottom-color: var(--line); }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav-links .btn { margin: 10px 0 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .regimes { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .container { padding: 0 18px; }
  .appwin-wrap { padding: 0 14px; margin-top: 52px; }
  .appwin-body { grid-template-columns: 1fr; }
  .appwin-body .appcol:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .m-log { height: 190px; }
  .bento, .grid-3 { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; }
  .pipeline { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 14px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tab { padding: 11px 10px; font-size: .88rem; }
  .tab small { display: none; }
  .calc-in, .calc-out { padding: 28px 22px; }
  .calc-total { grid-template-columns: 1fr; }
  .risk { grid-template-columns: 1fr; padding: 24px 22px; }
  .dl-card { padding: 60px 20px 52px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .faq summary { padding: 18px 18px; font-size: 1rem; }
  .faq .faq-a { padding: 0 18px 20px; }
  .btn-lg { --pad-x: 26px; width: 100%; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
/* ------------------------------------------------ sprite + hero load-in */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.rise { animation: rise .9s var(--ease) both; }
.rise.r1 { animation-delay: .05s; }
.rise.r2 { animation-delay: .15s; }
.rise.r3 { animation-delay: .27s; }
.rise.r4 { animation-delay: .39s; }
.rise.r5 { animation-delay: .5s; }
.rise.r6 { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.mt-cta { margin-top: 44px; display: flex; justify-content: center; }
.spark-legend .c-mint { background: var(--mint); }
.spark-legend .c-cyan { background: var(--cyan); }
.spark-legend .c-loss { background: var(--loss); }
.spark-legend .c-amber { background: var(--amber); }
.ptable.wide { min-width: 940px; }
.calc-total .calc-sub2 { margin-top: 8px; letter-spacing: .06em; text-transform: none; font-size: 11px; color: var(--dim); }
.viz .manual-buttons { margin-top: 6px; }

/* -------------------------------------------------------- late additions */
.h2, .lead, .dl-card h2, .subhead, .strategy-copy h3 { text-wrap: balance; }
.spark text { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
.spark .t-amber { fill: var(--amber); }
.mini { margin-top: 24px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); display: grid; gap: 12px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #03070b; border: 1px solid var(--line-2); }
.mini-addr { font-family: var(--font-mono); font-size: 13px; color: var(--mint); }
.mini-states { display: flex; flex-wrap: wrap; gap: 6px; }
.h2 .grad, .dl-card h2 .grad { white-space: nowrap; }

/* ------------------------------------------------------------ legal pages */
.nav.static { background: rgba(4, 7, 11, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav.static .nav-links { position: static; flex-direction: row; padding: 0; background: none; border: 0; transform: none; opacity: 1; visibility: visible; }
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal .doc { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-size: clamp(2.1rem, 5vw, 3.2rem); margin-top: 18px; }
.legal .updated { margin-top: 12px; color: var(--dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.legal .intro { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); line-height: 1.75; }
.legal h2 { margin-top: 44px; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--muted); line-height: 1.8; font-size: 1rem; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ''; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); opacity: .7; transform: rotate(45deg); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) { .nav.static .nav-links a:not(.btn) { display: none; } }
