/* OWLWICK: design system shared by every page (home, token, docs, 404 and the app shell).
   Robinhood palette: ink #0A0B07 surfaces, paper #F3F4EC text, Robin Neon #CCFF00 as the one accent (primary buttons, active,
   focus), Robinhood green #00C805 for up numbers, live dots and glows, red #FF5A4E for down numbers only. Hairlines, mono labels.
   Token names are historical: --ember / --amber now hold the neon, --gold* aliases keep older app screens working. */
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Geist: the one grotesk (display + text); Geist Mono for labels and numbers; Michroma only for the OWLWICK wordmark */
@font-face { font-family: 'Michroma'; src: url('/assets/fonts/michroma.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* night desk */
  --night: #0A0B07; --night-2: #10120C; --night-3: #171A12; --night-4: #1E2218; --night-5: #282C20;
  /* lantern light */
  --ember: #CCFF00; --ember-hi: #E2FF66; --ember-deep: #A8D400; --ember-ink: #0A0B07;
  --amber: #CCFF00; --amber-hi: #E2FF66; --amber-deep: #A8D400;
  /* ink */
  --cream: #F3F4EC; --muted-c: #A3A89A;
  --up-c: #00C805; --down-c: #FF5A4E;
  --line: rgba(243, 244, 236, .08); --line-2: rgba(243, 244, 236, .13); --line-3: rgba(243, 244, 236, .22);
  --glass: rgba(16, 18, 12, .82); --glass-2: rgba(23, 26, 18, .88);
  /* aliases (app shell + older pages) */
  --gold: var(--amber); --gold-glow: var(--amber-hi); --gold-deep: var(--ember); --gold-ink: #2B6B0E;
  --moon: var(--cream); --text: var(--cream); --violet: var(--ember); --violet-2: var(--amber-hi); --magenta: var(--ember-hi);
  --paper: #F3F4EC; --paper-2: #ECEFE1;
  --rh: var(--ember); --neon: var(--amber-hi); --mint: var(--amber-hi); --blush: var(--ember-hi); --green-deep: var(--gold-ink);
  --ghost: var(--paper); --mist: var(--paper-2); --mist-2: #DFE3D3;
  --navy-900: var(--night); --navy-800: var(--night-2); --navy: var(--night-3); --rh-green: var(--ember); --rh-green-2: var(--ember-deep); --ink-real: var(--night);
  --blue-600: var(--ember); --sky: var(--amber-hi);
  --gold-300: var(--amber-hi); --gold-600: var(--ember); --cream-2: var(--paper-2); --white: #fff; --soft: #F3F8E6;
  --warn: #CCFF00; --warn-ink: #5C6B00; --violet-ink: #2B6B0E;
  --green: var(--up-c); --red: var(--down-c); --green-ink: #1E7A12; --red-ink: #C8302A;
  --ink: #10120C; --ink-2: rgba(16, 18, 12, .74); --ink-3: #5E6457; --ink-line: rgba(16, 18, 12, .12);
  --on: var(--cream); --on-2: rgba(243, 244, 236, .72); --on-3: #A3A89A; --on-line: var(--line);
  /* type */
  --display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-full: 999px;
  --ease: cubic-bezier(.19, 1, .22, 1); --spring: cubic-bezier(.175, .885, .32, 1.1);
  --wrap: 1260px; --nav-h: 72px;
  --ember-grad: #CCFF00;
  --gold-grad: var(--ember-grad);
  --hl-grad: none;
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--on); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -.005em; }
body[data-sky] { background: transparent; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ember); color: var(--ember-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.mono, code { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); }
.serif { font-family: var(--serif); font-weight: 400; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--ember); color: var(--ember-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s6); } }

/* ---------- the night desk (core.js → home-night.js): fixed behind every page that sets body[data-sky] ----------
   CSS layer = warm lantern glow + a faint chart grid; the canvas adds embers, fireflies and the cursor's candle light. */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; contain: strict;
  background:
    radial-gradient(55% 45% at 82% 30%, rgba(0, 200, 5, .10), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 200, 5, .05), transparent 70%),
    linear-gradient(180deg, #0A0B07 0%, #0C0E09 60%, #0A0B07 100%); }
.sky__grid { position: absolute; inset: 0; opacity: 0;
  background-image: linear-gradient(rgba(243, 244, 236, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 244, 236, .022) 1px, transparent 1px);
  background-size: 100% 64px, 64px 100%;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%); }
