/* ============ Nightshift tokens ============ */
:root {
  --bg: #070a12;
  --bg-2: #0a0e19;
  --surface: #0d1220;
  --surface-2: #111828;
  --line: rgba(236, 228, 210, 0.09);
  --line-2: rgba(236, 228, 210, 0.16);
  --text: #f2ede3;
  --muted: #a4a9b7;
  --dim: #7f8597; /* ≥ 4.5:1 on the page and card backgrounds, for the small print */
  --amber: #ffb23f;
  --amber-2: #ffc867;
  --amber-ink: #1a1205;
  --amber-soft: rgba(255, 178, 63, 0.1);
  --teal: #45d6c8;
  --up: #3ddc97;
  --down: #ff5c6c;
  --radius: 8px;
  --radius-sm: 6px;
  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
  --font-display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: 0.005em; line-height: 0.92; text-transform: uppercase; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--amber); color: var(--amber-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }
.feat[id] { scroll-margin-top: calc(var(--nav-h) + 36px); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; letter-spacing: 0.01em;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 0 rgba(255,178,63,0), 0 10px 30px -12px rgba(255, 178, 63, .7); }
.btn-amber:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(255,178,63,.14), 0 14px 34px -12px rgba(255, 178, 63, .8); }
.btn-amber[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: rgba(7,10,18,.35); border-color: rgba(242,237,227,.28); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-2); }
.arr { transition: transform .18s ease; display: inline-block; }
.btn:hover .arr, .more-link:hover .arr { transform: translateX(3px); }
.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--text);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.btn-sm:hover { border-color: var(--amber); color: var(--amber-2); background: var(--amber-soft); }

