/* ============================================================
   VAULT — landing page styles
   Dark premium "fintech-meets-gaming" base, gold/amber accent.
   Theme tokens live on :root and are swappable via Tweaks.
   ============================================================ */

:root {
  /* Accent (money/gold by default) — overridable by Tweaks */
  --accent: #f5b50a;
  --accent-2: #ffd66b;
  --accent-rim: #f5b50a;
  --accent-soft: rgba(245, 181, 10, 0.12);
  --accent-glow: rgba(245, 181, 10, 0.35);

  /* Neutrals — warm sandstone-tinted near-blacks (Mirage/Dust golden hour) */
  --bg: #0c0a07;
  --bg-2: #110d09;
  --surface: #1a140d;
  --surface-2: #201910;
  --surface-3: #2a2116;
  --line: rgba(255, 236, 206, 0.085);
  --line-strong: rgba(255, 236, 206, 0.15);

  --text: #f6f1e7;
  --text-muted: #ada292;
  --text-dim: #756c5d;

  /* Atmosphere tuning (driven by Tweaks) */
  --sun: #ffcf73;
  --sand: #d8b582;
  --haze: rgba(216, 181, 130, 0.06);

  --pos: #3ddc84;   /* positive / profit */
  --neg: #ff5d5d;   /* negative / loss */

  --font-display: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: linear-gradient(178deg, var(--bg-2) 0%, var(--bg) 55%, var(--bg) 100%);
}

/* ===== Fixed 3D canvas behind everything ===== */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ===== Atmosphere layers ===== */
.atmos { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.atmos-front { z-index: 2; }        /* in front of weapons, behind content */

/* dust motes canvas */
.atmos .dust { position: absolute; inset: 0; opacity: 0.9; }

/* tactical HUD: faint floor grid + slow scan sweep */
.atmos .hud { position: absolute; inset: 0; }
.atmos .hud .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(color-mix(in srgb, var(--sand) 36%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--sand) 36%, transparent) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 40%, transparent 18%, #000 88%);
          mask-image: radial-gradient(85% 75% at 50% 40%, transparent 18%, #000 88%);
  opacity: 0.3;
}
.atmos .hud .scan {
  position: absolute; left: 0; right: 0; height: 38vh;
  top: -40vh;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sun) 10%, transparent) 70%, color-mix(in srgb, var(--sun) 16%, transparent));
  mix-blend-mode: screen;
  animation: hudScan 7.5s linear infinite;
}
@keyframes hudScan { 0% { transform: translateY(0); } 100% { transform: translateY(160vh); } }

@media (prefers-reduced-motion: reduce) {
  .atmos .hud .scan { animation: none; }
}

/* page content sits above the atmosphere */
.page { position: relative; z-index: 3; }

/* subtle vignette — darkens only the outer corners + grounds the very
   bottom edge. The upper viewport stays clear so the golden hero +
   headline never sit on a black dome. */
.fx-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(120% 115% at 50% 42%, transparent 70%, color-mix(in srgb, var(--bg) 55%, #000) 100%),
    linear-gradient(180deg, transparent 80%, color-mix(in srgb, var(--bg) 45%, #000) 100%);
}

/* ===================== HEADER ===================== */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand .mark {
  width: 30px; height: 30px;
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
}
.brand .mark svg,
.brand .mark img { width: 100%; height: 100%; display: block; object-fit: contain; background: transparent; }

/* Header brand mark reads bigger than the footer's — the footer stays compact. */
.nav .brand .mark {
  width: 46px;
  height: 46px;
}
.brand .word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===================== BUTTONS ===================== */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .18s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.04); }

.btn-accent {
  background: var(--accent);
  color: #0a0b0d;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-accent:hover {
  background: var(--accent-2);
  box-shadow: 0 10px 34px -8px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 10px; }

.btn .ico { width: 17px; height: 17px; display: block; }

/* ===================== LAYOUT ===================== */
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  position: relative;
}
/* gentle legibility wash directly under the copy block (lower-left),
   light enough that it never reads as a black dome */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(58% 50% at 24% 64%,
    color-mix(in srgb, var(--bg) 42%, transparent) 0%,
    color-mix(in srgb, var(--bg) 18%, transparent) 44%,
    transparent 72%);
}
.hero .wrap { width: 100%; position: relative; }

