/* Hallmark · macrostructure: orbit-desk (hero + action desk, sidebar library sheet, giant personal numeral, light sheet, ring footer) · inspo: Hyperiux Vault */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 */
@font-face { font-family: "General Sans"; src: url(/assets/fonts/general-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(/assets/fonts/general-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url(/assets/fonts/general-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0B0F0D;
  --panel: #121815;
  --line: #1F2A24;
  --green: #02A65F;
  --green-hi: #2BD487;
  --ink: #07110C;
  --cream: #EDE6D6;
  --mist: #8D9A92;
  --paper: #F1F0EA;
  --paper-line: #DEDDD3;
  --stone: #5E655F;
  --warn: #E0A43A;
  --line-hover: #2f4237;
  --paper-row: #E7E6DE;
  --paper-pick: #E2EEE6;
  --green-wash: rgba(2, 166, 95, .1);
  --panel-glass: rgba(18, 24, 21, .86);
  --night-glass: rgba(11, 15, 13, .82);
  --font-display: "General Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --pad: clamp(18px, 3.2vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--night); color: var(--cream); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--font-display); overflow-x: clip; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
.go { color: var(--green); }
.num, .rows, .ro-line strong { font-variant-numeric: tabular-nums; }

/* boot: best APY counting inside the rings */
.boot { position: fixed; inset: 0; z-index: 60; background: var(--night); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot-read { position: relative; text-align: center; }
.boot-num { display: block; font-size: clamp(56px, 8vw, 120px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.boot-unit { color: var(--mist); font-size: 15px; }

/* header */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); transition: background .4s, backdrop-filter .4s; }
.topbar.scrolled { background: var(--night-glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: 22px; font-size: 14px; color: var(--mist); }
.links a { text-decoration: none; transition: color .2s; }
.links a:hover { color: var(--cream); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--cream); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--green); color: var(--green-hi); }
.ca-chip { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--mist); cursor: pointer; white-space: nowrap; }
.ca-chip.live { color: var(--cream); font-family: var(--font-mono); font-size: 12px; }
.buy { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; white-space: nowrap; }
.buy[aria-disabled="true"] { color: var(--mist); pointer-events: none; }
.connect { height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--green); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.connect.on { background: var(--panel); color: var(--cream); border: 1px solid var(--line); font-family: var(--font-mono); font-weight: 500; font-size: 12px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 440px); align-items: end; gap: clamp(24px, 4vw, 80px); padding: 120px var(--pad) clamp(28px, 5vh, 64px); overflow: hidden; isolation: isolate; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-copy { max-width: 1180px; padding-bottom: 6px; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(40px, 5.5vw, 118px); line-height: 1.0; letter-spacing: -.035em; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: inline-block; }
.lede { margin: 26px 0 0; max-width: 520px; color: var(--mist); font-size: clamp(15px, 1.1vw, 18px); }

.desk { grid-template-columns: minmax(0, 1fr); min-width: 0; background: var(--panel-glass); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.desk-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 9px; border-radius: 9px; cursor: pointer; color: var(--mist); font-weight: 500; transition: background .25s, color .25s; }
.tab.on { background: var(--panel); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.field { display: block; background: var(--night); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .2s; }
.field:focus-within { border-color: var(--green); }
.field-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--mist); }
.max { border: 0; background: none; color: var(--mist); cursor: pointer; font-size: 13px; padding: 0; }
.max:hover { color: var(--green-hi); }
.field-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 38px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.unit { font-weight: 500; color: var(--mist); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick { text-align: left; border: 1px solid var(--line); background: var(--night); border-radius: 12px; padding: 9px 11px; cursor: pointer; transition: border-color .2s, background .2s; }
.pick b { display: block; font-weight: 600; font-size: 14px; }
.pick span { font-size: 13px; color: var(--green-hi); font-variant-numeric: tabular-nums; }
.pick[aria-checked="true"] { border-color: var(--green); background: var(--green-wash); }
.pick:hover { border-color: var(--line-hover); }
.pick.more { display: flex; align-items: center; }
.pick.more select { width: 100%; background: transparent; border: 0; color: var(--cream); font: inherit; font-size: 14px; outline: none; cursor: pointer; }
.pick.more select option { background: var(--panel); }
.readout { display: grid; gap: 7px; padding: 4px 2px; }
.ro-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--mist); }
.ro-line strong { color: var(--cream); font-weight: 500; text-align: right; }
.ro-line.small { font-size: 13px; }
.ro-line.small span:last-child { text-align: right; color: var(--cream); opacity: .8; }
.go-btn { position: relative; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; width: 100%; padding: 15px 18px; border-radius: 12px; border: 0; background: var(--green); color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; isolation: isolate; }
.go-btn::before { content: ""; position: absolute; inset: 0; background: var(--green-hi); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: -1; }
.go-btn:hover::before { transform: scaleX(1); }
.go-btn[disabled] { opacity: .55; cursor: not-allowed; }
.go-btn[disabled]::before { display: none; }
.go-btn.small { width: auto; padding: 13px 22px; }
.desk-note { margin: 0; font-size: 12.5px; color: var(--mist); }
.desk-note a { color: var(--cream); }
.desk-note.bad { color: var(--warn); }

/* board */
.board { padding: clamp(80px, 12vh, 150px) var(--pad) 40px; }
.board-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.board h2, .how h2, .foot h2 { margin: 0; font-weight: 500; font-size: clamp(34px, 4.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; }
.board-meta { margin: 0; color: var(--mist); font-size: 14px; }
.board-meta a { color: var(--cream); }
.board-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; }
.rail { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 4px; align-self: start; position: sticky; top: 84px; }
.rail-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 11px; cursor: pointer; color: var(--mist); font-weight: 500; transition: background .2s, color .2s; }
.rail-item svg { width: 18px; height: 18px; flex: none; }
.rail-item.on, .rail-item:hover { background: var(--night); color: var(--cream); }
.rail-item.on svg { color: var(--green-hi); }
.rail-count { margin-left: auto; font-size: 12px; color: var(--mist); font-variant-numeric: tabular-nums; }
.rail-note { margin: 10px 12px 6px; font-size: 13px; color: var(--mist); }
.sheet { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 10px clamp(10px, 1.6vw, 22px) 16px; min-height: 420px; }
.sheet-head, .row { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr 1fr 132px; gap: 14px; align-items: center; }
.sheet-head { padding: 14px 12px; font-size: 13px; color: var(--stone); border-bottom: 1px solid var(--paper-line); }
.rows { list-style: none; margin: 0; padding: 0; font-family: var(--font-display); }
.row { padding: 16px 12px; border-bottom: 1px solid var(--paper-line); border-radius: 12px; transition: background .25s, transform .25s var(--ease); }
.row:hover { background: var(--paper-row); }
.row.picked { background: var(--paper-pick); }
.tok b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tok span { font-size: 13px; color: var(--stone); }
.apy { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.apy small { font-size: 14px; color: var(--stone); }
.muted { color: var(--stone); font-size: 16px; font-variant-numeric: tabular-nums; }
.row-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-act button, .row-act .ext { border: 0; background: var(--ink); color: var(--cream); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.row-act button:hover, .row-act .ext:hover { background: var(--green); color: var(--ink); }
.row-act .src { font-size: 12px; color: var(--stone); }
.row-empty { padding: 40px 12px; color: var(--stone); }

/* scan + tracker */
.scan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); padding: clamp(80px, 14vh, 170px) var(--pad); align-items: start; }
.giant { margin: 0; font-weight: 500; font-size: clamp(88px, 14vw, 260px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.giant small { display: inline-block; margin-left: .25em; font-size: 18px; letter-spacing: 0; color: var(--green-hi); vertical-align: top; margin-top: .6em; }
.scan-earn { font-size: clamp(18px, 1.6vw, 26px); max-width: 30ch; margin: 22px 0 0; color: var(--cream); line-height: 1.3; }
.scan-earn em { font-style: normal; color: var(--green-hi); }
.peek { display: flex; gap: 8px; margin-top: 26px; max-width: 520px; }
.peek input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; font-family: var(--font-mono); font-size: 13px; }
.peek input:focus { border-color: var(--green); }
.peek button { border: 1px solid var(--line); background: var(--night); border-radius: 12px; padding: 0 18px; cursor: pointer; font-weight: 500; }
.peek button:hover { border-color: var(--green); }
.track { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2vw, 28px); }
.track h3 { margin: 0 0 8px; font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.track-empty { color: var(--mist); margin: 0; }
.pos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.pos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; background: var(--night); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pos .p-name { font-weight: 600; }
.pos .p-earn { text-align: right; font-weight: 500; color: var(--green-hi); font-variant-numeric: tabular-nums; }
.pos .p-sub { grid-column: 1 / -1; font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.share-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share { border: 0; background: var(--green); color: var(--ink); padding: 11px 16px; border-radius: 11px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 15px; }
.share.ghost { background: none; color: var(--cream); border: 1px solid var(--line); font-weight: 500; }
.share-preview { width: 100%; height: auto; margin-top: 16px; border-radius: 12px; border: 1px solid var(--line); }

/* how */
.how { padding: 0 var(--pad) clamp(70px, 12vh, 140px); }
.how-sheet { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(28px, 5vw, 80px); }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); margin-top: clamp(28px, 5vw, 64px); }
.how-item { border-top: 1px solid var(--paper-line); padding-top: 18px; }
.how-item h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.how-item p { margin: 0; color: var(--stone); }
.fee-plain { margin: clamp(28px, 4vw, 52px) 0 0; font-size: 17px; max-width: 60ch; }

