:root {
  --bg: #0b0d10;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eaed;
  --muted: #8b939e;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.14);
  --danger: #f87171;
  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -30% 0 auto;
  height: 70vh;
  background: radial-gradient(
    55% 60% at 50% 0%,
    rgba(74, 222, 128, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 3.5rem);
  width: min(100% - 2.5rem, 60rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(2rem, 7vw, 4.5rem);
}

/* Brand -------------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Hero --------------------------------------------------------------- */

.hero {
  margin-block: auto;
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__lede {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* Status ------------------------------------------------------------- */

.status {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  overflow: hidden;
}

.status__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.status__dot[data-state="ok"] {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.status__dot[data-state="error"] {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

.status__label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.status__value {
  margin-left: auto;
}

.status__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--border);
}

.status__cell {
  padding: 1rem 1.15rem;
  background: var(--bg);
}

.status__cell dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.status__cell dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.status__cell code {
  font: inherit;
  color: var(--accent);
}

/* Footer ------------------------------------------------------------- */

.foot {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Breakpoints -------------------------------------------------------- */

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

  .hero__lede {
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status__dot {
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
  }
}