.sky canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.sky__still { position: absolute; inset: 0; background:
  radial-gradient(2px 2px at 14% 72%, rgba(204, 255, 0, .7), transparent 60%), radial-gradient(1.5px 1.5px at 31% 40%, rgba(226, 255, 102, .6), transparent 60%),
  radial-gradient(2px 2px at 63% 82%, rgba(204, 255, 0, .55), transparent 60%), radial-gradient(1.5px 1.5px at 82% 58%, rgba(226, 255, 102, .6), transparent 60%),
  radial-gradient(1.5px 1.5px at 47% 22%, rgba(226, 255, 102, .5), transparent 60%), radial-gradient(2px 2px at 91% 30%, rgba(204, 255, 0, .45), transparent 60%); }
.sky.is-live .sky__still { display: none; }
.sky--calm .sky__grid { opacity: .35; }

/* ---------- colour helpers ---------- */
.up { color: var(--up-c); } .down { color: var(--down-c); } .flat { color: var(--on-3); }
.on-light .up { color: var(--green-ink); } .on-light .down { color: var(--red-ink); } .on-light .flat { color: var(--ink-3); }
.muted { color: var(--on-3); } .on-light .muted { color: var(--ink-3); }
.ember { color: var(--ember); } .amber { color: var(--amber); }

