:root {
  --bg: #0c0c0e;
  --surface: #141417;
  --surface2: #1e1e23;
  --border: #2a2a31;
  --fg: #f0ede8;
  --fg-muted: #7a7a85;
  --accent: #f5a623;
  --accent-dim: #7d5412;
  --green: #3ecf8e;
  --red: #f56c6c;
  --amber: #f5a623;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  color: var(--fg-muted);
  font-size: 13px;
}

/* HERO */
.hero {
  padding: 80px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 400px;
}
.hero-sub + .hero-sub {
  margin-top: 10px;
}

/* SIGNAL PANEL */
.hero-signal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
}
.signal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--fg-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.signal-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.signal-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.signal-item:last-child { border-bottom: none; }
.signal-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.signal-body .signal-source {
  font-size: 11px;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 2px;
}
.signal-body p {
  color: var(--fg);
  line-height: 1.4;
}
.signal-mrr {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.clustered .signal-icon { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.cluster-label { color: var(--accent) !important; font-weight: 600; }
.signal-badge { font-size: 10px; background: var(--accent); color: #000; padding: 2px 7px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.sent .signal-icon { background: var(--green); color: #000; }
.signal-sent { font-size: 10px; color: var(--green); font-weight: 500; white-space: nowrap; }

/* SIGNAL FLOW */
.signal-flow {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.signal-flow h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.channel-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--fg-muted);
  width: fit-content;
  margin-bottom: 4px;
}
.channel-card strong { font-size: 14px; font-weight: 600; }
.channel-card p { font-size: 13px; color: var(--fg-muted); }

/* CLUSTERING */
.clustering {
  padding: 80px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clustering-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.clustering-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.clustering-text p { color: var(--fg-muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }

.cluster-visual {
  display: flex;
  justify-content: center;
}
.cluster-node {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.node-mrr {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.node-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.cluster-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-signal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* PRIORITIZATION */
.prioritization {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.prioritization h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.prio-intro { color: var(--fg-muted); font-size: 15px; margin-bottom: 40px; max-width: 600px; }
.prio-table { width: 100%; }
.prio-header, .prio-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 12px 16px;
  gap: 16px;
  align-items: center;
}
.prio-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}
.prio-row {
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.prio-row:last-child { border-bottom: none; }
.mrr-high { color: var(--accent); font-weight: 600; }
.mrr-mid { color: #e8b84b; }
.mrr-low { color: var(--fg-muted); }
.score-high { color: var(--green); font-weight: 600; }
.score-mid { color: #8adfb8; }
.score-low { color: var(--fg-muted); }

/* HOW IT WORKS */
.how-it-works {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.how-it-works h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.step-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.step { flex: 1; }
.step-num {
  display: block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.step-arrow { color: var(--border); flex-shrink: 0; }

/* CLOSING */
.closing {
  padding: 100px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.closing-statement {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.closing-sub { color: var(--fg-muted); font-size: 15px; }

/* FOOTER */
footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  font-size: 13px;
}

.nav-dash-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-dash-link:hover { background: var(--accent-dim); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .clustering-inner { grid-template-columns: 1fr; gap: 40px; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .step-row { flex-direction: column; gap: 24px; }
  .step-arrow { display: none; }
  .prio-header span:nth-child(n+3),
  .prio-row span:nth-child(n+3) { display: none; }
  .prio-header, .prio-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav, .hero, .signal-flow, .clustering, .prioritization, .how-it-works { padding-left: 20px; padding-right: 20px; }
  .channel-grid { grid-template-columns: 1fr; }
}