:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  --bg: #09111f;
  --bg-accent: radial-gradient(circle at top, rgba(45, 212, 191, 0.18), transparent 36%),
    radial-gradient(circle at right, rgba(56, 189, 248, 0.16), transparent 28%),
    linear-gradient(180deg, #09111f 0%, #0f172a 100%);
  --panel: rgba(15, 23, 42, 0.86);
  --panel-border: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --ok: #34d399;
  --warn: #fbbf24;
  --error: #f87171;
  --neutral: #60a5fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-accent);
  color: var(--text);
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero {
  margin-bottom: 2rem;
}

.eyebrow,
.panel-label,
.status-label,
.footnote,
.link-copy {
  color: var(--muted);
}

.eyebrow,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  margin: 0 0 0.75rem;
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: 1rem;
  max-width: 10ch;
}

.lede {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(8, 15, 30, 0.35);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.refresh-button {
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
}

.refresh-button:hover {
  background: rgba(59, 130, 246, 0.2);
}

.status-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card,
.link-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  padding: 1rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.06);
}

.indicator-ok {
  background: var(--ok);
}

.indicator-warn {
  background: var(--warn);
}

.indicator-error {
  background: var(--error);
}

.indicator-pending,
.indicator-neutral {
  background: var(--neutral);
}

.status-detail {
  line-height: 1.6;
  margin-bottom: 0;
}

.footnote {
  margin: 1rem 0 0;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(30, 41, 59, 0.95);
}

.link-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

@media (max-width: 860px) {
  .status-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .refresh-button {
    width: 100%;
  }
}
