/* ============================================================
   FoxBrain — front-end styles
   Dark techno terminal. One family (Chakra Petch) for identity,
   JetBrains Mono for the data feed. Red is the whole personality.
   ============================================================ */

:root {
  --bg:        #060607;
  --bg-2:      #0a0a0d;
  --panel:     #0e0e11;
  --panel-2:   #131318;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #f4f4f6;
  --muted:     #83838d;
  --muted-2:   #5a5a63;
  --accent:    #ff2b2b;
  --accent-lo: #b81d1d;
  --accent-glow: rgba(255,43,43,.55);
  --sol:       #3ba9ff;   /* left hemisphere / Solana */
  --rh:        #ff2b2b;   /* right hemisphere / Robinhood */
  --good:      #ff3b3b;   /* a buy — brand red, buying is the positive act here */
  --sell:      #6b6b74;   /* a sell — muted, this is a buy feed */

  --font: "Chakra Petch", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --gut: clamp(18px, 4vw, 64px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* decorative glows/foxes bleed past the edge on purpose — never let them widen the page
   (on mobile a wider layout viewport pushes the fixed nav's button off-screen) */
html, body { overflow-x: clip; }

/* ambient topographic background layer (behind everything) */
#topo-bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none; opacity: .42;
}
@media (prefers-reduced-motion: reduce) { #topo-bg { opacity: .3; } }
/* every page section paints above the background */
.nav, main { position: relative; z-index: 1; }

/* ---------- scrollbars (dark track, red thumb) — pointer devices only; touch keeps its overlay bars ---------- */
@media (hover: hover) and (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--accent-lo) transparent; }
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: #08080b; }
  ::-webkit-scrollbar-thumb {
    border-radius: 999px; border: 3px solid #08080b;
    background: linear-gradient(180deg, #ff5a4b, #d31c1c);
  }
  ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff6d5e, #ff2f2f); }
  ::-webkit-scrollbar-corner { background: #08080b; }
  /* feed has its own scroll region — match the panel tone */
  .feed::-webkit-scrollbar-track { background: var(--panel); }
  .feed::-webkit-scrollbar-thumb { border-color: var(--panel); }
  .feed { scrollbar-color: var(--accent-lo) var(--panel); }
}

a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; line-height: 1; letter-spacing: .01em; }
code { font-family: var(--mono); font-size: .85em; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .95em 1.5em; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-solid {
  background: var(--accent); color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 12px 38px -8px var(--accent-glow); }
.btn-ico {
  display: grid; place-items: center; width: 1.7em; height: 1.7em;
  border-radius: 999px; background: rgba(255,255,255,.18); font-size: .9em;
}
.btn-ghost {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  /* notched techno corners, like the reference outline button */
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 22px -8px var(--accent-glow); }

/* ---------- primary CTA: bright red, glossy, with a sweeping sheen ---------- */
.btn-shiny {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.02em 1.9em; border: 0; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: .86rem;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1; color: #fff;
  background: linear-gradient(180deg, #ff6152 0%, #ff2f2f 46%, #d31c1c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),          /* top gloss edge */
    inset 0 -12px 22px -10px rgba(90,0,0,.85),     /* bottom inner shade for volume */
    0 10px 30px -6px var(--accent-glow),           /* red bloom */
    0 3px 10px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .25s ease, filter .2s ease;
}
/* glossy highlight across the top half */
.btn-shiny::before {
  content: ""; position: absolute; inset: 1px 1px auto 1px; height: 48%; z-index: 0;
  border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity: .85; pointer-events: none;
}
/* moving light sheen */
.btn-shiny::after {
  content: ""; position: absolute; top: -20%; left: -70%; width: 45%; height: 140%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: btn-sheen 5s ease-in-out infinite;
}
.btn-shiny > span { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.btn-shiny .btn-ico {
  display: grid; place-items: center; width: 1.7em; height: 1.7em;
  border-radius: 999px; background: rgba(0,0,0,.22); font-size: .9em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-shiny:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -12px 22px -10px rgba(90,0,0,.85), 0 16px 40px -6px var(--accent-glow), 0 4px 12px rgba(0,0,0,.5); }
.btn-shiny:active { transform: translateY(1px); }
.btn-shiny:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* smaller in the nav */
.btn-shiny.nav-cta { padding: .72em 1.25em; font-size: .74rem; }

@keyframes btn-sheen { 0% { left: -70%; } 26% { left: 130%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-shiny::after { animation: none; opacity: 0; } }

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.3rem);
  text-transform: uppercase; letter-spacing: .02em;
}
/* anchor jumps land below the fixed nav */
.board, .how, .cta { scroll-margin-top: 64px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--gut);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,7,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.brand-mark { display: block; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(255,90,20,.35)); }
.brand-name { font-weight: 700; font-size: 1.18rem; letter-spacing: .02em; }
.brand-name span { color: var(--accent); }
.nav-links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); transition: color .2s ease; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 1.6rem; padding: .7em 1.2em; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 480px) {
  .nav { gap: .8rem; padding-top: .9rem; padding-bottom: .9rem; }
  .btn-shiny.nav-cta { padding: .68em 1em; font-size: .7rem; }
  .btn-shiny.nav-cta .btn-ico { display: none; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 2rem;
  padding: 8rem var(--gut) 3rem;
  max-width: var(--maxw); margin: 0 auto;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  right: -8%; bottom: -20%; width: 70vw; height: 80vh;
  background: radial-gradient(closest-side, rgba(255,43,43,.28), rgba(255,43,43,.06) 55%, transparent 72%);
  filter: blur(10px);
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(3.6rem, 11vw, 8.6rem);
  line-height: .92; letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-title .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 0 44px var(--accent-glow);
}
.hero-sub {
  max-width: 40ch; margin: 1.8rem 0 0;
  color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.12rem);
  font-weight: 300; line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin: 3.4rem 0 0; padding: 0; list-style: none;
  border: 1px solid var(--line); background: var(--line);
  border-radius: var(--radius); overflow: hidden; max-width: 620px;
}
.hero-stats li {
  min-width: 0; padding: 1.1rem 1.2rem;
  background: rgba(14,14,17,.72); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: .3rem;
}
.hero-stats b { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.hero-stats span { font-size: .72rem; color: var(--muted); letter-spacing: .03em; line-height: 1.35; }

/* hero visual — fox cut-out bleeding into the layout ------------------- */
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: center; min-height: 60vh; }
/* the stage is positioned like the fox; image and x-ray layer share its box, so the
   spotlight and the brain line up with the fox at every size (and flip with it) */
.fox-stage {
  position: absolute; right: -4%; bottom: -3rem;
  width: 118%; aspect-ratio: 1122 / 1402;
  transform: scaleX(-1);              /* face the headline */
  /* fade the base into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
  pointer-events: none;
}
.hero-fox {
  position: relative; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.6));
}
/* warm halo behind the fox: fades out well inside the box, so the stage mask never cuts it into a rectangle */
.fox-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 56% 46%, rgba(255,43,43,.26), rgba(255,43,43,.08) 60%, transparent);
}
/* x-ray layer: dark tissue + the live brain, cut to the fox silhouette and to the cursor spotlight */
.fox-xray {
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 22% at 57% 24%, rgba(255,60,40,.22), transparent 72%),
    linear-gradient(180deg, rgba(10,3,6,.8), rgba(6,3,5,.74));
  -webkit-mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent), url(fox-hero.webp);
          mask-image: radial-gradient(circle 0px at -999px -999px, #fff, transparent), url(fox-hero.webp);
  -webkit-mask-size: 100% 100%, 100% 100%; mask-size: 100% 100%, 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* the cranium sits behind the eye: numbers are fractions of the (unflipped) fox photo */
.fox-brain-slot { position: absolute; left: 29%; top: 12.5%; width: 41%; height: 28%; transform: rotate(-12deg); }   /* tilted with the raised muzzle */
.fox-brain-slot iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; }

