/* ================= tokens ================= */
:root {
  --bg: #060706;
  --bg-raised: #0c0e0c;
  --bg-card: #0a0c0a;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --green: #34d873;
  --green-dim: rgba(52,216,115,0.14);
  --green-border: rgba(52,216,115,0.4);
  --red: #f2555a;
  --red-dim: rgba(242,85,90,0.1);
  --red-border: rgba(242,85,90,0.35);
  --amber: #f2a13a;
  --white: #f3f5f3;
  --gray-1: #b9c0bb;
  --gray-2: #8b938e;
  --gray-3: #5c635f;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.accent { color: var(--green); }

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 96px 0; position: relative; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.h2.center { text-align: center; }

.body-text {
  font-size: 16px;
  color: var(--gray-1);
  max-width: 46ch;
  margin: 0 0 14px;
}
.body-text.center { max-width: 52ch; margin-left: auto; margin-right: auto; text-align: center; }
.body-emph { color: var(--white); font-weight: 500; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ================= pills / dots ================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}
.pill-muted { color: var(--green); border-color: var(--green-border); background: var(--green-dim); }
.pill-status { color: var(--gray-1); }
.pill-social {
  color: var(--gray-1);
  border-color: var(--border);
  transition: border-color .15s, color .15s;
}
.pill-social:hover { color: var(--white); border-color: var(--border-strong); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 8px rgba(52,216,115,0.7); }
.dot-red { background: var(--red); box-shadow: 0 0 8px rgba(242,85,90,0.6); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(242,161,58,0.6); }

/* ================= buttons / forms ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .15s ease;
}
.btn-primary {
  background: var(--green);
  color: #06120a;
  padding: 15px 22px;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn-arrow { transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.email-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.email-form:not(:has(+ .form-microcopy)) { margin-bottom: 0; }

.email-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 10px;
  padding: 0 16px;
  height: 50px;
  outline: none;
  transition: border-color .15s;
}
.email-input::placeholder { color: var(--gray-3); }
.email-input:focus { border-color: var(--green-border); }
.email-input.input-error { border-color: var(--red-border); }

.form-microcopy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-3);
  margin: 14px 0 0;
  min-height: 16px;
  transition: color .15s;
}
.form-microcopy.state-success { color: var(--green); }
.form-microcopy.state-error { color: var(--red); }

/* success swap: hide form, show confirmation */
.email-form.is-success { display: none; }
.success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  height: 50px;
  border: 1px solid var(--green-border);
  background: var(--green-dim);
  border-radius: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 14px;
}
.success-message.is-visible { display: flex; }

/* ================= hex icon ================= */
.hex-icon { display: inline-flex; }
.hex-icon-sm { width: 30px; height: 30px; }
.hex-icon-md { width: 48px; height: 48px; margin: 0 auto 28px; display: flex; }
.hex-icon-lg { width: 74px; height: 74px; margin: 0 auto 22px; display: flex; }
/* logo-icon.png now has REAL alpha transparency (regenerated by
   crop_logo.py from brightness -- see that script for why the earlier
   mix-blend-mode: screen approach didn't work: it only reveals
   anything against a backdrop lighter than black, and this is an
   all-dark-theme page, so there was never a lighter backdrop for it
   to blend against). Plain img rendering now -- no blend-mode trick
   needed or wanted, since blending fully-opaque real pixels would
   only risk distorting their color against the backdrop. */
.hex-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ================= nav ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6,7,6,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
/* Two groups only: .logo pinned left, .nav-right-group pinned right
   as one cluster (links + pill + button together) -- NOT three/four
   items evenly spaced by space-between across the whole bar. */
.nav-right-group { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--gray-1); transition: color .15s; }
.nav-links a:hover { color: var(--white); }

/* ================= hero ================= */
.hero {
  position: relative;
  padding: 92px 32px 0;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 20px; left: 50%;
  width: 420px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(52,216,115,0.11) 0%, rgba(52,216,115,0.04) 35%, transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 26px 0 22px;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-1);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-sub strong { color: var(--white); font-weight: 600; }

/* ================= ticker tape ================= */
.ticker-wrap {
  margin-top: 68px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 38s linear infinite;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 13px 26px;
  border-right: 1px solid var(--border);
  color: var(--gray-1);
  flex: none;
}
.ticker-item strong { color: var(--white); font-weight: 600; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ================= 287 vs 8000 dot matrix ================= */
.col-visual { display: flex; justify-content: center; }
.matrix-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.matrix-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.matrix-col { display: flex; flex-direction: column; gap: 8px; }
.matrix-col-right { align-items: flex-end; text-align: right; }
.matrix-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--gray-3); }
.matrix-label-accent { color: var(--green); }
.matrix-number { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--gray-3); }
.matrix-number-strike { text-decoration: line-through; text-decoration-color: var(--red); color: var(--gray-2); }
.matrix-number-accent { color: var(--green); }

