/* GOLD design system. Scepter-like: white canvas, quiet 400-weight type with tight tracking, lavender gradients,
   glass 3D, soft raised cards. Numbers in JetBrains Mono. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-opsz.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("../fonts/jbmono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --card: #fbfbfd;
  --well: #f1f1f5;
  --ink: #0e0e13;
  --ink-2: #4b4b58;
  --ink-3: #8c8c99;
  --ink-4: #b8b8c3;
  --line: rgba(14, 14, 19, 0.08);
  --accent: #6e72f2;
  --accent-2: #9f66ff;
  --accent-soft: #ebebfe;
  --pink: #ffb3ff;
  --gold: #b8892f;
  --gold-2: #e9c46a;
  --gold-soft: #f8f0dc;
  --up: #17935f;
  --up-soft: #e2f4ea;
  --down: #df5656;
  --down-soft: #fde7e7;
  --grad: linear-gradient(120deg, #fdeaff 0%, #f1e8ff 45%, #e7edff 100%);
  --grad-strong: linear-gradient(120deg, #ffb3ff 0%, #9f66ff 55%, #6e72f2 100%);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -28px rgba(32, 32, 72, 0.22), 0 2px 6px -2px rgba(32, 32, 72, 0.06);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px -14px rgba(32, 32, 72, 0.25);
  --well-shadow: inset 0 1px 2px rgba(20, 20, 50, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.8);
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-weight: 400; margin: 0; font-variation-settings: "opsz" 32; }
.display { font-size: clamp(42px, 5.6vw, 88px); line-height: 1; letter-spacing: -0.05em; }
.display .line-mask > span { white-space: nowrap; }
.h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.045em; }
.h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
.h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 560px; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.grad-text { background: var(--grad-strong); -webkit-background-clip: text; background-clip: text; color: transparent; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span { display: inline-block; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 15px; letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  box-shadow: 0 14px 30px -14px rgba(14, 14, 19, 0.55); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(14, 14, 19, 0.6); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.25); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; white-space: nowrap;
}
.chip.gray { background: var(--well); color: var(--ink-2); }
.chip.up { background: var(--up-soft); color: var(--up); }
.chip.down { background: var(--down-soft); color: var(--down); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.dark { background: var(--ink); color: #fff; }
.chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.tabs { display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--well); box-shadow: var(--well-shadow); }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(20, 20, 50, 0.25); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px; position: relative; }
.card.flat { box-shadow: none; border: 1px solid var(--line); background: #fff; }
.card.grad { background: var(--grad); box-shadow: none; }
.well { background: var(--well); border-radius: var(--r-md); box-shadow: var(--well-shadow); padding: 16px 20px; }
.stat .eyebrow { margin-bottom: 4px; }
.stat .v { font-size: 22px; letter-spacing: -0.02em; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
.demo-bar {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 16px;
  background: var(--grad); font-size: 13px; color: var(--ink-2); text-align: center;
}
.demo-bar b { font-weight: 500; color: var(--ink); }
.nav-wrap { position: sticky; top: 12px; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -18px rgba(30, 30, 70, 0.25), 0 0 0 1px var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.02em; margin-right: 12px; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: background 0.25s, color 0.25s; }
.nav-links a:hover { background: var(--well); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--well); }
.nav-links a.docs-link { display: none; }
.nav-docs[aria-current="page"] { background: var(--well); }
.btn.sm.nav-x { width: 40px; padding: 0; }
.btn svg { flex: none; }
.nav-x svg { width: 17px; height: 17px; }
.footer .btn { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-price { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 0 10px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(820px, calc(100vh - 40px)); display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.hero .display { margin: 22px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stage { position: relative; height: 640px; }
.hero-stage canvas { position: absolute; inset: -40px -40px -40px -40px; width: calc(100% + 80px) !important; height: calc(100% + 80px) !important; }
.hero-float { position: absolute; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 12px 14px; font-size: 13px; }
.hero-float.a { top: 70px; left: 0; }
.hero-float.b { bottom: 110px; right: 0; }
.hero-float .k { color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-float .v { font-size: 18px; letter-spacing: -0.02em; }
.hero-fallback { position: absolute; inset: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #f6e7c2 25%, #e9c46a 45%, #b9a1ff 75%, transparent 76%); filter: blur(0.3px); opacity: 0.9; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-top: 110px; padding-bottom: 110px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .lead { margin-top: 14px; }
.grid { display: grid; gap: 20px; }
.grid > *, .live-grid > *, .flow > *, .faq > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.feed-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }

/* live strip: price + agent + treasury */
.live-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.price-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.big-num { font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.05em; margin: 10px 0 14px; font-variation-settings: "opsz" 32; }
.mid-num { font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.04em; font-variation-settings: "opsz" 32; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* treasury card (matches the reference) */
.treasury-card .top { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.treasury-card .stats { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; align-content: start; }

/* charts */
.chart { position: relative; width: 100%; height: 300px; margin-top: 18px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .axis text { font-family: var(--mono); font-size: 12px; fill: var(--ink-3); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaGrad); }
.chart .marker circle { fill: #a9abf7; stroke: #fff; stroke-width: 2; }
.chart .marker text { font-family: var(--mono); font-size: 12px; fill: var(--accent); }
.chart .trade-dot { stroke: #fff; stroke-width: 2; }
.chart .hover-line { stroke: var(--ink-4); stroke-dasharray: 3 3; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 7px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity 0.15s; font-family: var(--mono); }
.chart.candles .wick { stroke-width: 1; }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }

/* agent status (matches the reference timeline) */
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 34px 26px minmax(110px, 170px) 1fr; align-items: center; gap: 8px; min-height: 44px; }
.step .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.step .ic i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.step.active .ic { background: rgba(110, 114, 242, 0.08); }
.step.active .ic i { background: var(--accent); animation: breathe 1.4s ease-in-out infinite; }
.step.done .ic { background: var(--up-soft); }
.step.done .ic i { display: none; }
.step.done .ic::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--up); border-bottom: 2px solid var(--up); transform: rotate(-45deg) translate(1px, -1px); }
.step .glyph { color: var(--accent); }
.step .label { font-size: 17px; letter-spacing: -0.015em; color: var(--ink-3); }
.step.done .label, .step.active .label { color: var(--ink); }
.step .detail { color: var(--ink-2); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes breathe { 50% { transform: scale(0.7); opacity: 0.6; } }

/* feed timeline */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line) 85%, transparent); }
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #d5d5dd; }
.tl-item.now::before { box-shadow: inset 0 0 0 4px var(--accent); }
.tl-item.k-open::before { box-shadow: inset 0 0 0 4px var(--up); }
.tl-item.k-close::before { box-shadow: inset 0 0 0 4px var(--gold-2); }
.tl-item.k-reject::before { box-shadow: inset 0 0 0 4px var(--down); }
.tl-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 15px; flex-wrap: wrap; }
.tl-meta .act { color: var(--ink-2); font-weight: 500; }
.tl-meta .model { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tl-meta .model i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--gold-2) 45%, var(--gold) 80%); }
.tl-body { font-size: clamp(16px, 1.5vw, 21px); line-height: 1.55; letter-spacing: -0.012em; margin-top: 10px; color: var(--ink); }
.tl-item.replay .tl-body { color: var(--ink-2); }
.tl-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 14px; margin-top: 4px; min-height: 40px; padding: 0 2px; }
.tl-toggle svg { transition: transform 0.3s var(--ease); }
.tl-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tl-detail { margin-top: 16px; }
.feed-fade { -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); max-height: 760px; overflow: hidden; }

