@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap");

:root {
  /* generated from src/palette.json — sampled from brand assets (k-means, snapped to real pixels) */
  --bg: #121110;
  --bg-rgb: 18 17 16;
  --card: #191817;
  --card-rgb: 25 24 23;
  --card-2: #1F1E1C;
  --card-2-rgb: 31 30 28;
  --muted: #292724;
  --muted-rgb: 41 39 36;
  --border: #3E3C35;
  --border-rgb: 62 60 53;
  --border-strong: #5D594E;
  --border-strong-rgb: 93 89 78;
  --ink: #EDF3F6;
  --ink-rgb: 237 243 246;
  --dim: #D4C5A8;
  --dim-rgb: 212 197 168;
  --faint: #9B8F79;
  --faint-rgb: 155 143 121;
  --accent: #7FB8CC;
  --accent-rgb: 127 184 204;
  --accent-2: #A6CDDB;
  --accent-2-rgb: 166 205 219;
  --sand: #C7B493;
  --sand-rgb: 199 180 147;
  --on-accent: #121110;
  --on-accent-rgb: 18 17 16;
}

:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-tap-highlight-color: transparent; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }
.faint { color: var(--faint); }
.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(ellipse 70% 45% at 50% -15%, rgb(var(--accent-rgb) / .10), transparent 70%),
  radial-gradient(ellipse 45% 30% at 100% 45%, rgb(var(--sand-rgb) / .05), transparent 70%),
  radial-gradient(ellipse 40% 30% at 0% 80%, rgb(var(--accent-rgb) / .04), transparent 70%); }
main, footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.ca-bar { min-height: 32px; border-bottom: 1px solid var(--border); background: var(--card); }
.ca-row { display: flex; align-items: center; justify-content: center; min-height: 32px; padding-block: 4px; }
.ca-slot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; max-width: 100%; }
.ca-label { font-weight: 600; color: var(--accent); font-family: var(--mono); letter-spacing: .08em; }
.ca-empty { color: var(--faint); cursor: default; user-select: none; display: inline-flex; align-items: center; gap: 8px; }
.ca-empty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px dashed var(--faint); }
.ca-copy { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 2px 8px; font-family: var(--mono); color: var(--dim); transition: background .15s, color .15s; max-width: 100%; text-align: left; }
.ca-copy:hover { background: var(--muted); color: var(--ink); }
.ca-addr { overflow-wrap: anywhere; word-break: break-all; font-size: 12px; }
.ca-ic { display: inline-flex; flex: none; }
.ca-ic-check { display: none; color: var(--accent); }
.ca-copy.copied .ca-ic-copy { display: none; } .ca-copy.copied .ca-ic-check { display: inline-flex; }
@media (max-width: 480px) { .ca-addr { font-size: 10.5px; line-height: 1.25; } }

.nav { position: relative; height: 64px; border-bottom: 1px solid var(--border); background: rgb(var(--bg-rgb) / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-right { gap: 8px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand img { border-radius: 8px; display: block; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 6px 10px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--dim); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .wide { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--dim); transition: color .15s, border-color .15s, transform .15s; }
a.icon-btn:hover, button.icon-btn:hover { color: var(--ink); border-color: var(--border-strong); }
a.icon-btn:active, button.icon-btn:active { transform: scale(.95); }
.icon-btn.is-inert { opacity: .55; cursor: default; }
.nav-right .nav-cta { display: none; height: 40px; padding-inline: 12px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.dot.live { background: var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .55); } 80%, 100% { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0); } }
.mobile-menu { position: absolute; inset: 64px 0 auto 0; display: flex; flex-direction: column; padding: 8px 16px 16px; background: var(--card); border-bottom: 1px solid var(--border); animation: slideDown .25s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 13px 12px; border-radius: 8px; font-weight: 500; color: var(--dim); }
.mobile-menu a:active { background: var(--muted); color: var(--ink); }
.mobile-menu .btn { margin-top: 10px; width: 100%; }
@media (min-width: 640px) { .nav-right .nav-cta.btn-primary { display: inline-flex; } .nav-cta-t { display: none; } }
@media (min-width: 1024px) { .nav-links { display: flex; } .menu-btn { display: none; } .nav-right .nav-cta.btn-outline { display: inline-flex; } }
@media (min-width: 1280px) { .nav-links .wide { display: block; } .nav-cta-t { display: inline; } .nav-right .nav-cta.btn-primary { padding-inline: 16px; } }

.page-top { padding-top: 104px; }
main > .section:first-of-type { padding-top: 56px; }

