/* ============================================================================
   STOCHLAB — Design System  (base.css)
   Theme: black + electric cyan · Inter + mono numerals
   Aesthetic: Hyperliquid data console × SpaceX cinematic aerospace
   Used by every page. Page-specific CSS goes in its own file/<style> block.
   ========================================================================== */

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* surfaces */
  --bg:        #060709;
  --bg-1:      #0A0C10;   /* base panel            */
  --bg-2:      #0E1117;   /* raised panel          */
  --bg-3:      #141922;   /* inset / hover         */
  --bg-glass:  rgba(255,255,255,.025);
  --bg-glass-2:rgba(255,255,255,.045);

  /* lines */
  --line:        rgba(255,255,255,.07);
  --line-2:      rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.18);

  /* text */
  --text:      #EDF1F4;
  --text-2:    #AEB7C4;
  --text-dim:  #7A828F;
  --text-mute: #545C68;

  /* brand / signal */
  --cyan:      #00E5FF;   /* AI · brand · CTA · links            */
  --cyan-2:    #14B8D4;   /* gradient partner / pressed          */
  --cyan-deep: #0A6E80;
  --violet:    #7C5CFF;   /* secondary electric accent           */
  --coral:     #FF6A3D;   /* logo "realized price" · warm accent */
  --up:        #2FE0A8;   /* long / positive                     */
  --down:      #FF5470;   /* short / negative                    */
  --amber:     #FFC24B;

  /* glows */
  --glow-cyan:   0 0 0 1px rgba(0,229,255,.35), 0 0 28px -4px rgba(0,229,255,.55);
  --glow-soft:   0 0 60px -12px rgba(0,229,255,.45);
  --shadow:      0 18px 50px -24px rgba(0,0,0,.8);
  --shadow-lg:   0 40px 100px -40px rgba(0,0,0,.9);

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Code', 'Roboto Mono', monospace;

  /* radius */
  --r-xs: 7px;  --r-sm: 10px;  --r: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* layout */
  --wrap: 1200px;  --wrap-wide: 1380px;  --gut: clamp(20px, 5vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------ RESET */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(0,229,255,.28); color: #fff; }

/* page-wide ambient backdrop (grid + glow blooms + grain) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(760px 520px at 6% 12%, rgba(124,92,255,.07), transparent 60%),
    linear-gradient(180deg, #07080B 0%, var(--bg) 40%, #050608 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
}

/* ------------------------------------------------------------- TYPOGRAPHY */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.display { font-size: clamp(2.7rem, 6.2vw, 5.4rem); font-weight: 700; line-height: .98; letter-spacing: -0.04em; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--text-2); line-height: 1.55; font-weight: 400; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: -0.01em; }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--text-dim); }
.t-2 { color: var(--text-2); }
.t-cyan { color: var(--cyan); }
.t-up { color: var(--up); }
.t-down { color: var(--down); }
.t-coral { color: var(--coral); }

.gradient-text {
  background: linear-gradient(180deg, #fff 0%, #fff 45%, #8a93a0 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cyan-text {
  background: linear-gradient(100deg, #7ff4ff, var(--cyan) 60%, #36c8ec);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* eyebrow / kicker — mono, tracked, with leading mark */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: "◢"; font-size: .7em; opacity: .9; }
.eyebrow--plain::before { content: none; }
.eyebrow--dim { color: var(--text-dim); }

/* ----------------------------------------------------------------- LAYOUT */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--wide { max-width: var(--wrap-wide); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section__head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .h2 { margin-top: 14px; }
.section__head .lead { margin-top: 18px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
.grid > * { min-width: 0; }          /* prevent grid blowout from wide charts/<pre>/mono strings */
.cluster { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.divider { height: 1px; background: var(--line); border: 0; }
.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }

/* ------------------------------------------------------------------- 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, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,9,12,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; gap: 28px; }
.nav__logo { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em; }
.nav__logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav__logo svg.brandmark { width: 32px; height: 32px; display: block; flex: none; overflow: visible; }
.nav__logo b { font-weight: 700; }
.nav__logo span { color: var(--cyan); }
.nav__links { display: flex; gap: 4px; margin-left: 14px; }
.nav__links a {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: .9rem; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav__links a:hover { color: var(--text); background: var(--bg-glass); }
.nav__links a.is-active { color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 1.6px; background: var(--text); position: relative; transition: .25s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--text); transition: .25s; }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }

.nav__drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: rgba(6,7,9,.97);
  backdrop-filter: blur(20px); padding: 28px var(--gut); display: none; flex-direction: column; gap: 6px;
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a { padding: 15px 8px; font-size: 1.2rem; border-bottom: 1px solid var(--line); color: var(--text-2); }
.nav__drawer .btn { margin-top: 18px; justify-content: center; }

/* --------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 11px 20px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500;
  letter-spacing: -0.01em; border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .22s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, #2af0ff, var(--cyan));
  color: #00161b; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0,229,255,.4), 0 10px 30px -10px rgba(0,229,255,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,229,255,.5), 0 16px 40px -10px rgba(0,229,255,.75); }
.btn--ghost { background: var(--bg-glass); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-strong); background: var(--bg-glass-2); transform: translateY(-2px); }
.btn--quiet { color: var(--text-2); padding-inline: 8px; }
.btn--quiet:hover { color: var(--text); }
.btn--lg { padding: 15px 28px; font-size: 1rem; border-radius: var(--r); }
.btn--sm { padding: 8px 14px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--cyan); font-weight: 500; font-size: .92rem; }
.link-arrow .arr { transition: transform .2s var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* --------------------------------------------------------------- SURFACES */
.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.panel--glass {
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px,2.5vw,28px);
  position: relative; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card--hover:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(0,229,255,.18), rgba(0,229,255,.04));
  border: 1px solid rgba(0,229,255,.22); color: var(--cyan); margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: .94rem; }

/* HUD panel — aerospace corner ticks */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--cyan); opacity: .55;
}
.hud::before { top: 10px; left: 10px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud::after  { bottom: 10px; right: 10px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* ----------------------------------------------------------- BADGES/PILLS */
.badge {
  display: inline-flex; align-items: center; gap: .5em; padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-2);
  background: var(--bg-glass); border: 1px solid var(--line-2);
}
.badge--cyan { color: var(--cyan); border-color: rgba(0,229,255,.3); background: rgba(0,229,255,.07); }
.badge--up { color: var(--up); border-color: rgba(47,224,168,.3); background: rgba(47,224,168,.08); }
.badge--down { color: var(--down); border-color: rgba(255,84,112,.3); background: rgba(255,84,112,.08); }
.pill { display: inline-flex; align-items: center; gap: .5em; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: .84rem; color: var(--text-2); border: 1px solid var(--line); background: var(--bg-glass); transition: .2s; }
.pill:hover { color: var(--text); border-color: var(--line-strong); }
.pill.is-active { color: #00161b; background: var(--cyan); border-color: var(--cyan); font-weight: 600; }
.tag { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim); padding: 3px 8px; border-radius: var(--r-xs); background: var(--bg-3); border: 1px solid var(--line); }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); position: relative; flex: none; }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--up); opacity: .35; animation: ping 1.8s ease-out infinite; }
.dot-live--cyan { background: var(--cyan); } .dot-live--cyan::after { background: var(--cyan); }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }

