/* ============================================================
   Magpie — marketing site stylesheet
   Built on the shipped app design tokens (magpie.css).
   "Instrumentation for a quiet robot trader."
   Accent (#45c8e0) is reserved for meaning, never decoration.
   ============================================================ */

:root {
  --bg:          #0a0c12;
  --bg-2:        #080a0f;
  --surface:     #12151d;
  --surface-2:   #181c26;
  --surface-3:   #1d2230;
  --border:      #252b3a;
  --border-soft: #1b2030;
  --text:        #e7e9ed;
  --text-muted:  #8a92a0;
  --text-dim:    #586072;
  --accent:      #45c8e0;
  --accent-ink:  #07222b;
  --accent-dim:  #2b8fa3;
  --pos:         #3fb950;
  --neg:         #f0584f;
  --warn:        #d6a13a;

  --s1: 4px;  --s2: 8px;  --s3: 12px;
  --s4: 16px; --s6: 24px; --s8: 32px;
  --s10: 48px; --s12: 64px; --s16: 96px;

  --radius:    7px;
  --radius-sm: 4px;
  --radius-lg: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(69, 200, 224, 0.28); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
img { display: block; max-width: 100%; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.warn { color: var(--warn); }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow.dim { color: var(--text-dim); }
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-sec {
  font-size: clamp(30px, 4.2vw, 52px);
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.lede strong { color: var(--text); font-weight: 600; }

/* hairline rule */
.rule { height: 1px; background: var(--border-soft); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
  transition: filter 120ms ease, transform 80ms ease, background 120ms, border-color 120ms, color 120ms;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(69,200,224,0.0), 0 8px 30px -8px rgba(69,200,224,0.5); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- live dot ---------- */
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.live .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.live .led::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0; animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,12,18,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10,12,18,0.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { height: 26px; width: auto; }
.brand .pre { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: var(--s2); }
.nav-links a.navlink { color: var(--text-muted); font-size: 14px; padding: 7px 12px; border-radius: 6px; transition: color 120ms; }
.nav-links a.navlink:hover { color: var(--text); }
.nav-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }

/* hamburger toggle (mobile only) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; flex: none;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 200ms ease, opacity 150ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown menu */
.nav-mobile {
  display: none; flex-direction: column; gap: 2px;
  padding: var(--s2) var(--s6) var(--s4);
  background: rgba(10,12,18,0.97); backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.nav-mobile .navlink { color: var(--text-muted); font-size: 15px; padding: 12px 6px; border-radius: var(--radius); border-bottom: 1px solid var(--border-soft); transition: color 120ms; }
.nav-mobile .navlink:hover { color: var(--text); }
.nav-mobile .btn { width: 100%; justify-content: center; margin-top: var(--s3); }

@media (max-width: 860px) {
  .nav-links .navlink, .nav-sep, .nav-links .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open .nav-mobile { display: flex; }
}

/* ---------- announcement strip ---------- */
.ann {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text-muted);
}
.ann-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 7px 0; line-height: 1.4; text-align: center; }
.ann .mono { color: var(--text-dim); }
.ann b { color: var(--text); font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 90px) 0 0; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(69,200,224,0.08), transparent 60%),
    linear-gradient(transparent 0 31px, rgba(37,43,58,0.18) 31px 32px) 0 0 / 32px 32px,
    linear-gradient(90deg, transparent 0 31px, rgba(37,43,58,0.18) 31px 32px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(110% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(110% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: clamp(36px, 6.2vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 16ch;
  margin: 22px auto 0;
  text-wrap: balance;
}
.hero h1 .em { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
  margin: var(--s6) auto 0;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s8); flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: var(--s6); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s6); font-size: 13px; color: var(--text-muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* ---------- cockpit frame (hero product mock) ---------- */
.cockpit-stage { position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 64px); }
.window {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.win-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: block; }
.win-title { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); margin-left: 8px; letter-spacing: 0.02em; }
.win-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--text-muted); }
.win-right .badge-paper { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--warn); border: 1px solid rgba(214,161,58,0.4); border-radius: 4px; padding: 2px 6px; display: inline-flex; align-items: center; gap: 5px; }
.win-right .badge-paper .d { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.badge-live { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--pos); border: 1px solid rgba(63,185,80,0.4); border-radius: 4px; padding: 2px 6px; display: inline-flex; align-items: center; gap: 5px; }
.badge-live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); position: relative; }
.badge-live .d::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--pos); opacity: 0; animation: ping 1.8s ease-out infinite; }