/* ---------- buttons / inputs (reference .btn-*) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .2s, color .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 8px 30px -8px rgb(var(--accent-rgb) / .5); }
.btn-outline { border-color: rgb(var(--accent-rgb) / .6); background: rgb(var(--accent-rgb) / .1); color: var(--accent-2); }
.btn-outline:hover { background: rgb(var(--accent-rgb) / .18); }
.btn-secondary { border-color: var(--border); background: var(--card); color: var(--ink); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn[aria-disabled="true"] { cursor: default; }
.input { height: 44px; width: 100%; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); padding: 0 14px; font-size: 16px; color: var(--ink); outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: rgb(var(--accent-rgb) / .6); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .12); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--accent-rgb) / .08), transparent 70%); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* ---------- hero (reference geometry: card, px-8 py-12, wave right 70%) ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 32px; isolation: isolate; }
@media (min-width: 640px) { .hero { padding: 56px 48px; } }
.wave { position: absolute; inset-block: 0; right: 0; width: 70%; height: 100%; display: none; pointer-events: none; z-index: -1; }
@media (min-width: 768px) { .wave { display: block; } .hero { min-height: 420px; } }
.hero-copy { position: relative; max-width: 36rem; }
.display { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.display .accent { color: var(--accent); display: inline-block; }
.lede { margin-top: 20px; max-width: 28rem; font-size: 16px; line-height: 1.6; color: var(--dim); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.top-card { display: block; position: relative; margin-top: 40px; width: 100%; max-width: 24rem; border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: rgb(var(--bg-rgb) / .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s; }
.top-card:hover { border-color: rgb(var(--accent-rgb) / .4); }
@media (min-width: 768px) { .top-card { position: absolute; margin-top: 0; bottom: 32px; right: 40px; width: 20rem; } }
.tc-head { display: flex; align-items: center; gap: 12px; }
.tc-head > div { min-width: 0; flex: 1; }
.tc-sym { font-weight: 600; font-size: 14px; }
.tc-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.tc-sub > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.tc-arrow { color: var(--faint); display: inline-flex; transition: color .15s; } .top-card:hover .tc-arrow { color: var(--ink); }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 6px; border: 1px solid rgb(var(--accent-rgb) / .25); background: rgb(var(--accent-rgb) / .1); color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 600; flex: none; }
.tc-q { margin-top: 12px; font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-foot { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tc-big { font-size: 22px; font-weight: 700; color: var(--ink); }
.tc-chg { font-size: 12px; font-weight: 500; }
.tc-liq { font-size: 12px; color: var(--faint); }

/* wave animation (reference technique + rider) */
.wave-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wave-draw 2.2s cubic-bezier(.65,0,.35,1) .2s forwards; }
.wave-march { animation: wave-march 1.4s linear infinite; }
.wave-fill { opacity: 0; animation: wave-fill-in 1.6s ease-out .6s forwards, wave-breathe 6s ease-in-out 2.2s infinite; }
.wave-rider { opacity: 0; animation: wave-fade-in .5s ease-out 2.2s forwards; }
.wave-static { display: none; }
.mask-stroke { stroke: var(--ink); }
.w-dot { fill: var(--bg); stroke: var(--accent); }
.s-accent { stop-color: var(--accent); }
@keyframes wave-draw { to { stroke-dashoffset: 0; } }
@keyframes wave-march { to { stroke-dashoffset: -18; } }
@keyframes wave-fill-in { to { opacity: 1; } }
@keyframes wave-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes wave-fade-in { to { opacity: 1; } }