/* analysis blocks */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); }
.tf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tf-table th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 10px 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tf-table td { padding: 12px 8px; border-top: 1px solid var(--line); font-family: var(--mono); }
.args { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.args ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.args li { padding-left: 18px; position: relative; font-size: 15px; color: var(--ink-2); }
.args li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; }
.args .bull li::before { background: var(--up); }
.args .bear li::before { background: var(--down); }
.checks { display: grid; gap: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.check:first-child { border-top: 0; }
.check .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.check.pass .mark { background: var(--up-soft); color: var(--up); }
.check.fail .mark { background: var(--down-soft); color: var(--down); }
.check .val { font-family: var(--mono); }
.check .lim { font-family: var(--mono); color: var(--ink-3); min-width: 90px; text-align: right; }
.conf { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; box-shadow: var(--well-shadow); }
.conf > i { display: block; height: 100%; border-radius: 99px; background: var(--grad-strong); transform-origin: left; }
.decision-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 56px; padding: 0 22px; border-radius: 18px; font-size: 24px; letter-spacing: -0.02em; }
.decision-badge.LONG { background: var(--up-soft); color: var(--up); }
.decision-badge.SHORT { background: var(--down-soft); color: var(--down); }
.decision-badge.HOLD, .decision-badge.CLOSE { background: var(--accent-soft); color: var(--accent); }
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; }
.news-item .t { font-size: 15px; letter-spacing: -0.01em; }
.news-item .s { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.impact { display: inline-flex; gap: 2px; align-items: end; }
.impact i { width: 4px; border-radius: 2px; background: var(--ink-4); }
.impact i.on { background: var(--gold); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 12px 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background 0.2s; cursor: pointer; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .r { text-align: right; }
.side { display: inline-flex; padding: 3px 10px; border-radius: 8px; font-size: 12px; letter-spacing: 0.04em; }
.side.LONG { background: var(--up-soft); color: var(--up); }
.side.SHORT { background: var(--down-soft); color: var(--down); }
.tag-replay { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* position */
.position-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.position-grid .well .v { font-family: var(--mono); font-size: 17px; margin-top: 2px; }
.range-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--down-soft), var(--well) 50%, var(--up-soft)); margin: 30px 0 34px; }
.range-bar .pin { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.range-bar .lbl { position: absolute; top: 18px; transform: translateX(-50%); font-size: 12px; font-family: var(--mono); color: var(--ink-3); white-space: nowrap; }
.range-bar .lbl.top { top: -24px; }

/* flow diagram */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.flow-node { position: relative; padding: 22px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); margin: 0 14px; }
.flow-node:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 2px; background: var(--accent); opacity: 0.4; }
.flow-node .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.flow-node .t { font-size: 16px; letter-spacing: -0.01em; margin: 8px 0 4px; }
.flow-node .d { font-size: 13px; color: var(--ink-3); }
.flow-node .v { font-family: var(--mono); font-size: 18px; margin-top: 10px; }

/* cycle cards */
.cycle-steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cycle-step { padding: 26px 22px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm); min-height: 220px; display: flex; flex-direction: column; }
.cycle-step .n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.cycle-step .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin: 18px 0; color: var(--accent); }
.cycle-step .t { font-size: 19px; letter-spacing: -0.02em; }
.cycle-step .d { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink-2); letter-spacing: -0.01em; white-space: nowrap; }
.marquee-track span i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* big word (Scepter "Features") */
.bigword { font-size: clamp(90px, 20vw, 300px); line-height: 0.85; letter-spacing: -0.06em; margin: 0; font-variation-settings: "opsz" 32; background: linear-gradient(90deg, #b9bbff 0%, #e6b8ff 55%, #ffd6f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }

/* CTA band */
.cta-band { border-radius: 40px; background: var(--grad); padding: clamp(40px, 7vw, 90px); display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 24px; overflow: hidden; position: relative; }
.cta-band .orb { width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #fff 0%, #fff3d2 16%, #e9c46a 36%, #c08bff 64%, #8f93ff 80%, transparent 81%); filter: saturate(1.1); }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 20px; letter-spacing: -0.02em; text-align: left; }
.faq-item button i { position: relative; width: 14px; height: 14px; flex: none; }
.faq-item button i::before, .faq-item button i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease); }
.faq-item button i::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-item .a { overflow: hidden; height: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.faq-item .a > div { padding: 0 0 22px; max-width: 640px; }

/* footer */
.footer { padding: 70px 0 40px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer .disclaimer { font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 520px; }
.footer a { color: var(--ink-2); font-size: 14px; }
.footer a:hover { color: var(--ink); }

/* page header */
.page-head { padding: 70px 0 40px; }
.page-head .h1 { margin: 14px 0 16px; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(14, 14, 19, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.3s; }
.modal-bg.open { opacity: 1; }
.modal { width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: 0 40px 100px -30px rgba(14, 14, 40, 0.45); transform: translateY(20px) scale(0.98); transition: transform 0.4s var(--ease); }
.modal-bg.open .modal { transform: none; }
.modal-close { position: sticky; top: 0; float: right; width: 38px; height: 38px; border-radius: 12px; background: var(--well); display: grid; place-items: center; }

/* staking calculator */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--well); box-shadow: var(--well-shadow); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; cursor: pointer; }
.not-live { position: absolute; top: 24px; right: 24px; }

/* token */
.token-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.token-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.token-stats .v { font-size: 18px; }
.fee-meter { background: linear-gradient(160deg, #fffaf0 0%, #fbfbfd 55%); }
.fee-big { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 12px; }
.fee-big .num { font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.05em; font-variation-settings: "opsz" 32; background: linear-gradient(120deg, #b8892f, #e9c46a 60%, #9f66ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fee-big .unit { font-size: 20px; color: var(--ink-3); }
.fee-meter .chart .line { stroke: var(--gold); }
.drips { display: grid; margin-top: 8px; }
.drip { display: grid; grid-template-columns: 90px 80px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.drip:first-child { border-top: 0; }
.drip.claimed { color: var(--ink-2); }
.drip-in { animation: dripIn 1.4s var(--ease); }
@keyframes dripIn { 0% { background: var(--gold-soft); transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; transform: none; } 100% { background: transparent; } }
.token-strip { display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: center; padding: 22px 28px; }
.token-strip .ts-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.token-strip .v { font-size: 17px; margin-top: 4px; }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 100px; display: grid; gap: 2px; }
.docs-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; transition: background 0.2s, color 0.2s; }
.docs-nav a:hover, .docs-nav a.active { background: var(--well); color: var(--ink); }
.docs-body { max-width: 760px; }
.docs-body section { padding: 8px 0 44px; scroll-margin-top: 100px; }
.docs-body h2 { font-size: 32px; letter-spacing: -0.03em; font-weight: 400; margin: 0 0 14px; font-variation-settings: "opsz" 32; }
.docs-body h3 { font-size: 19px; letter-spacing: -0.015em; font-weight: 500; margin: 26px 0 8px; }
.docs-body p, .docs-body li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.docs-body ul, .docs-body ol { padding-left: 20px; }
.docs-body code { font-family: var(--mono); font-size: 13px; background: var(--well); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.docs-body .table { min-width: 0; }
.docs-body .table td, .docs-body .table th { padding: 11px 10px; }
.docs-body .table tbody tr { cursor: default; }
.callout { border-radius: var(--r-md); background: var(--grad); padding: 18px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 18px 0; }

/* skeleton + toast */
.skel { background: linear-gradient(90deg, var(--well) 0%, #fafafc 50%, var(--well) 100%); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: 10px; color: transparent !important; }
@keyframes skel { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; z-index: 120; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5); transition: transform 0.45s var(--ease), opacity 0.45s; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* reveal defaults (GSAP takes over; without JS everything is visible) */
.js [data-reveal] { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-price .chg { display: none; }
  .nav-links a { padding: 8px 9px; }
  .logo { margin-right: 4px; }
}
@media (max-width: 1080px) {
  .nav { position: relative; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 20px 50px -20px rgba(30, 30, 70, 0.35); }
  .nav-links.open a { padding: 14px; font-size: 17px; }
  .nav-links.open a.docs-link { display: block; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1080px) {
  .cycle-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle-steps .cycle-step:last-child { grid-column: span 2; min-height: 0; }
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-node { margin: 0; }
  .flow-node:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -12px; width: 2px; height: 10px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 20px 50px -20px rgba(30, 30, 70, 0.35); }
  .nav-links.open a { padding: 14px; font-size: 17px; }
  .nav-links.open a.docs-link { display: block; }
  .nav { position: relative; }
  .menu-btn { display: inline-flex; }
  .nav-right .btn { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-stage { height: 380px; order: -1; margin: -10px 0 -30px; }
  .hero-stage canvas { inset: -40px -16px; width: calc(100% + 32px) !important; height: calc(100% + 80px) !important; }
  .hero-float.a { top: 20px; } .hero-float.b { bottom: 40px; }
  .live-grid, .g2, .g3, .faq, .footer-grid, .cta-band, .args, .feed-grid, .token-grid, .docs { grid-template-columns: minmax(0, 1fr); }
  .token-strip { grid-template-columns: 1fr 1fr; }
  .token-strip .ts-head, .token-strip .btn { grid-column: span 2; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .docs-nav a { white-space: nowrap; }
  .drip { grid-template-columns: 70px 1fr auto; }
  .drip > :nth-child(2) { display: none; }
  .span2 { grid-column: auto; }
  .treasury-card .top { grid-template-columns: 1fr; }
  .position-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .card { padding: 22px; border-radius: 26px; }
  .step { grid-template-columns: 30px 22px minmax(92px, 120px) 1fr; }
  .step .label { font-size: 15px; } .step .detail { font-size: 14px; }
  .tl-meta .model { margin-left: 0; width: 100%; }
  .chart { height: 240px; }
  .cta-band .orb { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .token-stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 30px 22px 1fr; row-gap: 0; padding: 4px 0; }
  .step .detail { grid-column: 3; white-space: normal; font-size: 13px; color: var(--ink-3); }
  .tabs button { height: 40px; padding: 0 14px; }
  .g4, .cycle-steps { grid-template-columns: 1fr; }
  .cycle-steps .cycle-step:last-child { grid-column: auto; }
  .treasury-card .stats { grid-template-columns: 1fr 1fr; }
  .nav-price .chg { display: none; }
  .check { grid-template-columns: 22px 1fr auto; }
  .check .lim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
}
