:root {
  color-scheme: dark;
  --bg: #111318;
  --surface: #1b1d23;
  --surface-2: #22252c;
  --border: #343740;
  --text: #f4f5f7;
  --muted: #a4a7b1;
  --blue: #64b4ff;
  --blue-strong: #3478e5;
  --green: #49d38a;
  --yellow: #f2bd56;
  --red: #ff6b75;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% 4%, rgba(52,120,229,.15), transparent 28rem), var(--bg); color: var(--text); }
a { color: inherit; }
.header, main, footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.header { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 25px; font-weight: 800; text-decoration: none; letter-spacing: -.05em; }
.logo strong { color: var(--blue); }
.quiet-link { color: var(--muted); text-decoration: none; font-weight: 650; }
.quiet-link:hover { color: var(--text); }
.hero { padding: 80px 0 56px; max-width: 860px; }
.eyebrow, .label { margin: 0 0 16px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .18em; }
h1 { max-width: 820px; margin: 0; font-size: clamp(46px, 7vw, 88px); line-height: .97; letter-spacing: -.055em; }
.lead { max-width: 720px; margin: 32px 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.primary { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 0; border-radius: 16px; background: var(--blue-strong); color: white; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary:hover { transform: translateY(-2px); background: #4387ef; }
.primary:disabled { opacity: .65; cursor: wait; transform: none; }
.card { border: 1px solid var(--border); border-radius: 24px; background: rgba(27,29,35,.94); }
.summary { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }
.summary .label { color: var(--muted); }
.summary h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; }
.summary p { margin: 0; color: var(--muted); line-height: 1.5; }
.summary-icon { width: 80px; height: 80px; flex: 0 0 80px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); font-size: 34px; font-weight: 850; }
.summary-icon.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, var(--border)); }
.summary-icon.warn { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, var(--border)); }
.summary-icon.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.checks { margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.check { min-height: 286px; padding: 24px; }
.check-head { display: flex; align-items: center; justify-content: space-between; }
.check-number { color: #6f737e; font-size: 13px; font-weight: 800; letter-spacing: .15em; }
.badge { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.badge.ok { color: var(--green); background: rgba(73,211,138,.08); border-color: rgba(73,211,138,.3); }
.badge.warn { color: var(--yellow); background: rgba(242,189,86,.08); border-color: rgba(242,189,86,.3); }
.badge.bad { color: var(--red); background: rgba(255,107,117,.08); border-color: rgba(255,107,117,.3); }
.badge.loading { color: var(--blue); border-color: rgba(100,180,255,.3); }
.check h3 { margin: 44px 0 8px; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.value { min-height: 42px; margin: 0; overflow-wrap: anywhere; font-size: 28px; font-weight: 780; letter-spacing: -.03em; }
.value.small { font-size: 18px; line-height: 1.45; }
.detail { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.speed { margin: 24px 0 72px; padding: 32px; display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.speed h2, .notes h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.035em; }
.speed p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.55; }
.notes { padding-bottom: 72px; }
.notes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.notes-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.notes-grid strong { color: var(--text); }
footer { padding: 24px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .header, main, footer { width: min(100% - 32px, 680px); }
  .header { height: 80px; }
  .hero { padding: 56px 0 40px; }
  .checks, .notes-grid { grid-template-columns: 1fr; gap: 16px; }
  .check { min-height: 230px; }
  .speed { align-items: stretch; flex-direction: column; }
  .speed .primary { width: 100%; }
}

@media (max-width: 520px) {
  .header, main, footer { width: calc(100% - 24px); }
  .hero { padding-top: 40px; }
  h1 { font-size: 48px; }
  .lead { margin: 24px 0; font-size: 17px; }
  .hero .primary { width: 100%; }
  .summary { min-height: 0; padding: 24px; align-items: flex-start; }
  .summary-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 24px; }
  .check, .speed { padding: 24px; border-radius: 20px; }
  .speed { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

