:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #121212;
  --panel-2: #191919;
  --panel-3: #222;
  --line: rgb(255 255 255 / .075);
  --line-2: rgb(255 255 255 / .14);
  --ink: #fff;
  --muted: rgb(255 255 255 / .55);
  --faint: rgb(255 255 255 / .36);
  --ok: oklch(0.8 0.16 152);
  --warn: oklch(0.83 0.14 80);
  --bad: oklch(0.7 0.18 25);
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rail: 64px;
  --top: 60px;
  --z-sticky: 10;
  --z-rail: 20;
  --z-dropdown: 30;
  --z-modal: 40;
  --z-toast: 50;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-feature-settings: 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- rail ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: var(--z-rail);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0 16px;
  border-right: 1px solid var(--line); background: var(--bg);
}
.rail-logo { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; color: #fff; }
.rail-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rail-link {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: rgb(255 255 255 / .82); transition: background .2s, color .2s;
}
.rail-link:hover { background: var(--panel-2); color: #fff; }
.rail-link.is-active { color: #fff; }
.rail-link.is-active svg { stroke-width: 2.4; }
.rail-link::after, .rail-foot::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; translate: -4px -50%;
  background: #fff; color: #0a0a0a; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 8px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s var(--ease);
}
.rail-link:hover::after, .rail-foot:hover::after { opacity: 1; translate: 0 -50%; }
.rail-foot {
  position: relative; margin-top: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-3); color: #fff; transition: background .2s;
}
.rail-foot:hover { background: #2c2c2c; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: var(--z-sticky); margin-left: var(--rail); height: var(--top);
  background: rgb(10 10 10 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 max(20px, 4vw); }
.top-logo { display: none; color: #fff; }
.search {
  position: relative; flex: 0 1 440px; min-width: 0; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 12px;
  background: #0e0e0e; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted);
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: rgb(255 255 255 / .35); background: #121212; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; color: #fff; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  font: 500 11px var(--mono); color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-dropdown);
  background: #141414; border: 1px solid var(--line-2); border-radius: 16px; padding: 6px;
  box-shadow: 0 24px 60px rgb(0 0 0 / .6); max-height: 70vh; overflow: auto;
}
.sr-head { margin: 6px 10px 4px; font: 500 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.sr-empty { margin: 12px; font-size: 14px; color: var(--muted); }
.sr-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: #fff; }
.sr-row:hover, .sr-row.is-sel { background: var(--panel-3); }
.sr-img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sr-img.round { border-radius: 50%; }
.sr-main { flex: 1; min-width: 0; display: grid; font-size: 14px; }
.sr-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-main small, .sr-side small { color: var(--muted); font-size: 12px; }
.sr-side { font-size: 13px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.mark { flex: none; object-fit: contain; }
.top-logo { flex: none; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; min-height: 36px; flex: none; border-radius: 8px; color: var(--muted); }
.social-link:hover { background: var(--panel-2); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn-light { background: #fff; color: #0a0a0a; }
.btn-light:hover { background: rgb(255 255 255 / .86); }
.btn-ghost { background: #0a0a0a; border-color: var(--line-2); color: #fff; }
.btn-ghost:hover { background: var(--panel-2); border-color: rgb(255 255 255 / .24); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.wallet-btn.is-connected { font-family: var(--mono); font-size: 13px; }
.wallet-btn.is-connected::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- layout ---------- */
main, .foot { margin-left: var(--rail); }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(40px, 7vw, 76px) 0 clamp(36px, 5vw, 56px); }
.hero h1 { font-size: clamp(40px, 6.2vw, 66px); line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 .w { display: inline-block; animation: word-in .9s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
.hero-sub {
  max-width: 540px; margin: 20px auto 0; font-size: 18px; line-height: 1.55; color: var(--muted);
  animation: fade-up .9s var(--ease) .45s both;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 7px; vertical-align: middle;
  border: 1px solid var(--line-2); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 500; background: #0e0e0e;
}
.chip svg { width: 15px; height: 15px; }
.hero-cta { display: flex; justify-content: center; gap: 10px; margin-top: 32px; animation: fade-up .9s var(--ease) .55s both; }
.preview-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 4px 10px; border-radius: 999px;
  border: 1px dashed var(--line-2); font: 500 12px var(--mono); color: var(--muted);
}
.preview-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

@keyframes word-in { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile {
  position: relative; grid-column: span 2; height: 300px; overflow: hidden; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  animation: fade-up 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 500ms);
  transition: border-color .3s, transform .5s var(--ease);
}
.tile.wide { grid-column: span 3; height: 340px; }
.tile:hover { border-color: rgb(255 255 255 / .16); }
.tile-foot {
  position: absolute; inset: auto 0 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 44px 18px 15px; font-size: 14px; font-weight: 500;
  background: linear-gradient(to bottom, transparent, rgb(18 18 18 / .92) 55%, var(--panel));
}
.tile-foot .open { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; transition: color .2s; }
.tile-foot .open span { transition: transform .3s var(--ease); }
.tile:hover .tile-foot .open { color: #fff; }
.tile:hover .tile-foot .open span { transform: translateX(3px); }
.tile > a.cover { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.fade-top::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 40px; z-index: 2; pointer-events: none;
  background: linear-gradient(var(--panel), transparent);
}

/* explore columns */
.cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 12px; }
.col { overflow: hidden; }
.col-track { display: flex; flex-direction: column; gap: 10px; animation: scroll-y var(--dur, 40s) linear infinite; }
.col.down .col-track { animation-direction: reverse; }
.tile:hover .col-track, .tile:hover .feed-track, .tile:hover .spec-track { animation-play-state: paused; }
@keyframes scroll-y { to { transform: translateY(calc(-50% - 5px)); } }
.mini { background: var(--panel-2); border-radius: 14px; padding: 6px; }
.mini-img { position: relative; aspect-ratio: 1; border-radius: 10px; background-size: cover; overflow: hidden; }
.mini-age, .mini-who {
  position: absolute; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px;
  background: rgb(10 10 10 / .72); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 500;
}
.mini-age { top: 6px; right: 6px; color: rgb(255 255 255 / .8); }
.mini-who { bottom: 6px; left: 6px; padding-left: 2px; max-width: calc(100% - 12px); }
.mini-who img { width: 16px; height: 16px; border-radius: 50%; }
.mini-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-name { margin: 7px 3px 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-name small { color: var(--faint); font-size: 10.5px; margin-left: 3px; }
.mini-stats { margin: 1px 3px 3px; font-size: 11px; color: var(--faint); white-space: nowrap; }
.mini-stats b { color: #fff; font-weight: 600; font-size: 12.5px; margin-right: 2px; }

/* payout feed */
.feed { position: absolute; inset: 0; overflow: hidden; padding: 0 12px; }
.feed-track { display: flex; flex-direction: column; gap: 8px; animation: scroll-y 46s linear infinite; }
.pay {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--panel-2);
  border: 1px solid rgb(255 255 255 / .03);
}
.pay-amt { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pay-to { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-to b { color: #fff; font-weight: 500; }
.pay-main { flex: 1; min-width: 0; }
.pay-flow { display: flex; align-items: center; gap: 7px; color: var(--faint); }
.pay-flow img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel-2); }
.pay-flow .home-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a0a0a; }
.pay-time { width: 30px; text-align: right; font-size: 11.5px; color: var(--faint); align-self: flex-end; }

/* analytics */
.an { position: absolute; inset: 0; padding: 18px; }
.an-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 2px; position: relative; z-index: 5; }
.tabs button {
  border: 0; background: none; padding: 3px 8px; border-radius: 999px; font: 500 11.5px var(--mono); color: var(--faint);
  transition: background .2s, color .2s;
}
.tabs button[aria-selected='true'] { background: var(--panel-3); color: #fff; }
.odo { display: flex; margin-top: 8px; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; height: 1.1em; overflow: hidden; }
.odo-d { display: inline-block; height: 1.1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.3s var(--ease); transition-delay: calc(var(--k) * 40ms); }
.odo-strip span { height: 1.1em; }
.an-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }
.chart { position: absolute; left: 0; right: 0; bottom: 36px; height: 58%; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .reveal { animation: wipe 1.6s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.chart .grid line { stroke: rgb(255 255 255 / .05); }

/* launch demo */
.ld { position: absolute; inset: 0; padding: 18px; }
.ld-label { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.ld-input {
  margin-top: 12px; height: 42px; border-radius: 999px; border: 2px solid rgb(255 255 255 / .9); display: flex; align-items: center;
  gap: 8px; padding: 0 14px; color: var(--muted); font-size: 15px;
}
.ld-input .typed { color: #fff; }
.ld-input .caret { width: 1.5px; height: 18px; background: #fff; margin-left: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ld-list { margin-top: 10px; display: grid; gap: 2px; }
.ld-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; font-size: 13.5px;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease), background .25s;
}
.ld-row.in { opacity: 1; transform: none; }
.ld-row.pick { background: var(--panel-3); }
.ld-row img { width: 30px; height: 30px; border-radius: 50%; }
.ld-row small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.ld-pay {
  position: absolute; left: 18px; right: 18px; top: 90px; padding: 14px; border-radius: 18px; background: var(--panel-2);
  border: 1px solid var(--line); opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .5s, transform .7s var(--ease);
}
.ld-pay.in { opacity: 1; transform: none; }
.ld-pay-who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ld-pay-who img { width: 36px; height: 36px; border-radius: 50%; }
.ld-pay-who small { display: block; color: var(--muted); font-size: 12px; }
.ld-amt { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 12px; }
.ld-sent { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); margin-top: 2px; }

/* docs spec */
.spec { position: absolute; inset: 0; overflow: hidden; padding: 0 18px; font: 400 11.5px/1.65 var(--mono); }
.spec-track { animation: scroll-y 38s linear infinite; }
.spec h4 { margin: 18px 0 4px; font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--faint); }
.spec h5 { margin: 0 0 6px; font: 500 15px var(--font); color: #fff; }
.spec p { margin: 0; color: var(--muted); font-family: var(--font); font-size: 12.5px; line-height: 1.5; }
.spec table { border-collapse: collapse; width: 100%; margin-top: 10px; }
.spec th { text-align: left; font-weight: 500; color: var(--faint); padding: 2px 0; font-size: 10.5px; }
.spec td { padding: 2px 10px 2px 0; color: #fff; }
.spec td:first-child, .spec td:nth-child(2) { color: var(--muted); }

/* ---------- lists below the fold ---------- */
.lists { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin-top: 64px; padding-bottom: 80px; }
.list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.list-head h2 { font-size: 26px; letter-spacing: -0.02em; margin-right: 4px; }
.pills { display: flex; gap: 6px; }
.pill {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #0e0e0e;
  font-size: 13px; font-weight: 500; color: rgb(255 255 255 / .8); transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { color: #fff; border-color: rgb(255 255 255 / .26); }
.pill[aria-pressed='true'] { background: var(--panel-3); color: #fff; border-color: rgb(255 255 255 / .3); }
.pager { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 500 12.5px var(--mono); color: var(--muted); }
.pager button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: #fff; display: grid; place-items: center;
  transition: background .2s, opacity .2s;
}
.pager button:hover { background: var(--panel-2); }
.pager button:disabled { opacity: .3; pointer-events: none; }

.tok-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 400px; }
.tok {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  transition: border-color .25s, transform .4s var(--ease); animation: fade-up .6s var(--ease) both; animation-delay: calc(var(--i) * 30ms);
}
.tok:hover { border-color: rgb(255 255 255 / .18); transform: translateY(-2px); }
.tok .mini-img { border-radius: 12px; }
.tok-badge {
  position: absolute; top: 7px; left: 7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgb(10 10 10 / .72); backdrop-filter: blur(6px); color: #fff;
}
.tok-name { display: flex; gap: 5px; align-items: baseline; margin: 9px 3px 0; font-size: 13.5px; font-weight: 500; }
.tok-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-name small { color: var(--faint); font-size: 11px; font-weight: 500; flex: none; }
.tok-mc { margin: 2px 3px 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tok-mc small { font-size: 11px; color: var(--faint); font-weight: 500; }
.tok-paid { margin: 0 3px 3px; font-size: 12px; color: var(--muted); }

.people { display: grid; gap: 12px; }
.person {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  animation: fade-up .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms);
}
.person-banner { height: 104px; background-size: cover; background-position: center; }
.person-body { padding: 0 16px 16px; position: relative; }
.person-av { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--panel); margin-top: -34px; }
.person-name { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 18px; font-weight: 600; }
.person-handle { font-size: 13px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 2px 8px; border-radius: 7px;
  background: var(--panel-3); font-size: 11.5px; font-weight: 500; color: rgb(255 255 255 / .75);
}
.person-stats { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.person-stats b { color: #fff; font-weight: 600; font-size: 15px; margin-right: 3px; }
.progress { margin-top: 12px; }
.progress-bar { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: #fff; border-radius: inherit; transform-origin: left; animation: grow 1.4s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

.tok-grid:has(.empty) { min-height: 0; }
.cols:has(.empty) { display: block; padding: 20px 18px; }
.cols .empty { margin: 0 !important; }
.empty { grid-column: 1 / -1; align-self: start; padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 18px; }
.skeleton { background: linear-gradient(90deg, var(--panel) 0 40%, var(--panel-2) 50%, var(--panel) 60% 100%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 18px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px max(20px, 4vw) 40px; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .04em; }
.foot nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-left: auto; font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: #fff; }
.foot-legal { max-width: 820px; font-size: 12.5px; line-height: 1.6; color: var(--faint); margin: 18px 0 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: calc(var(--rail) + 16px); bottom: 16px; z-index: var(--z-toast); display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; font-size: 13.5px;
  background: #1a1a1a; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgb(0 0 0 / .5);
  animation: toast-in .5s var(--ease) both; transition: opacity .35s, transform .35s;
}
.toast img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.toast b { font-weight: 600; }
.toast a { text-decoration: underline; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- forms & pages ---------- */
.page { padding: clamp(32px, 5vw, 56px) 0 80px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 12px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 32px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); }
.aside { position: sticky; top: calc(var(--top) + 20px); }
.aside h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--line-2); background: radial-gradient(circle, #fff 0 2.5px, transparent 3px); }

.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.steps li { flex: 1; list-style: none; }
.steps { padding: 0; }
.step-bar { height: 4px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.step-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.steps li.done .step-bar i, .steps li.on .step-bar i { transform: scaleX(1); }
.steps li span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.steps li.on span, .steps li.done span { color: #fff; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset[hidden] { display: none; }
legend { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; padding: 0; }
.legend-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 13.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--bad); min-height: 0; }
.field .err:empty { display: none; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0e0e;
  color: #fff; font-size: 15px; outline: 0; transition: border-color .2s, background .2s;
}
textarea.input { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: rgb(255 255 255 / .55); }
.input:focus { border-color: rgb(255 255 255 / .55); background: #111; }
.input[aria-invalid='true'] { border-color: var(--bad); }
.input-affix { position: relative; }
.input-affix > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.input-affix .input { padding-left: 28px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label {
  flex: 1; min-width: 120px; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #0e0e0e; cursor: pointer; transition: border-color .2s, background .2s; font-size: 14px; font-weight: 500;
}
.seg label small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: #fff; background: var(--panel-2); }
.seg label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgb(255 255 255 / .85); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: #0e0e0e; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid #0a0a0a; border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
.check a { text-decoration: underline; }
.checks { display: grid; gap: 14px; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgb(255 80 60 / .1); border: 1px solid rgb(255 80 60 / .3); color: #ffb4a8; font-size: 14px; }
.form-error:empty { display: none; }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.review div { background: var(--panel-2); padding: 10px 14px; }
.review dt { font-size: 12px; color: var(--muted); }
.review dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }

.done-card { text-align: center; padding: 24px 8px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; color: #0a0a0a; display: grid; place-items: center; animation: pop .7s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.copy-row { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 18px auto 0; max-width: 460px; }
.copy-row code { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font: 500 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 20px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--panel-3); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--panel-3); background: var(--bg); display: grid; place-items: center; }
.timeline li.done .dot { background: #fff; border-color: #fff; color: #0a0a0a; }
.timeline li.done::before { background: #fff; }
.timeline li.now .dot { border-color: #fff; }
.timeline li.now .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.timeline li.bad .dot { border-color: var(--bad); background: var(--bad); }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.timeline b { font-weight: 500; display: block; font-size: 15px; }
.timeline small { color: var(--muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.kv div { background: var(--panel-2); border-radius: 14px; padding: 12px 14px; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 12px var(--mono); background: var(--panel-3); }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-submitted, .s-in_review { color: var(--warn); }
.s-verified, .s-active, .s-paid_off { color: var(--ok); }
.s-rejected { color: var(--bad); }

.tabs-lg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin: 28px 0 0; }
.tabs-lg button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.tabs-lg button[aria-selected='true'] { background: #fff; color: #0a0a0a; }
.addr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font: 500 13px var(--mono); overflow-wrap: anywhere; }
.addr span { flex: 1; min-width: 0; }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; color: rgb(255 255 255 / .85); }
.numbered li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; font: 500 12px var(--mono); }
.numbered li b { color: #fff; font-weight: 500; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: calc(var(--top) + 28px); align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc p { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.toc a { padding: 6px 10px; border-radius: 9px; color: var(--muted); transition: background .2s, color .2s; }
.toc a:hover { color: #fff; }
.toc a.is-on { background: var(--panel-2); color: #fff; }
.prose { max-width: 720px; }
.prose section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border: 0; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 12px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { color: rgb(255 255 255 / .75); font-size: 15.5px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--faint); }
.prose strong { color: #fff; font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font: 500 13px var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow: auto; font: 400 13px/1.6 var(--mono); color: rgb(255 255 255 / .85); }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.prose td { color: rgb(255 255 255 / .8); }
.callout { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); font-size: 14.5px; color: rgb(255 255 255 / .8); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 8px 0 0; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.admin-table td small { display: block; color: var(--muted); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-actions select, .admin-actions input { height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: #0e0e0e; font-size: 13px; }
.admin-actions input { width: 90px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tile, .tile.wide { grid-column: span 3; }
  .tile:nth-child(5) { grid-column: 1 / -1; }
  .lists { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 860px) {
  .split, .docs { grid-template-columns: 1fr; }
  .aside { position: static; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc p { width: 100%; }
}
@media (max-width: 720px) {
  :root { --rail: 0px; --top: 58px; }
  .rail {
    inset: auto 0 0 0; width: auto; height: calc(62px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: center;
    padding: 0 8px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line); background: rgb(10 10 10 / .92);
    backdrop-filter: blur(14px);
  }
  .rail-logo, .rail-foot { display: none; }
  .rail-nav { display: flex; gap: 2px; width: 100%; justify-content: space-around; }
  .rail-link::after { display: none; }
  body { padding-bottom: 70px; }
  .top-inner { padding: 0 12px; gap: 10px; }
  .top-logo { display: grid; }
  .top-actions .btn-light { display: none; }
  .search kbd { display: none; }
  .wrap { width: calc(100% - 32px); }
  .hero-sub { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile:nth-child(5) { grid-column: 1 / -1; }
  .tok-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields, .review, .kv { grid-template-columns: 1fr; }
  .toasts { left: 16px; bottom: 80px; }
  .steps li span { font-size: 11px; }
}
@media (max-width: 420px) {
  .wallet-btn { padding: 0 11px; font-size: 13px; }
  .hero-cta .btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .col-track, .feed-track, .spec-track { animation: none !important; }
}

/* Vehicle funding: the existing monochrome UI, with recorded progress. */
.garage { border:1px solid var(--line); border-radius:22px; background:var(--panel); padding:26px 32px 20px; }
.garage-top,.garage-bottom,.vehicle-heading,.vehicle-totals { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.garage-label { color:var(--muted); font-size:11px; letter-spacing:.12em; }
.fund-currencies { display:flex; padding:3px; border:1px solid var(--line); border-radius:9px; gap:2px; }
.fund-currency { background:transparent; color:var(--muted); border:0; border-radius:6px; font:inherit; font-size:12px; padding:5px 9px; cursor:pointer; }
.fund-currency[aria-pressed=true] { color:var(--ink); background:#ffffff12; }
.vehicle-heading { margin-top:18px; font-size:18px; letter-spacing:-.02em; }
.vehicle-percent { color:var(--muted); font-size:13px; letter-spacing:0; }
.vehicle-outline { display:block; width:100%; max-height:330px; margin:12px auto 6px; overflow:hidden; }
.vehicle-art-credit { text-align:right; color:var(--muted); font-size:10px; margin:0 0 16px; }
.vehicle-lines { fill:none; stroke:#eeeeee; stroke-width:2.3; stroke-linejoin:round; stroke-linecap:round; }
.vehicle-hub { stroke:#777; stroke-width:1.5; }
.vehicle-ground { fill:none; stroke:#ffffff12; stroke-width:1; }
.vehicle-totals strong { display:block; font-size:30px; font-weight:500; line-height:1.2; letter-spacing:-.04em; }
.vehicle-totals span { display:block; color:var(--muted); font-size:12px; margin-top:6px; }
.vehicle-target { text-align:right; }
.vehicle-target strong { color:var(--muted); }
.vehicle-meter { height:3px; background:#ffffff12; border-radius:3px; margin:20px 0; overflow:hidden; }
.vehicle-meter i { display:block; height:100%; background:var(--ink); }
.garage-bottom { font-size:12px; color:var(--muted); }
.garage-bottom a { color:var(--ink); white-space:nowrap; }
.funding-disclosure { color:var(--muted); font-size:12px; text-align:center; margin:14px 0 30px; }
@media(max-width:720px) {
  .garage { padding:18px; border-radius:18px; }
  .garage-label { font-size:9px; letter-spacing:.06em; }
  .vehicle-heading { font-size:16px; margin-top:22px; }
  .vehicle-percent { font-size:11px; }
  .vehicle-outline { margin:18px 0; }
  .vehicle-totals strong { font-size:26px; }
  .garage-bottom { align-items:flex-start; font-size:11px; }
}

.kv dd { overflow-wrap:anywhere; }

.loan-calculator { border:1px solid var(--line); border-radius:22px; background:var(--panel); padding:30px 32px; margin-bottom:24px; }
.calculator-intro { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:28px; }
.calculator-intro h2 { font-size:26px; line-height:1.2; font-weight:500; letter-spacing:-.03em; }
.calculator-intro p { color:var(--muted); font-size:14px; margin-top:8px; line-height:1.6; }
.calculator-badge { flex:none; padding:6px 9px; font-size:11px; border:1px solid var(--line); border-radius:6px; color:var(--muted); }
.calc-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px; }
.calc-controls { display:grid; gap:21px; min-width:0; }
.calc-field { min-width:0; }
.calc-label { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:13px; margin-bottom:9px; }
.calc-label label { color:var(--muted); }
.calc-help { color:var(--muted); font-size:12px; line-height:1.5; margin:5px 0 0; }
.calc-label output { font-variant-numeric:tabular-nums; white-space:nowrap; }
.calc-input { width:100%; height:44px; border:1px solid var(--line); border-radius:9px; background:#0b0b0b; color:var(--ink); padding:0 12px; font:inherit; font-size:15px; color-scheme:dark; }
.calc-input:focus-visible,.calc-range:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.calc-range { appearance:none; display:block; width:100%; height:28px; margin:0; background:transparent; cursor:pointer; accent-color:#fff; }
.calc-range::-webkit-slider-runnable-track { height:5px; border-radius:5px; background:#ffffff2b; }
.calc-range::-webkit-slider-thumb { appearance:none; width:20px; height:20px; border-radius:50%; background:#fff; border:3px solid #ddd; margin-top:-7.5px; box-shadow:0 2px 6px #0008; }
.calc-range::-moz-range-track { height:5px; border-radius:5px; background:#ffffff2b; }
.calc-range::-moz-range-thumb { width:16px; height:16px; border-radius:50%; background:#fff; border:2px solid #ddd; }
.calc-results { border-left:1px solid var(--line); padding:26px 0 0 36px; min-width:0; }
.calc-result-kicker { font-size:13px; color:var(--muted); }
.calc-result-value { font-size:clamp(32px,3.3vw,46px); font-weight:500; line-height:1.15; letter-spacing:-.035em; margin:10px 0; overflow-wrap:anywhere; }
.calc-result-detail { color:var(--muted); font-size:14px; line-height:1.6; }
.calc-comparison { margin-top:30px; }
.calc-comparison > div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:14px 0; border-top:1px solid var(--line); }
.calc-comparison dt { color:var(--muted); font-size:12px; }
.calc-comparison dd { text-align:right; font-size:15px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.calc-note { color:var(--muted); font-size:12px; line-height:1.7; margin:24px 0 0; max-width:90ch; }
@media(max-width:900px) {
  .loan-calculator { padding:22px 18px; border-radius:18px; }
  .calculator-intro { flex-direction:column; gap:12px; }
  .calculator-intro h2 { font-size:23px; }
  .calc-grid { grid-template-columns:1fr; gap:26px; }
  .calc-results { border-left:0; border-top:1px solid var(--line); padding:24px 0 0; }
  .calc-result-value { font-size:36px; }
}

/* Loan repayment uses the same monochrome layout and typography. */
.repayment-label { font-size:16px; font-weight:500; letter-spacing:-.01em; }
.loan-heading,.loan-totals { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.loan-heading { margin-top:28px; font-size:14px; }
.loan-heading > :last-child { color:var(--muted); font-size:12px; white-space:nowrap; }
.loan-balance { padding:36px 0 30px; text-align:center; }
.loan-balance > span,.loan-balance p,.loan-note { color:var(--muted); font-size:12px; }
.loan-balance strong { display:block; font-size:clamp(36px,5vw,58px); font-weight:500; letter-spacing:-.04em; line-height:1.2; margin:8px 0; overflow-wrap:anywhere; }
.loan-meter { height:12px; overflow:hidden; border-radius:4px; background:#ffffff0d; margin-bottom:24px; }
.loan-meter i { display:block; height:100%; background:var(--ink); }
.loan-totals > :last-child { text-align:right; }
.loan-totals strong { display:block; font-weight:500; font-size:22px; overflow-wrap:anywhere; }
.loan-totals span { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.loan-note { margin:22px 0; line-height:1.6; max-width:65ch; }
@media(max-width:720px) { .loan-heading { font-size:12px; gap:8px; } .loan-heading > :last-child { font-size:11px; } .loan-totals strong { font-size:18px; } .loan-totals span { font-size:11px; } .loan-balance { padding:30px 0; } }

/* Circular pixels trace the owner's L in the homepage background. */
.hero { position:relative; isolation:isolate; overflow:hidden; }
.hero::before { content:''; position:absolute; z-index:-1; pointer-events:none; width:430px; height:548px; top:-78px; right:-35px; background:url('/assets/loan-dots.svg') center / contain no-repeat; opacity:.24; }
@media(max-width:900px) { .hero::before { right:-105px; width:360px; height:458px; top:-36px; opacity:.18; } }
@media(max-width:540px) { .hero::before { right:-120px; top:0; width:300px; height:382px; opacity:.14; } }
