/* Stakeboard landing — same tokens as the dashboard */
:root {
  --canvas: 245 246 248; --surface: 255 255 255; --raised: 240 242 245; --line: 227 230 235;
  --fg: 18 21 27; --muted: 95 103 118; --subtle: 138 145 160;
  --accent: 47 111 228; --pos: 21 150 90; --neg: 217 58 68; --warn: 201 131 20;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: 11 13 17; --surface: 18 21 27; --raised: 26 30 38; --line: 35 40 51;
    --fg: 230 232 236; --muted: 139 147 163; --subtle: 96 104 119;
    --accent: 76 141 255; --pos: 47 191 113; --neg: 240 84 92; --warn: 242 169 59;
  }
}
:root[data-theme="dark"] {
  --canvas: 11 13 17; --surface: 18 21 27; --raised: 26 30 38; --line: 35 40 51;
  --fg: 230 232 236; --muted: 139 147 163; --subtle: 96 104 119;
  --accent: 76 141 255; --pos: 47 191 113; --neg: 240 84 92; --warn: 242 169 59;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: rgb(var(--canvas)); color: rgb(var(--fg)); font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: rgb(var(--muted)); } .pos { color: rgb(var(--pos)); } .neg { color: rgb(var(--neg)); } .warn { color: rgb(var(--warn)); }
.tnum { font-variant-numeric: tabular-nums; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(var(--canvas) / .85); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(var(--line)); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { text-decoration: none; color: rgb(var(--muted)); }
.nav-links a:hover, .nav-links a[aria-current] { color: rgb(var(--fg)); }
.nav .cta { margin-left: auto; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); cursor: pointer; font-family: inherit; color: inherit; }
.btn.primary { background: rgb(var(--accent)); border-color: transparent; color: #fff; }
.btn.primary:hover { background: rgb(var(--accent) / .9); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; color: rgb(var(--accent)); background: rgb(var(--accent) / .1); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: 0 auto 20px; max-width: 860px; }
h1 em { font-style: normal; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--pos))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: rgb(var(--muted)); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.small-note { font-size: 13px; color: rgb(var(--subtle)); margin-top: 14px; }

/* Product mock (demo numbers, not real data) */
.mock { margin: 56px auto 0; max-width: 1000px; border: 1px solid rgb(var(--line)); border-radius: 16px; background: rgb(var(--surface)); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .45); overflow: hidden; text-align: left; }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--line)); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--line)); }
.mock-body { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid rgb(var(--line)); padding: 16px 10px; font-size: 13px; }
.mock-side div { padding: 7px 10px; border-radius: 7px; color: rgb(var(--muted)); }
.mock-side .on { background: rgb(var(--raised)); color: rgb(var(--fg)); font-weight: 500; }
.mock-main { padding: 20px; display: grid; gap: 12px; align-content: start; }
.mock-hero { border: 1px solid rgb(var(--line)); border-radius: 12px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.mock-hero .big { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock-stat { border: 1px solid rgb(var(--line)); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: rgb(var(--muted)); }
.mock-stat b { display: block; font-size: 17px; color: rgb(var(--fg)); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mock-chart { border: 1px solid rgb(var(--line)); border-radius: 12px; padding: 12px; }
.mock-chart svg { width: 100%; height: 150px; display: block; }

/* Sections */
section.block { padding: 88px 0; border-top: 1px solid rgb(var(--line)); }
.kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--accent)); margin-bottom: 10px; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 14px; }
.sec-lead { color: rgb(var(--muted)); font-size: 17px; max-width: 620px; margin: 0 0 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); border-radius: 14px; padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: rgb(var(--muted)); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--accent) / .12); color: rgb(var(--accent)); }
.ico svg { width: 20px; height: 20px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgb(var(--raised)); border: 1px solid rgb(var(--line)); }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: rgb(var(--muted)); font-size: 15px; }

.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { padding: 10px 18px; border: 1px solid rgb(var(--line)); border-radius: 999px; font-weight: 600; font-size: 15px; background: rgb(var(--surface)); }
.logos span small { font-weight: 400; color: rgb(var(--muted)); margin-left: 6px; font-size: 12px; }

.quote { font-size: 22px; line-height: 1.45; letter-spacing: -.01em; max-width: 760px; }
.math { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.math .card b { display: block; font-size: 30px; letter-spacing: -.02em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: rgb(var(--accent)); box-shadow: 0 0 0 1px rgb(var(--accent)); }
.plan .price { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: rgb(var(--muted)); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2px solid rgb(var(--pos)); border-bottom: 2px solid rgb(var(--pos)); transform: rotate(-45deg); }
.plan li.no { color: rgb(var(--subtle)); } .plan li.no::before { border-color: rgb(var(--line)); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgb(var(--accent) / .12); color: rgb(var(--accent)); }

/* FAQ */
details { border-bottom: 1px solid rgb(var(--line)); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: rgb(var(--muted)); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: rgb(var(--muted)); margin: 12px 0 0; max-width: 760px; }

/* CTA + form */
.cta-box { border: 1px solid rgb(var(--line)); border-radius: 20px; padding: 56px 32px; text-align: center; background: radial-gradient(600px 240px at 50% 0%, rgb(var(--accent) / .16), transparent), rgb(var(--surface)); }
.cta-box h2 { margin-bottom: 10px; }
form.wait { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
form.wait input { height: 44px; min-width: 280px; padding: 0 14px; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--canvas)); color: rgb(var(--fg)); font: inherit; font-size: 15px; }
.ok-msg { display: none; margin-top: 16px; color: rgb(var(--pos)); font-weight: 500; }

footer { border-top: 1px solid rgb(var(--line)); padding: 40px 0 56px; font-size: 13px; color: rgb(var(--muted)); }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .rg { border: 1px solid rgb(var(--line)); border-radius: 10px; padding: 12px 14px; color: rgb(var(--muted)); }

.page-head { padding: 72px 0 24px; }
.page-head h1 { text-align: left; margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); }
.page-head .lead { margin: 0; text-align: left; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid3, .grid2, .steps, .plans, .math { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-hero .big { font-size: 30px; }
  .mock-hero dl { display: none; }
  .hero { padding-top: 56px; }
  section.block { padding: 64px 0; }
  form.wait input { min-width: 0; width: 100%; }
}
