:root {
  color-scheme: dark;
  --background: #0b0f17;
  --panel: rgba(19, 26, 40, 0.82);
  --panel-strong: #141c2b;
  --border: rgba(148, 163, 184, 0.15);
  --text: #f7f8fb;
  --muted: #96a1b4;
  --pink: #e85b8f;
  --green: #33d69f;
  --amber: #f5b94c;
  --red: #fb7185;
  --unknown: #344054;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(232, 91, 143, 0.18), transparent 33rem),
    radial-gradient(circle at 90% 35%, rgba(73, 99, 255, 0.10), transparent 34rem),
    linear-gradient(145deg, #090d14, var(--background) 50%, #0d1320);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-header, main, footer { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}

.brand { display: flex; align-items: center; gap: 18px; color: var(--text); text-decoration: none; }
.brand img { display: block; width: 168px; height: auto; }
.brand span { padding-left: 18px; border-left: 1px solid var(--border); color: #c8d0dc; font-size: .92rem; letter-spacing: .02em; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 22, 34, .7);
  color: #c8d0dc;
  font-size: .78rem;
  font-weight: 650;
}

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(51, 214, 159, .1); }

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(24, 32, 49, .90), rgba(14, 20, 31, .90));
  box-shadow: 0 24px 65px rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px);
}

.hero { display: flex; align-items: center; justify-content: space-between; min-height: 214px; padding: 42px 46px; overflow: hidden; position: relative; }
.hero::after { position: absolute; right: -80px; bottom: -135px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(51, 214, 159, .09), transparent 66%); content: ""; }
.eyebrow { margin: 0 0 10px; color: var(--pink); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 12px; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -.045em; }
.hero-copy > p:last-child { max-width: 600px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

.overall-mark { position: relative; z-index: 1; display: grid; flex: 0 0 auto; width: 92px; height: 92px; margin-left: 32px; place-items: center; border-radius: 50%; background: rgba(51, 214, 159, .09); box-shadow: inset 0 0 0 1px rgba(51, 214, 159, .20), 0 0 50px rgba(51, 214, 159, .08); }
.overall-mark span { width: 28px; height: 28px; border: 8px solid var(--green); border-radius: 50%; box-shadow: 0 0 24px rgba(51, 214, 159, .42); }
.overall-mark.degraded { background: rgba(245, 185, 76, .09); box-shadow: inset 0 0 0 1px rgba(245, 185, 76, .25); }
.overall-mark.degraded span { border-color: var(--amber); box-shadow: 0 0 24px rgba(245, 185, 76, .35); }
.overall-mark.outage { background: rgba(251, 113, 133, .09); box-shadow: inset 0 0 0 1px rgba(251, 113, 133, .25); }
.overall-mark.outage span { border-color: var(--red); box-shadow: 0 0 24px rgba(251, 113, 133, .35); }
.overall-mark.loading span { border-color: var(--muted); border-top-color: transparent; animation: spin 1s linear infinite; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-heading { margin: 58px 2px 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.035em; }

.components { display: grid; gap: 14px; }
.component { padding: 25px 27px 23px; }
.component-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 25px; }
.component-name { display: flex; align-items: center; min-width: 0; gap: 13px; }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(51, 214, 159, .10); }
.status-dot.degraded { background: var(--amber); box-shadow: 0 0 0 5px rgba(245, 185, 76, .10); }
.status-dot.outage { background: var(--red); box-shadow: 0 0 0 5px rgba(251, 113, 133, .10); }
.component h3 { overflow: hidden; margin: 0; font-size: 1.02rem; font-weight: 680; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.metric { min-width: 108px; text-align: right; }
.metric-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.metric-value { font-size: .94rem; font-weight: 700; }
.history { display: grid; grid-template-columns: repeat(90, minmax(2px, 1fr)); gap: 3px; height: 30px; margin-top: 22px; }
.history-bar { min-width: 2px; height: 30px; border-radius: 3px; background: var(--green); opacity: .92; }
.history-bar.degraded { background: var(--amber); }
.history-bar.outage { background: var(--red); }
.history-bar.no-data { background: var(--unknown); opacity: .55; }

.history-key { display: flex; align-items: center; gap: 24px; margin-top: 18px; padding: 16px 20px; color: var(--muted); font-size: .75rem; }
.history-key > div { display: flex; align-items: center; gap: 7px; }
.key-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.key-dot.degraded { background: var(--amber); }
.key-dot.no-data { background: var(--unknown); }
.history-caption { display: flex; flex: 1; align-items: center; gap: 10px; margin-left: auto; text-align: right; }
.history-caption span { height: 1px; flex: 1; background: var(--border); }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 40px 2px 52px; color: var(--muted); font-size: .76rem; }
footer p { margin: 0; }
.error-card, .noscript { padding: 28px; border: 1px solid rgba(251,113,133,.3); border-radius: 18px; background: rgba(251,113,133,.08); color: #fecdd3; text-align: center; }
.noscript { position: fixed; right: 20px; bottom: 20px; left: 20px; }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 24px, 1080px); }
  .site-header { min-height: 86px; }
  .brand img { width: 130px; }
  .brand span, .live-pill { display: none; }
  .hero { min-height: 200px; padding: 30px 25px; }
  .overall-mark { width: 64px; height: 64px; margin-left: 14px; }
  .overall-mark span { width: 21px; height: 21px; border-width: 6px; }
  .section-heading { margin-top: 42px; }
  .component { padding: 22px 18px 20px; }
  .component-top { grid-template-columns: minmax(0, 1fr) auto; gap: 15px; }
  .metric { min-width: 88px; }
  .history { grid-template-columns: repeat(90, minmax(1px, 1fr)); gap: 2px; height: 26px; }
  .history-bar { height: 26px; }
  .history-key > div { display: none; }
  .history-caption { margin: 0; }
  footer { display: block; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