.hero h1 {
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(8, 6, 3, 0.55), 0 1px 4px rgba(8, 6, 3, 0.4);
}
.hero h1 .em { color: var(--accent); }

.hero .sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 52ch;
  text-shadow: 0 1px 16px rgba(8, 6, 3, 0.5);
  font-weight: 500;
}

.hero .cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .trust {
  margin-top: 24px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.hero .trust b { color: var(--text); font-weight: 700; }

/* live status pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  white-space: nowrap;
}
.live-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 0 rgba(61,220,132,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrolldown 2s infinite;
}
@keyframes scrolldown { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ===================== SECTION SCAFFOLD ===================== */
.band { padding: clamp(90px, 13vh, 170px) 0; }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 62px);
  text-transform: uppercase;
}
.section-head p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 56ch;
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== FEATURE ROWS ===================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.feature.flip { grid-template-columns: 1.15fr 1fr; }
.feature.flip .feature-copy { order: 2; }

.feature-copy .ftag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-copy h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  text-transform: uppercase;
  line-height: 1.0;
}
.feature-copy p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 46ch;
}
.feature-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.feature-list li svg { flex: none; margin-top: 3px; color: var(--accent); }
.feature-list li span { color: var(--text-muted); }
.feature-list li b { color: var(--text); font-weight: 700; }

/* ===================== APP / WINDOW MOCKUPS ===================== */
.window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #3a3f47; }
.win-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-left: 10px;
  letter-spacing: 0.04em;
}
.win-title.url {
  margin-left: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 12px;
  flex: 1;
  max-width: 340px;
  color: var(--text-muted);
}
.win-body { padding: 0; }

