/* Tender: production design system for the landing page and the app (Trade, Compute ETF, Stats).
   Brand (Nov 2026): mauve #AE6F80, rose #C99194, cream #F1E4D4 on the logo's #F8F5F0 ground, deep wine ink.
   Editorial serif for display, Inter for the interface, Geist Mono for labels.
   Light is cream, dark is wine-black; both themes are designed, not inverted. */

:root {
  --bg: #F8F5F0; --bg-2: #F1EBE2; --surface: #FFFDFA; --surface-2: #FBF8F3;
  --line: rgba(43, 26, 30, .10); --line-2: rgba(43, 26, 30, .18);
  --ink: #2A1A1E; --ink-2: #6B585D; --ink-3: #9C8B8F; --ink-inv: #FFFDFA;
  --accent: #8E4F5E; --accent-soft: rgba(174, 111, 128, .13);
  --brand: #AE6F80; --brand-strong: #93505F; --brand-ink: #FBF6EF; --cream: #F1E4D4; --rose: #C99194;
  --grad: linear-gradient(120deg, #AE6F80 0%, #C99194 55%, #F1E4D4 100%);
  --up: #2E7D57; --down: #B3423B; --up-soft: rgba(46, 125, 87, .11); --down-soft: rgba(179, 66, 59, .10);
  --panel: #24161A; --panel-ink: #F6EEE6; --panel-ink-2: #C2ACB2; --panel-line: rgba(255, 240, 235, .11);
  --shadow: 0 1px 2px rgba(43, 26, 30, .04), 0 12px 32px -18px rgba(43, 26, 30, .20);
  --glow-a: .30;
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 16px; --r-sm: 10px; --max: 1200px; --max-app: 1320px; --gut: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #140D10; --bg-2: #1A1114; --surface: #1E1519; --surface-2: #24191E;
  --line: rgba(255, 240, 235, .08); --line-2: rgba(255, 240, 235, .15);
  --ink: #F6EEE6; --ink-2: #BCA9AE; --ink-3: #8A777C; --ink-inv: #140D10;
  --accent: #DDA7B3; --accent-soft: rgba(221, 167, 179, .13);
  --brand: #C98B99; --brand-strong: #D9A0AD; --brand-ink: #1A0F12; --cream: #F1E4D4; --rose: #C99194;
  --up: #5BC48C; --down: #F07A70; --up-soft: rgba(91, 196, 140, .12); --down-soft: rgba(240, 122, 112, .12);
  --panel: #1E1519; --panel-ink: #F6EEE6; --panel-ink-2: #BCA9AE; --panel-line: rgba(255, 240, 235, .09);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .7);
  --glow-a: .20;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ink-inv); text-decoration: none; }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.wrap-app { width: min(100% - var(--gut) * 2, var(--max-app)); margin-inline: auto; }

