/* ============================================================
   GradVPN — landing styles
   Палитра (5 цветов):
   --bg      #0B1020  глубокий индиго-чёрный (фон)
   --surface #141A2E  поверхность карточек
   --ink     #E8ECF5  основной текст
   --muted   #9AA4BF  приглушённый текст
   --cool    #5B8CFF  холодный бренд-акцент (свечение, линии)
   --warm    #FF7A59  тёплый CTA-акцент (единственный яркий)
   Шрифт: системный современный гротеск (no external deps).
   ============================================================ */

:root {
  --bg: #0B1020;
  --bg-2: #0E1428;
  --surface: #141A2E;
  --surface-2: #18203a;
  --ink: #E8ECF5;
  --muted: #9AA4BF;
  --muted-2: #6E789A;
  --cool: #5B8CFF;
  --cool-soft: #8FB0FF;
  --warm: #FF7A59;
  --warm-deep: #F0623E;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 18px 50px rgba(5, 8, 20, 0.55);
  --shadow-cta: 0 14px 34px rgba(255, 122, 89, 0.32);
  --shadow-glow: 0 0 80px rgba(91, 140, 255, 0.28);

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;

  --maxw: 1120px;
  --gap: clamp(1rem, 2.4vw, 1.6rem);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "Helvetica Neue", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}

/* атмосферный фон: мягкие световые пятна + сетка */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -5%, rgba(91, 140, 255, 0.22), transparent 60%),
    radial-gradient(50% 45% at 8% 8%, rgba(255, 122, 89, 0.12), transparent 55%),
    radial-gradient(55% 60% at 50% 110%, rgba(91, 140, 255, 0.12), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 30%, #000 30%, transparent 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(1.2rem, 5vw, 2.4rem);
}

.section {
  padding-block: clamp(4.5rem, 11vw, 9rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool-soft);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.06);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cool);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.18);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.section-head h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.1px;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.7rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--warm) 0%, var(--warm-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(255, 122, 89, 0.42);
}

.btn-primary .arrow {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.15rem 2.1rem;
  font-size: 1.08rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand b {
  color: var(--cool-soft);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.97rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
}

.nav-cta .cta-short { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-top: 1.6rem;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--cool-soft), var(--cool) 60%, #b9ccff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 33ch;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-note .tick {
  color: var(--cool);
}

/* ----- hero visual: щит + волны соединения ----- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.shield-stage {
  position: relative;
  width: min(420px, 86vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* концентрические «волны сети» */
.ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(91, 140, 255, 0.16);
}
.ring.r1 { width: 100%; height: 100%; }
.ring.r2 { width: 74%; height: 74%; border-color: rgba(91, 140, 255, 0.22); }
.ring.r3 { width: 48%; height: 48%; border-color: rgba(91, 140, 255, 0.3); }

.pulse {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(91, 140, 255, 0.4);
  animation: pulse 3.6s var(--ease) infinite;
  opacity: 0;
}
.pulse.d2 { animation-delay: 1.2s; }
.pulse.d3 { animation-delay: 2.4s; }

@keyframes pulse {
  0%   { transform: scale(0.45); opacity: 0; }
  18%  { opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 0; }
}

.shield-glow {
  position: absolute;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.45), transparent 65%);
  filter: blur(26px);
}

.shield {
  position: relative;
  width: 46%;
  filter: drop-shadow(0 22px 40px rgba(5, 8, 20, 0.6));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* плавающие узлы-страны вокруг щита */
.node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(20, 26, 46, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  animation: floatNode 7s ease-in-out infinite;
}
.node .flag { font-size: 1rem; line-height: 1; }
.node .ping { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }

.node.n1 { top: 6%; left: -4%; animation-delay: 0s; }
.node.n2 { top: 30%; right: -8%; animation-delay: 1.4s; }
.node.n3 { bottom: 12%; left: -8%; animation-delay: 0.7s; }

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background:
    linear-gradient(180deg, transparent, rgba(20, 26, 46, 0.35) 18%, rgba(20, 26, 46, 0.35) 82%, transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.card:hover::before {
  opacity: 1;
}

.card .ic {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.22);
  margin-bottom: 1.3rem;
  color: var(--cool-soft);
}

.card.warm .ic {
  background: rgba(255, 122, 89, 0.12);
  border-color: rgba(255, 122, 89, 0.26);
  color: var(--warm);
}

.card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  font-weight: 650;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ============================================================
   COUNTRIES
   ============================================================ */
.countries .wrap {
  text-align: center;
}

.flag-row {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.flag-chip:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.flag-chip .flag {
  font-size: 1.45rem;
  line-height: 1;
}

.flag-chip small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing .wrap {
  display: grid;
  place-items: center;
}

.price-card {
  position: relative;
  width: min(520px, 100%);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(91, 140, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  text-align: center;
  overflow: hidden;
}

.price-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 122, 89, 0.3);
  border-radius: 999px;
  background: rgba(255, 122, 89, 0.08);
  margin-bottom: 1.6rem;
}

.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.price-amount .num {
  font-size: clamp(3.4rem, 9vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-amount .per {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.price-sub {
  color: var(--muted);
  margin-top: 0.7rem;
  font-size: 1rem;
}

.price-list {
  list-style: none;
  text-align: left;
  margin: 2rem auto;
  display: grid;
  gap: 0.95rem;
  max-width: 340px;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
}

.price-list .check {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 140, 255, 0.16);
  color: var(--cool-soft);
}

.price-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.price-fine {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 1.6rem;
  font-weight: 600;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  flex: none;
  width: 26px;
  height: 26px;
  position: relative;
  transition: transform 0.3s var(--ease);
  color: var(--cool-soft);
}

.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .plus::before { width: 14px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }

.faq-item[open] summary .plus::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  padding: 0 1.6rem 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand .mark { width: 28px; height: 28px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}

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

.footer-tg {
  color: var(--cool-soft);
}

.footer-copy {
  width: 100%;
  margin-top: 0.6rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead { max-width: 46ch; margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { order: -1; min-height: 320px; }
  .section-head { margin-inline: auto; text-align: center; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .nav-cta .btn { padding: 0.78rem 1.3rem; font-size: 0.95rem; }
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
  .btn { width: auto; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
