:root {
  --bg: #08090a;
  --panel: #101214;
  --surface: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.1);
  --text: #f7f8f8;
  --muted: #8d939d;
  --gold: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --cyan: #38bdf8;
  --violet: #7877ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
}

body.newsroom {
  --bg: #090908;
  --panel: #121210;
  --surface: rgba(244,240,232,0.045);
  --border: rgba(244,240,232,0.13);
  --text: #f7f4ec;
  --muted: #a69f91;
}

a { color: inherit; text-decoration: none; }

.shell { width: min(1220px, calc(100vw - 40px)); margin: 0 auto; }

.site-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,0.45);
  object-fit: cover;
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 12px;
  color: #b9c0ca;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.primary-nav a.active { background: #f6f7f9; color: #08090a; }

.stamp, .sample, .label {
  font: 700 0.72rem "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stamp { color: #cbd5e1; white-space: nowrap; }
.sample {
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.38);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(245,158,11,0.08);
  white-space: nowrap;
}

.label { color: var(--muted); }
.kicker { color: var(--cyan); margin-bottom: 16px; }

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  color: #bec5d0;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.62;
  max-width: 650px;
  margin: 26px 0 0;
}

.newsroom .lead { color: #cfc8bb; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid var(--border);
  font-weight: 850;
  font-size: 0.94rem;
}

.btn-primary { background: #f6f7f9; color: #08090a; border-color: #f6f7f9; }
.btn-ghost { background: rgba(255,255,255,0.045); color: var(--text); }

.hero-two-col {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  gap: 40px;
  align-items: center;
  padding: 44px 0 48px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(16,18,20,0.94);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
  overflow: hidden;
}

.newsroom .panel { background: rgba(244,240,232,0.045); box-shadow: none; }

.panel-head {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}

.panel-title { font-weight: 900; }
.dashboard { display: grid; grid-template-columns: 0.84fr 1.16fr; border-bottom: 1px solid var(--border); }
.regime { padding: 22px; border-right: 1px solid var(--border); min-height: 228px; }
.score { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }
.score strong { font-size: 5rem; line-height: 0.85; letter-spacing: 0; }
.score span { color: var(--gold); font: 800 0.78rem "JetBrains Mono", ui-monospace, monospace; margin-bottom: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,0.42);
  background: rgba(245,158,11,0.08);
  color: var(--gold);
  font: 800 0.72rem "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  margin-top: 16px;
}

.copy { color: #aeb6c2; line-height: 1.48; margin: 14px 0 0; font-size: 0.9rem; }
.chart { min-height: 228px; padding: 22px 20px 16px; }
.chart-top { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 12px; }
.badge {
  color: #fecaca;
  background: rgba(239,68,68,0.11);
  border: 1px solid rgba(239,68,68,0.36);
  border-radius: 999px;
  padding: 7px 9px;
  font: 800 0.72rem "JetBrains Mono", ui-monospace, monospace;
  white-space: nowrap;
}

svg { display: block; width: 100%; height: auto; }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.preview {
  min-height: 165px;
  padding: 18px;
  border-right: 1px solid var(--border);
}

.preview:last-child { border-right: 0; }
.preview h3 { margin: 12px 0 0; font-size: 1.1rem; line-height: 1.25; }

.mini-bars { display: grid; gap: 7px; margin-top: 13px; }
.mini-bar { height: 7px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: inherit; }

.suite-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 48px;
}

.route-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  min-height: 190px;
}

.route-card h2 { margin: 12px 0 0; font-size: 1.72rem; line-height: 1.04; letter-spacing: 0; }
.route-card p { color: #aeb6c2; line-height: 1.48; margin: 13px 0 0; }
.route-link { display: inline-flex; margin-top: 16px; color: var(--gold); font-weight: 850; }

.page-footer {
  border-top: 1px solid var(--border);
  color: #78808b;
  font-size: 0.82rem;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer a { color: #aeb6c2; }

@media (max-width: 1020px) {
  .shell { width: min(100% - 24px, 1080px); }
  .site-header { grid-template-columns: 1fr; gap: 12px; padding: 12px 0; }
  .primary-nav { justify-self: stretch; }
  .stamp { white-space: normal; }
  .hero-two-col, .dashboard, .preview-grid, .suite-band { grid-template-columns: 1fr; }
  .hero-two-col { min-height: auto; }
  .regime, .preview { border-right: 0; border-bottom: 1px solid var(--border); }
  h1 { font-size: clamp(3rem, 13vw, 5.8rem); }
}
