:root {
  --bg: #040711;
  --surface: #0a1222;
  --surface-alt: #0f1b32;
  --border: rgba(148, 169, 198, 0.16);
  --border-hi: rgba(56, 189, 248, 0.34);
  --text: #f3f7fc;
  --muted: #9ab0cc;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --amber: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@keyframes auroraFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.04); }
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shieldBreath {
  0%, 100% {
    box-shadow: 0 0 34px rgba(16, 185, 129, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.28);
  }
  50% {
    box-shadow: 0 0 54px rgba(34, 211, 238, 0.42), 0 0 0 14px rgba(16, 185, 129, 0);
  }
}

body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 85% 48% at 50% -12%, rgba(16, 185, 129, 0.19), transparent 62%),
    radial-gradient(ellipse 60% 42% at 88% 12%, rgba(34, 211, 238, 0.13), transparent 54%),
    radial-gradient(ellipse 55% 40% at 12% 28%, rgba(99, 102, 241, 0.12), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 26% 24%, rgba(16, 185, 129, 0.12), transparent 36%),
    radial-gradient(circle at 74% 18%, rgba(56, 189, 248, 0.11), transparent 38%),
    radial-gradient(circle at 52% 48%, rgba(99, 102, 241, 0.09), transparent 44%);
  animation: auroraFloat 22s ease-in-out infinite;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 28px;
  background: rgba(5, 9, 20, 0.78);
  border-bottom: 1px solid rgba(148, 169, 198, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand-wrap, .top-right, .head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shield-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #34d399, var(--cyan), #818cf8);
  background-size: 200% 200%;
  animation: gradientFlow 7s ease infinite;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
  flex-shrink: 0;
}

.brand-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }

.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease;
}
.topnav a:hover, .topnav a.active {
  color: var(--text);
  background: rgba(148, 169, 198, 0.12);
}

