:root {
  --deep: #020817;
  --navy: #071225;
  --navy-2: #0b1730;
  --panel: #0f1d36;
  --blue: #1476ff;
  --blue-2: #2f80ed;
  --cyan: #00d7ff;
  --cyan-soft: #7cebff;
  --green: #17d99b;
  --warn: #ffb545;
  --danger: #ff5d6c;
  --ink: #071225;
  --text: #24344f;
  --muted: #7080a3;
  --paper: #ffffff;
  --off: #f6faff;
  --line: #e4ecf7;
  --dark-line: rgba(255, 255, 255, 0.1);
  --gradient: linear-gradient(135deg, #1476ff 0%, #00d7ff 58%, #7cebff 100%);
  --shadow: 0 28px 80px rgba(6, 20, 46, 0.15);
  --soft-shadow: 0 16px 42px rgba(6, 20, 46, 0.1);
  --dark-shadow: 0 32px 110px rgba(0, 7, 22, 0.42);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--off);
  font: 16px/1.6 Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #005fe7; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(0, 215, 255, 0.5); outline-offset: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 max(20px, calc((100% - 1180px) / 2));
  color: #f8fbff;
  background: rgba(2, 8, 23, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { background: rgba(2, 8, 23, 0.92); box-shadow: 0 14px 40px rgba(0, 8, 24, 0.24); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
}
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }

.site-nav, .header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav { justify-content: center; }
.site-nav a, .nav-link {
  color: #cfe3ff;
  font-size: 14px;
  font-weight: 850;
}
.site-nav a:hover, .nav-link:hover { color: #fff; }
.header-actions { justify-content: end; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 950;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 16px 34px rgba(0, 169, 255, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 20px 46px rgba(0, 169, 255, 0.36); }
.btn-secondary, .btn-light {
  color: #0a2140;
  background: #eaf4ff;
}
.btn-secondary:hover, .btn-light:hover { color: #071225; background: #dcecff; }
.btn-danger { color: #fff; background: var(--danger); box-shadow: 0 14px 28px rgba(255, 93, 108, 0.24); }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 14px; }

.badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(124, 235, 255, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  color: #dffbff;
  background: rgba(0, 215, 255, 0.12);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.muted-badge {
  color: #00627f;
  border-color: #c5f4ff;
  background: #e5fbff;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 64px;
  min-height: min(760px, calc(100vh - 68px));
  padding: 92px max(22px, calc((100% - 1180px) / 2)) 94px;
  color: #f8fbff;
  background:
    linear-gradient(140deg, rgba(20,118,255,0.18), transparent 38%),
    linear-gradient(180deg, #020817 0%, #071225 64%, #0b1730 100%);
}
.hero-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,235,255,.4), transparent);
}
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero-copy h1 {
  margin: 20px 0 22px;
  color: #fff;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 640px;
  margin: 0;
  color: #b7c8e8;
  font-size: 19px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.trust-row span {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(255,255,255,0.055);
  font-size: 13px;
  font-weight: 850;
}

.product-mock { min-width: 0; position: relative; z-index: 1; }
.mock-window {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: rgba(9, 22, 48, 0.82);
  box-shadow: var(--dark-shadow);
}
.mock-titlebar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #dbeafe;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
}
.mock-titlebar i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.mock-titlebar strong { margin-left: auto; font-size: 13px; }
.mock-body {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 14px;
  padding: 20px;
}
.mock-status, .mock-speed, .mock-sub, .mock-qr, .route-chips {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.06);
}
.mock-status { display: grid; gap: 4px; align-content: center; }
.mock-status b, .mock-speed span, .mock-sub b { color: #fff; }
.mock-status small, .mock-speed small, .mock-sub p { color: #9fb2d3; margin: 0; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 8px rgba(23,217,155,.12); }
.mock-speed { display: grid; place-items: center; text-align: center; }
.mock-speed span { font-size: 54px; line-height: 1; font-weight: 950; }
.mock-sub { grid-column: span 2; display: grid; gap: 10px; }
.mock-sub b { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mini-button {
  width: max-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #071225;
  background: #e9fbff;
  font-size: 13px;
  font-weight: 950;
}
.mock-qr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-qr span, .qr-mini::before {
  min-height: 42px;
  border-radius: 4px;
  background: linear-gradient(135deg, #effdff, #bff6ff);
}
.route-chips { display: grid; gap: 10px; align-content: center; }
.route-chips span {
  border-radius: 999px;
  padding: 9px 10px;
  color: #dffbff;
  background: rgba(0, 215, 255, 0.15);
  font-weight: 900;
  text-align: center;
}

.trust-strip {
  width: min(1180px, calc(100% - 44px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.trust-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: #0a1b35;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  font-weight: 950;
  text-align: center;
}

.section, .page-hero, .page-card, .checkout-shell, .auth-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 86px auto;
}
.section-head { max-width: 790px; margin-bottom: 32px; }
.section-head.narrow { max-width: 650px; margin-inline: auto; text-align: center; }
.section h2, .page-hero h1, .page-card h1, .auth-copy h1, .checkout-card h1, .final-cta h2 {
  margin: 12px 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}
.section p, .page-hero p, .page-card p { color: var(--text); }

.feature-grid, .pricing-grid, .dashboard-cards, .dashboard-grid, .billing-current {
  display: grid;
  gap: 18px;
}
.feature-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid article, .pricing-card, .panel-card, .metric-card, .page-card, .setup-card, .checkout-card, .checkout-aside, .empty-state {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.feature-grid article { padding: 24px; }
.feature-grid h3, .pricing-card h3, .pricing-card h2, .panel-card h2, .metric-card strong { color: var(--ink); }
.line-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #003e72;
  background: #dff9ff;
  font-size: 12px;
  font-weight: 950;
}

.how-section { text-align: left; }
.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.stepper article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.stepper b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--gradient);
}

.device-section, .routing-section, .account-preview, .split-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  align-items: center;
  gap: 46px;
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.device-grid span {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  font-weight: 950;
}
.routing-section {
  width: 100%;
  max-width: none;
  padding: 80px max(22px, calc((100% - 1180px) / 2));
  color: #f8fbff;
  background: linear-gradient(180deg, var(--navy), var(--deep));
}
.routing-section h2 { color: #fff; }
.routing-section p { color: #b7c8e8; }
.routing-visual {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.045);
}
.node-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px;
  color: #dbeafe;
  background: rgba(255,255,255,0.06);
}
.node-card.primary { color: #fff; background: linear-gradient(135deg, rgba(20,118,255,.85), rgba(0,215,255,.75)); }
.split-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-lines span { height: 3px; border-radius: 999px; background: var(--gradient); }

.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.pricing-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient);
  opacity: .75;
}
.pricing-card.popular {
  border-color: #a6efff;
  box-shadow: 0 24px 70px rgba(0, 177, 255, 0.18);
}
.price {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}
.pricing-card ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--text); }
.pricing-card .btn, .pricing-card form .btn { width: 100%; margin-top: auto; }

.dashboard-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: #dbeafe;
  background: linear-gradient(180deg, #0d1e3b, #071225);
  box-shadow: var(--dark-shadow);
}
.dashboard-preview div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,0.06);
}
.dashboard-preview .wide { grid-column: span 2; }
.dashboard-preview b { display: block; color: #fff; overflow-wrap: anywhere; }
.qr-mini { min-height: 80px; display: grid; place-items: center; }
.qr-mini::before { content: ""; width: 100%; min-height: 52px; display: block; }

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(6, 20, 46, 0.05);
}
summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 950;
}
details p { margin: 0; padding: 0 18px 18px; }
.final-cta {
  width: min(1180px, calc(100% - 44px));
  margin: 90px auto;
  padding: 44px;
  color: #f8fbff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #071225 0%, #0d3572 50%, #1476ff 100%);
  box-shadow: var(--shadow);
}
.final-cta h2, .final-cta p { color: #fff; }
.final-cta p { max-width: 680px; color: #dbeafe; }

.page-hero {
  margin-top: 48px;
  padding: 44px;
  color: #f8fbff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--deep), var(--navy-2));
  box-shadow: var(--dark-shadow);
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 760px; color: #c7d7ee; }
.compact-top { margin-top: 30px; }

.auth-page {
  background:
    linear-gradient(135deg, rgba(20,118,255,0.16), transparent 36%),
    linear-gradient(180deg, var(--deep), var(--navy) 62%, var(--off) 62%);
}
.auth-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 44px;
}
.auth-copy h1 { color: #fff; }
.auth-copy p { max-width: 560px; color: #b7c8e8; font-size: 18px; }
.auth-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--dark-shadow);
}
.auth-card h2 { margin: 0; color: var(--ink); font-size: 28px; }
.auth-card p { margin: 0; color: var(--text); }

form { min-width: 0; }
label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7e3f2;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}
input[type="hidden"] { display: none; }
input[type="checkbox"], input[type="radio"] { width: auto; min-width: 0; }
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
}
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-field button {
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #0a2140;
  background: #eaf4ff;
  font-weight: 900;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
}
.checkout-shell.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.checkout-card, .checkout-aside { padding: 30px; }
.checkout-aside {
  color: #dbeafe;
  background: linear-gradient(180deg, var(--navy-2), var(--deep));
}
.checkout-aside h2 { color: #fff; }

.app-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}
.app-sidebar { display: grid; gap: 12px; align-content: start; position: sticky; top: 92px; }
.sidebar-card, .app-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.sidebar-card { display: grid; gap: 4px; padding: 18px; }
.sidebar-card b { color: var(--ink); }
.sidebar-card span { color: var(--muted); overflow-wrap: anywhere; }
.app-nav { display: grid; gap: 4px; padding: 8px; }
.app-nav a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #253959;
  font-weight: 900;
}
.app-nav a:hover { color: var(--blue); background: #ecf7ff; }
.app-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.app-topbar h1 { margin: 8px 0 0; color: var(--ink); font-size: clamp(32px, 4vw, 44px); line-height: 1.08; }
.user-pill, .status-pill {
  max-width: 100%;
  border-radius: 999px;
  padding: 9px 12px;
  color: #0a2140;
  background: #eaf4ff;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.status-pill.good { color: #006542; background: #dffdef; }
.dashboard-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { padding: 20px; }
.metric-card span { color: var(--muted); font-weight: 900; }
.metric-card strong { display: block; margin-top: 8px; font-size: 28px; line-height: 1.1; }
.metric-card p { margin: 8px 0 0; color: var(--text); }
.metric-card.active { border-color: #a8f3d8; }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-card { padding: 24px; }
.panel-card h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.15; }
.panel-card p { color: var(--text); }
.connection-card { border-color: #bbefff; }
.card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.masked-link {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  border: 1px solid #dce8f5;
  border-radius: var(--radius);
  padding: 14px;
  background: #f8fbff;
}
.masked-link code {
  white-space: normal;
  overflow-wrap: anywhere;
  color: #17284a;
  font: 850 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-row form { margin: 0; }
.setup-list { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 22px; color: var(--text); }
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
}
.switch span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}
.switch input:checked + span { background: var(--gradient); }
.switch input:checked + span::after { transform: translateX(20px); }
.network-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.network-card b { color: #05845a; }
.empty-state { padding: 34px; }

.billing-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.big-value { color: var(--ink); font-size: 30px; font-weight: 950; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 11px; text-align: left; vertical-align: top; }
th { color: var(--ink); background: #eef5fb; }
.row-actions { min-width: 410px; }
.row-actions form { display: inline-grid; margin: 2px; }
.search-form { display: flex; gap: 8px; }
pre {
  max-height: 360px;
  overflow: auto;
  border-radius: var(--radius);
  padding: 16px;
  color: #dbeafe;
  background: var(--deep);
}

.flash-stack {
  width: min(760px, calc(100% - 32px));
  margin: 16px auto -8px;
  display: grid;
  gap: 8px;
}
.flash-message {
  margin: 0;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #713f12;
  background: #fffbeb;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(140px, 1fr));
  gap: 28px;
  padding: 42px max(24px, calc((100% - 1180px) / 2));
  color: #c7d7ee;
  background: var(--deep);
}
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 16px; }
.site-footer a { display: block; margin: 6px 0; color: #dbeafe; }
.footer-brand p { max-width: 360px; }
.site-footer .brand { color: #fff; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.status-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 12, 30, 0.68);
}
.modal-backdrop[hidden], .toast[hidden] { display: none; }
.modal {
  width: min(440px, 100%);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,0.32);
}
.modal h2 { margin-top: 0; color: var(--ink); }
.modal p { color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.qr-modal { text-align: center; }
.qr-modal img {
  width: min(300px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  border-radius: 999px;
  padding: 12px 16px;
  color: #042d1f;
  background: #dffdef;
  box-shadow: var(--shadow);
  font-weight: 950;
}

@media (max-width: 1060px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .site-nav {
    position: fixed;
    inset: 68px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(2, 8, 23, 0.96);
    box-shadow: var(--dark-shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .menu-button { display: inline-block; }
  .hero-shell { grid-template-columns: 1fr; min-height: auto; }
  .product-mock { max-width: 650px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip span:last-child { grid-column: span 2; }
  .feature-grid.six, .pricing-grid, .dashboard-cards, .dashboard-grid, .dashboard-grid.two, .billing-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-section, .routing-section, .account-preview, .split-page, .auth-shell, .checkout-shell {
    grid-template-columns: 1fr;
  }
  .checkout-aside { width: 100%; }
}

@media (max-width: 820px) {
  .site-header { min-height: 64px; padding-inline: 16px; }
  .header-actions .nav-link, .header-actions .btn { display: none; }
  .site-nav { inset: 64px 12px auto; }
  .site-nav::after {
    content: "Получить доступ";
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 999px;
    color: #fff;
    background: var(--gradient);
    font-weight: 950;
  }
  .hero-shell { padding: 58px 18px 68px; gap: 34px; }
  .hero-copy h1 { font-size: 44px; line-height: 1.02; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 180px; }
  .mock-body { grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; }
  .mock-status, .mock-speed, .mock-sub, .mock-qr, .route-chips { padding: 12px; }
  .mock-speed span { font-size: 36px; }
  .mock-sub, .route-chips { grid-column: span 2; }
  .mock-qr { display: none; }
  .trust-strip { margin-top: -28px; }
  .section, .page-hero, .page-card, .checkout-shell, .auth-shell { width: min(100% - 24px, 680px); margin: 54px auto; }
  .section h2, .page-hero h1, .page-card h1, .auth-copy h1, .checkout-card h1, .final-cta h2 { font-size: 34px; }
  .page-hero, .page-card, .final-cta { padding: 24px; }
  .trust-strip, .feature-grid.six, .pricing-grid, .dashboard-cards, .dashboard-grid, .dashboard-grid.two, .billing-current, .stepper, .device-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip span:last-child { grid-column: auto; }
  .device-section, .routing-section, .account-preview, .split-page { gap: 24px; }
  .routing-section { padding: 42px 18px; }
  .dashboard-preview { grid-template-columns: 1fr; }
  .dashboard-preview .wide { grid-column: auto; }
  .app-layout {
    width: min(100% - 24px, 680px);
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .app-sidebar { position: static; }
  .app-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 8px;
  }
  .app-nav a {
    min-width: 0;
    text-align: center;
    white-space: normal;
  }
  .app-topbar { align-items: flex-start; flex-direction: column; }
  .card-head { flex-direction: column; }
  .row-actions { min-width: 0; max-width: 100%; }
  .search-form { width: 100%; }
  .site-footer { grid-template-columns: 1fr; padding: 30px 18px; }
}

@media (max-width: 430px) {
  .brand img { width: 34px; height: 34px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-actions .btn { width: 100%; }
  .trust-row span { flex: 1 1 auto; text-align: center; }
  .mock-titlebar { height: 36px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sub, .route-chips { grid-column: auto; }
  .route-chips { grid-template-columns: 1fr 1fr; }
  .route-chips span { text-align: center; }
  .button-row .btn, .button-row form, .button-row form .btn { width: 100%; }
  .password-field { grid-template-columns: 1fr; }
  .modal-actions .btn { width: 100%; }
}
