:root {
  --bg: #0a0b0f;
  --panel: rgba(18, 21, 29, 0.82);
  --stroke: rgba(255,255,255,0.08);
  --text: #f5f7fb;
  --muted: #9ba3b4;
  --accent: #8b5cf6;
  --accent-2: #5eead4;
  --success: #22c55e;
  --warm: #f59e0b;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139,92,246,0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(94,234,212,0.12), transparent 25%),
    var(--bg);
}

h1,h2,h3,p,small,strong { margin: 0; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  padding: 32px;
  border-right: 1px solid var(--stroke);
  background: rgba(8,10,15,0.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow, .label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  color: var(--muted);
}

h1 { font-size: 40px; line-height: 1; margin-top: 8px; }
h2 { font-size: 32px; margin-top: 6px; }
h3 { font-size: 24px; margin-top: 8px; }
small, .muted { color: var(--muted); }

.menu { display: grid; gap: 10px; margin-top: 40px; }
.menu a {
  color: #d6d9e2;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
}
.menu a.active, .menu a:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--stroke);
}

.version-card, .card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.version-card { padding: 18px; }
.version-card strong { display:block; margin-top:8px; font-size:24px; }
.version-card small { display:block; margin-top:6px; }

.main { padding: 32px; }
.topbar {
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.topbar-right { display:flex; gap: 10px; flex-wrap: wrap; }

.pill, .inline-note {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
}
.inline-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 10px;
  color: var(--muted);
}
.pill.success { color: #d3ffe0; background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.22); }

.hero {
  padding: 28px;
  display:flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(255,255,255,0.02));
}
.hero-meta {
  display:grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 18px;
}
.hero-meta strong { display:block; margin-top:8px; }

.grid { display:grid; gap: 18px; margin-top: 18px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-cols, .lower-grid { grid-template-columns: 1.2fr 1fr; }
.single { grid-template-columns: 1fr; }
.card { padding: 24px; }

.stat strong { display:block; font-size: 28px; margin: 10px 0 8px; }
.stat p { color: var(--muted); line-height: 1.5; }
.card-head {
  display:flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.timeline, .checklist, .bridge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  display:grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.timeline li:first-child,
.checklist li:first-child,
.bridge-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.timeline span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(139,92,246,0.12);
}
.timeline p,
.checklist li,
.bridge-list p,
.bridge-list small {
  color: var(--muted);
  line-height: 1.5;
}
.timeline small,
.bridge-list strong {
  display: block;
  margin-top: 6px;
}
.checklist li,
.bridge-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bridge-list strong { font-size: 15px; }

.table { display:grid; gap: 8px; }
.row {
  display:grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.row.head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-top: 0;
  padding-top: 0;
}
.row strong { font-size: 16px; }
.status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--stroke);
  color: #fff;
}
.status.ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); color: #d3ffe0; }
.status.warm { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.22); color: #ffecbf; }
.notice {
  border-style: dashed;
  color: #ffd8d8;
  background: rgba(120, 22, 22, 0.18);
}
.is-error .main { filter: saturate(.8); }

@media (max-width: 1100px) {
  .shell, .metrics, .two-cols, .lower-grid { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .hero, .topbar { flex-direction: column; align-items: start; }
  .hero-meta { grid-template-columns: 1fr; }
}
