/* ===== FONTS ===== */
:root {
  --bg: #0d0d12;
  --bg-surface: #161622;
  --bg-elevated: #1e1e2e;
  --fg: #f0ece4;
  --fg-muted: #8b8999;
  --fg-dim: #5a5870;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(240, 236, 228, 0.07);
  --border-strong: rgba(240, 236, 228, 0.12);

  --sig-lis-bg: rgba(245, 158, 11, 0.15);
  --sig-lis-fg: #f59e0b;
  --sig-tax-bg: rgba(239, 68, 68, 0.12);
  --sig-tax-fg: #ef4444;
  --sig-hpd-bg: rgba(99, 102, 241, 0.12);
  --sig-hpd-fg: #818cf8;
  --sig-abs-bg: rgba(52, 211, 153, 0.12);
  --sig-abs-fg: #34d399;
  --sig-vec-bg: rgba(249, 115, 22, 0.12);
  --sig-vec-fg: #f97316;
  --sig-leq-bg: rgba(236, 72, 153, 0.12);
  --sig-leq-fg: #ec4899;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-dim); border-radius: 3px; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 18, 0.85);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 32px 64px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  width: fit-content;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 440px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.meta-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--border-strong);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
}
.meta-sep { color: var(--fg-dim); font-size: 0.8rem; }

/* ===== TERMINAL CARD ===== */
.terminal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'DM Sans', monospace;
  font-size: 0.78rem;
}
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.terminal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.terminal-date { color: var(--fg-muted); font-size: 0.75rem; }

.terminal-body { padding: 8px 0; }
.terminal-row {
  display: grid;
  grid-template-columns: 1fr 48px 48px 40px 1fr;
  gap: 8px;
  padding: 7px 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.terminal-row:last-child { border-bottom: none; }
.header-row {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  padding-bottom: 6px;
}
.terminal-row:not(.header-row):hover { background: var(--bg-elevated); }
.addr { color: var(--fg); font-weight: 500; font-size: 0.77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-row span:not(.addr):not(.score):not(.signal-tag) { color: var(--fg-muted); font-size: 0.73rem; }
.score {
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}
.score-hi { color: #34d399; }
.score-med { color: #fbbf24; }
.score-lo { color: var(--fg-muted); }

.signal-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sig-lis { background: var(--sig-lis-bg); color: var(--sig-lis-fg); }
.sig-tax { background: var(--sig-tax-bg); color: var(--sig-tax-fg); }
.sig-hpd { background: var(--sig-hpd-bg); color: var(--sig-hpd-fg); }
.sig-abs { background: var(--sig-abs-bg); color: var(--sig-abs-fg); }
.sig-vec { background: var(--sig-vec-bg); color: var(--sig-vec-fg); }
.sig-leq { background: var(--sig-leq-bg); color: var(--sig-leq-fg); }

.terminal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.csv-note, .record-count { font-size: 0.72rem; color: var(--fg-dim); }
.record-count { color: var(--accent); font-weight: 500; }

/* ===== PROOF STRIP ===== */
.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.proof-stat { display: flex; flex-direction: column; gap: 4px; }
.proof-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.proof-label { font-size: 0.75rem; color: var(--fg-muted); letter-spacing: 0.01em; }
.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 48px;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 32px;
  background: var(--bg);
}
.features-inner { max-width: 1200px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-elevated); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.feature-desc { font-size: 0.88rem; line-height: 1.6; color: var(--fg-muted); }

/* ===== PROCESS ===== */
.process {
  padding: 80px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-inner { max-width: 1200px; margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step { padding: 0 24px 0 0; }
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 8px;
}
.step-desc { font-size: 0.85rem; line-height: 1.6; color: var(--fg-muted); }
.step-connector {
  color: var(--fg-dim);
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
}

/* ===== SIGNAL GUIDE ===== */
.signal-guide {
  padding: 80px 32px;
  background: var(--bg);
}
.signal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.signal-left { position: sticky; top: 100px; }
.signal-intro {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-top: 16px;
}

.signal-right { display: flex; flex-direction: column; gap: 0; }
.signal-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.signal-item:last-child { border-bottom: none; }
.signal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.signal-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  flex: 1;
}
.signal-weight {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
}
.signal-expl { font-size: 0.82rem; line-height: 1.55; color: var(--fg-muted); padding-left: 0; }

/* ===== CLOSING ===== */
.closing {
  padding: 96px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 560px;
}
.closing-body + .closing-body { margin-top: 16px; }

/* ===== FOOTER ===== */
.footer {
  padding: 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.footer-copy { font-size: 0.8rem; color: var(--fg-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .proof-inner { flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
  .proof-divider { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .step-connector { display: none; }
  .step { padding: 0 0 32px; }
  .step:last-child { padding-bottom: 0; }
  .signal-inner { grid-template-columns: 1fr; gap: 40px; }
  .signal-left { position: static; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 56px 20px 48px; }
}

@media (max-width: 600px) {
  .terminal-row { grid-template-columns: 1fr 32px 32px 32px; }
  .terminal-row .signal-tag { display: none; }
  .hero-headline { font-size: 2.2rem; }
}