/* ---------- panels: night glass over the desk (no backdrop-filter: weak GPUs) ---------- */
.panel { position: relative; isolation: isolate; margin: 0 var(--s2); border-radius: var(--r-2xl); overflow: hidden; }
.panel + .panel { margin-top: var(--s2); }
.panel--ink, .panel--navy, .panel--deep { background: radial-gradient(70% 60% at 85% 0%, rgba(204, 255, 0, .09), transparent 62%), linear-gradient(180deg, rgba(23, 26, 18, .9) 0%, rgba(12, 14, 9, .94) 100%); box-shadow: inset 0 0 0 1px var(--line); }
.panel--ghost, .panel--gold, .panel--mist, .panel--cream { background: radial-gradient(60% 80% at 100% 0%, rgba(204, 255, 0, .3), transparent 62%), var(--paper); color: var(--ink); }
.panel--ghost, .panel--gold, .panel--mist, .panel--cream, .on-light { --hl-grad: linear-gradient(100deg, #2B6B0E 0%, #A8D400 50%, #5C6B00 100%); }
.section { padding: 88px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 140px 0; } .panel { margin: 0 var(--s3); } }

/* ---------- type ---------- */
.label { position: relative; width: fit-content; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.label::before { content: none; }
.on-light .label, .panel--ghost .label, .panel--gold .label, .panel--mist .label, .panel--cream .label { color: var(--violet-ink); }
.hl { color: rgba(243, 244, 236, .42); }
.hl .w { color: inherit; }
.sh { display: flex; flex-direction: column; gap: var(--s4); max-width: 820px; margin-bottom: var(--s7); }
.sh--center { margin-inline: auto; text-align: center; align-items: center; }
.sh__title { font-family: var(--display); font-size: 40px; line-height: 1.02; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.sh__lead { font-size: 17.5px; line-height: 1.55; color: var(--on-2); max-width: 640px; text-wrap: pretty; }
.on-light .sh__lead, .panel--ghost .sh__lead, .panel--gold .sh__lead { color: var(--ink-2); }
@media (min-width: 768px) { .sh__title { font-size: 68px; line-height: 1; } .sh__lead { font-size: 19px; } }
.words .w { display: inline-block; will-change: transform; }
/* light-sweep reveal (core.js reveals()): a band of candle light sweeps left → right and uncovers the title */
.sweep { --sw: -30%; }
.sweep.is-sweeping { clip-path: inset(-25% var(--clip, 100%) -25% -4%); }
.sweep__band { position: absolute; top: -12%; bottom: -12%; width: 20%; left: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(204, 255, 0, .1) 25%, rgba(226, 255, 102, .5) 46%, rgba(243, 244, 236, .85) 50%, rgba(226, 255, 102, .5) 54%, rgba(204, 255, 0, .1) 75%, transparent); opacity: 0; z-index: 2; will-change: transform, opacity; }

/* ---------- buttons ---------- */
.btn { --bh: 46px; font-weight: 550; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--bh); padding: 0 21px; border-radius: var(--r-full); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 600; letter-spacing: -.005em; transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { --bh: 38px; padding: 0 16px; font-size: 14px; }
.btn--ember, .btn--gold, .btn--green { background: var(--ember); color: #0A0B07; box-shadow: 0 10px 30px -14px rgba(204, 255, 0, .8); }
.btn--ember::after, .btn--gold::after, .btn--green::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(243, 244, 236, .7) 48%, transparent 66%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--ember:hover::after, .btn--gold:hover::after, .btn--green:hover::after { transform: translateX(120%); }
.btn--ember:hover, .btn--gold:hover, .btn--green:hover { background: #D9FF33; box-shadow: 0 14px 40px -12px rgba(204, 255, 0, .9); }
.btn--amber { background: linear-gradient(180deg, #E2FF66, #CCFF00 55%, #B8F000); color: #0A0B07; box-shadow: 0 0 0 1px rgba(243, 244, 236, .5) inset, 0 14px 34px -14px rgba(204, 255, 0, .8); }
.btn--navy, .btn--ink { background: var(--night-3); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--navy:hover, .btn--ink:hover { background: var(--night-4); }
.btn--ghost { background: rgba(243, 244, 236, .03); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(243, 244, 236, .06); box-shadow: inset 0 0 0 1px var(--line-3); color: #fff; }
.on-light .btn--ghost, .panel--ghost .btn--ghost, .panel--gold .btn--ghost { background: rgba(16, 18, 12, .04); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 18, 12, .24); }
.btn--cream, .btn--white { background: var(--cream); color: var(--ink); }
.btn--cream:hover, .btn--white:hover { background: #fff; }
.btn--danger { background: rgba(255, 90, 78, .12); color: var(--down-c); box-shadow: inset 0 0 0 1px rgba(255, 90, 78, .4); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--magnetic { will-change: transform; }
.btn--magnetic > * { transition: transform .45s var(--ease); }

/* ---------- pills, chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; background: rgba(243, 244, 236, .07); color: var(--on-2); white-space: nowrap; }
.on-light .pill { background: rgba(16, 18, 12, .07); color: var(--ink-2); }
.pill--gold, .pill--green, .pill--ember { background: var(--ember); color: var(--ember-ink) !important; }
.pill--ok { background: rgba(0, 200, 5, .13); color: var(--up-c); }
.pill--warn { background: rgba(204, 255, 0, .14); color: var(--amber); }
.pill--bad { background: rgba(255, 90, 78, .14); color: var(--down-c); }
.on-light .pill--ok { background: rgba(30, 122, 18, .12); color: var(--green-ink); }
.on-light .pill--bad { background: rgba(200, 48, 42, .12); color: var(--red-ink); }
.pill--example { background: rgba(204, 255, 0, .14); color: var(--amber) !important; box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .35); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; font-weight: 700; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--up-c); box-shadow: 0 0 0 0 rgba(0, 200, 5, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, .55); } 70% { box-shadow: 0 0 0 9px rgba(0, 200, 5, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); } }

/* ---------- cards: dark desk surfaces with a lantern edge ---------- */
.card { position: relative; background: rgba(16, 18, 12, .78); color: var(--cream); border-radius: var(--r-xl); padding: var(--s5); min-width: 0; box-shadow: inset 0 0 0 1px var(--line); }
.card--flat { box-shadow: inset 0 0 0 1px var(--line); }
.card--glass { background: rgba(16, 18, 12, .72); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.card__title { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.card a:not(.btn) { color: var(--amber); }
.grid { display: grid; gap: var(--s4); }
.grid > * { min-width: 0; }
/* lantern spotlight on hover (home.js sets --mx/--my on [data-lit]) */
[data-lit] { --mx: 50%; --my: -200px; }
[data-lit]::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(204, 255, 0, .07), transparent 60%); opacity: 0; transition: opacity .5s; }
[data-lit]:hover::before { opacity: 1; }
[data-lit] > * { position: relative; z-index: 1; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--s2) * -1); padding: 0 var(--s2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.35; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .sub { display: block; font-size: 12px; color: var(--on-3); margin-top: 2px; }
.tbl--dark th { color: var(--on-3); border-color: var(--line); }
.tbl--dark td { border-color: var(--line); }
.on-light .tbl th { color: var(--ink-3); border-color: var(--ink-line); } .on-light .tbl td { border-color: var(--ink-line); }
@media (max-width: 720px) { .hide-sm { display: none; } }
@media (max-width: 1000px) { .hide-md { display: none; } }

/* ---------- avatars, token logos ---------- */
.ava { position: relative; width: 36px; height: 36px; border-radius: 10px; flex: none; overflow: hidden; background: var(--night-4); color: var(--amber); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ava img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tok-logo { width: 28px; height: 28px; border-radius: 50%; flex: none; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px rgba(16, 18, 12, .08); }
.cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell > span { min-width: 0; }
.cell b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }

/* ---------- forms ---------- */
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(243, 244, 236, .04); color: var(--cream); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--on-3); }
.input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(204, 255, 0, .22); }
.input--dark { background: rgba(243, 244, 236, .04); border-color: var(--line-2); color: #fff; }
.on-light .input { background: #fff; color: var(--ink); border-color: var(--ink-line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--on-2); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-full); background: rgba(243, 244, 236, .06); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-full); background: transparent; color: var(--on-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: var(--ember); color: var(--ember-ink); }
.seg--dark { background: rgba(243, 244, 236, .06); }

/* ---------- skeleton + states ---------- */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(243, 244, 236, .05) 25%, rgba(243, 244, 236, .11) 50%, rgba(243, 244, 236, .05) 75%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.on-light .sk { background: linear-gradient(90deg, rgba(16, 18, 12, .06) 25%, rgba(16, 18, 12, .13) 50%, rgba(16, 18, 12, .06) 75%); background-size: 200% 100%; }
@keyframes sk { to { background-position: -200% 0; } }
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 36px 18px; color: var(--on-2); }
.state__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(243, 244, 236, .07); color: var(--amber); }
.state__icon svg { width: 22px; height: 22px; }
.state b { color: #fff; font-size: 16px; }
.state p { max-width: 420px; font-size: 14px; }
.state--err .state__icon { background: rgba(255, 90, 78, .12); color: var(--down-c); }
.on-light .state { color: var(--ink-2); } .on-light .state b { color: var(--ink); }

/* ---------- top nav (marketing pages) ---------- */
.nav { position: sticky; top: 0; z-index: 100; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease), opacity .4s; }
.nav.is-scrolled { background: rgba(10, 11, 7, .9); box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(0, 0, 0, .8); }
.nav.nav--hide { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav__bar { height: var(--nav-h); display: flex; align-items: center; gap: var(--s4); }
.nav__links { margin-left: 40px !important; margin-right: auto !important; }
.btn--nav { --bh: 44px; padding: 0 22px; font-size: 15px; gap: 7px; }
.btn--nav svg { width: 14px; height: 14px; }
.nav { border-bottom: 1px solid transparent; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand__mark { display: inline-block; width: 32px; height: 32px; flex: none; transition: transform .6s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-12deg); }
.brand__word { font-family: 'Michroma', var(--display); font-size: 15px; letter-spacing: .14em; color: var(--cream); line-height: 1; padding-top: 1px; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand span i { font-style: normal; color: inherit; }
.nav__links { display: none; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: inline-flex; height: 38px; align-items: center; padding: 0 14px; border-radius: var(--r-full); text-decoration: none; font-size: 14.5px; font-weight: 450; color: var(--on-2); transition: color .25s; }
.nav__links a::after { content: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; cursor: pointer; text-decoration: none; transition: background-color .25s, box-shadow .25s, transform .4s var(--ease); flex: none; }
.icon-btn:hover { background: rgba(204, 255, 0, .1); box-shadow: inset 0 0 0 1px rgba(226, 255, 102, .55); }
.icon-btn svg { width: 17px; height: 17px; }
.nav__social { display: none; }
.menu-btn { display: inline-grid; }
@media (min-width: 1080px) { .nav__links { display: flex; } .menu-btn { display: none; } .nav__social { display: inline-grid; } }
@media (max-width: 1079px) { .nav__actions { margin-left: auto; } }
@media (max-width: 420px) { .brand__word { font-size: 13px; letter-spacing: .1em; } .btn--nav { --bh: 40px; padding: 0 16px; font-size: 14px; } }
@media (max-width: 380px) { .nav__actions .btn--sm { padding: 0 12px; } .brand { font-size: 21px; } .brand img { width: 30px; height: 30px; } }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: radial-gradient(90% 60% at 80% 0%, rgba(204, 255, 0, .16), transparent 60%), rgba(10, 11, 7, .985); padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.035em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .menu__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; border: 0; }
.menu .menu__social a { border: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 10px 16px; background: rgba(243, 244, 236, .07); border-radius: var(--r-full); }

/* ---------- footer: a candle-chart skyline, then a lit wordmark ---------- */
.footer { position: relative; isolation: isolate; margin-top: 0; padding: 0; overflow: hidden; color: var(--on-2); font-size: 14px; }
.footer__roof { display: none; }
.footer__body { position: relative; border-top: 1px solid var(--line); padding-top: var(--s8); }
.footer__grid { display: grid; gap: var(--s6) var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s3); max-width: 400px; }
.footer__brand p { color: var(--on-3); }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__col h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-3); margin-bottom: 4px; }
.footer__col a { text-decoration: none; color: var(--on-2); width: fit-content; transition: color .2s; }
.footer__col a:hover { color: var(--ember-hi); }
.footer__status { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: var(--r-full); background: rgba(243, 244, 236, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--on-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 13px; color: var(--on-3); }
.footer__credit { margin-top: 10px; font-size: 12px; color: var(--on-3); }
.footer__credit a { color: var(--on-2); }
.footer__bottom b { color: var(--cream); font-weight: 500; }
.footer__mark { position: relative; margin: var(--s5) 0 -.22em; text-align: center; font-family: var(--display); font-weight: 600; letter-spacing: -.06em; line-height: .9; font-size: 21vw; color: transparent; background: linear-gradient(180deg, rgba(243, 244, 236, .16) 0%, rgba(204, 255, 0, .1) 55%, transparent 92%); -webkit-background-clip: text; background-clip: text; user-select: none; pointer-events: none; white-space: nowrap; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- modal / dialog / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 3, .8); }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: radial-gradient(90% 60% at 50% 0%, rgba(204, 255, 0, .16), transparent 60%), linear-gradient(180deg, #171A12, #10120C); color: var(--cream); border-radius: var(--r-xl); padding: 30px 26px 26px; box-shadow: inset 0 0 0 1px rgba(226, 255, 102, .22), 0 40px 100px -30px rgba(0, 0, 0, .8); animation: pop .4s var(--spring); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(243, 244, 236, .08); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.modal__x svg { width: 16px; height: 16px; }
.modal h2 { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; font-weight: 750; font-stretch: 88%; }
.modal p { color: var(--on-2); font-size: 15px; }
.modal .btn--ink { background: var(--ember-grad); color: var(--ember-ink); box-shadow: none; }
.modal .soon-mark { width: 72px; height: 72px; margin-bottom: 14px; animation: soonbob 3.2s ease-in-out infinite; }
@keyframes soonbob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 260; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ember-grad); color: var(--ember-ink); font-weight: 650; font-size: 14px; padding: 12px 18px; border-radius: var(--r-full); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); transition: transform .4s var(--spring), opacity .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wallet list (connect modal) ---------- */
.wl-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.wl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(243, 244, 236, .04); color: var(--cream); cursor: pointer; text-decoration: none; text-align: left; transition: border-color .2s, background-color .2s; }
.wl:hover { border-color: rgba(226, 255, 102, .5); background: rgba(204, 255, 0, .06); }
.wl img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.wl b { flex: 1; font-weight: 650; font-size: 15px; }
.wl small { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: var(--r-full); background: rgba(243, 244, 236, .08); color: var(--on-2); }

/* ---------- app shell (inner pages) ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; padding: 0 12px 0 16px; background: var(--night); border-bottom: 1px solid var(--line); }
.side__nav { display: none; }
.side__foot { display: none; }
.main { min-width: 0; padding: 12px 8px 0; }
.page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.page-head { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-2xl); padding: 32px 20px; color: var(--cream); background: radial-gradient(60% 120% at 100% 0%, rgba(204, 255, 0, .2), transparent 60%), linear-gradient(160deg, #171A12, var(--night-2)); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-head h1 { font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 750; font-stretch: 88%; letter-spacing: -.03em; }
.page-head p { margin-top: 10px; font-size: 16.5px; color: var(--on-2); max-width: 620px; }
.page-head--navy p { color: var(--on-2); }
@media (min-width: 1080px) {
  .shell { grid-template-columns: 248px minmax(0, 1fr); }
  .side { height: 100vh; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 18px 14px; border-bottom: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  .side .menu-btn { display: none; }
  .side__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
  .side__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
}
.side__group { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-3); padding: 16px 10px 6px; }
.side__nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 550; color: var(--on-2); }
.side__nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.side__nav a:hover { background: rgba(243, 244, 236, .06); color: #fff; }
.side__nav a[aria-current="page"], .side__nav a.is-on { background: var(--ember); color: var(--ember-ink); font-weight: 650; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(243, 244, 236, .06); font-size: 13px; min-width: 0; }
.who img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.who b { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.who small { display: flex; align-items: center; gap: 5px; color: var(--on-3); font-size: 11.5px; }
.who small.ok { color: var(--amber); }
.who > span { min-width: 0; flex: 1; }
.shell .footer { margin: 16px -8px 0; }
.drawer { position: fixed; inset: 60px 0 0 0; z-index: 95; background: var(--night); overflow-y: auto; padding: 8px 12px 32px; }
.drawer .side__nav { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.drawer .side__nav a { height: 46px; font-size: 16px; }
.drawer .side__foot { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- misc ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--on-3); }
.kv b { font-weight: 650; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.spark { width: 100%; height: 44px; overflow: visible; }
.ev { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--amber); display: inline-flex; align-items: center; gap: 4px; }
.ev:hover { text-decoration: underline; }
.ev svg { width: 12px; height: 12px; }
.badge-ver { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: var(--r-full); background: rgba(204, 255, 0, .12); color: var(--amber); font-size: 12px; font-weight: 650; }
.badge-ver svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- odometer ticker ---------- */
.odo { display: inline-flex; align-items: baseline; overflow: hidden; line-height: 1; height: 1em; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__d > span { display: flex; flex-direction: column; transition: transform 1.6s var(--ease); }
.odo__d i { font-style: normal; height: 1em; line-height: 1; display: block; }
.odo__s { display: inline-block; }

/* ---------- EXAMPLE flag (sample data while an API is not connected) ---------- */
.ex-flag { position: fixed; left: 12px; bottom: 12px; transition: bottom .4s var(--ease); z-index: 150; display: flex; align-items: center; gap: 10px; max-width: min(400px, calc(100vw - 24px)); padding: 7px 12px 7px 7px; border-radius: 12px; background: rgba(16, 18, 12, .94); color: var(--on-3); font-size: 11.5px; line-height: 1.35; box-shadow: inset 0 0 0 1px var(--line-2); }
[data-example-note] { font-family: var(--mono); }

/* ---------- charts ---------- */
.lc { position: relative; }
.lc svg { overflow: visible; touch-action: pan-y; }
.lc__tip { position: absolute; top: 4px; z-index: 5; min-width: 150px; padding: 8px 10px; border-radius: 10px; background: var(--night-3); color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -10px rgba(0, 0, 0, .5); }
.lc__tip small { display: block; color: var(--on-3); font-size: 11px; }
.lc__tip div { display: flex; align-items: center; gap: 6px; }
.lc__tip i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.lc__tip b { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--on-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; }
.bc { display: flex; align-items: flex-end; gap: 4px; position: relative; }
.bc__col { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px; }
.bc__bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--ember); }
.bc__x { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-3); margin-top: 6px; }
.on-light, .panel--ghost, .panel--gold { --spark-up: var(--green-ink); --spark-down: var(--red-ink); }
:root { --spark-up: var(--up-c); --spark-down: var(--down-c); }

/* ---------- the owl explains: typewriter caret ---------- */
.say { position: relative; }
.say__caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px rgba(204, 255, 0, .8); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