.nav-cta {
  background: linear-gradient(125deg, #34d399, var(--cyan), #38bdf8);
  background-size: 180% 180%;
  color: #031317;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.28);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-position 0.35s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.36);
}

.wasm-badge, .badge-mono, .status-chip, .preview-chip {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--cyan);
  flex-shrink: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.badge-mono { flex-shrink: 1; white-space: normal; text-align: center; }

.status-chip.ok { border-color: rgba(16, 185, 129, 0.55); color: #6ee7b7; background: var(--emerald-soft); }
.status-chip.off { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; background: rgba(239, 68, 68, 0.14); }
.preview-chip { border-color: rgba(245, 158, 11, 0.5); color: var(--amber); background: rgba(245, 158, 11, 0.1); }

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Block 1: Hero */
.hero {
  display: grid;
  grid-template-columns: 1.32fr 0.78fr;
  gap: 40px;
  align-items: center;
  padding: 12px 0;
}

.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.eyebrow-pill {
  align-self: flex-start;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.42);
  padding: 6px 14px;
  border-radius: 999px;
  max-width: 100%;
}

.hero-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.price-accent {
  background: linear-gradient(120deg, #34d399, #22d3ee, #818cf8, #34d399);
  background-size: 240% 240%;
  animation: gradientFlow 9s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
}

.plan-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-pill {
  background: rgba(10, 18, 34, 0.85);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.plan-pill:hover {
  transform: translateY(-1px);
  border-color: var(--border-hi);
  color: var(--text);
}

.plan-pill.active {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(34, 211, 238, 0.12));
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.16);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cta-primary {
  background: linear-gradient(125deg, #34d399, var(--cyan), #38bdf8);
  background-size: 200% 200%;
  color: #021417;
  border: 0;
  border-radius: 13px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-position 0.35s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  background: rgba(15, 27, 50, 0.78);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 13px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.62);
  background: rgba(20, 36, 66, 0.9);
}

.hero-micro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

.dot-sep { color: var(--border-hi); }

.hero-shield-card {
  background: linear-gradient(165deg, rgba(16, 28, 52, 0.88), rgba(8, 14, 26, 0.96));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 169, 198, 0.2);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-shield-card:hover {
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: 0 30px 68px rgba(0, 0, 0, 0.52), 0 0 36px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shield-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.shield-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.shield-ring {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  border: 2px solid #34d399;
  background: radial-gradient(circle at 32% 24%, rgba(16, 185, 129, 0.3), rgba(6, 13, 25, 0.96) 74%);
  box-shadow: 0 0 38px rgba(16, 185, 129, 0.34), inset 0 1px 0 rgba(167, 243, 208, 0.3);
  color: #ecfdf5;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  flex-shrink: 0;
  animation: shieldBreath 3.8s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.3s ease;
}

.shield-ring:hover { transform: scale(1.03); }
.shield-ring:active { transform: scale(0.98); }

.shield-ring.disconnected {
  animation: none;
  border-color: var(--danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.28);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22), rgba(6, 12, 22, 0.96) 72%);
}

.shield-svg { color: var(--emerald); flex-shrink: 0; }
.shield-ring.disconnected .shield-svg { color: var(--danger); }
.ring-state { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; }
.ring-route { font-family: ui-monospace, monospace; font-size: 11px; color: var(--cyan); }

.country-picker { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.picker-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.country-select {
  width: 100%;
  max-width: 100%;
  background: #060d19;
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.shield-footnote { font-size: 12px; color: var(--muted); text-align: center; }

/* Sections & Cards */
.section-block { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 76px; }

.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-eyebrow {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald);
}
.section-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.proof-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }

.card {
  background: linear-gradient(168deg, rgba(14, 24, 44, 0.88), rgba(8, 14, 26, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.28);
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.ctrl-row, .pick-mode, .os-actions, .os-tabs, .relay-bar, .preset-row, .os-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.os-actions { flex-shrink: 0; max-width: 100%; align-items: center; }
.os-actions .badge-mono { flex-shrink: 1; white-space: normal; word-break: break-word; max-width: 100%; }

.seg-btn, .mini-btn, .probe-btn, .tab-btn, .relay-btn, .os-pill {
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.seg-btn.active, .mini-btn.active, .tab-btn.active, .relay-btn.entry, .os-pill:hover {
  border-color: var(--emerald);
  color: #6ee7b7;
  background: var(--emerald-soft);
}
.relay-btn.exit { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.12); }

.primary-btn {
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #031317;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

/* Video Player & Charts */
.vp-stage {
  position: relative;
  background: #040812;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-width: 0;
}
.vp-iframe { display: block; width: 100%; height: 100%; border: 0; background: #040812; }
.vp-canvas { display: block; width: 100%; height: 100%; object-fit: fill; }
.wasm-probe-row { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: center; }
.vp-stage-mini { background: #040812; border: 1px solid var(--border-hi); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; width: 100%; }
.vp-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  pointer-events: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 9, 17, 0.88);
  border: 1px solid var(--emerald);
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 700;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-stats-clean { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-kpis-clean { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.stat-tile, .meta-cell, .metric-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat-tile span, .meta-cell span, .metric-pill span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stat-tile code, .meta-cell code, .metric-pill code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  color: var(--cyan);
  word-break: break-word;
}
.stat-tile code.boost, .metric-pill code.boost { color: #6ee7b7; font-weight: 700; }
.metric-pill code.bypass { color: var(--amber); font-weight: 700; }

.vp-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.vp-submeta strong { color: var(--text); font-family: ui-monospace, monospace; font-size: 11px; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11px; color: var(--muted); }
.leg-item { display: inline-flex; align-items: center; gap: 6px; }
.leg-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.dot-bvpn { background: var(--emerald); }
.dot-wg { background: #38bdf8; }
.dot-ovpn { background: var(--amber); }
.dot-isp { background: #f43f5e; }

.chart-host {
  background: #060c18;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}
.chart-host svg { display: block; width: 100%; height: auto; }
.chart-subhead { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.bench-status { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); line-height: 1.5; }

.calc-compact {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.calc-heading { font-size: 13px; font-weight: 700; color: var(--text); }
.calc-sliders-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slider-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slider-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.slider-head span { font-size: 11px; color: var(--muted); font-weight: 600; }
.slider-head code { font-size: 12px; color: var(--cyan); font-weight: 700; }
.slider-row input[type="range"] { width: 100%; accent-color: var(--emerald); cursor: pointer; margin: 0; }

/* Block 3: Competitor Knockout Table */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 18, 32, 0.94);
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.compare-table th, .compare-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.compare-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(15, 26, 46, 0.85);
}

.compare-table tbody th { font-weight: 700; color: var(--text); }
.compare-table td { color: var(--muted); }

.compare-table .col-winner {
  background: rgba(16, 185, 129, 0.1);
  color: #ecfdf5;
  border-left: 1px solid rgba(16, 185, 129, 0.4);
  border-right: 1px solid rgba(16, 185, 129, 0.4);
}

.compare-table thead .col-winner {
  color: #6ee7b7;
  font-size: 14px;
}

.winner-tag {
  display: inline-block;
  margin-bottom: 4px;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald);
  color: #031317;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.why-callout {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 20px 24px;
}
.why-callout h3 { margin: 0 0 6px; font-size: 15px; color: #6ee7b7; }
.why-callout p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.65; }

.pricing-cta-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Block 4: Triple Ironclad Guarantees + Downloads */
.seals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.seal-card {
  background: linear-gradient(168deg, rgba(15, 25, 46, 0.88), rgba(8, 14, 26, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.seal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38), 0 0 28px rgba(16, 185, 129, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.seal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  flex-shrink: 0;
}

.seal-card h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: #ffffff; }
.seal-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

.download-strip {
  background: linear-gradient(165deg, rgba(14, 24, 44, 0.88), rgba(8, 14, 26, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.download-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.download-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.download-sub { font-size: 12px; color: var(--muted); }
.os-pill {
  padding: 9px 15px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.os-pill:hover { transform: translateY(-1px); }
#nativeInstallerLinks .os-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(34, 211, 238, 0.1));
  border-color: rgba(16, 185, 129, 0.42);
  color: #d1fae5;
}
#nativeInstallerLinks .os-pill:hover {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(34, 211, 238, 0.18));
  color: #ffffff;
}

/* Block 5: Collapsed Engineer Drawer */
.engineer-drawer {
  background: rgba(10, 18, 32, 0.78);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px;
}

.engineer-summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.engineer-summary::-webkit-details-marker { display: none; }
.engineer-summary::after {
  content: "+ Expand";
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid var(--border-hi);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.engineer-drawer[open] .engineer-summary::after { content: "- Collapse"; }

.drawer-body {
  padding: 8px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--border);
}

.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.controls-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chk-line { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.chk-line input { margin-top: 3px; flex-shrink: 0; }
.meta-grid, .comp-metrics, .bench-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.map-host { background: #060c18; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.map-host svg { display: block; width: 100%; height: auto; }
@keyframes flowArc { to { stroke-dashoffset: -36; } }
.route-arc { stroke-dasharray: 8 4; animation: flowArc 1.2s linear infinite; }

.topology-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #fde68a;
}
.topology-notice strong { color: var(--amber); }
.topology-notice code { font-family: ui-monospace, monospace; color: var(--cyan); }

.pkt-form { display: grid; grid-template-columns: 1.2fr 0.9fr auto; gap: 8px; align-items: end; }
.inp-grp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inp-grp span { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.inp-grp input {
  background: #060c18;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  width: 100%;
  min-width: 0;
}

.pkt-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pkt-pane { background: #060c18; border: 1px solid var(--border); border-radius: 8px; padding: 10px; min-width: 0; }
.pkt-pane h4 { margin: 0 0 6px; font-size: 11px; color: var(--muted); }
.pkt-pane pre, .os-code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: var(--cyan);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 155px;
  overflow: auto;
}
.os-code { background: #060c18; border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 220px; }
.os-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }

.probe-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.audit-list { display: flex; flex-direction: column; gap: 6px; }
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.audit-name { font-weight: 600; font-size: 12px; }
.audit-detail { font-size: 11px; color: var(--muted); margin-top: 2px; }
.verdict-pass { color: var(--emerald); font-family: ui-monospace, monospace; font-weight: 700; flex-shrink: 0; }
.verdict-fail { color: var(--danger); font-family: ui-monospace, monospace; font-weight: 700; flex-shrink: 0; }

/* Instant Pass Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.modal-plan-banner {
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
}
.modal-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.modal-token-box {
  background: #060c18;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.modal-token-box span { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.modal-token-box code { font-family: ui-monospace, monospace; font-size: 12px; color: var(--cyan); word-break: break-all; }
.modal-status { font-size: 12px; color: #6ee7b7; }

/* 13-Country Localization Strip & 3-Rail Checkout Panel */
.market-bar { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.market-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.market-pill {
  background: rgba(15, 23, 42, 0.85); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.market-pill.active, .market-pill:hover {
  color: #6ee7b7; border-color: rgba(16, 185, 129, 0.65); background: rgba(16, 185, 129, 0.14);
}
.market-methods-note { font-size: 11px; color: var(--muted); line-height: 1.45; }
.hold-banner {
  background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 700;
}
.checkout-panel {
  background: rgba(6, 12, 24, 0.9); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.checkout-row { display: flex; flex-direction: column; gap: 4px; }
.checkout-ref-badge { font-family: ui-monospace, monospace; font-size: 11px; color: var(--cyan); }
.checkout-out {
  margin: 0; background: #040812; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-family: ui-monospace, monospace; font-size: 11px; color: #6ee7b7;
  white-space: pre-wrap; word-break: break-word;
}

/* Ookla-Style Deep-Navy Cockpit Speed Test & Global 7-Region Network */
.ookla-cockpit {
  background: radial-gradient(ellipse 70% 55% at 32% 35%, #1c1f3b, #141526 74%);
  border-color: #2b2f57;
  box-shadow: 0 22px 54px rgba(4, 6, 18, 0.58);
}
.speedtest-link-label { font-size: 12px; color: #9aa5ce; font-weight: 600; align-self: center; }
.speedtest-select {
  background: #0d0e1c; color: var(--text); border: 1px solid #2e335c;
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.ookla-rerun-btn {
  border-color: rgba(30, 227, 207, 0.55); color: #1ee3cf; background: rgba(30, 227, 207, 0.12);
}
.ookla-rerun-btn[hidden] { display: none; }
.st-phase-bar {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.st-phase-pill {
  text-align: center; padding: 7px 6px; border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: #7f89b0; background: #0d0e1c; border: 1px solid #252849;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.st-phase-pill.active {
  color: #1ee3cf; border-color: #1ee3cf; background: rgba(30, 227, 207, 0.14);
  box-shadow: 0 0 16px rgba(30, 227, 207, 0.35);
}
.st-phase-pill[data-st-phase="upload"].active {
  color: #c084fc; border-color: #8c52ff; background: rgba(140, 82, 255, 0.16);
  box-shadow: 0 0 16px rgba(140, 82, 255, 0.4);
}
.st-phase-pill.done {
  color: #6ee7b7; border-color: rgba(16, 185, 129, 0.55); background: rgba(16, 185, 129, 0.12);
}
@keyframes ooklaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 227, 207, 0.48), 0 0 34px rgba(30, 227, 207, 0.34); }
  50% { box-shadow: 0 0 0 18px rgba(30, 227, 207, 0), 0 0 54px rgba(30, 227, 207, 0.58); }
}
.speedtest-top { display: grid; grid-template-columns: 1.22fr 0.78fr; gap: 18px; align-items: center; }
.ookla-stage {
  background: #141526; border: 1px solid #282c52; border-radius: 14px;
  min-height: 310px; display: flex; align-items: center; justify-content: center;
  padding: 10px; overflow: hidden; min-width: 0;
}
.ookla-go-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 26px 12px; width: 100%; text-align: center;
}
.ookla-go-wrap[hidden] { display: none; }
.ookla-go-ring {
  width: 172px; height: 172px; border-radius: 50%;
  border: 3px solid #1ee3cf; cursor: pointer;
  background: radial-gradient(circle, rgba(30, 227, 207, 0.22), #141526 70%);
  display: flex; align-items: center; justify-content: center;
  animation: ooklaPulse 2.2s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ookla-go-ring:hover { transform: scale(1.04); border-color: #67f5e8; }
.ookla-go-ring:disabled { opacity: 0.65; cursor: wait; }
.ookla-go-core {
  font-size: 42px; font-weight: 900; letter-spacing: 0.1em; color: #f8fafc;
  text-shadow: 0 0 22px rgba(30, 227, 207, 0.65);
}
.ookla-go-caption {
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: #9aa5ce;
}
.speedtest-gauge-wrap { width: 100%; overflow: hidden; min-width: 0; }
.speedtest-gauge-wrap[hidden] { display: none; }
.speedtest-gauge-wrap svg { display: block; width: 100%; height: auto; }
.speedtest-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.speedtest-kpis .wide-tile { grid-column: 1 / -1; }
.ookla-tile { background: #0e1022; border-color: #26294a; }
.ookla-tile code.cyan-val { color: #1ee3cf; font-weight: 800; }
.ookla-tile code.violet-val { color: #c084fc; font-weight: 800; }
.ookla-tile code.amber-val { color: #fbbf24; font-weight: 700; }
.st-receipt-badge {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  background: linear-gradient(135deg, rgba(30, 227, 207, 0.1), rgba(140, 82, 255, 0.1));
  border: 1px solid rgba(30, 227, 207, 0.45); border-radius: 12px; padding: 12px 14px;
}
.st-receipt-badge[hidden] { display: none; }
.st-receipt-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-receipt-item span { font-size: 10px; letter-spacing: 0.05em; color: #9aa5ce; font-weight: 700; }
.st-receipt-item code {
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px;
  color: #1ee3cf; font-weight: 700; word-break: break-all;
}
.st-receipt-item code.amber-val { color: #fbbf24; }
.speedtest-table, .econ-table {
  width: 100%; min-width: 660px; border-collapse: collapse; text-align: left; font-size: 12px;
}
.speedtest-table th, .speedtest-table td, .econ-table th, .econ-table td {
  padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.speedtest-table thead th, .econ-table thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); background: rgba(15, 26, 46, 0.85);
}
.speedtest-table tbody tr:last-child td, .econ-table tbody tr:last-child th, .econ-table tbody tr:last-child td { border-bottom: 0; }
.speedtest-table tbody td { color: var(--text); font-family: ui-monospace, SFMono-Regular, monospace; }
.speedtest-table tbody td:first-child { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; }
.speedtest-table tr.row-bypass { background: rgba(245, 158, 11, 0.06); }
.boost-pill, .bypass-pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.boost-pill { background: var(--emerald-soft); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.45); }
.bypass-pill { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }
.yt-preset-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px;
}
.yt-preset-row[hidden] { display: none; }
.yt-preset-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.zerocc-strip {
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 10px; padding: 10px 14px; font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px; color: var(--cyan); line-height: 1.5;
}
.econ-table tbody th { color: var(--text); font-weight: 700; }
.econ-table tbody td { color: var(--muted); font-family: ui-monospace, SFMono-Regular, monospace; }
.econ-table tbody td.col-margin { color: #6ee7b7; font-weight: 800; }
.econ-summary {
  font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; color: #6ee7b7;
  background: var(--emerald-soft); border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px; padding: 10px 14px; line-height: 1.5;
}

@media (max-width: 960px) {
  .hero, .proof-grid, .seals-grid, .drawer-grid, .pkt-views, .pkt-form, .wasm-probe-row, .speedtest-top { grid-template-columns: 1fr; }
  .st-receipt-badge { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 38px; }
  .section-title { font-size: 26px; }
}

@media (max-width: 540px) {
  .topbar { padding: 12px 14px; position: static; }
  .topnav a { padding: 5px 8px; font-size: 12px; }
  .page { padding: 20px 14px 48px; gap: 44px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 23px; }
  .st-phase-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-phase-bar .st-phase-pill:last-child { grid-column: 1 / -1; }
  .st-receipt-badge { grid-template-columns: 1fr; }
  .ookla-stage { min-height: 250px; }
  .ookla-go-ring { width: 148px; height: 148px; }
  .ookla-go-core { font-size: 36px; }
  .vp-stats-clean, .calc-sliders-row, .calc-kpis-clean, .meta-grid, .comp-metrics, .bench-live-grid, .speedtest-kpis {
    grid-template-columns: 1fr;
  }
  .cta-primary, .cta-secondary { width: 100%; text-align: center; }
  .vp-pill { font-size: 9.5px; padding: 3px 8px; top: 8px; right: 8px; max-width: calc(100% - 16px); }
}

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