:root {
  --bg: #0c1520;
  --bg-card: #111d2e;
  --bg-card-alt: #162032;
  --fg: #e8edf2;
  --fg-muted: #8a9ab5;
  --accent: #f59e0b;
  --accent-dim: #b47408;
  --alert: #ef4444;
  --warn: #eab308;
  --ok: #22c55e;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--fg);
}
.nav-tag {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--ok);
  color: var(--ok);
  border-radius: 2px;
}

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}
.hero-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* TERMINAL */
.hero-terminal {
  background: #090f17;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  max-width: 680px;
}
.terminal-bar {
  background: #0e1824;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }
.terminal-title {
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.log-line {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
}
.log-ok { color: var(--ok); }
.log-warn { color: var(--warn); }
.log-info { color: var(--fg-muted); }

/* SECTION SHARED */
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

/* LIVE MONITOR */
.live-monitor {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-header {
  margin-bottom: 3rem;
}
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.monitor-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 1.75rem;
  position: relative;
}
.monitor-card--primary {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, #131f30 0%, #0f1c28 100%);
}
.card-tag {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.card-body {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.card-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* TRACE REPORT */
.trace-report {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.trace-left {}
.trace-body {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-top: 1rem;
}
.trace-example-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-top: 2rem;
}
.report-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}
.report-header {
  background: #1a0a0a;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(239,68,68,0.3);
}
.report-id {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.report-status--critical {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--alert);
  border: 1px solid var(--alert);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.report-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
}
.report-row:last-child { border-bottom: none; }
.report-key {
  color: var(--fg-muted);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
}
.report-val {
  color: var(--fg);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
}
.report-val--highlight { color: var(--alert); }

/* SUPPLIER INTEL */
.supplier-intel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.intel-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.intel-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 5px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.intel-card--alert {
  border-color: rgba(239,68,68,0.3);
  background: linear-gradient(90deg, rgba(239,68,68,0.08) 0%, var(--bg-card) 60%);
}
.intel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--alert);
  flex-shrink: 0;
  margin-top: 0.3rem;
}
.intel-indicator--ok { background: var(--ok); }
.intel-indicator--warn { background: var(--warn); }
.intel-supplier {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.intel-issue {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.intel-action {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
  font-family: 'Courier New', monospace;
}

/* FLOW METRICS */
.flow-metrics {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.metric { text-align: center; }
.metric-value {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.metric-unit {
  font-size: 1.5rem;
  color: var(--accent);
}
.metric-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
}
.metric-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.08);
}

/* CLOSING */
.closing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.65;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--fg);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .trace-report { grid-template-columns: 1fr; gap: 2rem; }
  .flow-metrics { justify-content: center; }
  .metric-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}