/* footer */
.foot { position: relative; overflow: hidden; padding: clamp(90px, 16vh, 200px) var(--pad) 40px; isolation: isolate; border-top: 1px solid var(--line); }
.foot-orbit { z-index: -1; opacity: .9; }
.foot-inner { display: grid; gap: 28px; }
.foot h2 { max-width: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 24px; margin-top: 40px; }
.foot-cols h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--mist); }
.foot-cols a { display: block; text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot-cols a:hover { color: var(--green-hi); }
.nfa { margin: 30px 0 0; font-size: 13px; color: var(--mist); max-width: 70ch; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; z-index: 70; transition: opacity .3s, transform .4s var(--ease); max-width: min(92vw, 520px); font-size: 14px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--green-hi); }

/* responsive */
@media (max-width: 1100px) {
  .links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 100px; }
  .hero-copy { padding-top: 8vh; }
  .desk { max-width: 520px; }
  .board-shell { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .rail-note { display: none; }
  .scan { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ca-chip, .buy { display: none; }
  .topbar { gap: 8px; }
  .sheet-head, .row { grid-template-columns: minmax(0, 1.3fr) 1fr 104px; }
  .hide-s { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .field input { font-size: 32px; }
  .picks { grid-template-columns: 1fr 1fr; }
  .icon-btn { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.ro-line.small span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-copy, .hero h1 { min-width: 0; }
[hidden] { display: none !important; }
.foot .go-btn.small { display: inline-flex; width: auto; justify-self: start; align-self: start; padding-inline: 28px; }
.giant.wait #idleNum { color: var(--stone); }
.ro-line strong { font-size: 16px; }

h1, h2, h3 { overflow-wrap: break-word; min-width: 0; font-style: normal; }

button:active, .go-btn:active, .buy:active, .connect:active, .icon-btn:active, .pick:active, .tab:active, .rail-item:active { transform: translateY(1px); }
button:disabled, .go-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.buy[aria-disabled="true"] { opacity: .7; }
input::placeholder { color: var(--mist); opacity: 1; }
input:disabled { opacity: .5; cursor: not-allowed; }
