:root {
  --bg: #03070a;
  --panel: #091116;
  --panel-2: #101a20;
  --line: #1e333b;
  --text: #edf8fa;
  --muted: #91a6ad;
  --accent: oklch(88% 0.155 200);
  --accent-strong: #12dbe8;
  --ok: #55e6a5;
  --warn: #ffd36a;
  --bad: #ff6f7f;
  --unknown: #94a3ad;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(18, 219, 232, 0.08), transparent 360px),
    radial-gradient(circle at 50% -10%, rgba(18, 219, 232, 0.1), transparent 430px),
    var(--bg);
  color: var(--text);
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 180px 1fr minmax(240px, 300px);
  gap: 28px;
  align-items: center;
  min-height: 260px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 164px;
  height: auto;
}

.headline {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font: 700 13px/1.2 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 24px;
  letter-spacing: 0;
}

.headline p:not(.eyebrow),
.section-title p,
.status-card p,
.component p,
.incident p,
.empty {
  color: var(--muted);
  line-height: 1.6;
}

.status-card,
.component,
.incident,
.history {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.status-card {
  padding: 22px;
}

.status-card p {
  margin: 18px 0 4px;
}

.status-card strong {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 700 12px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.pill.operational {
  color: var(--ok);
  background: rgba(85, 230, 165, 0.08);
}

.pill.degraded,
.pill.partial_outage {
  color: var(--warn);
  background: rgba(255, 211, 106, 0.08);
}

.pill.outage {
  color: var(--bad);
  background: rgba(255, 111, 127, 0.08);
}

.pill.collecting {
  color: var(--unknown);
  background: rgba(148, 163, 173, 0.08);
}

.section {
  padding: 34px 0 0;
}

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

.section-title p {
  margin-bottom: 0;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.component {
  padding: 18px;
}

.component-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.component h3 {
  margin: 0;
  font-size: 17px;
}

.component p {
  min-height: 52px;
  margin-bottom: 18px;
}

.meta {
  display: grid;
  gap: 8px;
  font: 13px/1.45 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}

.meta a {
  color: var(--accent);
  text-decoration: none;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.history {
  display: grid;
  grid-template-columns: repeat(15, minmax(16px, 1fr));
  gap: 6px;
  padding: 18px;
  min-height: 88px;
}

.day {
  min-height: 34px;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.day.ok {
  background: rgba(85, 230, 165, 0.28);
  border-color: rgba(85, 230, 165, 0.5);
}

.day.warn {
  background: rgba(255, 211, 106, 0.24);
  border-color: rgba(255, 211, 106, 0.46);
}

.day.bad {
  background: rgba(255, 111, 127, 0.26);
  border-color: rgba(255, 111, 127, 0.5);
}

.incidents {
  display: grid;
  gap: 12px;
}

.incident {
  padding: 18px;
}

.incident h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.empty {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .brand {
    justify-content: flex-start;
  }

  .component-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    display: block;
  }
}