/* HUD card: stays legible where it crosses the fox */
.hero-facets {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: .55rem 1.1rem .55rem 1.25rem;
  background: rgba(6,6,7,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-left: 1px solid var(--accent-lo); border-radius: 0 12px 12px 0;
}
.hero-facets li { position: relative; padding: .55rem 0 1.4rem; }
.hero-facets li:last-child { padding-bottom: .55rem; }
.hero-facets i {
  position: absolute; left: calc(-1.2rem - 4px); top: .75rem;
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.hero-facets b { display: block; font-size: .92rem; font-weight: 600; }
.hero-facets span { font-size: .72rem; color: var(--muted); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; padding-top: 7rem; min-height: auto; }
  .hero-visual { order: 2; min-height: 52vh; }
  .fox-stage { position: relative; right: auto; bottom: auto; width: 78%; margin: 0 auto; transform: none; }
  .hero-glow { display: none; }   /* on a narrow column it collapses into a tall red pillar; the fox has its own halo */
  .hero-facets { display: none; }
}

/* ============================ BOARD ============================ */
.board {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gut);
  border-top: 1px solid var(--line);
}
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.conn { display: flex; align-items: center; gap: 1.1rem; font-size: .74rem; color: var(--muted); }
.conn-dot { display: inline-flex; align-items: center; gap: .45rem; letter-spacing: .03em; }
.conn-dot i {
  width: 8px; height: 8px; border-radius: 999px; background: var(--muted-2);
  box-shadow: 0 0 0 0 transparent; transition: background .3s, box-shadow .3s;
}
.conn-dot.live i    { background: #37d67a; box-shadow: 0 0 10px rgba(55,214,122,.7); }
.conn-dot.warn i    { background: #ffb020; box-shadow: 0 0 10px rgba(255,176,32,.6); }
.conn-dot.err i     { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.conn-price { font-family: var(--mono); color: var(--muted); letter-spacing: 0; }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
  margin: 2rem 0; padding: 1.4rem 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.f-group { display: flex; flex-direction: column; gap: .55rem; }
.f-group > label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.f-search { flex: 1 1 220px; }

.range-inputs { display: flex; align-items: center; gap: .5rem; }
.range-inputs span { color: var(--muted-2); }
.filters input {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.15)), var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
  font-family: var(--mono); font-size: .82rem; padding: .55rem .7rem; border-radius: 9px;
  width: 100%; min-width: 0; outline: none;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.range-inputs input { width: 92px; }
.filters input:hover { border-color: var(--line-2); }
.filters input:focus { border-color: var(--accent); box-shadow: inset 0 1px 2px rgba(0,0,0,.4), 0 0 0 3px rgba(255,43,43,.18); }
.seg button:focus-visible, .presets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters input::placeholder { color: var(--muted-2); }
/* strip the native number spinner */
.filters input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.filters input[type="number"]::-webkit-outer-spin-button,
.filters input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.presets { display: flex; gap: .4rem; }
.presets button, .seg button {
  font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  padding: .52rem .78rem; border-radius: 9px; cursor: pointer;
  transition: transform .12s ease, color .15s ease, border-color .15s ease, background .15s ease, box-shadow .2s ease;
}
.presets button:hover, .seg button:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.seg { display: inline-flex; gap: .3rem; }
.seg button.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #ff5a4b 0%, #ff2f2f 50%, #d81f1f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -6px 12px -6px rgba(90,0,0,.8), 0 4px 16px -6px var(--accent-glow);
}
.seg button.on:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }

.toggles { display: flex; flex-direction: column; gap: .5rem; }
.chk { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; color: var(--muted); cursor: pointer; transition: color .15s ease; }
.chk:hover { color: var(--text); }
.chk input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; cursor: pointer;
  box-sizing: border-box; width: 18px; height: 18px; min-width: 18px; padding: 0; margin: 0;
  border-radius: 6px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .15s ease, background .15s ease, box-shadow .2s ease;
}
.chk input[type="checkbox"]:hover { border-color: var(--accent); }
.chk input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(180deg, #ff5a4b, #d31c1c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 12px -4px var(--accent-glow);
}
.chk input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.chk input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- board grid ---------- */
.board-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 1040px) { .board-grid { grid-template-columns: 1fr; } }

/* ---------- feed ---------- */
.feed-wrap {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; min-height: 420px;
}
.feed-head, .row {
  display: grid;
  grid-template-columns: 74px minmax(150px, 1.4fr) 96px 1fr 128px 96px;
  align-items: center; gap: .8rem;
  padding: .7rem 1.2rem;
}
.feed-head {
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
  border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.feed { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow-y: auto; }
.row {
  font-family: var(--mono); font-size: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer;
  transition: background .15s ease;
  animation: rowin .32s ease both;
}
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .row { animation: none; } }
.row:hover { background: rgba(255,255,255,.03); }
.row.big { background: linear-gradient(90deg, rgba(255,43,43,.14), transparent 60%); }
.row.big:hover { background: linear-gradient(90deg, rgba(255,43,43,.2), transparent 60%); }

