:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg2: #0b1727;
  --panel: rgba(9, 17, 29, 0.82);
  --line: rgba(164, 190, 218, 0.14);
  --text: #eaf2ff;
  --muted: #8ea2bd;
  --cyan: #59d7ff;
  --lime: #67ef9d;
  --amber: #f3c969;
  --red: #ff6b7a;
  --violet: #a78bfa;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(89, 215, 255, 0.14), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(103, 239, 157, 0.10), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(167, 139, 250, 0.12), transparent 26%),
    linear-gradient(180deg, #050b13 0%, #08111c 46%, #05090f 100%);
  color: var(--text);
}

.bg-orb {
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-a { top: -14vw; left: -18vw; background: rgba(89, 215, 255, 0.22); }
.bg-orb-b { right: -16vw; bottom: -18vw; background: rgba(103, 239, 157, 0.18); }

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: end;
  padding: 12px 0 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 760px;
  margin: 16px 0 0;
  color: #bfd2ea;
  font-size: 18px;
  line-height: 1.7;
}

.hero-aside {
  display: grid;
  gap: 14px;
}

.status-card, .metric, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(103, 239, 157, 0.12);
}

.status-label, .metric-label, .panel-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.status-value {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
}

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

.meta-grid > div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(9, 17, 29, 0.7);
  border: 1px solid var(--line);
}

.meta-grid span,
.summary-list span,
.metric em {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.meta-grid strong,
.summary-list strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.metric {
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.metric strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.metric em {
  margin-top: 10px;
  font-style: normal;
}

.panel {
  border-radius: 24px;
  padding: 22px;
}

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

.panel h2 {
  margin: 7px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.swatch.req { background: var(--cyan); }
.swatch.blk { background: var(--red); }

.chart-panel svg {
  width: 100%;
  height: 340px;
  display: block;
}

.lower-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 14px;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(164, 190, 218, 0.08);
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(7, 13, 22, 0.55);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pill.good { background: rgba(103, 239, 157, 0.10); color: #a5ffd0; }
.pill.warn { background: rgba(243, 201, 105, 0.12); color: #ffe29a; }
.pill.bad { background: rgba(255, 107, 122, 0.12); color: #ffb1ba; }

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list > div {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 13, 22, 0.44);
}

.api-panel {
  margin-top: 14px;
}

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

.endpoint-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(89, 215, 255, 0.06), rgba(7, 13, 22, 0.30)),
    rgba(7, 13, 22, 0.42);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.endpoint-card:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 215, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(89, 215, 255, 0.10), rgba(7, 13, 22, 0.36)),
    rgba(7, 13, 22, 0.50);
}

.endpoint-card span {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
}

.endpoint-card strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.endpoint-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.path-text {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero, .lower-grid { grid-template-columns: 1fr; }
  .endpoint-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100vw - 20px, 1280px); padding-top: 20px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 38px; }
  .lede { font-size: 16px; }
}
