:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --primary: 0 84% 60%;
  --primary-solid: #dc2626;
  --primary-hover: #b91c1c;
  --border: 0 0% 20%;
  --card-bg: 0 0% 7%;
  --muted: 0 0% 64%;
  --ok: #22c55e;
  --ok-dim: rgba(34, 197, 94, 0.12);
  --down: #ef4444;
  --down-dim: rgba(239, 68, 68, 0.12);
  --font: Inter, "Inter Fallback", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--border));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.brand-text span { color: hsl(var(--primary)); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.header-nav > a:not(.btn) {
  color: hsl(var(--muted));
  font-size: 0.9rem;
  font-weight: 500;
}
.header-nav > a:not(.btn):hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--primary-solid);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }

.hero {
  padding: 2.75rem 0 1.75rem;
  animation: rise 0.55s ease both;
}
.eyebrow {
  margin: 0 0 0.75rem;
  color: hsl(var(--primary));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.hero h1 span { color: hsl(var(--primary)); }
.lede {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  color: hsl(var(--muted));
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.muted { color: hsl(var(--muted)); font-size: 0.85rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.pill-ok { color: var(--ok); background: var(--ok-dim); border-color: transparent; }
.pill-down { color: var(--down); background: var(--down-dim); border-color: transparent; }
.pill-loading { color: hsl(var(--muted)); }

.panel {
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  animation: rise 0.55s ease both;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stat-label {
  display: block;
  color: hsl(var(--muted));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.stat-value {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.region { animation-delay: 0.05s; }
.region-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid hsl(var(--border));
}
.region-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.region-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: hsl(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.region-tag.ok { color: var(--ok); }
.region-tag.down { color: var(--down); }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
}
.row:last-child { border-bottom: 0; }
.row-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.row-name {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.row-side {
  text-align: right;
  display: grid;
  gap: 0.2rem;
  justify-items: end;
}
.uptime {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.latency {
  color: hsl(var(--muted));
  font-size: 0.8rem;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0 2.5rem;
}
.footer-inner { display: grid; gap: 0.85rem; }
.brand-footer img { width: 28px; height: 28px; }
.footer-copy,
.footer-legal {
  margin: 0;
  color: hsl(var(--muted));
  font-size: 0.82rem;
  max-width: 40rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-links a { color: hsl(var(--primary)); }
.footer-links a:hover { text-decoration: underline; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .summary { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row-side { justify-items: start; text-align: left; }
  .header-nav > a:not(.btn) { display: none; }
}