/* the 3-col cockpit */
.cockpit { display: grid; grid-template-columns: 230px minmax(0,1fr) 290px; min-height: 460px; }
.ck-col { min-width: 0; }
.ck-watch { border-right: 1px solid var(--border); background: var(--surface); padding: 0; }
.ck-center { background: var(--bg); display: flex; flex-direction: column; min-width: 0; }
.ck-detail { border-left: 1px solid var(--border); background: var(--surface); }

.ck-sech { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); padding: 12px 14px 6px; display: flex; justify-content: space-between; }
.wrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 3px 14px; padding: 8px 14px; border-bottom: 1px solid var(--border-soft); align-items: center; cursor: default; position: relative; }
.wrow.sel { background: #0e1b22; }
.wrow.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.wrow .tk { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 7px; }
.wrow .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.wrow .sym { font-weight: 700; font-size: 13px; }
.wrow .st { grid-column: 1; grid-row: 2; font-size: 8.5px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-muted); }
.wrow .spark { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.wrow .last { grid-column: 3; grid-row: 1; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrow .chg { grid-column: 3; grid-row: 2; text-align: right; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot-pos { background: var(--pos); } .dot-pend { background: var(--warn); } .dot-watch { background: var(--text-dim); } .dot-closed { background: var(--accent); } .dot-rej { background: var(--neg); }

/* center */
.ck-head { padding: 14px 18px 10px; }
.ck-head-top { display: flex; align-items: baseline; gap: 10px; }
.ck-sym { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.pill { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.pill-hold { background: rgba(63,185,80,0.14); color: var(--pos); }
.ck-price { margin-left: auto; text-align: right; }
.ck-last { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-chg { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ck-subline { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.ck-ribbon { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.ck-ribbon .cell { padding: 8px 12px; border-right: 1px solid var(--border-soft); }
.ck-ribbon .cell:last-child { border-right: 0; }
.ck-ribbon .k { font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.ck-ribbon .v { font-size: 12.5px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ck-chart { flex: 1; min-height: 200px; position: relative; }
.ck-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ck-tf { position: absolute; left: 12px; top: 10px; display: flex; gap: 3px; z-index: 2; }
.ck-tf span { font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 4px; color: var(--text-dim); background: rgba(18,21,29,0.7); }
.ck-tf span.on { background: var(--accent); color: var(--accent-ink); }

/* detail / claude */
.ck-claude { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.cl-card { }
.cl-head { display: flex; align-items: center; justify-content: space-between; }
.cl-id { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); }
.cl-id .av { width: 22px; height: 22px; border-radius: 6px; background: #10202a; display: grid; place-items: center; }
.cl-id .av svg { width: 13px; height: 13px; color: var(--accent); }
.cl-now { font-size: 13px; line-height: 1.45; color: var(--text); margin-top: 10px; min-height: 38px; }
.cl-now .caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cl-conv { margin-top: 12px; }
.cl-conv-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cl-conv-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.cl-bar { height: 6px; border-radius: 4px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--pos); border-radius: 4px; transition: width 600ms ease; }
.cl-sec-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.cl-thesis { font-size: 12px; line-height: 1.55; color: var(--text-muted); margin-top: 6px; }
.cl-time { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.cl-item { display: grid; grid-template-columns: 14px 1fr; gap: 9px; }
.cl-item .node { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--text-dim); margin-top: 3px; }
.cl-item.now .node { border-color: var(--accent); background: var(--accent); }
.cl-item .meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cl-item .ac { font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 5px; border-radius: 3px; background: var(--surface-2); color: var(--text-muted); }
.cl-item .sn { font-size: 11.5px; line-height: 1.4; color: var(--text-muted); margin-top: 3px; }

/* ---------- generic panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ---------- two-column feature ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feat.rev .feat-copy { order: 2; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat.rev .feat-copy { order: 0; } }
.feat-copy .h-sec { margin-top: 18px; }
.feat-copy .lede { margin-top: 18px; }
.feat-list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feat-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: var(--text-muted); }
.feat-list li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.feat-list li b { color: var(--text); font-weight: 600; }

/* ---------- decision card (narrator) ---------- */
.decision { padding: 0; overflow: hidden; }
.dec-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dec-head .t { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.dec-conv { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.dec-conv .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pos); background: rgba(63,185,80,0.13); padding: 2px 8px; border-radius: 4px; }
.dec-body { padding: 18px; }
.dec-stream { font-size: 14.5px; line-height: 1.66; color: var(--text); min-height: 132px; }
.dec-stream .muted { color: var(--text-muted); }
.dec-stream .caret { display: inline-block; width: 8px; height: 16px; background: var(--accent); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(2) infinite; }
.dec-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-soft); margin-top: 16px; }
.dec-grid .c { padding: 14px 16px; border-right: 1px solid var(--border-soft); }
.dec-grid .c:last-child { border-right: 0; }
.dec-grid .k { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.dec-grid .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.dec-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--text-muted); }
.dec-foot .gate { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--pos); }
.dec-foot .gate svg { width: 14px; height: 14px; }

/* ---------- dispatch (today) ---------- */
.dispatch { padding: clamp(26px, 4vw, 46px); }
.dsp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dsp-date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.dsp-kick { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 7px; }
.dsp-hero { margin-top: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dsp-hero .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); width: 100%; }
.dsp-net { font-size: clamp(34px, 5vw, 52px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dsp-pct { font-size: 17px; font-variant-numeric: tabular-nums; }
.dsp-eq { font-size: 14px; color: var(--text-muted); }
.dsp-lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; margin-top: 22px; color: var(--text); text-wrap: pretty; }
.dsp-nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 26px; overflow: hidden; }
.dsp-nums .c { padding: 12px 14px; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.dsp-nums .c:nth-child(4n) { border-right: 0; }
.dsp-nums .c:nth-child(n+5) { border-bottom: 0; }
.dsp-nums .k { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.dsp-nums .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }
.dsp-nums .v small { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.dsp-sec { margin-top: 26px; }
.dsp-sec h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.dsp-sec p { font-size: 15.5px; line-height: 1.72; color: var(--text-muted); text-wrap: pretty; }
.dsp-sec p + p { margin-top: 12px; }
.tkr { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 7px; font-size: 13px; vertical-align: baseline; }
.tkr b { font-weight: 700; color: var(--text); }
.dsp-sign { display: flex; align-items: center; gap: 11px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.dsp-sign .av { width: 34px; height: 34px; border-radius: 9px; background: #10202a; display: grid; place-items: center; }
.dsp-sign .av svg { width: 18px; height: 18px; color: var(--accent); }
.dsp-sign .nm { font-size: 14px; color: var(--text); font-weight: 600; }
.dsp-sign .rl { font-size: 11.5px; color: var(--text-dim); }

/* ---------- retro proposal card ---------- */
.proposal { padding: 22px 24px; }
.pr-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(69,200,224,0.3); border-radius: 4px; padding: 2px 7px; }
.pr-conv { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.pr-title { font-size: 19px; font-weight: 600; margin-top: 14px; letter-spacing: -0.01em; }
.pr-obs { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; text-wrap: pretty; }
.pr-change { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 18px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.pr-change .from, .pr-change .to { font-size: 13px; }
.pr-change .lbl { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 5px; }
.pr-change .val { font-family: var(--mono); font-size: 13px; color: var(--text); }
.pr-change .to .val { color: var(--accent); }
.pr-change .arrow { color: var(--text-dim); }
.pr-impact { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--text-muted); }
.pr-impact b { color: var(--text); font-variant-numeric: tabular-nums; }
.pr-actions { display: flex; gap: 10px; margin-top: 20px; }
.pr-actions .btn { font-size: 13px; padding: 9px 16px; }
.act-approve { background: var(--pos); color: #06210d; }
.act-decline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.act-refine { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- proof / equity ---------- */
.proof-curve { position: relative; height: clamp(220px, 30vw, 330px); }
.proof-curve canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.proof-over { position: absolute; left: 26px; top: 22px; z-index: 2; pointer-events: none; }
.proof-eq { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.proof-ret { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.proof-ret .p { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.proof-ret .u { font-size: 13px; color: var(--text-muted); }
.proof-vs { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--text-muted); background: rgba(18,21,29,0.7); border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; backdrop-filter: blur(3px); }
.proof-vs b { color: var(--text); font-variant-numeric: tabular-nums; }
.proof-vs .dash { width: 16px; border-top: 1px dashed var(--text-muted); }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact { padding: 18px 20px; border-right: 1px solid var(--border-soft); }
.fact:last-child { border-right: 0; }
.fact .k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.fact .v { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; margin-top: 8px; }
.fact .d { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
@media (max-width: 920px) { .facts { grid-template-columns: repeat(3, 1fr); } .fact:nth-child(3n) { border-right: 0; } .fact:nth-child(n+4) { border-top: 1px solid var(--border-soft); } }
@media (max-width: 540px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(3n) { border-right: 1px solid var(--border-soft); } .fact:nth-child(2n) { border-right: 0; } }

/* mini blotter */
.blot { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.blot th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.blot td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); font-variant-numeric: tabular-nums; }
.blot tr:last-child td { border-bottom: 0; }
.blot .sym { font-weight: 700; }
.blot .side { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 3px; background: rgba(63,185,80,0.12); color: var(--pos); }
.blot .num { text-align: right; }
.blot td.r { text-align: right; }

/* ---------- safety grid ---------- */
.safe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 880px) { .safe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .safe-grid { grid-template-columns: 1fr; } }
.safe { background: var(--surface); padding: 26px 22px; }
.safe .ic { width: 38px; height: 38px; border-radius: 10px; background: #10202a; border: 1px solid rgba(69,200,224,0.22); display: grid; place-items: center; color: var(--accent); }
.safe .ic svg { width: 19px; height: 19px; }
.safe h4 { font-size: 16px; margin-top: 16px; }
.safe p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin-top: 8px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(69,200,224,0.3); border-radius: 8px; }
.step h4 { font-size: 17px; margin-top: 16px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; }

/* ---------- stat band (big) ---------- */
.bigstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 700px) { .bigstats { grid-template-columns: 1fr; } }
.bigstat { background: var(--surface); padding: 30px 26px; text-align: center; }
.bigstat .v { font-size: clamp(34px, 4vw, 46px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bigstat .v.accent { color: var(--accent); }
.bigstat .k { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--border-soft); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; color: var(--text); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pl { width: 18px; height: 18px; flex: none; position: relative; transition: transform 200ms; color: var(--text-dim); }
.qa[open] summary .pl { transform: rotate(45deg); color: var(--accent); }
.qa .a { padding: 0 0 22px; font-size: 15.5px; line-height: 1.68; color: var(--text-muted); max-width: 70ch; text-wrap: pretty; }
.qa .a a { color: var(--accent); }

/* ---------- final CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background:
  radial-gradient(100% 120% at 50% 0%, rgba(69,200,224,0.10), transparent 65%), var(--surface);
  padding: clamp(48px, 7vw, 88px) var(--s6); overflow: hidden; }
.cta-card h2 { font-size: clamp(30px, 4.5vw, 54px); letter-spacing: -0.03em; }
.cta-card p { font-size: 17px; color: var(--text-muted); margin: 18px auto 0; max-width: 50ch; }
.cta-card .hero-cta { margin-top: 30px; }
.cta-note { font-size: 12.5px; color: var(--text-dim); margin-top: 18px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 36px; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { color: var(--text-muted); } .foot-links a:hover { color: var(--text); }
.foot-disc { font-size: 11.5px; line-height: 1.7; color: var(--text-dim); max-width: 90ch; margin-top: 28px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 12px; color: var(--text-dim); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } .live .led::after, .badge-live .d::after { animation: none; } }

/* ---------- section header helper ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.sec-head .h-sec { margin: 16px auto 0; }
.sec-head .lede { margin: 18px auto 0; }

/* responsive cockpit collapse */
@media (max-width: 820px) {
  .cockpit { grid-template-columns: 1fr; }
  .ck-watch { display: none; }
  .ck-detail { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- waitlist modal (shared: home + blog) ---------- */
.wl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.wl-modal.open { display: flex; animation: wlFade 0.18s ease; }
@keyframes wlFade { from { opacity: 0; } to { opacity: 1; } }
.wl-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: wlRise 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes wlRise {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.wl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.wl-close:hover { color: var(--text); background: var(--surface-3); }
.wl-title { margin: 14px 0 8px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.wl-copy { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.wl-form { display: flex; flex-direction: column; gap: 10px; }
.wl-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: var(--sans);
}
.wl-form input[type="email"]::placeholder { color: var(--text-dim); }
.wl-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wl-form .btn { width: 100%; justify-content: center; }
.wl-note { color: var(--text-dim); font-size: 12.5px; margin: 14px 0 0; text-align: center; }
.form-ok { color: var(--accent); font-weight: 600; font-size: 15px; padding: 10px 0; text-align: center; }
.form-err { color: var(--neg); font-size: 13px; margin-top: 8px; text-align: center; }
