:root {
  --bg: #09111f;
  --panel: rgba(8, 16, 33, 0.74);
  --panel-strong: rgba(13, 24, 48, 0.92);
  --text: #edf4ff;
  --muted: #8fa5c6;
  --line: rgba(173, 201, 255, 0.12);
  --red: #ff6b57;
  --gold: #ffbf47;
  --blue: #58b6ff;
  --green: #59d6a7;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

* {
  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(88, 182, 255, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(255, 107, 87, 0.16), transparent 28%),
    linear-gradient(180deg, #0b1326 0%, #060b14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.panel,
.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
  border-radius: 28px;
}

.hero-panel {
  padding: 28px;
  border-radius: 28px;
  background: var(--panel-strong);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 500 0.78rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.24em;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.hero-summary {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-stat {
  position: relative;
  z-index: 1;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-stat:last-child {
  border-bottom: 0;
}

.hero-stat span,
.panel-head span,
.metric-card span,
label,
dt {
  display: block;
  color: var(--muted);
  font: 500 0.82rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.orbital {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.orbital-a {
  width: 180px;
  height: 180px;
  top: -32px;
  right: -56px;
  background: radial-gradient(circle, rgba(88, 182, 255, 0.34), transparent 65%);
}

.orbital-b {
  width: 160px;
  height: 160px;
  bottom: -64px;
  left: -40px;
  background: radial-gradient(circle, rgba(255, 107, 87, 0.26), transparent 65%);
}

.card-grid,
.details-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.details-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.metric-card,
.panel {
  padding: 24px;
  border-radius: 24px;
}

.metric-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 3px;
  border-radius: 999px;
}

.accent-red::after {
  background: linear-gradient(90deg, var(--red), transparent);
}

.accent-gold::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.accent-blue::after {
  background: linear-gradient(90deg, var(--blue), transparent);
}

.accent-green::after {
  background: linear-gradient(90deg, var(--green), transparent);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.panel-head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.stats-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.stats-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.stats-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dd {
  margin: 0;
  text-align: right;
  font-size: 1rem;
}

.chart-stack {
  display: grid;
  gap: 18px;
}

.chart-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

svg {
  display: block;
  width: 100%;
  height: 90px;
  margin-top: 10px;
}

.services-panel {
  margin-top: 18px;
}

.scope-panel {
  margin-top: 18px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.scope-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.scope-card span {
  display: block;
  color: var(--muted);
  font: 500 0.76rem/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scope-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 1rem;
}

.scope-summary {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.scope-output {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.72);
  white-space: pre-wrap;
  font: 500 0.82rem/1.5 "IBM Plex Mono", monospace;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.service-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.service-card a {
  color: var(--text);
  text-decoration: none;
}

.service-card a:hover {
  color: var(--blue);
}

.service-card p,
.empty-state {
  margin: 0;
  color: var(--muted);
  font: 500 0.78rem/1.4 "IBM Plex Mono", monospace;
}

.service-card strong {
  white-space: nowrap;
  font: 700 0.85rem/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.service-up {
  color: var(--green);
}

.service-down {
  color: var(--red);
}

.service-warn {
  color: var(--gold);
}

.chart-fill {
  fill: rgba(88, 182, 255, 0.08);
}

.chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offline {
  color: var(--red);
}

.healthy {
  color: var(--green);
}

.warm {
  color: var(--gold);
}

@media (max-width: 980px) {
  .hero,
  .details-grid,
  .card-grid,
  .services-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  h1 {
    max-width: none;
  }
}