/* type */
.display { font: 400 clamp(48px, 7.4vw, 96px)/.98 var(--f-display); letter-spacing: -.012em; text-wrap: balance; }
.h2 { font: 400 clamp(36px, 4.8vw, 60px)/1.03 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.h3 { font: 600 17px/1.35 var(--f-ui); letter-spacing: -.01em; }
.title { font: 400 clamp(38px, 4.4vw, 52px)/1.02 var(--f-display); letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.label { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font: 600 15px/1 var(--f-ui); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s, opacity .15s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--ink-inv); }
.btn-ink:hover { opacity: .88; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-brand, .btn-grad { background: var(--brand-strong); color: var(--brand-ink); }
.btn-brand:hover, .btn-grad:hover { opacity: .9; }
.btn-cream { background: #FBF6EF; color: #2A1A1E; }
.btn-cream:hover { opacity: .92; }
.btn-cream-line { background: transparent; color: #FBF6EF; box-shadow: inset 0 0 0 1px rgba(251, 246, 239, .55); }
.btn-cream-line:hover { box-shadow: inset 0 0 0 1px #FBF6EF; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(2px); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

/* pills and tags */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1 var(--f-ui); color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); flex: none; }
.dot.off { background: var(--ink-3); box-shadow: 0 0 0 3px var(--line); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag-accent { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.chg { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }

/* header (shared by the landing and the app) */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand span { align-self: flex-end; margin-bottom: 3px; }
.brand b { font: 700 21px/1 var(--f-ui); letter-spacing: -.04em; }
.brand span { font: 500 12.5px/1 var(--f-ui); color: var(--ink-3); letter-spacing: -.005em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px; font: 500 15px/1 var(--f-ui); color: var(--ink-2); text-decoration: none; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; border-radius: 2px; background: var(--ink); }
.hdr-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.wallet-btn.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-mono); font-weight: 500; font-size: 13.5px; }
.wallet-btn.on .dot { margin-right: 2px; }
@media (max-width: 760px) {
  .hdr-in { flex-wrap: wrap; height: auto; padding: 12px 0 0; gap: 10px 16px; }
  .nav { order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a[aria-current="page"]::after { bottom: 0; }
  .brand span { display: none; }
}

/* ticker (app pages): live prices running under the header */
.ticker { position: relative; display: flex; align-items: center; height: 38px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.ticker-live { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 100%; padding: 0 16px 0 var(--gut); font: 500 12.5px/1 var(--f-ui); color: var(--ink-2); background: var(--surface-2); z-index: 1; box-shadow: 12px 0 12px -6px var(--surface-2); }
.ticker-track { display: flex; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; flex: none; }
.ticker-list a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-right: 1px solid var(--line); font: 500 13px/1 var(--f-ui); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ticker-list a:hover { color: var(--ink); background: var(--surface); }
.ticker-list b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* cards, kpis, tables, tabs */
.card { background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.card-pad { padding: clamp(18px, 2vw, 24px); }
.card-h { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 4px clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi-v { font: 500 clamp(24px, 2.4vw, 32px)/1.1 var(--f-ui); letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 500 14px/1 var(--f-ui); color: var(--ink-2); white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--line); }
.tab .tag { height: 18px; padding: 0 6px; font-size: 10px; }
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.utab { position: relative; height: 44px; padding: 0; border: 0; background: none; font: 500 15px/1 var(--f-ui); color: var(--ink-3); }
.utab[aria-selected="true"] { color: var(--ink); }
.utab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.utab .count { margin-left: 6px; font: 500 12px/1 var(--f-mono); color: var(--ink-3); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { height: 42px; padding: 0 14px; text-align: right; font: 500 11.5px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl td { height: 60px; padding: 0 14px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr[data-href], .tbl tbody tr[data-model] { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr[aria-selected="true"] { background: var(--accent-soft); }
.tbl .m { display: flex; flex-direction: column; gap: 2px; }
.tbl .m b { font-weight: 600; color: var(--ink); }
.tbl .m span { font-size: 12.5px; color: var(--ink-3); }
.tbl .strong { font-weight: 600; color: var(--ink); }
.tbl s { color: var(--ink-3); text-decoration-color: var(--line-2); }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tbl th[aria-sort="ascending"] button::after { content: "↑"; }
.tbl th[aria-sort="descending"] button::after { content: "↓"; }
.tbl .wait td { height: 120px; text-align: center; color: var(--ink-3); }

/* chart */
.chart { position: relative; height: var(--h, 320px); margin-top: 12px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font: 500 11px var(--f-mono); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .9; }
.chart .x-hair { stroke: var(--line-2); stroke-dasharray: 3 3; }
.chart .x-hair, .chart .pt.hover { visibility: hidden; }
.chart.hovering .x-hair, .chart.hovering .pt.hover { visibility: visible; }
.chart .pt { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart .bar { fill: var(--ink); opacity: .85; }
.chart .bar.dim { fill: var(--ink-3); opacity: .35; }
.chart-tip { position: absolute; top: 0; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--ink-inv); font: 500 12.5px/1.35 var(--f-ui); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; font-variant-numeric: tabular-nums; }
.chart-tip.on { opacity: 1; }
.chart-tip span { display: block; font: 500 11px var(--f-mono); opacity: .7; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }

/* forms */
.field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 17px/1 var(--f-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; background: no-repeat right 2px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%238D8B95' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.field select option { color: #121116; background: #FFFFFF; }
.field .unit { flex: none; font: 500 14px/1 var(--f-ui); color: var(--ink-3); }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1 var(--f-ui); color: var(--ink-2); }
.quick button:hover, .quick button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); }
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rows > div:last-child { border-bottom: 0; }
.rows dt, .rows .k { color: var(--ink-2); }
.rows dd, .rows .v { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.rows .total { font-size: 16px; }
.rows .total .v { font-weight: 650; }
.note { font-size: 13px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.msg { min-height: 1.5em; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }
.inline-form { display: flex; gap: 8px; }
.inline-form .field { flex: 1; height: 48px; }
.inline-form .field input { font-size: 15px; font-weight: 500; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } .inline-form .field { flex: none; } }

/* footer */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 32px; }
.foot-brand p { margin-top: 12px; max-width: 30ch; color: var(--ink-2); font-size: 14.5px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ================= landing ================= */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; isolation: isolate; overflow-x: clip; }   /* the glow is 120vw wide on phones */
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: min(1100px, 120vw); height: 620px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(201, 145, 148, .9), transparent), radial-gradient(closest-side at 70% 60%, rgba(174, 111, 128, .7), transparent), radial-gradient(closest-side at 30% 70%, rgba(241, 228, 212, .9), transparent); filter: blur(60px); opacity: var(--glow-a); pointer-events: none; }
.hero .pill { margin-bottom: 28px; }
.hero .display { margin-inline: auto; }
.hero .lead { max-width: 52ch; margin: 24px auto 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* the live price stage: one big number, model tabs above it */
.stage { margin-top: clamp(56px, 8vw, 96px); text-align: center; }
.stage .tabs { margin: 0 auto; }
.stage-price { margin-top: clamp(28px, 4vw, 44px); font: 400 clamp(72px, 13vw, 168px)/.9 var(--f-display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; transition: opacity .3s var(--ease); }
.stage-price.swap { opacity: 0; }
.stage-price .cur { font-size: .55em; vertical-align: .55em; margin-right: .04em; color: var(--ink-2); }
.stage-sub { margin-top: 18px; font-size: 16px; color: var(--ink-2); }
.stage-sub b { color: var(--ink); font-weight: 600; }
.stage-rule { width: 1px; height: 56px; margin: 32px auto 0; background: linear-gradient(var(--ink), transparent); opacity: .5; }
.stage-meta { margin-top: 16px; }

.sec { padding-top: clamp(96px, 12vw, 160px); }
.sec-h { max-width: 720px; }
.sec-h.center { margin-inline: auto; text-align: center; }
.sec-h .eyebrow { margin-bottom: 18px; }
.sec-h .lead { margin-top: 20px; }

/* dark band for the forwards promise */
.band { position: relative; margin-top: clamp(96px, 12vw, 160px); padding: clamp(64px, 9vw, 120px) 0; background: var(--panel); color: var(--panel-ink); overflow: hidden; isolation: isolate; }
:root[data-theme="dark"] .band { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.band::after { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -40%; width: 70%; height: 120%; background: var(--grad); filter: blur(120px); opacity: .18; }
.band .eyebrow, .band .lead { color: var(--panel-ink-2); }
.band .tag-accent { color: #2A1A1E; background: var(--grad); }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--panel-line); }
.step { padding: 24px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--panel-line); }
.step .n { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--panel-ink-2); }
.step h3 { margin-top: 16px; font: 400 30px/1.1 var(--f-display); }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--panel-ink-2); }
.band .field { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--panel-line); }
.band .field input { color: var(--panel-ink); }
.band .field input::placeholder { color: var(--panel-ink-2); }
.band .msg { color: var(--panel-ink-2); }
.band .btn-ink { background: #FBF6EF; color: #24161A; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; align-items: start; } .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--panel-line); } }

/* trade now: copy and a live ticket */
.split { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(40px, 7vw, 112px); align-items: center; }
.points { display: flex; flex-direction: column; margin-top: 32px; border-top: 1px solid var(--line); }
.points li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.points li b { min-width: 9ch; color: var(--ink); font-weight: 600; }
.ticket { padding: 24px; }
.ticket-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-m { margin-top: 20px; font: 400 34px/1.05 var(--f-display); }
.ticket-p { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ticket-p b { font: 500 40px/1 var(--f-ui); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ticket .rows { margin-top: 6px; }
.ticket .btn { margin-top: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* price cards */
.cards-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.pcard { display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .15s, transform .2s var(--ease); }
.pcard:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transform: translateY(-2px); }
.pcard-n { display: flex; justify-content: space-between; gap: 12px; }
.pcard-n b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.pcard-n span { font-size: 13px; color: var(--ink-3); }
.pcard-p { font: 400 40px/1 var(--f-display); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.pcard-p small { font: 500 13px var(--f-ui); color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.pcard-s { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pcards { grid-template-columns: 1fr; } .pcard { min-height: 132px; } }

/* token */
.jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.job { padding: 24px 24px 0 0; }
.job + .job { padding-left: 24px; border-left: 1px solid var(--line); }
.job .n { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); }
.job h3 { margin-top: 14px; font: 400 28px/1.1 var(--f-display); }
.job p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .job:nth-child(3) { padding-left: 0; border-left: 0; } .job:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; } }
@media (max-width: 520px) { .jobs { grid-template-columns: 1fr; } .job, .job + .job { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); margin-top: 0; } .job:nth-child(n+3) { border-top: 0; } }

/* closer: the brand banner, full bleed; copy sits on its flat mauve third */
.closer-band { position: relative; margin-top: clamp(96px, 12vw, 160px); background: #AE6F80; color: #FBF6EF; overflow: hidden; isolation: isolate; }
.closer-img { position: absolute; z-index: -2; top: 0; right: -8%; height: 100%; width: auto; max-width: none; }
.closer-in { display: flex; align-items: center; min-height: clamp(380px, 34vw, 480px); }
.closer-copy { max-width: min(460px, 36%); }
.closer-copy .display { font-size: clamp(44px, 5.2vw, 76px); }
.closer-copy .ctas { justify-content: flex-start; }
@media (max-width: 1000px) {
  .closer-in { min-height: 0; padding: 72px 0 40px; }
  .closer-copy { max-width: none; }
  .closer-img { position: static; display: block; width: 100%; height: auto; }
}

/* ================= app pages ================= */
.app-main { padding: clamp(28px, 4vw, 44px) 0 0; }
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-h .lead { margin-top: 10px; font-size: 16.5px; max-width: 60ch; }
.page-h + .kpis, .page-h + .card { margin-top: 32px; }
.kpis.card { padding: 22px 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt { margin-top: 16px; } .mt-l { margin-top: 32px; }

/* trade */
.trade { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main order" "list order"; gap: 16px; align-items: start; }
.t-main { grid-area: main; min-width: 0; } .t-order { grid-area: order; } .t-list { grid-area: list; min-width: 0; }
.mkt-h { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.picker { position: relative; }
.picker-btn { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; text-align: left; }
.picker-h { margin: 0; line-height: 1; }
.picker-btn { font: inherit; letter-spacing: inherit; color: inherit; }
.picker-btn svg { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s var(--ease); }
.picker-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.picker-pop { position: absolute; z-index: 30; top: calc(100% + 10px); left: 0; width: min(420px, 90vw); max-height: 420px; overflow: auto; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -20px rgba(0, 0, 0, .35); }
.picker-pop[hidden] { display: none; }
.picker-pop button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14.5px; }
.picker-pop button:hover, .picker-pop button[aria-selected="true"] { background: var(--bg-2); }
.picker-pop button b { font-weight: 600; }
.picker-pop button span { color: var(--ink-3); font-size: 12.5px; }
.picker-pop button .p { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.mkt-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 20px; }
.mkt-stats > div { display: flex; flex-direction: column; gap: 4px; }
.mkt-stats .v { font: 600 17px/1.2 var(--f-ui); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mkt-stats .v.big { font-size: 26px; letter-spacing: -.025em; }
.order { position: sticky; top: 88px; padding: 20px; }
.order .tabs { width: 100%; }
.order .tabs .tab { flex: 1; justify-content: center; }
.order-body { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.order-body > label, .order-body > div > label { display: block; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.seg button { height: 40px; border: 0; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--f-ui); color: var(--ink-2); }
.seg button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.banner b { color: var(--ink); }
@media (max-width: 1080px) { .trade { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "order" "list"; } .order { position: static; } }

/* order book: bids with depth bars */
.book-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 18px 20px 6px; }
.book-sum { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.book-last { text-align: right; }
.book-last p { margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl.book td { position: relative; }
.tbl.book td:first-child { color: var(--up); font-weight: 600; }
.tbl.book tr[data-depth] td:first-child::before { content: ""; position: absolute; inset: 6px auto 6px 0; width: var(--depth, 0%); max-width: 100%; border-radius: 0 6px 6px 0; background: var(--up-soft); z-index: -1; }
.tbl.book tbody tr { isolation: isolate; }
@media (max-width: 520px) { .book-last { text-align: left; } }

/* my orders */
.orders { display: flex; flex-direction: column; }
.ord { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ord:last-child { border-bottom: 0; }
.ord-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ord-top b { font-weight: 600; }
.ord-top .tag { margin-left: auto; }
.ord-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ord-line code, .ord-key code { font: 500 12.5px/1.4 var(--f-mono); color: var(--ink); background: var(--bg-2); padding: 3px 6px; border-radius: 6px; word-break: break-all; }
.ord-line .btn { margin-left: auto; }
.ord-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.empty .btn { margin-top: 16px; }

/* stats */
.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bars .b { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: 12px; font-size: 14px; }
.bars .b span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .track { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 999px; background: var(--ink); transform-origin: left; }
.bars .b span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
@media (max-width: 520px) { .bars .b { grid-template-columns: 110px minmax(0, 1fr) 56px; } }
.netw { display: flex; flex-direction: column; }
.block { font: 400 clamp(44px, 6vw, 64px)/1 var(--f-display); letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; margin-top: 14px; }
.ledger td:nth-child(2) { text-align: left; white-space: normal; color: var(--ink-2); min-width: 260px; }
.ledger th:nth-child(2) { text-align: left; }
.ledger a { color: var(--accent); text-decoration: none; font-family: var(--f-mono); font-size: 13px; }
.ledger a:hover { text-decoration: underline; }

/* reveal on scroll (landing only); content stays visible without JS */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}
