:root {
  color-scheme: dark;
  --ink: #111318;
  --panel: #191d24;
  --panel-2: #202630;
  --line: #343d4a;
  --text: #f2eee7;
  --muted: #a9b0bc;
  --quiet: #6f7a88;
  --ok: #3ddc97;
  --warn: #f0b84b;
  --bad: #ff6b6b;
  --blue: #6fb4ff;
  --violet: #b993ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(61, 220, 151, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(111, 180, 255, 0.12), transparent 28rem),
    linear-gradient(135deg, #111318 0%, #151a21 52%, #0f1116 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.eyebrow,
.section-label,
.metric-label {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.home-message {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 0;
}

h2 {
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.95;
  max-width: 760px;
}

h3 {
  font-size: 18px;
}

.status-pill {
  align-items: center;
  background: rgba(25, 29, 36, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.pulse {
  background: var(--warn);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(240, 184, 75, 0.45);
  height: 10px;
  width: 10px;
  animation: pulse 1.8s infinite;
}

.status-pill[data-state="ok"] .pulse {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5);
}

.status-pill[data-state="error"] .pulse {
  background: var(--bad);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5);
}

.hero {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-bottom: 28px;
  min-height: 340px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

.signal {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.signal-ring {
  border: 1px solid rgba(242, 238, 231, 0.2);
  border-radius: 50%;
  height: 100%;
  position: absolute;
  width: 100%;
}

.signal-ring::before,
.signal-ring::after {
  border: 1px solid rgba(242, 238, 231, 0.16);
  border-radius: 50%;
  content: "";
  inset: 34px;
  position: absolute;
}

.signal-ring::after {
  inset: 78px;
}

.signal-core {
  background: var(--warn);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(240, 184, 75, 0.55);
  height: 92px;
  width: 92px;
}

.signal-core[data-state="ok"] {
  background: var(--ok);
  box-shadow: 0 0 90px rgba(61, 220, 151, 0.55);
}

.signal-core[data-state="error"] {
  background: var(--bad);
  box-shadow: 0 0 90px rgba(255, 107, 107, 0.48);
}

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.metrics-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric,
.panel {
  background: rgba(25, 29, 36, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
}

.metric strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.details {
  display: grid;
  gap: 14px;
  grid-template-columns: 0.92fr 1.08fr;
}

.panel {
  min-height: 240px;
  padding: 22px;
}

.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

button {
  background: var(--text);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 16px;
}

.facts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.facts div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

dt {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

dd span + span {
  color: var(--muted);
}

pre {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: 14px/1.6 "Cascadia Mono", "Consolas", monospace;
  margin: 0;
  min-height: 150px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (max-width: 860px) {
  .topbar,
  .hero {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .signal {
    width: min(240px, 80vw);
  }

  .metrics,
  .details {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .metrics-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
