/* ============================================================
   Fearr VPN — стили
   Цвета меняются в блоке :root ниже.
   ============================================================ */

:root {
  --bg: #04060b;
  --bg-soft: #080c13;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eaf1f8;
  --muted: #8d9aae;

  --accent: #22e3a5;
  --accent-2: #3d8bff;
  --accent-3: #8b5cf6;
  --tg: #2aabee;

  --radius: 22px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 40px 120px -50px rgba(0, 0, 0, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.link { color: var(--accent); border-bottom: 1px solid rgba(34, 227, 165, 0.35); }
.link:hover { border-bottom-color: var(--accent); }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #04100b;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { left: 16px; }

/* ---------- Фон ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
}
.orb-a { width: 52vw; aspect-ratio: 1; background: var(--accent); top: -18vw; left: -10vw; }
.orb-b { width: 44vw; aspect-ratio: 1; background: var(--accent-2); top: 6vw; right: -14vw; opacity: 0.26; }
.orb-c { width: 46vw; aspect-ratio: 1; background: var(--accent-3); bottom: -22vw; left: 20vw; opacity: 0.18; }

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 10%, transparent 78%);
}
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(4, 6, 11, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  position: relative;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(34, 227, 165, 0.22), rgba(61, 139, 255, 0.22));
  border: 1px solid rgba(34, 227, 165, 0.35);
  box-shadow: 0 0 26px -8px rgba(34, 227, 165, 0.7);
}
.logo-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.logo-text { font-weight: 800; letter-spacing: -0.03em; font-size: 1.12rem; }
.logo-text span { color: var(--accent); margin-left: 4px; }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav a { color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.menu-btn { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
}
.btn svg[stroke], .btn-ghost svg, .btn-tg svg:not([fill]) { fill: none; }

.btn-tg {
  background: linear-gradient(135deg, var(--accent) 0%, #2fd0c4 45%, var(--accent-2) 100%);
  color: #03120d;
  box-shadow: 0 18px 40px -18px rgba(34, 227, 165, 0.75);
}
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(34, 227, 165, 0.9); }
.btn-tg:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(34, 227, 165, 0.5); }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 12px; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }

.btn svg.arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-tg:hover svg.arrow { transform: translateX(3px); }
.btn svg.arrow { transition: transform 0.2s ease; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  padding: clamp(40px, 7vw, 92px) 0 clamp(56px, 8vw, 96px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cfe3da;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(34, 227, 165, 0.28);
  background: rgba(34, 227, 165, 0.07);
  margin-bottom: 26px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 227, 165, 0.65);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 227, 165, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(34, 227, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 227, 165, 0); }
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, #6ee7ff 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 530px;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--muted);
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.stats li { display: grid; gap: 2px; }
.stats strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.stats span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Карточка статуса ---------- */
.hero-visual { position: relative; }

.status-card {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(16, 24, 34, 0.92), rgba(6, 10, 16, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px;
  overflow: hidden;
}
.status-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 227, 165, 0.55), transparent 40%, transparent 60%, rgba(61, 139, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.status-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(34, 227, 165, 0.8);
}
.status-title { font-weight: 600; }
.status-pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(34, 227, 165, 0.35);
  background: rgba(34, 227, 165, 0.08);
  padding: 3px 9px;
  border-radius: 7px;
}

.status-map {
  position: relative;
  height: 168px;
  margin: 4px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(61, 139, 255, 0.17), transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, 0.05) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, 0.05) 23px 24px);
  border: 1px solid var(--border);
}
.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(34, 227, 165, 0.22);
  transform: translate(-50%, -50%);
}
.ring-1 { width: 88px; height: 88px; }
.ring-2 { width: 148px; height: 148px; border-color: rgba(34, 227, 165, 0.14); }
.ring-3 { width: 214px; height: 214px; border-color: rgba(61, 139, 255, 0.12); }

.node {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 12px;
}
.node-user {
  left: 14%;
  top: 62%;
  width: 46px;
  height: 46px;
  background: rgba(61, 139, 255, 0.16);
  border: 1px solid rgba(61, 139, 255, 0.5);
  color: #a8ccff;
}
.node-server {
  right: 15%;
  top: 28%;
  width: 54px;
  height: 54px;
  background: rgba(34, 227, 165, 0.14);
  border: 1px solid rgba(34, 227, 165, 0.55);
  box-shadow: 0 0 34px -6px rgba(34, 227, 165, 0.55);
}
.node-server svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.status-map .link {
  position: absolute;
  left: 26%;
  top: 46%;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, rgba(61, 139, 255, 0.1), rgba(34, 227, 165, 0.9), rgba(61, 139, 255, 0.1));
  transform: rotate(-14deg);
  transform-origin: left center;
  overflow: hidden;
}
.status-map .link::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0.65;
  animation: dash 2.4s linear infinite;
}
@keyframes dash {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}
.status-grid > div {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.status-grid dt { font-size: 0.72rem; color: var(--muted); margin-bottom: 2px; }
.status-grid dd { margin: 0; font-size: 0.94rem; font-weight: 600; }
.ok { color: var(--accent); }

.meter {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.status-note { margin: 10px 0 0; font-size: 0.72rem; color: rgba(141, 154, 174, 0.75); }

.float-card {
  position: absolute;
  right: -14px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: 16px;
  background: rgba(10, 15, 22, 0.9);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  animation: bob 5s ease-in-out infinite;
}
.float-card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.float-card strong { display: block; font-size: 0.88rem; }
.float-card span { font-size: 0.75rem; color: var(--muted); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Секции ---------- */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 227, 165, 0.35);
  background: linear-gradient(160deg, rgba(34, 227, 165, 0.07), rgba(255, 255, 255, 0.02));
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
  border-radius: 13px;
  background: rgba(34, 227, 165, 0.1);
  border: 1px solid rgba(34, 227, 165, 0.25);
  margin-bottom: 16px;
}
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Шаги ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Тарифы ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.plan-featured {
  border-color: rgba(34, 227, 165, 0.45);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(34, 227, 165, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 30px 80px -40px rgba(34, 227, 165, 0.5);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04120d;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 99px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan-price { display: grid; gap: 2px; margin-bottom: 18px; font-weight: 600; color: var(--text); }
.plan-price span { font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgba(34, 227, 165, 0.15);
  border: 1px solid rgba(34, 227, 165, 0.5);
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 8px 8px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan > .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  padding: 0 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { background: rgba(34, 227, 165, 0.045); border-color: rgba(34, 227, 165, 0.3); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(34px, 6vw, 64px) 24px;
  border-radius: 30px;
  border: 1px solid rgba(34, 227, 165, 0.25);
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(34, 227, 165, 0.16), transparent 62%),
    radial-gradient(80% 120% at 85% 110%, rgba(61, 139, 255, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.02);
}
.cta h2 { margin-bottom: 8px; }
.cta > .muted { margin-bottom: 26px; }
.cta-note { margin: 16px 0 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; margin-top: 64px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.site-footer .logo-mark { width: 30px; height: 30px; }
.site-footer .logo-text { font-size: 1rem; }

/* ---------- Появление ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .lead { max-width: none; }
  .cards, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { order: -1; }
}

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .header-actions .btn-sm { display: none; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--border-strong);
    background: rgba(8, 12, 19, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a:hover { background: rgba(255, 255, 255, 0.05); }
  .header-actions { margin-left: auto; }

  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .float-card { right: 6px; bottom: -20px; }
  .footer-inner { justify-content: center; text-align: center; }
  .cta { border-radius: 24px; }
}

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