/* ============ nav ============ */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: rgba(7, 10, 18, .7); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand img { border-radius: 24%; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 12px; font-size: 14px; font-weight: 500; color: #d9d4c9; border-radius: 6px; transition: color .15s ease; }
.nav-links a:hover { color: var(--amber-2); }
.nav-links .x-link { padding: 8px 10px; }
.btn-nav { height: 38px; margin-left: 8px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .2s ease, top .2s ease; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; gap: 2px; padding: 10px var(--gutter) 16px;
  background: rgba(7, 10, 18, .97); border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 10px; height: 48px; border-bottom: 0; }

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 40% at 30% 62%, rgba(255,140,50,.18), transparent 70%), linear-gradient(180deg, #03050c 0%, #0b1022 45%, #1c2140 62%, #0a0e1c 64%, #04060c 100%);
}
.hero-scene { position: absolute; inset: 0; z-index: -2; }
.hero-scene canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero-scene canvas.ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 6, 12, .62) 0%, rgba(4, 6, 12, .32) 34%, rgba(4,6,12,0) 58%),
    linear-gradient(180deg, rgba(4,6,12,.35) 0%, rgba(4,6,12,0) 18%, rgba(7,10,18,0) 72%, rgba(7,10,18,.7) 90%, var(--bg) 100%);
}
.hero-inner { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 104px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(64px, 9.6vw, 148px); line-height: .86; letter-spacing: 0.002em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.hero h1 em { font-style: normal; color: var(--amber); text-shadow: 0 0 40px rgba(255, 160, 50, .35); }
.hero .lede { margin-top: 26px; max-width: 470px; font-size: clamp(16px, 1.3vw, 18px); color: #e9e4da; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tag { margin-top: 20px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #d6d0c4; }
.scene-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(242,237,227,.22);
  background: rgba(7, 10, 18, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.scene-toggle:hover { border-color: var(--amber); color: var(--amber-2); }
.scene-toggle[hidden] { display: none; }
.ico { width: 10px; height: 11px; position: relative; }
.ico-pause::before, .ico-pause::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: currentColor; }
.ico-pause::before { left: 1px; } .ico-pause::after { right: 1px; }
.ico-play::before { content: ""; position: absolute; left: 1px; top: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }

/* ============ ticker ============ */
.ticker { position: relative; height: 46px; overflow: hidden; border-top: 1px solid rgba(255,178,63,.35); border-bottom: 1px solid var(--line); background: #090c16; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #090c16, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #090c16, transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
.ticker-track.run { animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); }
.tk b { font-weight: 600; color: var(--text); }
.tk span { color: #cfc9bd; }
.tk-wait { padding: 0 24px; color: var(--dim); }

/* ============ sections ============ */
.section { position: relative; padding: 120px 0; border-top: 1px solid var(--line); }
#markets { border-top: 0; }
#features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
#transparency { background: radial-gradient(800px 400px at 100% 100%, rgba(255, 178, 63, .05), transparent 70%), var(--bg); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { margin-top: 16px; font-size: clamp(48px, 6.6vw, 88px); }
.sec-sub { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: 17px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* ============ live pill ============ */
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.live b { font-weight: 600; color: var(--muted); }
.live.on i { background: var(--up); animation: ping 2s infinite; }
.live.on b { color: var(--up); }
.live.err i { background: var(--amber); }
.live.err b { color: var(--amber); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70% { box-shadow: 0 0 0 7px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

/* ============ markets board ============ */
.board-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: inline-flex; gap: 22px; border-bottom: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; height: 40px; padding: 0 2px; border: 0; background: transparent; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber); }
.src { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.board { overflow: hidden; }
.board-top { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board-cap { font-size: 13px; color: var(--dim); }
.mtable { width: 100%; border-collapse: collapse; }
.mtable th { padding: 12px 20px; text-align: left; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.mtable td { padding: 0 20px; height: 60px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mtable tbody tr { transition: background-color .15s ease; }
.mtable tbody tr:hover { background: rgba(255, 178, 63, .035); }
.mtable .num { text-align: right; font-weight: 600; }
.mtable .act { text-align: right; width: 1%; }
.mkt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sym { font-weight: 700; font-size: 15px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: #9fe9e1; background: rgba(69, 214, 200, .08); border: 1px solid rgba(69, 214, 200, .28); white-space: nowrap; }
.lev { font-family: var(--font-mono); font-size: 12px; color: var(--dim); white-space: nowrap; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.fund small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--dim); margin-left: 4px; }
.board-note { padding: 16px 20px; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.more-link { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--amber); border-bottom: 1px solid rgba(255,178,63,.45); padding-bottom: 2px; }
.flash-up { animation: flashUp 1s ease; }
.flash-down { animation: flashDown 1s ease; }
@keyframes flashUp { 0% { background: rgba(61,220,151,.22); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(255,92,108,.22); } 100% { background: transparent; } }
.skel { display: inline-block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, rgba(242,237,227,.05), rgba(242,237,227,.12), rgba(242,237,227,.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ features ============ */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feat-flip .feat-copy { order: 2; }
.feat-copy { max-width: 480px; }
.feat-n { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--amber); }
.feat-copy h3 { margin-top: 14px; font-size: clamp(36px, 3.6vw, 52px); }
.feat-copy p:not(.feat-n) { margin-top: 16px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.feat-demo { padding: 16px; }
.demo-note { margin-top: 14px; font-size: 12.5px; color: var(--dim); line-height: 1.6; }
.kv-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* 01 find */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line-2); color: var(--muted); }
.search:focus-within { border-color: var(--amber); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search input::placeholder { color: var(--dim); }
.find-list { margin-top: 8px; max-height: 336px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(242,237,227,.18) transparent; }
.find-list li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.find-list li:last-child { border-bottom: 0; }
.star { flex: none; width: 36px; height: 52px; border: 0; background: transparent; color: var(--dim); font-size: 16px; display: grid; place-items: center; }
.star:hover, .star[aria-pressed="true"] { color: var(--amber); }
.find-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding-right: 8px; }
.find-row:hover .sym { color: var(--amber-2); }
.find-row .px { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
.find-row .ch { width: 64px; text-align: right; font-family: var(--font-mono); font-size: 12.5px; }
.find-empty { padding: 18px 6px; color: var(--dim); font-size: 14px; }

/* 02 calc */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field-l { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
select {
  height: 44px; padding: 0 36px 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffb23f' stroke-width='2.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none; font-weight: 600; font-size: 15px;
}
select option { background: #0d1220; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg button { height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg); font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s ease; }
.seg button:hover:not([disabled]) { color: var(--text); border-color: rgba(242,237,227,.35); }
.seg button.on { color: var(--amber-2); background: var(--amber-soft); border-color: var(--amber); }
.seg button[disabled] { opacity: .3; cursor: not-allowed; }
.kv { margin-top: 4px; padding: 6px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-size: 14px; color: var(--muted); }
.kv dd { font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; text-align: right; }
.warn { color: var(--amber); }

/* 03 positions */
.pos-form { display: flex; gap: 8px; }
.pos-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg); outline: 0; font-family: var(--font-mono); font-size: 13.5px; }
.pos-form input::placeholder { font-family: var(--font-body); font-size: 15px; color: var(--dim); }
.pos-form input:focus { border-color: var(--amber); }
.pos-form input[aria-invalid="true"] { border-color: var(--down); }
.pos-form .btn { height: 46px; }
.pos-out:not(:empty) { margin-top: 12px; }
.pos-msg { padding: 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pos-msg.err { color: var(--amber); border-color: rgba(255, 178, 63, .3); }
.pos-card { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.pos-card + .pos-card { margin-top: 8px; }
.pos-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.side { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.side.long { color: var(--up); background: rgba(61,220,151,.1); }
.side.short { color: var(--down); background: rgba(255,92,108,.1); }
.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pos-grid span { display: block; font-size: 11.5px; color: var(--dim); }
.pos-grid b { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }
.feat-demo > .kv-title { margin-top: 16px; padding: 0 2px 6px; }
.explain div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 11px 2px; border-top: 1px solid var(--line); }
.explain dt { font-weight: 600; font-size: 14px; }
.explain dd { font-size: 14px; color: var(--muted); }

/* 04 execution */
.stages { display: grid; gap: 4px; }
.stages li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; transition: background-color .4s ease, border-color .4s ease; }
.stages b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); transition: all .4s ease; }
.stages strong { display: block; font-size: 15px; }
.stages span { display: block; font-size: 13px; color: var(--muted); }
.stages li.done b { color: var(--amber); border-color: rgba(255,178,63,.5); }
.stages li.cur { background: var(--amber-soft); border-color: rgba(255, 178, 63, .35); }
.stages li.cur b { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); box-shadow: 0 0 18px -2px rgba(255,178,63,.7); }
.tape-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 14px 2px 10px; border-top: 1px solid var(--line); }
.tape-head .live { margin-left: auto; }
.tape-pick { display: inline-flex; gap: 4px; }
.tape-pick button { height: 26px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.tape-pick button.on { color: var(--amber-2); border-color: var(--amber); background: var(--amber-soft); }
.tape li { display: grid; grid-template-columns: 74px auto 1fr auto; align-items: center; gap: 12px; height: 42px; padding: 0 2px; border-top: 1px solid var(--line); font-size: 14px; }
.tape li.new { animation: tapeIn .6s ease; }
@keyframes tapeIn { from { background: rgba(255,178,63,.1); } to { background: transparent; } }
.tape .t { font-family: var(--font-mono); font-size: 12.5px; color: var(--dim); }
.tape .sd { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; }
.tape .p { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.tape-empty { padding: 14px 2px; color: var(--dim); font-size: 14px; }

/* ============ steps ============ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.steps li { padding: 22px 18px 24px; position: relative; transition: border-color .2s ease; }
.steps li:hover { border-color: rgba(255,178,63,.35); }
.steps b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: .9; color: var(--amber); }
.steps h3 { margin-top: 16px; font-size: 24px; line-height: 1; }
.steps p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ transparency ============ */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tgrid article { padding: 24px; }
.tgrid h3 { font-size: 26px; line-height: 1; }
.tgrid p { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.status-card { border-color: rgba(255, 178, 63, .28); }
.status { margin-top: 10px; }
.status div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.status div:last-child { border-bottom: 0; }
.status dt { font-size: 14px; color: var(--muted); }
.status dd { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 500; font-size: 13px; text-align: right; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--dim); }
.dot.ok { background: var(--up); box-shadow: 0 0 8px rgba(61,220,151,.6); }
.dot.wait { background: var(--amber); }

/* ============ token ============ */
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.token-card { padding: 20px; }
.token-id { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.token-id img { border-radius: 24%; }
.token-id strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: .02em; }
.token-id span { font-size: 13.5px; color: var(--muted); }
.pill { margin-left: auto; align-self: flex-start; padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 11.5px !important; font-weight: 500; white-space: nowrap; color: var(--amber) !important; background: var(--amber-soft); border: 1px solid rgba(255,178,63,.3); }
.pill.ok { color: var(--up) !important; background: rgba(61,220,151,.1); border-color: rgba(61,220,151,.35); }
.ca-box { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ca { margin-top: 8px; font-family: var(--font-mono); font-weight: 600; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.4; word-break: break-all; color: var(--amber-2); }
.ca.placeholder { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--muted); }
.ca-actions { display: flex; gap: 8px; margin-top: 14px; }
.ca-actions[hidden] { display: none; }
.rows div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows dt { font-size: 14px; color: var(--muted); }
.rows dd { font-size: 14px; font-weight: 600; }
.rows dd small { display: block; font-weight: 400; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.token-card > .kv-title { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fine { margin-top: 24px; max-width: 760px; font-size: 13px; color: var(--dim); line-height: 1.6; }

/* ============ CTA ============ */
.cta { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; isolation: isolate; text-align: center; border-top: 1px solid var(--line); }
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(7,10,18,.35) 26%, rgba(7,10,18,.3) 62%, var(--bg) 100%),
    var(--shot, radial-gradient(60% 50% at 50% 60%, rgba(255,140,50,.2), transparent 70%), linear-gradient(180deg, #03050c 0%, #0b1022 50%, #1c2140 66%, #0a0e1c 70%, #04060c 100%)) center 60% / cover no-repeat;
}
.cta-inner { display: grid; justify-items: center; gap: 14px; }
.cta h2 { font-size: clamp(72px, 12vw, 168px); line-height: .85; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.cta p { font-family: var(--font-mono); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.cta .btn { margin-top: 14px; }

/* ============ footer ============ */
.foot { padding: 64px 0 40px; border-top: 1px solid var(--line); background: #05070d; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 300px; font-size: 14px; color: var(--muted); }
.foot-ca { font-family: var(--font-mono); font-size: 12.5px !important; word-break: break-all; }
.foot-ca b { color: var(--amber); }
.foot-x { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.foot-x:hover { color: var(--amber-2); }
.foot-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot ul a:hover { color: var(--amber-2); }
.foot-fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 12.5px; color: var(--dim); line-height: 1.6; }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links, .btn-nav { display: none; }
  .menu-btn { display: block; }
  .feat { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feat-flip .feat-copy { order: 0; }
  .feat-copy { max-width: 640px; }
  .token-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-h: 58px; }
  .brand { font-size: 23px; }
  .section { padding: 84px 0; }
  .hero { align-items: flex-end; }
  .hero-inner { padding-bottom: 84px; }
  .hero h1 { font-size: clamp(56px, 17vw, 84px); }
  .hero-shade { background: linear-gradient(180deg, rgba(4,6,12,.3) 0%, rgba(4,6,12,0) 22%, rgba(4,6,12,.2) 45%, rgba(4,6,12,.78) 70%, rgba(7,10,18,.95) 100%); }
  .scene-toggle { right: 16px; bottom: 16px; height: 34px; padding: 0 12px; }
  .ticker { height: 42px; }
  .tabs { gap: 16px; }
  .tabs button { font-size: 13.5px; }
  .hide-sm { display: none; }
  .mtable th, .mtable td { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .mtable th:first-child, .mtable td:first-child { padding-left: 12px; }
  .mtable th:last-child, .mtable td:last-child { padding-right: 12px; }
  .mtable td { height: 54px; }
  .mtable .sym { font-size: 14px; }
  .mtable .btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
  .board-top { padding: 12px; }
  .board-cap { display: none; }
  .board-note { padding: 14px 12px; }
  .lev { display: none; }
  .feat-n { font-size: 52px; }
  .steps { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 0; }
  .explain div { grid-template-columns: 1fr; gap: 2px; }
  .rows div { grid-template-columns: 1fr; gap: 2px; }
  .pos-form { flex-direction: column; }
  .pos-grid { grid-template-columns: repeat(2, 1fr); }
  .tape li { grid-template-columns: 64px auto 1fr auto; gap: 8px; }
  .cta { min-height: 480px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .chip { display: none; }
  .tape .chip, .pos-top .chip { display: inline-flex; }
  .mtable td { font-size: 13px; }
  .mtable .sym { font-size: 13.5px; }
  .find-row .ch { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .live.on i, .skel { animation: none; }
  .ticker-track.run { animation: none; }
  .ticker { overflow-x: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
