:root {
  --bg: #07110d;
  --panel: #0d1d15;
  --panel2: #10281c;
  --text: #dfffe8;
  --muted: #8db79a;
  --line: rgba(132, 255, 161, 0.18);
  --ok: #58ff8a;
  --warn: #ffd166;
  --bad: #ff5c77;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88,255,138,.12), transparent 35%),
    linear-gradient(180deg, #050a08, var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.025) 0,
    rgba(255,255,255,.025) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,40,28,.88), rgba(8,22,15,.92));
  box-shadow: 0 0 32px rgba(88,255,138,.07), inset 0 0 18px rgba(88,255,138,.04);
  border-radius: 18px;
  padding: 22px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ok);
  letter-spacing: .18em;
  font-size: .85rem;
}

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); margin-bottom: 8px; text-shadow: 0 0 20px rgba(88,255,138,.32); }
h2 { color: var(--ok); }
.subtitle, .muted, footer { color: var(--muted); }

.status-card {
  min-width: 230px;
  display: grid;
  gap: 8px;
  text-align: right;
}

.dot {
  justify-self: end;
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}
.dot.online { color: var(--ok); background: var(--ok); }
.dot.warning { color: var(--warn); background: var(--warn); }
.dot.offline { color: var(--bad); background: var(--bad); }
.dot.unknown { color: var(--muted); background: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.grid.two { grid-template-columns: 1.2fr .8fr; }

.metric span, .telemetry span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 8px;
}
.metric strong { font-size: 1.25rem; }

.telemetry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.telemetry div, .band {
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.bands { display: grid; gap: 12px; }
.band {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line);
}
.badge.on { color: var(--ok); }
.badge.off { color: var(--bad); }

code {
  color: var(--ok);
  background: rgba(0,0,0,.25);
  padding: 2px 6px;
  border-radius: 6px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px 0;
  font-size: .85rem;
}

@media (max-width: 800px) {
  .hero, footer { flex-direction: column; align-items: flex-start; }
  .status-card { text-align: left; }
  .dot { justify-self: start; }
  .grid, .grid.two, .telemetry { grid-template-columns: 1fr; }
}
