@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f7f9;
  --surface-strong: #eef2f5;
  --ink: #12171c;
  --muted: #5f6972;
  --line: #dce2e7;
  --line-strong: #c8d0d7;
  --blue: #168ed8;
  --blue-dark: #0871b5;
  --blue-soft: #e9f5fc;
  --cyan: #76e4ff;
  --lime: #b7f34a;
  --green: #17845d;
  --green-soft: #e8f6f0;
  --coral: #d85b4c;
  --coral-soft: #fff0ed;
  --hero: #111a20;
  --hero-muted: #b8c5ce;
  --danger: #b82d45;
  --warning: #9a6500;
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
  --shadow: 0 14px 40px rgba(18, 23, 28, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, a.disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3, p { margin-top: 0; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: var(--container);
  min-height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 28px; }
.desktop-nav a {
  position: relative;
  padding: 24px 0 22px;
  color: #53606a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.primary-link, .primary-btn, .secondary-btn, .ghost-btn, .menu-btn, .chip-btn, .copy-btn {
  min-height: 44px;
  border-radius: 6px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.primary-link, .primary-btn.dark { color: #fff; background: var(--ink); }
.primary-link:hover, .primary-btn.dark:hover { background: #2a3239; }
.primary-btn.light { color: var(--ink); background: #fff; }
.primary-btn.light:hover { background: #eef2f4; }
.secondary-btn.light { color: #fff; border-color: #53626d; background: transparent; }
.secondary-btn.light:hover { border-color: #fff; }
.secondary-btn.dark, .ghost-btn, .menu-btn, .chip-btn, .copy-btn { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.secondary-btn.dark:hover, .ghost-btn:hover, .menu-btn:hover, .chip-btn:hover, .copy-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; }
.primary-btn:active, .secondary-btn:active, .primary-link:active { transform: translateY(1px); }

.mobile-menu {
  position: fixed;
  z-index: 90;
  top: 70px;
  left: 0;
  right: 0;
  padding: 10px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 650; text-decoration: none; }

.site-main { min-height: 70vh; }
.page:not(.page-home) { width: var(--container); margin: 0 auto; padding: 68px 0 100px; }
.page-head { max-width: 760px; margin-bottom: 42px; }
.page-head h1 { margin-bottom: 14px; font-size: 48px; line-height: 1.08; letter-spacing: 0; }
.page-head p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

.hero-section {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid #24333c;
  background: var(--hero);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 590px;
  margin: 0 auto;
  padding: 60px 51% 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-copy h1 { margin-bottom: 18px; font-size: 76px; line-height: .98; font-weight: 800; letter-spacing: 0; text-wrap: balance; }
.hero-lead { max-width: 620px; margin-bottom: 18px; font-size: 28px; line-height: 1.3; font-weight: 650; }
.hero-description { max-width: 590px; margin-bottom: 30px; color: var(--hero-muted); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 610px; border-top: 1px solid #39454d; }
.hero-facts div { padding: 18px 18px 0 0; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { margin-bottom: 4px; color: #fff; font-size: 16px; }
.hero-facts span { color: #8fa0aa; font-size: 12px; line-height: 1.45; }

.hero-product {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #078fda;
}
.hero-product::before { content: "N"; position: absolute; left: 50%; top: 50%; color: rgba(255,255,255,.1); font-size: 520px; line-height: .8; font-weight: 800; transform: translate(-50%,-50%); }
.product-orbit { display: none; }
.iphone-stage { position: relative; z-index: 1; width: 340px; height: 590px; display: grid; place-items: center; transform: scale(.91); }
.iphone-mockup {
  position: relative;
  width: 292px;
  height: 570px;
  padding: 9px;
  border: 2px solid #cfd8dd;
  border-radius: 42px;
  background: #0e1418;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  transform: rotate(2deg);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-9px); } }
.iphone-screen { position: relative; height: 100%; overflow: hidden; padding: 22px 17px 16px; border-radius: 33px; color: var(--ink); background: #f7fafb; }
.dynamic-island { position: absolute; top: 10px; left: 50%; width: 82px; height: 22px; border-radius: 12px; background: #0a0d0f; transform: translateX(-50%); }
.phone-statusbar { display: flex; justify-content: space-between; margin: 2px 5px 28px; font-size: 10px; font-weight: 800; }
.phone-app-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.phone-app-head img { width: 34px; height: 34px; }
.phone-app-head strong, .phone-app-head span { display: block; }
.phone-app-head strong { font-size: 14px; }
.phone-app-head span { color: var(--green); font-size: 9px; font-weight: 700; }
.phone-connect-card { padding: 17px; border: 1px solid #d6e2e8; border-radius: 8px; background: #fff; }
.route-core { position: relative; width: 88px; height: 88px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); }
.route-core-ring { position: absolute; inset: 8px; border: 1px solid #8fcceb; border-radius: 50%; animation: signalPulse 2.4s ease-in-out infinite; }
@keyframes signalPulse { 0%,100% { transform: scale(.92); opacity: .45; } 50% { transform: scale(1.06); opacity: 1; } }
.route-core img { position: relative; width: 48px; height: 48px; }
.phone-connect-copy { text-align: center; }
.phone-connect-copy span, .phone-connect-copy strong { display: block; }
.phone-connect-copy span { color: var(--muted); font-size: 9px; }
.phone-connect-copy strong { margin-top: 3px; font-size: 12px; }
.phone-section-title { display: flex; justify-content: space-between; margin: 15px 2px 8px; color: var(--muted); font-size: 9px; }
.phone-server-list { min-height: 115px; display: grid; gap: 6px; }
.phone-server-row { min-height: 36px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid #e0e6ea; border-radius: 6px; background: #fff; }
.phone-server-row.is-auto { border-color: #8fcceb; background: var(--blue-soft); }
.phone-server-flag { font-size: 14px; }
.phone-server-name, .phone-server-meta, .phone-server-ping, .phone-server-updated { display: block; }
.phone-server-name { font-size: 9px; font-weight: 800; }
.phone-server-meta, .phone-server-updated { color: var(--muted); font-size: 7px; }
.phone-server-reading { text-align: right; }
.phone-server-ping { color: var(--green); font-size: 8px; font-weight: 800; }
.phone-bottom-card { margin-top: 9px; padding: 10px 11px; border-radius: 6px; color: #fff; background: var(--ink); }
.phone-bottom-card span, .phone-bottom-card strong { display: block; }
.phone-bottom-card span { color: #9eb0bb; font-size: 8px; }
.phone-bottom-card strong { margin-top: 2px; font-size: 9px; }

.trust-strip {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-strip div { padding: 28px 26px 28px 0; }
.trust-strip div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { margin-bottom: 5px; font-size: 15px; }
.trust-strip span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.workflow-section, .network-section, .pricing-preview, .faq-section { width: var(--container); margin: 0 auto; padding: 100px 0; }
.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2, .network-copy h2, .referral-band h2, .support-cta h2 { margin-bottom: 14px; font-size: 38px; line-height: 1.15; letter-spacing: 0; }
.section-heading p, .network-copy p, .referral-band p, .support-cta p { margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.workflow-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 25px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.workflow-list > li > span { color: var(--blue); font-size: 14px; font-weight: 800; }
.workflow-list h3 { margin-bottom: 8px; font-size: 22px; }
.workflow-list p { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.network-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 68px; align-items: center; }
.network-copy p { margin-bottom: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link::after { content: "→"; font-size: 19px; }
.network-visual { min-width: 0; }
.server-map { position: relative; width: 100%; min-height: 480px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #edf2f4; }
.server-map-compact { min-height: 390px; }
.leaflet-container { z-index: 1; background: #e9eef1 !important; font-family: inherit !important; }
.leaflet-control-attribution { font-size: 9px !important; }

.pricing-preview { border-top: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan-card { position: relative; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan-card.featured { border-color: var(--blue); box-shadow: var(--shadow); }
.plan-badge, .status-pill { display: inline-block; margin-bottom: 18px; color: var(--blue-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.plan-card h3 { margin-bottom: 10px; font-size: 20px; }
.plan-price { margin-bottom: 10px; font-size: 32px; font-weight: 800; }
.plan-card p { min-height: 62px; margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.plan-card .primary-btn { width: 100%; display: inline-flex; justify-content: center; align-items: center; }

.referral-band { width: 100%; padding: 72px max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 48px; background: var(--green-soft); }
.referral-band > div { max-width: 740px; }
.referral-band p { color: #406454; }

.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; font-size: 17px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 18px; color: var(--blue); font-size: 25px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 690px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.auth-panel, .pricing-control-panel, .support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.auth-panel { margin-bottom: 28px; }
.auth-panel { position: relative; overflow: hidden; border-color: #c9e5f4; background: #eef8fd; }
.auth-panel::after { content: ""; position: absolute; right: -38px; bottom: -54px; width: 150px; height: 150px; border: 28px solid rgba(22,142,216,.08); border-radius: 50%; pointer-events: none; }
.auth-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.auth-mark { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #c5e5f6; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(8,113,181,.1); }
.auth-mark img { width: 34px; height: 34px; }
.auth-panel.is-authenticated { border-color: #b7dfcc; background: var(--green-soft); }
.auth-panel.is-authenticated::after { border-color: rgba(23,132,93,.08); }
.auth-panel h2, .support-cta h2 { margin-bottom: 8px; font-size: 24px; }
.auth-panel p { margin-bottom: 0; color: var(--muted); }
.auth-actions, .card-actions, .support-actions, .payment-actions, .device-links { display: flex; flex-wrap: wrap; gap: 9px; }
.auth-user { margin-top: 10px; font-size: 14px; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.glass-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.glass-card.wide { grid-column: span 2; }
.glass-card h3, .device-card h3 { margin-bottom: 9px; font-size: 20px; }
.glass-card p, .device-card p, .muted-note { color: var(--muted); font-size: 14px; line-height: 1.65; }
.skeleton-line { width: 78%; height: 14px; margin-bottom: 12px; background: var(--surface-strong); }
.skeleton-line.short { width: 45%; }
.status-actions { margin-top: 18px; }
.subscription-url, .copy-field { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0; }
.subscription-url input, .copy-field input, .promo-form input, .review-form textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
.promo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.review-form { display: grid; gap: 12px; }
.review-rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.review-stars { display: flex; gap: 2px; }
.review-stars button { width: 38px; height: 38px; border: 1px solid transparent; border-radius: 6px; padding: 0; color: #a9b2b9; background: #f4f6f7; font-size: 25px; line-height: 1; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.review-stars button:hover:not(:disabled) { border-color: #e3b94c; color: #c68b00; transform: translateY(-1px); }
.review-stars button.active { border-color: #f0cb6a; color: #b87900; background: #fff8dd; }
.review-stars button:focus-visible { outline: 3px solid rgba(22,142,216,.24); outline-offset: 2px; }
.review-stars button:disabled { cursor: not-allowed; }
.review-rating-label { color: var(--muted); font-size: 12px; }

.pricing-control-panel { margin-bottom: 22px; align-items: flex-start; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-method { min-width: 150px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; }
.payment-method strong, .payment-method span { display: block; }
.payment-method strong { font-size: 13px; }
.payment-method span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.payment-method.active { border-color: var(--blue); background: var(--blue-soft); }
.renew-toggle { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 14px; font-weight: 750; }
.renew-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
#renew-note { max-width: 250px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.limit-grid { display: grid; gap: 10px; margin: 18px 0; }
.limit-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.limit-control > span { color: var(--muted); font-size: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { width: 32px; height: 32px; border: 0; background: var(--surface); font-weight: 800; }
.stepper span { min-width: 32px; text-align: center; font-size: 12px; font-weight: 800; }
.payment-launch { margin-top: 18px; }
.payment-launch-card { padding: 24px; border: 1px solid var(--green); border-radius: var(--radius); background: var(--green-soft); }

.server-map-section { display: grid; gap: 22px; }
.server-map-shell { display: grid; grid-template-columns: 1.6fr .7fr; gap: 14px; }
.map-command-card { padding: 28px; border-radius: var(--radius); color: #fff; background: var(--hero); }
.map-command-card h2 { margin-bottom: 12px; font-size: 26px; line-height: 1.25; }
.map-command-card p { color: var(--hero-muted); font-size: 14px; line-height: 1.65; }
.map-command-grid { margin-top: 24px; border-top: 1px solid #3a464e; }
.map-command-grid div { padding: 13px 0; border-bottom: 1px solid #3a464e; }
.map-command-grid strong, .map-command-grid span { display: block; }
.map-command-grid strong { color: #fff; font-size: 13px; }
.map-command-grid span { margin-top: 2px; color: #92a2ac; font-size: 11px; }
.server-location-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.server-location-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 22px rgba(18,23,28,.035); }
.server-location-card > strong, .server-location-card > span { display: block; overflow-wrap: anywhere; }
.server-location-card > strong { margin-bottom: 7px; font-size: 14px; }
.server-location-card > span:not(.server-location-status):not(.server-location-updated) { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.server-location-card h3 { margin-bottom: 5px; font-size: 16px; }
.server-location-card p { margin-bottom: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.server-location-status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 800; }
.server-location-updated { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.network-map, .map-fallback { position: relative; min-height: inherit; overflow: hidden; }
.map-land { position: absolute; inset: 12% 7%; border: 1px solid #cbd7dd; border-radius: 48%; background: #e4eaed; }
.map-graticule { position: absolute; inset: 0; opacity: .25; background-size: 60px 60px; }
.network-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-map > svg .map-land { position: static; fill: #edf2f7; stroke: #d9e3ed; stroke-width: .35; }
.network-map > svg .map-graticule { position: static; fill: none; stroke: #d9e5f0; stroke-width: .22; opacity: .7; }
.network-map > svg .map-route-line { position: static; fill: none; stroke: #82b8f2; stroke-width: .7; stroke-linecap: round; opacity: .68; }
.map-point { position: absolute; transform: translate(-50%,-50%); }
.map-dot { display: block; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.map-label { position: absolute; left: 14px; top: -4px; white-space: nowrap; font-size: 9px; font-weight: 800; }
.map-popup { display: none; }

.apps-grid, .help-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.device-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.device-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-size: 12px; font-weight: 750; text-decoration: none; }
.support-cta { margin-top: 18px; background: var(--coral-soft); border-color: #f0c9c3; }
.support-cta p { color: #74534e; }

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-size: 15px; }
.footer-brand span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.toast { position: fixed; z-index: 220; left: 50%; bottom: 24px; max-width: min(460px, calc(100% - 32px)); padding: 13px 17px; border-radius: 6px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 650; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: opacity 220ms ease, transform 300ms cubic-bezier(.2,.8,.2,1); }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.toast.error { background: var(--danger); }
.auth-dialog { width: min(520px, calc(100% - 32px)); max-height: min(680px, calc(100dvh - 32px)); margin: auto; overflow: auto; border: 0; border-radius: 8px; padding: 34px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgba(12,23,31,.28); }
.auth-dialog::backdrop { background: rgba(7,17,24,.62); backdrop-filter: blur(8px); }
.auth-dialog[open] { animation: dialogEnter 260ms cubic-bezier(.2,.8,.2,1); }
@keyframes dialogEnter { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-size: 24px; line-height: 1; }
.auth-dialog-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 15px; font-weight: 800; }
.auth-dialog-brand img { width: 34px; height: 34px; }
.auth-dialog h2 { max-width: 390px; margin-bottom: 12px; font-size: 34px; line-height: 1.08; }
.auth-dialog > p { max-width: 430px; margin-bottom: 24px; color: var(--muted); line-height: 1.65; }
.auth-progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 24px; }
.auth-progress span { height: 4px; border-radius: 2px; background: var(--surface-strong); }
.auth-progress span:first-child { background: var(--blue); }
.auth-progress span:nth-child(2) { background: var(--cyan); }
.auth-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.auth-dialog small { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms ease, transform 480ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav, .ghost-btn { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; }
  .hero-section, .hero-copy { min-height: 590px; }
  .hero-copy { padding-right: 45%; }
  .hero-copy h1 { font-size: 62px; }
  .hero-lead { font-size: 23px; }
  .hero-product { left: 55%; }
  .iphone-stage { transform: scale(.82); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .network-section, .faq-section { gap: 42px; }
  .server-map-shell { grid-template-columns: 1fr; }
  .server-location-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pricing-control-panel { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1180px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .header-actions { gap: 6px; }
  .primary-link { display: none; }
  .menu-btn { min-height: 40px; padding: 8px 13px; }
  .mobile-menu { top: 62px; padding-inline: 14px; }
  .page:not(.page-home) { padding: 46px 0 72px; }
  .page-head { margin-bottom: 28px; }
  .page-head h1 { font-size: 36px; }
  .page-head p { font-size: 15px; }
  .hero-section { min-height: 670px; }
  .hero-copy { min-height: 670px; padding: 36px 0 220px; justify-content: flex-start; }
  .hero-copy h1 { font-size: 54px; }
  .hero-lead { font-size: 21px; }
  .hero-description { font-size: 14px; }
  .hero-actions { margin-bottom: 28px; }
  .hero-actions .primary-btn, .hero-actions .secondary-btn { flex: 1 1 160px; }
  .hero-facts { display: none; }
  .hero-facts div { padding-right: 8px; }
  .hero-facts strong { font-size: 13px; }
  .hero-facts span { font-size: 10px; }
  .hero-product { inset: auto 0 0; height: 220px; place-items: start center; }
  .hero-product::before { font-size: 310px; }
  .iphone-stage { margin-top: -128px; transform: scale(.56); transform-origin: top center; }
  .trust-strip { grid-template-columns: 1fr; padding: 10px 0; }
  .trust-strip div, .trust-strip div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .workflow-section, .network-section, .pricing-preview, .faq-section { padding: 70px 0; }
  .section-heading h2, .network-copy h2, .referral-band h2, .support-cta h2 { font-size: 30px; }
  .workflow-list li { grid-template-columns: 48px 1fr; gap: 10px; }
  .workflow-list h3 { font-size: 18px; }
  .network-section, .faq-section { grid-template-columns: 1fr; }
  .network-visual { order: -1; }
  .server-map-compact { min-height: 290px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card p { min-height: 0; }
  .referral-band { padding: 52px 14px; align-items: flex-start; flex-direction: column; gap: 24px; }
  .auth-panel, .support-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .auth-actions, .support-cta .primary-btn { width: 100%; }
  .auth-actions > *, .support-cta .primary-btn { flex: 1 1 100%; }
  .dashboard-grid, .apps-grid, .help-grid { grid-template-columns: 1fr; }
  .glass-card.wide { grid-column: span 1; }
  .pricing-control-panel { padding: 18px; }
  .payment-methods { width: 100%; }
  .payment-method { flex: 1 1 135px; }
  #renew-note { max-width: none; }
  .server-location-list { grid-template-columns: 1fr; }
  .server-map { min-height: 330px; }
  .subscription-url, .copy-field, .promo-form { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; padding-bottom: 32px; }
  .footer-links { justify-content: flex-start; }
  .auth-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 26px 20px 22px; }
  .auth-dialog h2 { padding-right: 30px; font-size: 29px; }
  .auth-dialog-actions { grid-template-columns: 1fr; }
  .auth-copy { align-items: flex-start; }
  .auth-mark { width: 44px; height: 44px; }
  .review-stars { width: 100%; justify-content: space-between; }
  .review-stars button { width: min(48px, 17vw); height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Current home hero: a wide, light product-led composition. */
:root { --container: min(1320px, calc(100% - 48px)); }
.hero-section {
  min-height: 690px;
  color: var(--ink);
  border-bottom: 0;
  background:
    radial-gradient(circle at 72% 44%, rgba(224,237,255,.82) 0, rgba(244,248,255,.58) 24%, rgba(255,255,255,0) 53%),
    #fbfcff;
}
.hero-copy {
  width: var(--container);
  min-height: 690px;
  padding: 92px 53% 70px 28px;
  color: var(--ink);
  justify-content: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  padding: 9px 15px;
  border-radius: 22px;
  color: #5c9ef0;
  background: #eef5ff;
  font-size: 14px;
  font-weight: 700;
}
.hero-kicker-icon { color: #70a9ff; font-size: 18px; line-height: 1; }
.hero-copy h1 {
  max-width: 650px;
  margin-bottom: 25px;
  color: #14253d;
  font-size: clamp(50px, 5vw, 70px);
  line-height: 1.08;
  letter-spacing: -1.1px;
}
.hero-copy h1 em { color: #176fe5; font-style: normal; }
.hero-lead { display: none; }
.hero-description { max-width: 540px; margin-bottom: 31px; color: #5c6d83; font-size: 16px; line-height: 1.62; }
.hero-actions { gap: 14px; margin-bottom: 0; }
.hero-section .primary-btn.light {
  min-width: 214px;
  color: #fff;
  background: #1f73ef;
  box-shadow: 0 12px 22px rgba(31,115,239,.2);
}
.hero-section .primary-btn.light:hover { background: #155dcc; }
.hero-section .primary-btn.light span { margin-left: 12px; font-size: 20px; font-weight: 500; vertical-align: -1px; }
.hero-section .secondary-btn.light {
  min-width: 209px;
  color: #1a2a3e;
  border-color: #d6e0eb;
  background: rgba(255,255,255,.72);
}
.hero-section .secondary-btn.light:hover { border-color: #8db5ec; background: #fff; }
.hero-product {
  inset: 0 0 0 50%;
  overflow: visible;
  background: transparent;
}
.hero-product::before {
  content: "";
  left: 52%;
  top: 49%;
  width: min(56vw, 650px);
  height: min(56vw, 650px);
  border-radius: 50%;
  background: radial-gradient(circle at 48% 46%, #edf5ff 0, #e6f0ff 54%, rgba(228,239,255,.18) 72%, rgba(228,239,255,0) 73%);
  transform: translate(-50%,-50%);
  font-size: 0;
}
.hero-product::after {
  content: "";
  position: absolute;
  left: 32%;
  top: 12%;
  width: 62%;
  height: 76%;
  border: 1px solid rgba(148,190,245,.27);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.iphone-stage { width: 410px; height: 650px; transform: translateX(8%) scale(.98); }
.iphone-mockup { width: 310px; height: 602px; border-color: #ccd6e0; border-radius: 46px; box-shadow: 0 28px 70px rgba(30,69,117,.2); transform: rotate(4deg); }
@keyframes phoneFloat { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-8px); } }
.trust-strip {
  width: var(--container);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 27px 25px;
  border: 1px solid #e6edf6;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(45,81,125,.05);
  transform: translateY(-8px);
}
.trust-strip div, .trust-strip div + div { padding: 0 15px; border-left: 0; }
.benefit-item { display: flex; align-items: flex-start; gap: 13px; }
.benefit-icon { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 10px; color: #1478ee; background: #edf5ff; }
.benefit-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-strip strong { margin-bottom: 4px; color: #1b2b42; font-size: 14px; }
.trust-strip small { display: block; color: #7a889a; font-size: 11px; line-height: 1.42; }

@media (max-width: 980px) {
  :root { --container: min(100% - 36px, 1320px); }
  .hero-copy { padding-right: 49%; padding-left: 0; }
  .hero-copy h1 { font-size: 54px; }
  .hero-product { left: 51%; }
  .iphone-stage { transform: translateX(4%) scale(.82); }
}
@media (max-width: 720px) {
  :root { --container: min(100% - 28px, 1320px); }
  .hero-section { min-height: 790px; }
  .hero-copy { min-height: 790px; padding: 42px 0 270px; }
  .hero-kicker { margin-bottom: 22px; font-size: 12px; }
  .hero-copy h1 { margin-bottom: 19px; font-size: 44px; letter-spacing: -.6px; }
  .hero-description { margin-bottom: 24px; font-size: 14px; }
  .hero-actions { width: 100%; }
  .hero-section .primary-btn.light, .hero-section .secondary-btn.light { min-width: 0; flex: 1 1 100%; }
  .hero-product { inset: auto 0 0; height: 285px; }
  .hero-product::before { left: 50%; top: 52%; width: 420px; height: 420px; }
  .hero-product::after { left: 10%; top: 8%; width: 82%; height: 82%; }
  .iphone-stage { margin-top: 6px; transform: scale(.65); }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 22px 10px; padding: 22px 16px; transform: translateY(-4px); }
  .trust-strip div, .trust-strip div + div { padding: 0 4px; }
  .benefit-icon { width: 38px; height: 38px; }
  .benefit-icon svg { width: 20px; height: 20px; }
  .trust-strip strong { font-size: 12px; }
  .trust-strip small { font-size: 10px; }
}

/* Responsive home composition. These final rules intentionally replace the
   earlier absolute split, which made the copy narrow and fragile on phones. */
:root { --container: min(1440px, calc(100% - 64px)); }
.page-home .hero-section {
  min-height: 680px;
  padding-inline: max(32px, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  align-items: stretch;
  background:
    radial-gradient(circle at 78% 42%, rgba(202,225,255,.82), rgba(242,247,255,.38) 31%, transparent 59%),
    linear-gradient(135deg, #fbfdff 0%, #f6f9fe 58%, #eef5ff 100%);
}
.page-home .hero-copy {
  width: auto;
  min-height: 680px;
  margin: 0;
  padding: 76px 42px 76px 0;
}
.page-home .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(52px, 5.25vw, 82px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  text-wrap: balance;
}
.page-home .hero-description { max-width: 610px; font-size: 17px; }
.page-home .hero-product {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 680px;
  overflow: hidden;
}
.page-home .hero-product::before { width: min(48vw, 670px); height: min(48vw, 670px); }
.page-home .hero-product::after { left: 17%; top: 12%; width: 73%; height: 75%; }
.page-home .iphone-stage { transform: translateX(0) scale(.96); }
.page-home .hero-copy { animation: heroCopyIn 620ms cubic-bezier(.2,.75,.25,1) both; }
.page-home .hero-product { animation: heroProductIn 760ms 80ms cubic-bezier(.2,.75,.25,1) both; }
@keyframes heroCopyIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes heroProductIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }

.page-home .trust-strip {
  width: var(--container);
  margin: 22px auto 0;
  padding: 25px;
  transform: none;
}
.page-home .trust-strip > .benefit-item,
.page-home .trust-strip > .benefit-item + .benefit-item {
  min-width: 0;
  padding: 0 14px;
  align-items: center;
  border-left: 0;
}
.page-home .benefit-item > span:last-child { min-width: 0; }
.page-home .benefit-item strong,
.page-home .benefit-item small { overflow-wrap: anywhere; }

.reveal { opacity: 1; transform: none; }
.server-map { box-shadow: 0 24px 60px rgba(29,68,112,.1); }
.leaflet-container { background: #eaf2fb !important; }
.neon-route-glow { stroke: #48a5ff; filter: drop-shadow(0 0 6px rgba(45,142,255,.6)); }
.neon-route-line { stroke-dasharray: 7 8; animation: routeFlow 7s linear infinite; }
.network-map > svg .map-route-glow { fill: none; stroke: #4aa8ff; stroke-width: 2.2; opacity: .14; }
.network-map > svg .map-route-line { stroke-width: .75; stroke-dasharray: 2.5 2.8; animation: routeFlow 7s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -60; } }

@media (max-width: 1040px) {
  :root { --container: min(100% - 40px, 1440px); }
  .page-home .hero-section {
    padding-inline: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr);
  }
  .page-home .hero-copy { padding-right: 20px; }
  .page-home .hero-copy h1 { font-size: clamp(46px, 6vw, 64px); }
  .page-home .iphone-stage { transform: scale(.82); }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1440px); }
  .page-home .hero-section {
    min-height: 0;
    padding: 0 14px;
    grid-template-columns: minmax(0, 1fr);
  }
  .page-home .hero-copy {
    width: 100%;
    min-height: 0;
    padding: 42px 0 24px;
  }
  .page-home .hero-copy h1 { max-width: none; font-size: clamp(40px, 12.2vw, 56px); line-height: 1.03; letter-spacing: -1.5px; }
  .page-home .hero-description { font-size: 15px; }
  .page-home .hero-actions { margin-bottom: 0; }
  .page-home .hero-product { min-height: 345px; height: 345px; }
  .page-home .hero-product::before { width: 430px; height: 430px; }
  .page-home .hero-product::after { left: 8%; top: 6%; width: 84%; height: 86%; }
  .page-home .iphone-stage { margin-top: -10px; transform: scale(.61); }
  .page-home .trust-strip { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .page-home .trust-strip > .benefit-item,
  .page-home .trust-strip > .benefit-item + .benefit-item { padding: 0; }
  .page-home .benefit-icon { width: 42px; height: 42px; }
  .page-home .trust-strip strong { font-size: 14px; }
  .page-home .trust-strip small { font-size: 11px; }
}
