:root {
  --bg: #08141f;
  --bg-alt: rgba(8, 20, 31, 0.72);
  --panel: rgba(9, 24, 38, 0.8);
  --panel-border: rgba(128, 191, 255, 0.18);
  --text: #eff7ff;
  --muted: #9cb8d1;
  --accent: #7ed0ff;
  --accent-strong: #ffd166;
  --danger: #ff7b7b;
  --ok: #7cf29a;
  --shadow: 0 28px 80px rgba(4, 10, 19, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(73, 174, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.12), transparent 28%),
    linear-gradient(180deg, #0c1b29 0%, #07111b 100%);
}

.aurora {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  filter: blur(30px);
  opacity: 0.45;
}

.aurora-left {
  top: -7rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(126, 208, 255, 0.8), transparent 60%);
}

.aurora-right {
  top: 6rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.7), transparent 60%);
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero-copy,
.lead-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.eyebrow,
.stamp,
.metric-label,
.pill,
.text-link {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

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

.hero-meta,
.grid,
.scenario-buttons,
.bars {
  display: grid;
  gap: 1rem;
}

.hero-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 18rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 29, 43, 0.92), rgba(8, 18, 29, 0.88));
  border: 1px solid var(--panel-border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  backdrop-filter: blur(18px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(126, 208, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.panel + .panel,
.grid + .grid,
.scenario-panel + .grid {
  margin-top: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.metric-card {
  background: var(--bg-alt);
  border: 1px solid rgba(126, 208, 255, 0.16);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.metric-card strong,
.demand-total strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.demand-total {
  margin-bottom: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(126, 208, 255, 0.14);
  color: var(--accent);
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.scenario-buttons {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

button,
.scenario-button {
  font: inherit;
  color: var(--text);
  background: linear-gradient(180deg, rgba(126, 208, 255, 0.16), rgba(126, 208, 255, 0.08));
  border: 1px solid rgba(126, 208, 255, 0.2);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

button:hover,
.scenario-button:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 208, 255, 0.4);
}

.scenario-button.is-active {
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.24), rgba(255, 209, 102, 0.08));
  border-color: rgba(255, 209, 102, 0.46);
}

.checklist,
.stat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.tile,
.alert,
.station {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(6, 15, 24, 0.56);
  border: 1px solid rgba(126, 208, 255, 0.12);
}

.alert[data-severity="critical"],
.tile[data-level="5"] {
  border-color: rgba(255, 123, 123, 0.55);
}

.alert[data-severity="high"],
.tile[data-level="4"] {
  border-color: rgba(255, 209, 102, 0.5);
}

.tile-head,
.station-head,
.alert-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

.bars {
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  align-items: end;
}

.bar {
  display: grid;
  gap: 0.4rem;
  align-items: end;
}

.bar-fill {
  min-height: 0.5rem;
  border-radius: 999px 999px 0.35rem 0.35rem;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.bar-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.status-ready,
.status-complete,
.health-healthy {
  color: var(--ok);
}

.status-wind_hold,
.status-queued,
.health-degraded {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .hero,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-meta {
    min-width: 0;
  }

  .page-shell {
    width: min(100vw - 1rem, 1200px);
  }
}
