:root {
  --bg: #0b0b0f;
  --panel: #14141a;
  --border: #26262f;
  --text: #ececf2;
  --muted: #9a9aa8;
  --accent: #4f8dff;
  --up: #4ade80;
  --down: #ff6b6b;
  --warn: #fbbf24;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@font-face { font-family: 'Geist'; src: url('fonts/Geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; width: 620px; height: 620px; left: 50%; top: -380px; transform: translateX(-50%);
  border-radius: 50%; filter: blur(100px); opacity: .35;
  background: radial-gradient(circle at 40% 40%, #2f6fff, transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(-50%) translateY(40px) scale(1.1); } }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 75%);
}

.top {
  max-width: 900px; margin: 0 auto; padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mark {
  width: 16px; height: 16px; border-radius: 5px;
  background: linear-gradient(135deg, #a8c8ff, #3f7ef0 60%, #2fc4ff);
  box-shadow: 0 6px 16px rgba(79,141,255,.35);
}
.brand .sub { color: var(--muted); font-weight: 500; }
.back { margin-left: auto; color: var(--muted); font-size: 13px; }
.back:hover { color: var(--text); }

main { max-width: 900px; margin: 0 auto; padding: 22px 22px 70px; }
.hero { padding: 26px 0 22px; }
.lede { color: var(--muted); margin: 10px 0 20px; max-width: 46em; }
.overall {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  font-size: 14px; font-weight: 500;
}
.overall .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.overall.up { border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
.overall.up .dot { background: var(--up); box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.overall.down { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); }
.overall.down .dot { background: var(--down); box-shadow: 0 0 0 4px rgba(255,107,107,.15); }
.overall.degraded { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.overall.degraded .dot { background: var(--warn); }
.stamp { color: #6f6f7e; font-size: 12.5px; margin: 12px 0 0; font-family: var(--mono); }

.groups { display: flex; flex-direction: column; gap: 22px; }
.group h2 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px; font-weight: 600;
}
.rows { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); }
.row {
  display: grid; grid-template-columns: 14px 1fr auto 62px 74px;
  align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); }
.row.down .dot { background: var(--down); }
.row.down { background: rgba(255,107,107,.04); }
.row .name { font-size: 14.5px; }
.row .name small { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.row .ms { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 62px; text-align: right; }
.row .state { font-size: 12.5px; color: var(--muted); min-width: 62px; text-align: right; }
.row.down .state { color: var(--down); }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.bars i { width: 3px; height: 100%; border-radius: 1px; background: rgba(74,222,128,.55); }
.bars i.down { background: var(--down); }
.bars i.none { background: rgba(255,255,255,.08); }

.skel-group { height: 120px; border-radius: 14px; background: linear-gradient(90deg, #14141a, #1b1b22, #14141a); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { margin-top: 34px; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 620px) {
  .row { grid-template-columns: 12px 1fr 74px; }
  .bars { display: none; }
  .row .ms { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