/* ----------------------------------------------------------------- STATS */
.stat__num { font-family: var(--font-mono); font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__label { color: var(--text-dim); font-size: .82rem; margin-top: 8px; letter-spacing: .01em; }
.statbar { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.statbar > div { background: var(--bg-1); padding: clamp(18px,2.4vw,30px); }

/* KPI row (dashboards) */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi__label { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.kpi__val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.delta { font-family: var(--font-mono); font-size: .8rem; display: inline-flex; align-items: center; gap: .3em; }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }

/* ----------------------------------------------------------------- TABLE */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-dim); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--bg-glass); }

/* ---------------------------------------------------------------- TICKER */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(10,12,16,.6); }
.ticker__track { display: flex; gap: 40px; padding: 12px 0; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.ticker__sym { color: var(--text); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ FORMS */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.input, .select {
  width: 100%; padding: 11px 14px; background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--text); transition: border-color .18s, box-shadow .18s;
  font-family: var(--font-mono); font-size: .9rem;
}
.input:focus, .select:focus { outline: none; border-color: rgba(0,229,255,.5); box-shadow: 0 0 0 3px rgba(0,229,255,.12); }
.input::placeholder { color: var(--text-mute); }
.search { position: relative; }
.search .input { padding-left: 40px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }

.toggle { width: 44px; height: 25px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; transition: .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--text-dim); transition: .2s; }
.toggle.is-on { background: rgba(0,229,255,.25); border-color: var(--cyan); }
.toggle.is-on::after { left: 21px; background: var(--cyan); }

.tabs { display: inline-flex; gap: 3px; padding: 4px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r); }
.tab { padding: 8px 16px; border-radius: var(--r-sm); font-size: .86rem; color: var(--text-dim); transition: .18s; }
.tab.is-active { background: var(--bg-3); color: var(--text); }

/* ------------------------------------------------------------------ CHARTS */
.chart { width: 100%; height: auto; overflow: visible; }
.chart-frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background:
  linear-gradient(180deg, rgba(14,17,23,.6), rgba(10,12,16,.4)); padding: 18px; overflow: hidden; }

/* legend dots */
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .76rem; color: var(--text-dim); }
.legend i { width: 14px; height: 2px; border-radius: 2px; }
.legend .l-real { background: var(--coral); }
.legend .l-ai { background: var(--cyan); }

/* ----------------------------------------------------------------- FOOTER */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px,6vw,80px) 36px; margin-top: 40px; position: relative; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { color: var(--text-dim); font-size: .9rem; margin-top: 16px; max-width: 280px; }
.footer h4 { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.footer ul { display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--text-2); font-size: .9rem; transition: color .15s; }
.footer ul a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .82rem; }
.footer__bottom .mono { color: var(--text-dim); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-dim); transition: .2s; }
.footer__social a:hover { color: var(--cyan); border-color: rgba(0,229,255,.4); }

/* --------------------------------------------------------------- DECOR */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow-orb--cyan { background: radial-gradient(circle, rgba(0,229,255,.4), transparent 70%); }
.glow-orb--violet { background: radial-gradient(circle, rgba(124,92,255,.32), transparent 70%); }
.beam { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(0,229,255,.05) 50%, transparent 70%); pointer-events: none; }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }

/* watermark pattern grid behind hero */
.dotgrid { background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 22px 22px; }

/* ------------------------------------------------------------ ANIMATIONS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* chart line draw-in */
.draw path.draw-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.in path.draw-line { animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------- UTILITIES */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.full { width: 100%; }
.rel { position: relative; }
.z1 { position: relative; z-index: 1; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}.mt-6{margin-top:64px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.gap-sm{gap:8px}.gap-lg{gap:24px}
.maxw-sm{max-width:480px}.maxw-md{max-width:640px}.maxw-lg{max-width:820px}
.hide-mobile{} .show-mobile{ display:none; }
.text-balance { text-wrap: balance; }

/* --------------------------------------------------------------- RESPONSIVE */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__right .btn--ghost { display: none; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: repeat(2,1fr); }
  .display { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  :root { --nav-h: 60px; }
}