.c-time { color: var(--muted); }
.c-token { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.tok-img { width: 26px; height: 26px; border-radius: 999px; flex: none; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font-family: var(--font); font-size: .7rem; color: var(--muted); border: 1px solid var(--line); overflow: hidden; }
img.tok-img { box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
/* deterministic avatar while (or if) a logo is missing: one of 12 duotones picked from the mint */
.tok-av { color: #fff; font-weight: 700; font-size: .58rem; letter-spacing: .03em; text-shadow: 0 1px 2px rgba(0,0,0,.55); border: 0; }
.av-0  { background: linear-gradient(135deg, #ff6a5c, #8f1220); }
.av-1  { background: linear-gradient(135deg, #ff9f43, #b0341a); }
.av-2  { background: linear-gradient(135deg, #f5c542, #8a5a12); }
.av-3  { background: linear-gradient(135deg, #7ee081, #1e6b3a); }
.av-4  { background: linear-gradient(135deg, #4fd1c5, #146b66); }
.av-5  { background: linear-gradient(135deg, #5fb0ff, #1a4a9c); }
.av-6  { background: linear-gradient(135deg, #8b7bff, #3b2c9c); }
.av-7  { background: linear-gradient(135deg, #d88bff, #6a2aa3); }
.av-8  { background: linear-gradient(135deg, #ff7bc2, #9c1f62); }
.av-9  { background: linear-gradient(135deg, #ff5f8f, #8c1a3a); }
.av-10 { background: linear-gradient(135deg, #c9d1e0, #4a5568); }
.av-11 { background: linear-gradient(135deg, #ffd08a, #a35a10); }
.row sub, .row-detail sub { font-size: .68em; line-height: 0; vertical-align: -.22em; opacity: .9; }
.tok-meta { min-width: 0; }
.tok-sym { font-family: var(--font); font-weight: 600; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-chain { display: flex; align-items: center; gap: .35rem; font-size: .62rem; color: var(--muted-2); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tok-chain i { flex: none; }
.tok-chain i { width: 6px; height: 6px; border-radius: 999px; }
.tok-chain.solana i { background: var(--sol); }
.tok-chain.robinhood i { background: var(--rh); }

.c-usd { font-weight: 700; font-size: .86rem; }
.row[data-side="buy"] .c-usd { color: var(--good); }
.row[data-side="sell"] .c-usd { color: var(--sell); }
.c-amt { color: var(--text); }
.c-buyer { color: var(--sol); }
.c-price { color: var(--muted); text-align: right; }

.side-tag { font-family: var(--font); font-size: .58rem; letter-spacing: .08em; padding: .12em .5em; border-radius: 4px; margin-left: .5rem; vertical-align: middle; }
.side-tag.buy { background: rgba(255,59,59,.16); color: var(--good); }
.side-tag.sell { background: rgba(107,107,116,.2); color: var(--sell); }

/* expanded detail */
.row-detail {
  grid-column: 1 / -1; margin: .6rem -1.2rem -0.7rem; padding: .9rem 1.2rem;
  background: var(--bg-2); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem 1.4rem;
  font-size: .74rem;
}
.row-detail div span { display: block; color: var(--muted-2); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.row-detail div b { font-weight: 500; color: var(--text); word-break: break-all; }
.row-detail a { color: var(--accent); }

.feed-empty {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .4rem; padding: 2rem;
  color: var(--muted); pointer-events: none;
}
.feed-empty.hidden { display: none; }
.feed-empty p { margin: .4rem 0 0; font-size: 1rem; color: var(--text); }
.feed-empty small { color: var(--muted-2); max-width: 34ch; }
.pulseline { display: flex; gap: .4rem; justify-content: center; }
.pulseline i { width: 5px; height: 22px; background: var(--accent); border-radius: 3px; animation: pl 1s ease-in-out infinite; }
.pulseline i:nth-child(2) { animation-delay: .15s; } .pulseline i:nth-child(3) { animation-delay: .3s; }
@keyframes pl { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulseline i { animation: none; } }

/* ---------- side panels ---------- */
.side { display: flex; flex-direction: column; gap: 1.5rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.panel-title { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

.pulse-panel canvas { width: 100%; height: auto; display: block; }
.pulse-legend { display: flex; gap: 1.2rem; margin-top: .8rem; font-size: .72rem; color: var(--muted); }
.pulse-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: .4rem; }
.pulse-legend .sol { background: var(--sol); } .pulse-legend .rh { background: var(--rh); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.stat-grid > div { background: var(--panel); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.stat-grid b { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.stat-grid span { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.top-item { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: .7rem; padding: .55rem .3rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.top-item:last-child { border-bottom: 0; }
.top-rank { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }
.top-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.top-name > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.top-name .tok-img { width: 22px; height: 22px; }
.top-sym { font-weight: 600; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub { font-size: .62rem; color: var(--muted-2); }
.top-usd { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--good); text-align: right; }
.panel-empty { font-size: .76rem; color: var(--muted-2); line-height: 1.5; }
.panel-empty.hidden { display: none; }

/* ============================ HOW ============================ */
.how { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem,7vw,6rem) var(--gut); border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.how article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; }
.how h3 { font-size: 1.15rem; margin: 1.1rem 0 .7rem; }
.how p { color: var(--muted); font-size: .9rem; font-weight: 300; margin: 0; line-height: 1.6; }
.how-dot { display: inline-block; width: 12px; height: 12px; border-radius: 999px; }
.how-dot.rh { background: var(--rh); box-shadow: 0 0 14px var(--accent-glow); }
.how-dot.sol { background: var(--sol); box-shadow: 0 0 14px rgba(59,169,255,.5); }
.how-dot.gk { background: #b98bff; box-shadow: 0 0 14px rgba(185,139,255,.5); }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

/* ============================ CTA / FOOTER ============================ */
.cta { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.cta-glow {
  position: absolute; z-index: 0; pointer-events: none;
  left: 30%; bottom: -40%; width: 60vw; height: 70vh;
  background: radial-gradient(closest-side, rgba(255,43,43,.22), transparent 70%);
}
/* lives inside .cta-inner, so it ends above the footer instead of sitting on its links */
.cta-fox {
  position: absolute; z-index: 0; right: 0; bottom: 0;
  width: min(44%, 560px); height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  opacity: .94;
}
.cta-copy, .cta-side { position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-fox { display: none; } }
.cta-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem,9vw,8rem) var(--gut) clamp(3rem,6vw,5rem);
  display: grid; grid-template-columns: minmax(0, 60%); gap: 1.6rem; align-items: start;
}
.cta-title { font-size: clamp(2.6rem, 8vw, 6rem); text-transform: uppercase; line-height: .95; }
.cta-copy .btn { margin-top: 2rem; }
.cta-note { color: var(--muted); font-weight: 300; max-width: 46ch; margin: 0; line-height: 1.7; }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

.footer {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem var(--gut) 3rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.foot-brand .brand-name { font-size: 1.4rem; }
.foot-logo { display: inline-flex; align-items: center; gap: .6rem; }
.foot-logo img { width: 34px; height: 34px; object-fit: contain; }
.foot-brand p { color: var(--muted); font-size: .85rem; margin: .5rem 0 0; }
.foot-cols { display: flex; gap: 3.5rem; }
.foot-cols h4 { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .9rem; font-weight: 600; }
.foot-cols a { display: block; color: var(--muted); font-size: .84rem; padding: .28rem 0; transition: color .15s ease; }
.foot-cols a:hover { color: var(--text); }

/* ---------- narrow feed: hide low-priority columns ---------- */
@media (max-width: 640px) {
  .feed-head, .row { grid-template-columns: 60px 1fr 88px; gap: .6rem; padding: .7rem .9rem; }
  .c-amt, .c-buyer, .c-price, .feed-head .c-amt, .feed-head .c-buyer, .feed-head .c-price { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats li { flex-direction: row; align-items: center; gap: 1rem; padding: .75rem 1.1rem; }
  .hero-stats b { font-size: 1.5rem; min-width: 3ch; }
}

/* ---------- "new version is live" bar (see watchDeploys in app.js) ---------- */
.update-bar {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .9rem; max-width: calc(100vw - 32px);
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px;
  background: rgba(14,14,17,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.5);
  font-size: .82rem; color: var(--text);
  animation: update-in .35s ease both;
}
@keyframes update-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .update-bar { animation: none; } }
.update-go {
  font: 700 .74rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; cursor: pointer;
  padding: .6em 1.1em; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #ff6152 0%, #ff2f2f 46%, #d31c1c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px -6px var(--accent-glow);
}
.update-go:hover { filter: brightness(1.07); }
.update-x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.update-x:hover { color: var(--text); }
.update-go:focus-visible, .update-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
