:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0e1630;
  --muted: #5b6480;
  --line: #e2e6f0;
  --night: #0b1530;
  --night-2: #1d3a7a;
  --amber: #f5a623;
  --amber-ink: #a8650a;
  --yours: #2f6fed;
  --good: #1f9d55;
  --bad: #d64545;
  --menu: rgba(246, 247, 250, 0.92);
  --shadow: 0 1px 2px rgba(14, 22, 48, 0.06), 0 12px 32px rgba(14, 22, 48, 0.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070c1c;
    --surface: #0f1830;
    --ink: #eef1fa;
    --muted: #9aa3bf;
    --line: #1f2a47;
    --amber-ink: #f5b54a;
    --yours: #6c9cff;
    --good: #3fcf7f;
    --bad: #ff6b6b;
    --menu: rgba(36, 40, 54, 0.92);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
code { font: 0.86em var(--mono); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 42px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
section { padding: 72px 0; }
@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  section { padding: 104px 0; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.pill { color: #fff; }
@media (max-width: 640px) {
  .nav nav a:not(.pill) { display: none; }
}

/* Buttons */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--night); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}
@media (prefers-color-scheme: dark) { .pill { background: var(--amber); color: #1b1203; } .nav nav a.pill { color: #1b1203; } }
.pill:hover { transform: translateY(-1px); }
.pill.big { padding: 14px 24px; font-size: 17px; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.actions.center { justify-content: center; }
.fineprint { color: var(--muted); font-size: 14px; line-height: 1.7; }
.fineprint code { display: inline-block; max-width: 100%; overflow-x: auto; white-space: nowrap; vertical-align: bottom; background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }

/* Hero */
.hero { padding-top: 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding-top: 88px; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent); }
h1 { font-size: clamp(44px, 8vw, 76px); letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--amber-ink); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 22px; max-width: 34em; }

.hero-demo {
  position: relative; border-radius: 20px; padding: 0 0 28px;
  background: radial-gradient(120% 90% at 80% 0%, #2a4f9e 0%, var(--night) 62%);
  box-shadow: var(--shadow); overflow: hidden; min-height: 460px;
}
.menubar {
  display: flex; justify-content: space-between; align-items: center;
  height: 30px; padding: 0 12px; font-size: 13px; color: #fff;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(20px);
}
.mb-left, .mb-right { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.mb-left span:not(.apple) { opacity: 0.85; }
.apple { width: 12px; height: 14px; background: #fff; border-radius: 6px 6px 7px 7px; opacity: 0.9; }
.mb-item { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 5px; }
.mb-item.active { background: rgba(255, 255, 255, 0.24); }
.mb-item svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.8; }
@media (max-width: 420px) { .mb-left span:not(.apple):not(b) { display: none; } }

.nsmenu {
  position: absolute; right: 16px; top: 36px; width: min(340px, calc(100% - 32px));
  background: var(--menu); color: var(--ink);
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 12px; padding: 6px; font-size: 13.5px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 18px 48px rgba(0, 0, 0, 0.35);
}
.card { padding: 10px 12px 8px; }
.headline { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.card p { color: var(--muted); font-size: 13px; margin: 6px 0 10px; line-height: 1.45; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; margin: 0; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-variant-numeric: tabular-nums; }
dd.good, .good { color: var(--good); }
dd.bad, .bad { color: var(--bad); }
.sep { height: 1px; background: color-mix(in srgb, var(--ink) 14%, transparent); margin: 6px 10px; }
.mi { display: flex; justify-content: space-between; padding: 4px 12px; border-radius: 6px; }
.mi span { color: var(--muted); }
.mi:first-of-type { background: var(--yours); color: #fff; }

.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.led.isp { background: var(--amber); }
.led.yours { background: var(--bad); }

/* How */
.section-lede { color: var(--muted); font-size: 19px; max-width: 40em; margin-top: 16px; }
.line { display: flex; align-items: center; margin-top: 48px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; flex: none; width: 88px; text-align: center; }
.glyph { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); position: relative; }
.glyph::after { content: ""; position: absolute; inset: 15px; border: 2.5px solid var(--ink); border-radius: 5px; }
.glyph.router::after { inset: 22px 12px 15px; border-radius: 4px; }
.glyph.globe::after { border-radius: 50%; }
.hop { flex: 1; height: 4px; border-radius: 4px; position: relative; margin-bottom: 30px; }
.hop.yours { background: var(--yours); }
.hop.theirs { background: var(--amber); }
.hop span { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--muted); }
.sides { display: flex; margin-top: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.sides span { flex: 1; text-align: center; }
.sides .yours { color: var(--yours); }
.sides .theirs { color: var(--amber-ink); }
.cases { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 720px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(4, 1fr); } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.case .nums { display: flex; flex-wrap: wrap; gap: 6px; font: 600 13px var(--mono); margin-bottom: 16px; }
.case .nums span { padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, currentColor 10%, transparent); }
.case h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 17px; }
.case p { color: var(--muted); font-size: 15px; }

/* Two-column sections */
.two { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1.1fr; gap: 64px; } .two.flip { grid-template-columns: 1.1fr 1fr; } }
.two > div > p { color: var(--muted); font-size: 18px; margin-top: 18px; }
.recorder, .tests { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: grid; gap: 16px; }

.chart { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.chart figcaption span { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 13px; }
.k { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.k.isp { background: var(--amber); }
.k.router { background: var(--yours); }
.chart svg { width: 100%; height: 160px; display: block; }
.chart .grid path { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .outage { fill: color-mix(in srgb, var(--bad) 20%, transparent); }
.chart .l-isp, .chart .l-router { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .l-isp { stroke: var(--amber); }
.chart .l-router { stroke: var(--yours); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

.report {
  margin: 0; background: var(--night); color: #dfe6ff; border-radius: var(--radius);
  padding: 20px; font: 13px/1.6 var(--mono); overflow-x: auto; white-space: pre;
}
.report b { color: var(--amber); }

/* Alerts */
.toasts { display: grid; gap: 12px; padding: 28px; border-radius: 20px; background: radial-gradient(120% 90% at 0% 0%, #2a4f9e 0%, var(--night) 70%); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: var(--menu); color: var(--ink); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); font-size: 14px;
}
.toast img { width: 36px; height: 36px; flex: none; }
.toast b { display: block; }
.toast span { color: var(--muted); }
@media (min-width: 960px) { .toast:nth-child(2) { margin-left: 32px; } .toast:nth-child(3) { margin-left: 64px; } }

/* Tests */
.test-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .test-grid { grid-template-columns: 1fr 1fr; } }
.test { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.test > p { color: var(--muted); font-size: 16px; margin-top: 14px; }
.test a { color: var(--yours); }
.speed { display: flex; gap: 32px; margin-top: 18px; }
.speed b, .rpm b { display: block; font-size: 48px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.speed span, .rpm span { color: var(--muted); font-size: 14px; }
.rpm { margin-top: 18px; }
.test p.verdict { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; }

/* Trust */
.trust-grid { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid h3 { margin-bottom: 8px; }
.trust-grid p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; }

/* CTA + footer */
.cta { text-align: center; }
.cta img { margin: 0 auto 24px; }
.cta .actions { margin-top: 28px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }
