/* Headvane — headvane.com. Self-hosted fonts (SIL Open Font License, see /fonts). */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-tight-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0B0C0E;
  --panel: #111317;
  --panel-2: #121418;
  --line: #23262D;
  --line-soft: #1C1F25;
  --line-strong: #2A2E36;
  --text: #EDEFF2;
  --text-2: #B7BEC8;
  --text-3: #8E97A3;
  --accent: #C8F560;
  --accent-bg: #1E2A10;
  --accent-tint: #141A0C;
  --down: #FF9A52;
  --down-bg: #2E1A0E;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #FFFFFF; }
p, h1, h2, h3, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 16px; color: var(--bg); }
.mono { font-family: var(--mono); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--text-2); }
.site-nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--bg); min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-primary:hover { color: var(--bg); filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-outline { border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 64px 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(40px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; max-width: 1040px; }
.accent { color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 700px; }
.fineprint { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.fineprint.left { justify-content: flex-start; line-height: 1.6; }

/* Waitlist form */
.waitlist { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.form-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.form-row input[type="email"] { flex: 1 1 260px; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); font: inherit; font-size: 16px; }
.form-row input[type="email"]::placeholder { color: #7C8592; }
.form-row input[type="email"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(200, 245, 96, 0.25); }
.form-row .btn-primary { flex: 0 0 auto; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-slot:empty { display: none; }
.form-status { font-size: 15px; color: var(--text-2); }
.form-status:empty { margin: -10px 0 0; }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.error { color: var(--down); }
.waitlist.is-done .form-row, .waitlist.is-done .cf-slot { display: none; }

/* Product preview */
.preview { padding: 8px 0 96px; }
.dash { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dash-title { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.on { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.on .dot { width: 7px; height: 7px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--text-2); }
.chip-outline { background: transparent; border: 1px solid var(--line-strong); }
.dash-body { display: flex; flex-wrap: wrap; }
.feed { flex: 999 1 600px; min-width: 0; border-right: 1px solid var(--line); }
.feed li { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.feed li:last-child { border-bottom: 0; }
.time { width: 64px; font-family: var(--mono); font-size: 13px; color: var(--text-3); padding-top: 3px; }
.story { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.story b { font-family: var(--mono); font-size: 14px; margin-right: 8px; }
.why { font-size: 13px; color: var(--text-3); }
.call { width: 200px; display: grid; grid-template-columns: auto auto; justify-content: end; justify-items: end; align-items: center; column-gap: 10px; row-gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.up { background: var(--accent-bg); color: var(--accent); }
.badge.down { background: var(--down-bg); color: var(--down); }
.badge.wait { background: var(--line-soft); color: var(--text-2); }
.conf { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.action { grid-column: 1 / -1; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.action.traded { color: var(--accent); }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.side-block { padding: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 13px; color: var(--text-3); }
.label.split { display: flex; justify-content: space-between; gap: 12px; }
.label .mono { color: var(--text-2); }
.level { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.side-block .mono { font-size: 12px; color: var(--text-2); }
.fake-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--down); border-radius: 999px; }
.meter-19 { width: 19%; }
.small { font-size: 12px; color: var(--text-3); }
.side-split { display: grid; grid-template-columns: 1fr 1fr; }
.side-split > div { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.side-split > div + div { border-left: 1px solid var(--line); }
.big { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.big span { font-size: 18px; color: var(--text-3); }

/* Sections */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head p { color: var(--text-2); max-width: 440px; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.08; max-width: 640px; }

/* Risk levels */
.risk { padding: 24px 0 96px; display: flex; flex-direction: column; gap: 32px; }
.risk-cards { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.risk-option { display: block; position: relative; }
.risk-card { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 28px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.risk-card:hover { border-color: #4A505B; }
.risk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.risk-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.risk-dot { width: 20px; height: 20px; border-radius: 999px; border: 2px solid #4A505B; }
.risk-blurb { color: var(--text-2); }
.risk-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.risk-rows > span { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-3); }
.risk-rows > span:last-child { border-bottom: 0; }
.risk-rows b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.risk-option input:checked + .risk-card { border-color: var(--accent); background: var(--accent-tint); }
.risk-option input:checked + .risk-card .risk-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--accent-tint); }
.risk-option input:focus-visible + .risk-card { outline: 2px solid var(--accent); outline-offset: 3px; }

/* How it works */
.how { padding: 0 0 96px; display: flex; flex-direction: column; gap: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.num { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 22px; letter-spacing: -0.02em; }
.steps p { color: var(--text-2); }

/* Bottom call to action */
.cta { margin-bottom: 96px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); padding: 56px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.cta h2 { max-width: none; }
.cta .form-row input[type="email"] { background: var(--bg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--text-3); line-height: 1.6; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-2); }
.site-footer p { max-width: 860px; }

/* Legal pages */
.legal { max-width: 760px; padding: 32px 0 96px; display: flex; flex-direction: column; gap: 20px; color: var(--text-2); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; color: var(--text); line-height: 1.05; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; color: var(--text); margin-top: 16px; max-width: none; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--text-3); }

/* Notice pages (confirm, unsubscribe, 404) */
.notice { display: flex; justify-content: center; padding: 48px 0 120px; }
.notice-card { max-width: 560px; width: 100%; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.notice-card h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.notice-card p { color: var(--text-2); }
.notice-card form { margin-top: 8px; }

/* Admin */
.admin { width: 100%; display: flex; flex-direction: column; gap: 28px; }
.notice:has(.admin) { display: block; padding-top: 16px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 40px; letter-spacing: -0.03em; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.admin-stats > div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.admin-stats span { font-size: 13px; color: var(--text-3); }
.admin-stats strong { font-family: var(--mono); font-size: 32px; }
.admin-alert { border: 1px solid var(--down); color: var(--down); border-radius: 12px; padding: 12px 16px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.admin h2 { font-size: 18px; margin-bottom: 10px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.admin th { color: var(--text-3); font-weight: 500; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-nav { gap: 16px; }
  .site-nav a[href="#risk"] { display: none; }
  .hero { padding-top: 32px; }
  .feed { border-right: 0; border-bottom: 1px solid var(--line); }
  .call { width: 100%; justify-content: start; justify-items: start; grid-template-columns: auto auto 1fr; }
  .action { justify-self: end; }
  .action { grid-column: auto; text-align: right; }
  .cta { padding: 40px 16px; }
  .notice-card { padding: 32px 20px; }
}