/* entrance */
.rise { opacity: 0; transform: translateY(14px); animation: slideUp .7s var(--ease) var(--d, 0ms) forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--i, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- ticker (reference) ---------- */
.ticker-wrap { position: relative; z-index: 1; margin-top: 40px; overflow: hidden; border-block: 1px solid var(--border); background: rgb(var(--card-rgb) / .6); -webkit-mask-image: linear-gradient(90deg, transparent, var(--bg) 6%, var(--bg) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--bg) 6%, var(--bg) 94%, transparent); }
.ticker-inner { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 13px; white-space: nowrap; color: var(--dim); border-right: 1px solid var(--border); }
.tick b { color: var(--ink); font-weight: 600; }
.skeleton-tick { animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.delta { font-weight: 600; } .delta.up { color: var(--accent); } .delta.down { color: var(--sand); }

/* ---------- sections ---------- */
.section { padding-top: 72px; }
.sec-head { margin-bottom: 20px; }
.section-label { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.sec-head h2 { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.sec-head .updated, .sec-head .count { font-size: 14px; font-weight: 400; color: var(--faint); letter-spacing: 0; }
@media (min-width: 640px) { .sec-head h2 { font-size: 34px; } }

/* markets empty + builder */
.empty-markets { display: grid; gap: 28px; padding: 28px 22px; }
@media (min-width: 900px) { .empty-markets { grid-template-columns: 1fr 1.1fr; padding: 40px; gap: 48px; align-items: center; } }
.em-mark img { border-radius: 12px; display: block; }
.em-copy h3 { margin-top: 18px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.em-copy p { margin-top: 10px; max-width: 26rem; font-size: 14.5px; line-height: 1.6; color: var(--dim); }
.em-cta { margin-top: 22px; }
.builder { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--bg); }
.b-row { display: flex; flex-direction: column; gap: 6px; }
.b-row > label { font-size: 12.5px; color: var(--faint); }
.b-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .b-2 { grid-template-columns: 1fr 1fr; } }
input[type=date].input { color-scheme: dark; }
.b-out { margin: 0; border-left: 2px solid var(--accent); padding: 10px 14px; border-radius: 0 8px 8px 0; background: rgb(var(--accent-rgb) / .06); font-size: 15px; line-height: 1.45; color: var(--ink); min-height: 48px; }
.seg { display: flex; align-items: center; gap: 6px; }

/* statements carousel */
.statements { position: relative; display: grid; overflow: hidden; }
@media (min-width: 860px) { .statements { grid-template-columns: 1.3fr .7fr; } }
.st-body { padding: 28px 22px 22px; display: flex; flex-direction: column; min-height: 320px; position: relative; z-index: 1; }
@media (min-width: 640px) { .st-body { padding: 44px 44px 30px; } }
.st-slides { position: relative; flex: 1; min-height: 190px; }
.st-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.st-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.st-slide h3 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: .98; font-weight: 700; letter-spacing: -.04em; max-width: 30rem; }
.st-slide p { margin-top: 16px; max-width: 30rem; color: var(--dim); font-size: 15.5px; line-height: 1.6; }
.st-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.st-dots { display: flex; gap: 8px; }
.st-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); transition: width .3s var(--ease), background .2s; padding: 0; }
.st-dot[aria-selected="true"] { width: 26px; background: var(--accent); }
.st-arrows { display: flex; gap: 8px; }
.st-progress { margin-top: 18px; height: 2px; border-radius: 2px; background: var(--muted); overflow: hidden; }
.st-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.st-art { position: relative; display: none; align-items: center; justify-content: center; border-left: 1px solid var(--border); background: radial-gradient(circle at 50% 50%, rgb(var(--accent-rgb) / .12), transparent 65%); }
@media (min-width: 860px) { .st-art { display: flex; } }
.st-art img { width: min(256px, 70%); height: auto; border-radius: 24%; animation: float 7s ease-in-out infinite; box-shadow: 0 30px 80px -20px rgb(var(--accent-rgb) / .35); }
.st-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgb(var(--accent-rgb) / .12); filter: blur(60px); animation: wave-breathe 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }

/* stats */
.stat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.stat { border: 1px solid var(--border); border-radius: 16px; background: var(--card); padding: 20px; transition: border-color .2s, transform .3s var(--ease), background .2s; animation: slideUp .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.stat:hover { border-color: rgb(var(--accent-rgb) / .35); background: var(--card-2); transform: translateY(-2px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-val { margin-top: 14px; font-size: clamp(30px, 8vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.stat-sub { margin-top: 8px; font-size: 12.5px; color: var(--faint); min-height: 19px; }
.stat-spark { margin-top: 14px; height: 44px; }
.stat-spark svg { width: 100%; height: 44px; display: block; overflow: visible; }
.flash { animation: flash .9s var(--ease); }
@keyframes flash { 0% { color: var(--accent); } 100% { color: var(--ink); } }

/* ---------- toolbar (reference) ---------- */
.toolbar { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.search { position: relative; display: block; width: 100%; }
@media (min-width: 640px) { .search { max-width: 24rem; } }
.search input { width: 100%; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); padding: 0 56px 0 40px; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: rgb(var(--accent-rgb) / .6); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .12); }
.search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); display: flex; pointer-events: none; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--faint); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; display: none; }
@media (min-width: 1024px) { .search kbd { display: block; } }
.scroll-x { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin-inline: -16px; padding-inline: 16px; }
.scroll-x::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .scroll-x { margin-inline: 0; padding-inline: 0; } }
.seg-label { font-size: 14px; color: var(--faint); margin-right: 4px; flex: none; }
.pill { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--dim); transition: color .15s, border-color .15s, background .15s; white-space: nowrap; }
.pill:hover { color: var(--ink); border-color: var(--border-strong); }
.pill[aria-pressed="true"] { color: var(--ink); border-color: rgb(var(--accent-rgb) / .5); background: rgb(var(--accent-rgb) / .15); }
.seg .pill { border-color: transparent; }
.seg .pill[aria-pressed="true"] { background: rgb(var(--accent-rgb) / .2); border-color: transparent; }
.chips { padding-top: 12px; flex-wrap: nowrap; }
@media (min-width: 640px) { .chips { flex-wrap: wrap; overflow: visible; } }

