/* ============================================================
   Universal VPN — landing styles
   ============================================================ */

:root {
  --bg: #05060d;
  --bg-elev: #0b0d18;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --text-2: rgba(238, 240, 248, 0.62);
  --text-3: rgba(238, 240, 248, 0.4);
  --accent: #7c5cff;
  --accent-2: #4e7cff;
  --green: #22c55e;
  --grad: linear-gradient(120deg, #7c5cff, #4e7cff 55%, #38bdf8);
  --grad-btn: linear-gradient(120deg, #7c5cff, #5b6cff);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 92, 255, 0.35); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- background decor ---------- */
/* Без filter: blur() — тяжёлое размытие вешает слабые встроенные
   браузеры (Google, Instagram и т.п.). Градиент даёт тот же вид. */
.glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
}

.glow-top {
  width: 1100px;
  height: 760px;
  top: -400px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.18), rgba(56, 124, 255, 0.07) 55%, transparent 75%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 { font-size: clamp(36px, 4.6vw, 58px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

.lead {
  color: var(--text-2);
  font-size: 17px;
  max-width: 52ch;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 22px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad-btn);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 24px -8px rgba(105, 96, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 14px 32px -8px rgba(105, 96, 255, 0.7);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
}

.btn-outline:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.24); }

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 13, 0.92);
  border-bottom: 1px solid var(--border);
}

/* Размытие шапки — только на десктопе: встроенные браузеры
   телефонов (приложение Google и т.п.) от него зависают */
@media (min-width: 981px) {
  .nav {
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(5, 6, 13, 0.72);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-mark { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 26px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-copy .lead { margin-top: 22px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat span { font-size: 13px; color: var(--text-3); }

.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.7);
}

@media (min-width: 981px) {
  .glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

/* ---------- download card ---------- */
.download-card { padding: 26px; }

.dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dc-device { display: flex; align-items: center; gap: 14px; }

.dc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  color: #a99bff;
}

.dc-icon svg { width: 24px; height: 24px; }

.dc-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

.dc-name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.dc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 500;
}

.dc-steps { display: grid; gap: 18px; padding: 22px 0; }

.dc-step { display: flex; gap: 14px; }

.dc-step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}

.dc-step-body { flex: 1; min-width: 0; }

.dc-step-body b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- key panel ---------- */
button.btn { font-family: var(--font); }

.btn.is-loading { opacity: 0.7; pointer-events: none; }

.key-panel { display: grid; gap: 12px; margin-top: 4px; }

.key-timer {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.key-timer b {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.key-timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2s ease-out infinite;
}

.key-url-row { display: flex; gap: 8px; }

.key-url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.key-url:focus { border-color: rgba(124, 92, 255, 0.5); }

.key-copy {
  flex: 0 0 auto;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.key-copy:hover { color: var(--text); border-color: var(--border-strong); }

.key-copy.copied { color: var(--green); border-color: rgba(34, 197, 94, 0.4); }

.key-hint {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.key-error {
  margin-top: 10px;
  font-size: 13.5px;
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.dc-other {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

.dc-other div { display: flex; gap: 6px; flex-wrap: wrap; }

.dc-other a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dc-other a:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.08);
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

/* ---------- how ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how-card {
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.35);
  background: var(--surface-2);
}

.how-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.22);
  color: #a99bff;
  margin-bottom: 20px;
}

.how-icon svg { width: 22px; height: 22px; }

.how-card h3 { margin-bottom: 10px; }

.how-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.feature-copy h2 { margin-bottom: 18px; }

.feature-list {
  list-style: none;
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.feature-list li { display: flex; gap: 16px; align-items: flex-start; }

.feature-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.feature-list b { display: block; font-size: 15.5px; font-weight: 600; }

.feature-list span { color: var(--text-2); font-size: 14px; }

/* ---------- phone mockup ---------- */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.phone-top {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 110px;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #05060d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.phone-screen {
  border-radius: 34px;
  background: linear-gradient(180deg, #0c0e1d 0%, #090b16 100%);
  padding: 18px 20px 26px;
  overflow: hidden;
}

.ps-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 6px 0;
}

.ps-icons { display: inline-flex; color: var(--text-2); }

.ps-ring-wrap {
  position: relative;
  width: 176px;
  margin: 26px auto 22px;
}

.ps-ring { display: block; width: 176px; height: 176px; }

.ps-ring-arc {
  transform-origin: center;
  animation: spin 6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ps-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.ps-ring-center b {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.ps-ring-center span {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.ps-rows { display: grid; gap: 8px; }

.ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-row span { font-size: 12px; color: var(--text-3); }

.ps-row b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

.phone-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent);
  filter: blur(60px);
  z-index: 0;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 92, 255, 0.3);
  background:
    radial-gradient(900px 340px at 15% -30%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(700px 300px at 95% 130%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--surface);
}

.cta-inner { padding: 56px; }

.cta-copy { max-width: 620px; }

.cta-copy h2 { margin-bottom: 16px; }

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 32px;
}

.cta-points span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 30px 24px;
}

.footer-links { display: flex; gap: 26px; }

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-3); font-size: 13px; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

.reveal-d1.in { transition-delay: 0.12s; }
.reveal-d2.in { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ps-ring-arc, .pill-dot { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-card { max-width: 480px; margin: 0 auto; width: 100%; }
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 52px; }
  .feature-copy { text-align: center; }
  .feature-copy .lead { margin-left: auto; margin-right: auto; }
  .feature-list { max-width: 460px; margin-left: auto; margin-right: auto; text-align: left; }
  .cta-inner { padding: 40px 28px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .hero-stats { gap: 18px; }
  .stat b { font-size: 18px; }
  .download-card { padding: 20px; }
  .dc-check { display: none; }
  .cta-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
