:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(15, 23, 42, 0.82);
  --line: rgba(148, 163, 184, 0.24);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.76);
  --accent: #7dd3fc;
  --good: #86efac;
  --warn: #fde68a;
  --bad: #fca5a5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 32rem),
    var(--bg);
}

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

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(1.5rem, 5vw, 3rem);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.topnav a {
  min-height: 2.45rem;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 7vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.panel {
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.panel--quiet {
  margin-bottom: 3rem;
}

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

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

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

th, td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
}

.pill[data-state="fresh"] {
  color: var(--good);
  border-color: rgba(134, 239, 172, 0.35);
}

.pill[data-state="stale"],
.pill[data-state="warning"] {
  color: var(--warn);
  border-color: rgba(253, 230, 138, 0.35);
}

.pill[data-state="offline"],
.pill[data-state="missing"] {
  color: var(--bad);
  border-color: rgba(252, 165, 165, 0.35);
}

.registry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.registry-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.32);
}

.registry-card p {
  color: var(--muted);
  line-height: 1.5;
}

.registry-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

ul {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .registry {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1rem, 1180px);
  }

  .topnav a {
    width: 100%;
    justify-content: center;
  }

  .panel {
    border-radius: 18px;
  }
}