/* ---------- pair cards (reference .card-interactive) ---------- */
.pair-grid { margin-top: 24px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pair-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pair-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.pair { display: flex; flex-direction: column; padding: 20px; color: inherit; border: 1px solid var(--border); border-radius: 16px; background: var(--card); transition: border-color .2s, background .2s, transform .3s var(--ease); animation: slideUp .55s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
.pair:hover { border-color: rgb(var(--accent-rgb) / .35); background: var(--card-2); transform: translateY(-3px); }
.pair:active { transform: scale(.985); }
.pair-head { display: flex; align-items: center; gap: 12px; }
.pair-head > div { min-width: 0; flex: 1; }
.p-sym { font-size: 15px; font-weight: 600; } .p-sym span { font-weight: 400; color: var(--faint); }
.p-name { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--on-accent); overflow: hidden; user-select: none; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.star { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--faint); transition: color .15s, background .15s, transform .2s var(--ease); }
.star:hover { color: var(--ink); background: var(--muted); }
.star[aria-pressed="true"] { color: var(--accent); } .star[aria-pressed="true"] svg { fill: currentColor; }
.star:active { transform: scale(.85); }
.pair-row { margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.p-price { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; overflow-wrap: anywhere; }
.p-chg { margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.spark { flex: none; } .spark svg { display: block; overflow: visible; }
.spark path.ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: wave-draw 1.4s cubic-bezier(.65,0,.35,1) .1s forwards; }
.bar { margin-top: 18px; display: flex; height: 4px; border-radius: 999px; overflow: hidden; background: var(--muted); }
.bar i { display: block; height: 100%; transition: width .8s var(--ease); }
.bar .buy { background: var(--accent); } .bar .sell { background: var(--sand); }
.pair-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--faint); }
.pair-foot span:first-child { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.skel-line { border-radius: 8px; background: linear-gradient(90deg, var(--card-2), var(--muted), var(--card-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { margin-top: 24px; padding: 64px 20px; text-align: center; } .empty p:first-child { font-weight: 600; } .empty[hidden] { display: none; }

/* ---------- table / info / cover ---------- */
.table-card { overflow: hidden; }
.trow { display: grid; grid-template-columns: 1.3fr .7fr .9fr .9fr 1fr; gap: 8px; padding: 14px 18px; font-size: 13px; align-items: center; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.trow.thead { border-top: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.trow.new { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: rgb(var(--accent-rgb) / .1); } to { opacity: 1; transform: none; background: transparent; } }
.trow.skel span { height: 14px; border-radius: 6px; background: var(--muted); animation: pulse 2s infinite; }
@media (max-width: 480px) { .trow { grid-template-columns: 1.4fr .7fr .9fr 1fr; padding: 13px 14px; } .hide-xs { display: none; } }
.info-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info { padding: 18px 20px; text-align: left; display: block; transition: border-color .2s, transform .3s var(--ease); }
a.info:hover, .copyable:hover { border-color: rgb(var(--accent-rgb) / .35); transform: translateY(-2px); }
.info-v { margin-top: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.info-v.mono { font-size: 13px; font-weight: 500; }
.cover { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.cover:hover img { transform: scale(1.03); }

/* ---------- docs ---------- */
.doc { max-width: 46rem; padding-bottom: 24px; }
.doc-h1 { margin-top: 8px; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.doc-lede { margin-top: 12px; color: var(--dim); font-size: 17px; }
.doc h2 { margin-top: 44px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.doc p, .doc li { margin-top: 12px; color: var(--dim); font-size: 15px; line-height: 1.7; }
.doc ul { padding-left: 20px; margin: 0; } .doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-family: var(--mono); font-size: 13px; background: var(--muted); border-radius: 5px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- footer / toasts ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.foot-grid { display: grid; gap: 32px; padding-block: 40px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-p { margin-top: 12px; max-width: 24rem; font-size: 13px; color: var(--dim); line-height: 1.6; }
.foot-fine { margin-top: 16px; max-width: 28rem; font-size: 11px; line-height: 1.6; color: var(--faint); }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot-col .section-label { margin-bottom: 4px; }
.foot-col a { color: var(--dim); transition: color .15s; padding-block: 2px; } .foot-col a:hover { color: var(--ink); }
.toasts { position: fixed; z-index: 60; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 12px 16px; font-size: 13px; box-shadow: 0 24px 80px rgb(var(--bg-rgb) / .8); animation: slideUp .35s var(--ease); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--accent-rgb) / .3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-inner { animation: none; }
  .wave-draw { stroke-dashoffset: 0; } .wave-fill, .wave-march { opacity: 1; }
  .wave-rider { display: none; } .wave-static { display: inline; }
  .reveal, .rise { opacity: 1; transform: none; }
  .st-art img { animation: none; }
}