.dot-matrix {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.dot-matrix span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1a1d1a;
}
.dot-matrix span.lit {
  background: var(--green);
  box-shadow: 0 0 10px rgba(52,216,115,0.55);
}
.matrix-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray-3);
  line-height: 1.5;
  margin: 0;
}

/* ================= three signals ================= */
.signals-grid { margin-top: 44px; align-items: stretch; }
.signal-cards { display: flex; flex-direction: column; gap: 16px; }

.signal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  cursor: pointer;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.signal-card:hover { border-color: var(--border-strong); }
.signal-card.active {
  border-color: var(--green-border);
  background: linear-gradient(180deg, var(--green-dim), rgba(52,216,115,0.03));
}
.signal-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--green);
}
.signal-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
}
.signal-card-body {
  font-size: 14.5px;
  color: var(--gray-1);
  line-height: 1.55;
}

/* ---- terminal detail panel ---- */
.terminal-panel {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; }
.tb-dot.red { background: #f2555a; }
.tb-dot.yellow { background: #f2c23a; }
.tb-dot.green { background: #34d873; }
.tb-label { font-family: var(--font-mono); font-size: 12px; color: var(--gray-3); margin-left: 6px; }

.terminal-body { padding: 26px; }
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.terminal-ticker { display: flex; align-items: center; gap: 10px; }
.terminal-ticker-sym { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.tag-green { color: var(--green); border-color: var(--green-border); background: var(--green-dim); }
.tag-red { color: var(--red); border-color: var(--red-border); background: var(--red-dim); }
.terminal-meta { font-family: var(--font-mono); font-size: 11px; color: var(--gray-3); }

.terminal-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--gray-3);
  margin: 0 0 12px;
}

/* divergence: bar chart + progress bar */
.bar-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.bar { width: 30px; background: var(--green); border-radius: 4px 4px 0 0; }
.bar-note { font-family: var(--font-mono); font-size: 13px; color: var(--gray-1); margin-left: 10px; align-self: center; }
.progress-track { height: 8px; background: var(--bg-raised); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber), #f26a3a); border-radius: 999px; }
.progress-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; }
.progress-labels .warn { color: var(--amber); }
.progress-labels .muted { color: var(--gray-3); }

.callout {
  margin-top: 20px;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid;
}
.callout-green { border-color: var(--green-border); background: var(--green-dim); color: var(--gray-1); }
.callout-red { border-color: var(--red-border); background: var(--red-dim); color: var(--gray-1); }
.callout strong { font-weight: 700; }
.callout-green strong { color: var(--green); }
.callout-red strong { color: var(--red); }

/* CRL: filing quote + translation */
.quote-box {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray-1);
  margin-bottom: 20px;
}

/* dilution: timeline */
.timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 6px; }
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 4px; top: 16px; bottom: -2px;
  width: 1px;
  background: var(--border-strong);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex: none; z-index: 1; }
.timeline-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(52,216,115,0.6); }
.timeline-dot.red { background: var(--red); box-shadow: 0 0 8px rgba(242,85,90,0.6); }
.timeline-meta { font-family: var(--font-mono); font-size: 11px; color: var(--gray-3); margin-bottom: 4px; }
.timeline-meta .warn { color: var(--red); }
.timeline-title { font-size: 14.5px; font-weight: 500; }

/* ================= footer cta ================= */
.footer-cta { text-align: center; }
.footer-cta-inner { max-width: 640px; }

/* ================= footer ================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { max-width: 360px; }
.footer-tagline {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-3);
  margin: 14px 0 10px;
}
.footer-desc { font-size: 14px; color: var(--gray-2); margin: 0; }
.footer-links-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray-3);
  margin-bottom: 14px;
}
.social-pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-3);
}

/* ================= responsive ================= */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
  .email-form { flex-direction: column; }
  .btn-primary { width: 100%; }
  .footer-inner { flex-direction: column; }
}

/* ================= dev tweaks panel ================= */
/* Design-iteration aid, not part of the real production page --
   deliberately styled as an obvious builder tool (corner-anchored,
   small, labeled "dev preview only"), collapsed by default. */
.tweaks-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  font-family: var(--font-mono);
}
.tweaks-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--gray-1);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.tweaks-toggle:hover { color: var(--green); border-color: var(--green-border); }

.tweaks-body {
  display: none;
  position: absolute;
  right: 0;
  bottom: 52px;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.tweaks-panel.is-open .tweaks-body { display: block; }

.tweaks-header {
  font-size: 12px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tweaks-sub { font-size: 10px; color: var(--gray-3); font-weight: 400; }

.tweaks-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--gray-1);
  margin-bottom: 12px;
}
.tweaks-row input[type="range"] { width: 110px; accent-color: var(--green); }
.tweaks-row input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; }
.tweaks-row input[type="number"] {
  width: 64px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 6px;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.tweaks-row-swatches { flex-direction: column; align-items: flex-start; gap: 8px; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatch.active { border-color: var(--white); }
