/* =========================================================
   VectorVPN — styles.css
   Собственный статический CSS (без Tailwind/CDN).
   Dark-first, бренд-акцент #40CFFF.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --accent: #40CFFF;
  --accent-strong: #32BFFF;
  --accent-soft: rgba(64, 207, 255, 0.12);
  --accent-glow: rgba(64, 207, 255, 0.35);
  --bg: #050505;
  --bg-elev: rgba(255, 255, 255, 0.02);
  --bg-elev-2: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(5, 5, 5, 0.55);
  --text: #ffffff;
  --text-muted: #9aa3ad;
  --text-dim: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --grid-line: rgba(128, 128, 128, 0.10);
  --blob-1: rgba(64, 207, 255, 0.14);
  --blob-2: rgba(120, 80, 255, 0.10);
  --card-shadow: none;
  --radius: 24px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html.light {
  color-scheme: light;
  --bg: #f6f8fa;
  --bg-elev: #ffffff;
  --bg-elev-2: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.75);
  --text: #0b1116;
  --text-muted: #51606e;
  --text-dim: #8a97a4;
  --border: rgba(15, 23, 32, 0.10);
  --border-strong: rgba(15, 23, 32, 0.16);
  --grid-line: rgba(15, 23, 32, 0.05);
  --blob-1: rgba(64, 207, 255, 0.22);
  --blob-2: rgba(120, 80, 255, 0.12);
  --card-shadow: 0 10px 30px -12px rgba(15, 23, 32, 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent-glow); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---------- Background decor ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -10; pointer-events: none; overflow: hidden;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(110px); will-change: transform; }
.blob-1 { top: -12%; left: -8%; width: 46vw; height: 46vw; background: var(--blob-1); animation: drift1 18s var(--ease) infinite alternate; }
.blob-2 { bottom: 4%; right: -10%; width: 38vw; height: 38vw; background: var(--blob-2); animation: drift2 22s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(8%, 12%, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10%, -8%, 0) scale(1.1); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  border-bottom: 1px solid var(--border); background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); transition: width 0.25s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: var(--text-muted); transition: color 0.2s, background-color 0.2s; }
.icon-btn:hover { color: var(--text); background: var(--bg-elev-2); }
.icon-btn svg { width: 20px; height: 20px; }
html.dark .icon-light { display: none; }
html.light .icon-dark { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 999px; transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.3s, border-color 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #06222c; box-shadow: 0 8px 26px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 12px 34px -6px var(--accent-glow); transform: translateY(-2px); }
.btn-ghost { background: var(--bg-elev-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: 18px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: 90px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-muted); font-size: 13px; font-weight: 600; margin-bottom: 26px; }
.live-dot { position: relative; display: inline-flex; width: 8px; height: 8px; }
.live-dot::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--accent); animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.live-dot::after { content: ""; position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.hero h1 { font-size: clamp(38px, 7vw, 78px); font-weight: 900; margin-bottom: 22px; }
.grad-text { background: linear-gradient(110deg, var(--accent), #8b7bff 60%, var(--accent)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { color: var(--text-muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 620px; margin: 0 auto 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; margin-top: 66px; }
.stat { flex: 1 1 0; min-width: 140px; padding: 0 18px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: var(--border); }
.stat-num { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.stat-num span { color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-features { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--card-shadow); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s, background-color 0.3s; }
.card::after { content: ""; position: absolute; inset: 0; opacity: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); transition: opacity 0.4s; pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 24px -10px var(--c1); transition: transform 0.4s var(--ease); }
.card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }
.feature-icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.card h3 { font-size: 20px; margin-bottom: 10px; transition: color 0.25s; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Daily plan (highlighted) ---------- */
.daily { max-width: 760px; margin: 0 auto 28px; position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; padding: 26px 30px; border-radius: var(--radius); border: 1px solid rgba(64, 207, 255, 0.4); background: var(--bg-elev-2); box-shadow: var(--card-shadow); }
.daily::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at 15% 0%, var(--accent-soft), transparent 60%); }
.daily-tag { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #06222c; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.daily-main { position: relative; flex: 1 1 240px; }
.daily-main h3 { font-size: 20px; margin-bottom: 4px; }
.daily-main p { color: var(--text-muted); font-size: 14px; }
.daily-price { position: relative; text-align: right; flex-shrink: 0; }
.daily-price .num { font-size: 34px; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.daily-price .num small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.daily .btn { position: relative; flex-shrink: 0; }

/* ---------- Pricing ---------- */
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 48px; }
.toggle { display: inline-flex; gap: 4px; padding: 6px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-elev); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.toggle::-webkit-scrollbar { display: none; }
.toggle button { position: relative; padding: 10px 20px; border-radius: 13px; font-size: 14px; font-weight: 700; color: var(--text-muted); white-space: nowrap; transition: color 0.25s, background-color 0.25s; }
.toggle button:hover { color: var(--text); }
.toggle button.active { color: #06222c; background: var(--accent); box-shadow: 0 6px 18px -8px var(--accent-glow); }
.toggle .badge { position: absolute; top: -8px; right: -6px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--text); color: var(--bg); }
.plans { grid-template-columns: repeat(5, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--card-shadow); transition: transform 0.35s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.plan.popular { border-color: rgba(64, 207, 255, 0.5); background: var(--bg-elev-2); }
.plan.popular::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, var(--accent-glow), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; font-size: 12px; font-weight: 800; border-radius: 999px; background: var(--accent); color: #06222c; white-space: nowrap; box-shadow: 0 6px 18px -6px var(--accent-glow); }
.plan-head { text-align: center; margin-bottom: 22px; padding-top: 6px; }
.plan-head h3 { font-size: 18px; margin-bottom: 4px; }
.plan-devices { color: var(--text-muted); font-size: 14px; }
.plan-traffic { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; margin-top: 6px; }
.plan-traffic.limited { color: #f5a524; }
.plan-price { text-align: center; margin-bottom: 26px; flex-grow: 1; }
.plan-old { display: block; height: 18px; color: var(--text-dim); text-decoration: line-through; font-size: 14px; }
.plan-now { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; }
.plan.popular .plan-now { color: var(--accent); }
.plan-now small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.plan-total { height: 16px; margin-top: 8px; font-size: 12px; color: var(--text-dim); font-weight: 500; }

/* ---------- Reviews ---------- */
.reviews { grid-template-columns: repeat(3, 1fr); }
.review { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--card-shadow); transition: transform 0.35s var(--ease), border-color 0.3s; }
.review:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.review-stars { color: #f5a524; font-size: 15px; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 15px; line-height: 1.6; flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #8b7bff); color: #06222c; font-weight: 800; font-size: 16px; }
.review-name { font-weight: 700; font-size: 15px; }
.review-meta { color: var(--text-dim); font-size: 13px; }

/* ---------- Comparison table ---------- */
.compare-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; scrollbar-width: thin; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 620px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); box-shadow: var(--card-shadow); }
.compare th, .compare td { padding: 16px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.compare thead th { font-weight: 700; color: var(--text-muted); background: var(--bg-elev-2); }
.compare thead th.col-us { color: var(--accent); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.feat { color: var(--text); font-weight: 600; }
.compare td { color: var(--text-muted); }
.compare td.col-us { color: var(--text); font-weight: 600; background: var(--accent-soft); }
.compare .yes { color: #34d399; font-weight: 700; }
.compare .no { color: #f87171; }
.compare .mid { color: #f5a524; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto 56px; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 18px; background: var(--bg-elev); overflow: hidden; box-shadow: var(--card-shadow); transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--text-muted); transition: transform 0.3s var(--ease), color 0.3s; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq-answer { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; }

/* ---------- CTA block ---------- */
.cta-block { max-width: 760px; margin: 0 auto; text-align: center; padding: 56px 32px; border-radius: 30px; border: 1px solid var(--border); background: var(--bg-elev); position: relative; overflow: hidden; box-shadow: var(--card-shadow); }
.cta-block::before { content: ""; position: absolute; top: -60%; left: 50%; transform: translateX(-50%); width: 120%; height: 120%; background: radial-gradient(circle, var(--accent-soft), transparent 60%); pointer-events: none; }
.cta-block h3 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 14px; position: relative; }
.cta-block p { color: var(--text-muted); max-width: 460px; margin: 0 auto 28px; position: relative; }
.cta-block .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer .brand img { width: 24px; height: 24px; }
.footer .brand-name { font-size: 17px; }
.footer-copy { color: var(--text-dim); font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 22px; color: var(--text-muted); font-size: 14px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.social { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); transition: all 0.25s; }
.social:hover { background: var(--accent); color: #06222c; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Document pages (offer/privacy) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 120px 20px 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 12px; }
.doc .doc-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.doc-content h2 { font-size: 24px; margin: 36px 0 14px; }
.doc-content h3 { font-size: 19px; margin: 26px 0 10px; }
.doc-content p { color: var(--text-muted); margin-bottom: 14px; }
.doc-content ul { color: var(--text-muted); padding-left: 22px; margin-bottom: 14px; }
.doc-content li { margin-bottom: 7px; }
.doc-content a { color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 15px; margin-bottom: 28px; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-features { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .section { padding: 70px 0; }
  .hero { padding-top: 120px; }
  .grid-3, .grid-features { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .stat { flex: 1 1 40%; }
  .stat + .stat::before { display: none; }
  .daily { flex-direction: column; align-items: flex-start; text-align: left; }
  .daily-price { text-align: left; }
}
