:root {
  color-scheme: dark;
  --ink: #f4f7f5;
  --muted: #93a099;
  --panel: #101814;
  --panel-strong: #16211b;
  --line: #29362f;
  --volt: #b8ff57;
  --mint: #57f2a7;
  --amber: #ffbf5e;
  --red: #ff6b65;
  --bg: #080d0a;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, #193522 0, transparent 30rem),
    linear-gradient(180deg, #0b120e 0, var(--bg) 55%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 4px 11px 4px;
  color: #0a120d;
  background: var(--volt);
  font-size: 1rem;
  letter-spacing: 0;
}

.live-label,
.state-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.live-label i,
.state-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
}

.hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--volt);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-row {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.status-orb {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 14px #ffffff05;
  transition: 300ms ease;
}

.status-orb.operational {
  background: var(--mint);
  box-shadow:
    0 0 72px #57f2a766,
    0 0 0 14px #57f2a70b;
}

.status-orb.degraded {
  background: var(--amber);
  box-shadow:
    0 0 72px #ffbf5e55,
    0 0 0 14px #ffbf5e0b;
}

.status-orb.outage {
  background: var(--red);
  box-shadow:
    0 0 72px #ff6b6555,
    0 0 0 14px #ff6b650b;
}

.meta-row,
.component-meta,
.incident-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-row {
  margin-top: 38px;
  color: var(--muted);
  font-size: 0.8rem;
}

button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
}

button:hover,
button:focus-visible {
  border-color: var(--volt);
  outline: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.section {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 390px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

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

.component-card {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 23px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
}

.component-card.outage {
  border-color: #ff6b654d;
}

.component-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.component-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--volt);
  font-weight: 800;
}

.component-card.outage .state-pill i {
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
}

.component-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.component-card > p {
  min-height: 50px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.component-meta {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.incident-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.incident {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 18px;
  padding: 24px;
}

.incident + .incident {
  border-top: 1px solid var(--line);
}

.incident-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.incident-dot.investigating,
.incident-dot.monitoring {
  background: var(--amber);
}

.incident h3 {
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.incident p,
.incident time {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 800px) {
  main {
    width: min(100% - 28px, 640px);
  }

  .hero {
    padding-top: 54px;
  }

  .status-orb {
    width: 58px;
    height: 58px;
  }

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

  .component-card {
    min-height: 210px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .live-label {
    font-size: 0;
  }

  .hero-row {
    align-items: start;
  }

  h1 {
    font-size: 2.65rem;
  }

  .meta-row,
  footer {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
}