/* generic data styling reused across mockups */
.mono { font-family: var(--font-mono); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.acc { color: var(--accent); }

/* ====== Economy / buy-strategy tool mockup ====== */
.eco {
  display: grid;
  grid-template-columns: 1fr;
  font-size: 13px;
}
.eco-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.eco-round { font-family: var(--font-mono); color: var(--text-dim); font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
.eco-score { font-family: var(--font-display); font-size: 20px; white-space: nowrap; }
.eco-score .vs { color: var(--text-dim); margin: 0 8px; font-size: 14px; }
.eco-rec {
  margin: 16px 18px;
  border: 1px solid var(--accent-soft);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-radius: 10px;
  padding: 16px;
}
.eco-rec .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eco-rec .big { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; margin-top: 6px; }
.eco-rec .why { color: var(--text-muted); font-size: 12.5px; margin-top: 6px; }
.eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.eco-cell { background: var(--surface); padding: 14px 18px; }
.eco-cell .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.eco-cell .v { font-family: var(--font-display); font-size: 19px; margin-top: 5px; }
.eco-bar { height: 5px; border-radius: 3px; background: var(--surface-3); margin-top: 9px; overflow: hidden; }
.eco-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ====== Investment / portfolio mockup ====== */
.port { padding: 18px; }
.port-head { display: flex; justify-content: space-between; align-items: flex-end; }
.port-head .total { font-family: var(--font-display); font-size: 30px; }
.port-head .chg { font-family: var(--font-mono); font-size: 13px; }
.chart { margin: 18px 0 14px; height: 120px; width: 100%; }
.holdings { display: flex; flex-direction: column; }
.holding {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.holding .skin { width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, var(--surface-3), #2a2f37); border: 1px solid var(--line); }
.holding .nm { font-weight: 600; }
.holding .nm small { display: block; color: var(--text-dim); font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; }
.holding .pr { font-family: var(--font-mono); text-align: right; }
.holding .dl { font-family: var(--font-mono); text-align: right; width: 64px; }

/* ====== Case stats mockup ====== */
.cases { padding: 18px; }
.cases-top { display: flex; gap: 14px; margin-bottom: 16px; }
.case-stat { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; }
.case-stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.case-stat .v { font-family: var(--font-display); font-size: 22px; margin-top: 4px; }
.odds { display: flex; flex-direction: column; gap: 10px; }
.odd { display: grid; grid-template-columns: 108px 1fr 50px; gap: 12px; align-items: center; font-size: 12px; }
.odd .tier { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; }
.odd .track { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.odd .track i { display: block; height: 100%; border-radius: 4px; }
.odd .pct { font-family: var(--font-mono); text-align: right; color: var(--text-muted); }

/* ====== Web dashboard mockup ====== */
.dash { display: grid; grid-template-columns: 168px 1fr; min-height: 360px; }
.dash-side { background: var(--surface-2); border-right: 1px solid var(--line); padding: 16px 12px; }
.dash-side .si {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  padding: 9px 10px; border-radius: 7px; margin-bottom: 3px;
}
.dash-side .si.active { background: var(--accent-soft); color: var(--text); }
.dash-side .si i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .5; }
.dash-side .si.active i { background: var(--accent); opacity: 1; }
.dash-main { padding: 20px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.dcard .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.dcard .v { font-family: var(--font-display); font-size: 22px; margin-top: 6px; }
.dcard .d { font-family: var(--font-mono); font-size: 11px; margin-top: 3px; }
.dash-chart { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; height: 190px; }

/* ===================== PRICING ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -30px var(--accent-glow);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 40%);
}
.plan .badge {
  position: absolute; top: -12px; right: 26px;
  background: var(--accent); color: #0a0b0d;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 12px; border-radius: 100px;
}
.plan .pname { font-family: var(--font-display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.plan .price { font-family: var(--font-display); font-size: 50px; margin-top: 14px; line-height: 1; }
.plan .price span { font-family: var(--font-body); font-size: 16px; color: var(--text-dim); font-weight: 600; }
.plan .pnote { color: var(--accent); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.plan .pdesc { color: var(--text-muted); font-size: 14px; margin-top: 10px; min-height: 42px; }
.plan ul { list-style: none; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-muted); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ===================== FINAL CTA ===================== */
.final {
  text-align: center;
  padding: clamp(110px, 18vh, 200px) 0;
}
.final h2 {
  font-size: clamp(40px, 7vw, 96px);
  text-transform: uppercase;
  line-height: 0.95;
}
.final h2 .em { color: var(--accent); }
.final p { color: var(--text-muted); font-size: clamp(16px,1.6vw,20px); margin: 24px auto 0; max-width: 50ch; }
.final .cta-row { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final .meta { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: .05em; }

/* ===================== FOOTER ===================== */
footer.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 60px 0 40px;
  margin-inline: -1.5rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-col form { display: contents; }
.foot-col .foot-link-btn {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 0; margin-bottom: 10px;
  color: var(--text-muted); font-family: var(--font-body); font-size: 14px;
  cursor: pointer; transition: color .2s;
}
.foot-col .foot-link-btn:hover { color: var(--text); }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-dim);
}
.foot-disclaimer { font-size: 11.5px; color: var(--text-dim); max-width: 60ch; line-height: 1.5; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero .trust { gap: 16px; }
  .dash-cards { grid-template-columns: 1fr; }
  .nav-right .btn-hide { display: none; }
}

/* ============================================================
   CS-THEMED MOTION LAYER
   Kill feed, case-opening roulette, scanlines, tracers, ticks.
   ============================================================ */

/* ---- shared reduced-motion guard ---- */
@media (prefers-reduced-motion: reduce) {
  .killfeed, .scanline, .tracer, .num-flip { animation: none !important; }
}

/* numbers that count up shouldn't reflow the layout while animating */
.count { font-variant-numeric: tabular-nums; }

/* ===================== KILL FEED (hero) ===================== */
.killfeed {
  position: absolute;
  top: 150px;
  right: clamp(20px, 4vw, 48px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
  width: min(340px, 70vw);
}
.kf-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border-radius: 6px;
  background: rgba(8, 9, 11, 0.74);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  transform: translateX(24px);
  opacity: 0;
  animation: kf-in .42s var(--ease) forwards;
  box-shadow: 0 6px 22px -10px rgba(0,0,0,0.7);
}
.kf-row.out { animation: kf-out .5s var(--ease) forwards; }
.kf-row .killer { color: var(--ct, #6db3f2); font-weight: 600; }
.kf-row.t-side .killer { color: var(--accent); }
.kf-row .victim { color: var(--neg); }
.kf-row .wep {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.kf-row .wep svg { width: 26px; height: 13px; opacity: .9; }
.kf-row .hs { color: var(--accent); font-size: 13px; line-height: 1; }
.kf-row .blink { color: var(--neg); }
@keyframes kf-in { to { transform: translateX(0); opacity: 1; } }
@keyframes kf-out { to { transform: translateX(24px); opacity: 0; } }
@media (max-width: 900px) { .killfeed { display: none; } }

/* ===================== SCANLINE on window mockups ===================== */
.window { position: relative; }
.window .scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 38%;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(180deg, transparent, var(--accent-soft) 70%, transparent);
  opacity: 0;
  mix-blend-mode: screen;
}
.window.scanning .scanline { animation: scan 2.6s var(--ease); }
@keyframes scan {
  0% { transform: translateY(-40%); opacity: 0; }
  12% { opacity: .55; }
  90% { opacity: .25; }
  100% { transform: translateY(280%); opacity: 0; }
}

/* ===================== CHART DRAW-ON ===================== */
.chart path[data-draw], .dash-chart path[data-draw] {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.in .chart path[data-draw], .reveal.in .dash-chart path[data-draw],
.drawn .chart path[data-draw], .drawn path[data-draw] {
  animation: draw 1.6s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* fill-area fades in after the line draws */
.chart path[fill^="url"], .dash-chart path[fill^="url"] { opacity: 0; transition: opacity .8s ease .7s; }
.drawn .chart path[fill^="url"], .reveal.in .dash-chart path[fill^="url"], .drawn path[fill^="url"] { opacity: 1; }

/* ===================== BAR FILLS (economy + odds) ===================== */
.eco-bar i, .odd .track i {
  width: 0 !important;
  transition: width 1.1s var(--ease);
}
.armed .eco-bar i, .armed .odd .track i { width: var(--w) !important; }

/* freeze countdown flash */
.eco-round.tick { color: var(--accent); }

/* recoil flash on the recommended call */
.eco-rec.flash { animation: rec-flash .7s var(--ease); }
@keyframes rec-flash {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  40% { box-shadow: 0 0 30px -2px var(--accent-glow); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* live price tick flashes on holdings */
.holding .pr.up { animation: tick-up .6s var(--ease); }
.holding .pr.down { animation: tick-down .6s var(--ease); }
@keyframes tick-up { 0%,100%{color:var(--text)} 30%{color:var(--pos)} }
@keyframes tick-down { 0%,100%{color:var(--text)} 30%{color:var(--neg)} }

/* ===================== TRACER SWEEP (section dividers) ===================== */
.tracer-rail {
  position: relative;
  height: 1px;
  background: var(--line);
  overflow: visible;
  margin: 0;
}
.tracer {
  position: absolute;
  top: -0.5px;
  left: -120px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.tracer-rail.fire .tracer { animation: tracer 1.1s var(--ease) forwards; }
@keyframes tracer {
  0% { left: -120px; opacity: 0; }
  10% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* hero headline subtle flicker on accent words */
.hero h1 .em { position: relative; }
.hero h1.live .em { animation: em-flicker 6s steps(1) infinite; }
@keyframes em-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: .55; }
  98% { opacity: 1; }
  99% { opacity: .7; }
}

/* ===================== FEATURE REEL (case-style roulette under hero) ===================== */
.feature-reel {
  position: relative;
  z-index: 2;
  padding: 30px 0 8px;
  margin-top: -34px;
}
.feature-reel .wrap { max-width: 1100px; }

.reel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.reel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.reel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.reel-status .rs-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-glow);
}
.reel-status.locked { color: var(--accent); }
.reel-status.locked .rs-dot { background: var(--pos); box-shadow: 0 0 8px 1px rgba(61,220,132,0.6); }

/* the spinning strip */
.reel {
  position: relative;
  height: 132px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(120% 200% at 50% -60%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.reel-ticker {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px 2px var(--accent-glow);
  pointer-events: none;
}
.reel-ticker::before, .reel-ticker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 8px;
  background: var(--accent);
}
.reel-ticker::before { top: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.reel-ticker::after  { bottom: 0; clip-path: polygon(50% 0, 0 100%, 100% 100%); }

.reel-track {
  display: flex;
  gap: 12px;
  padding: 16px 12px;
  height: 100%;
  will-change: transform;
}
.reel-item {
  flex: 0 0 156px;
  height: 100px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ri, var(--accent));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 13px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s, opacity .3s;
}
.reel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 18% 0%, color-mix(in srgb, var(--ri) 16%, transparent), transparent 60%);
  opacity: .9;
}
.reel-item .ri-ico {
  width: 26px; height: 26px;
  color: var(--ri, var(--accent));
  position: relative;
}
.reel-item .ri-ico svg { width: 100%; height: 100%; display: block; }
.reel-item .ri-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--text);
}
.reel-item.win {
  box-shadow: 0 0 0 1px var(--ri), 0 0 30px -2px color-mix(in srgb, var(--ri) 60%, transparent);
  transform: translateY(-2px);
  animation: reel-pop .5s var(--ease);
}
.reel-item.dim { opacity: .5; }
@keyframes reel-pop { 0%{transform:scale(1) translateY(-2px)} 45%{transform:scale(1.05) translateY(-2px)} 100%{transform:scale(1) translateY(-2px)} }

/* the detail that resolves under the strip */
.reel-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.rd-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.rd-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-height: 76px;
  transition: border-color .4s, box-shadow .4s, opacity .45s, transform .45s;
}
.rd-card.enter {
  opacity: 0;
  transform: translateY(-10px);
}
.rd-card.current {
  border-color: color-mix(in srgb, var(--rdc, var(--accent)) 50%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rdc, var(--accent)) 24%, transparent), 0 18px 50px -30px var(--accent-glow);
}
.rd-icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--rdc, var(--accent));
  background: color-mix(in srgb, var(--rdc, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rdc, var(--accent)) 40%, transparent);
}
.rd-icon svg { width: 24px; height: 24px; display: block; }
.rd-copy { flex: 1; min-width: 0; }
.rd-name {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  transition: opacity .25s;
}
.rd-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}
.rd-tier {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rdc, var(--accent));
  border: 1px solid color-mix(in srgb, var(--rdc, var(--accent)) 45%, transparent);
  border-radius: 100px;
  padding: 5px 11px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .feature-reel { margin-top: -8px; padding-top: 24px; }
  .reel { height: 116px; }
  .reel-item { flex-basis: 130px; height: 86px; }
  .rd-tier { display: none; }
  .rd-card { gap: 12px; padding: 12px 14px; }
  .rd-name { font-size: 16px; }
  .rd-desc { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-item.win { animation: none; }
}
