:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0c1a2d;
  --surface-2: #10233a;
  --line: #223b59;
  --text: #f2f7ff;
  --muted: #8fa8c5;
  --ok: #35e0b7;
  --warning: #f5bd4f;
  --danger: #ff6f91;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(32, 178, 170, .15), transparent 33rem),
    radial-gradient(circle at 100% 0, rgba(55, 110, 220, .15), transparent 35rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 52px; }
.nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 54px; }
.nav a { color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--text); }
.nav button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}
.nav button:disabled { opacity: .55; cursor: wait; }
.eyebrow { margin: 0 0 10px; color: var(--ok); font-size: .72rem; font-weight: 850; letter-spacing: .18em; }
.headline { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.headline p { margin: 15px 0 0; color: var(--muted); font-size: 1rem; }
.overall { flex: none; padding: 9px 13px; border: 1px solid currentColor; border-radius: 999px; font-size: .82rem; font-weight: 850; }
.overall.operational { color: var(--ok); }
.overall.slow { color: var(--warning); }
.overall.down { color: var(--danger); }
.overall.checking { color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 54px; }
.service {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 35, 58, .95), rgba(9, 24, 41, .95));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.service h2 { margin: 0; font-size: 1.2rem; }
.service-description { min-height: 42px; margin: 7px 0 24px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.badge { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); font-size: .68rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.service.operational .badge { color: var(--ok); }
.service.slow .badge { color: var(--warning); }
.service.down .badge { color: var(--danger); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { padding: 12px; border: 1px solid rgba(84, 119, 157, .28); border-radius: 12px; background: rgba(5, 16, 29, .4); }
.metric span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; margin-top: 4px; font-size: 1rem; }
.service-message { margin: 16px 0 0; color: var(--muted); font-size: .8rem; }
.service-link { display: inline-block; margin-top: 16px; color: #bdd5f2; font-size: .78rem; font-weight: 750; }
.summary { display: grid; grid-template-columns: 1.25fr 1fr 1.35fr; gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.summary div { padding: 15px 17px; background: var(--surface); }
.summary span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.summary strong { display: block; margin-top: 5px; font-size: .82rem; }
.footnote { margin: 16px 2px 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.skeleton div { height: 15px; margin-bottom: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), #18304c, var(--surface-2)); background-size: 200% 100%; animation: pulse 1.4s infinite; }
.skeleton div:last-child { width: 65%; }
@keyframes pulse { to { background-position: -200% 0; } }

@media (max-width: 700px) {
  .wrap { width: min(100% - 22px, 980px); padding-top: 18px; }
  .nav { margin-bottom: 38px; }
  .headline { align-items: flex-start; flex-direction: column; }
  .services { grid-template-columns: 1fr; margin-top: 36px; }
  .summary { grid-template-columns: 1fr; }
}
