﻿/* ============================================================
   VPN Landing — Design System
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg:            #0a0a0f;
  --bg-card:       rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --accent:        #6c63ff;
  --accent-2:      #00d4ff;
  --accent-grad:   linear-gradient(135deg, #6c63ff, #00d4ff);
  --text:          #e8e8f0;
  --hint:          #8888aa;
  --border:        rgba(255, 255, 255, 0.1);
  --font:          'Inter', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 24px rgba(108, 99, 255, 0.3);
  --transition:    0.25s ease;
  --navbar-h:      64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.navbar__logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  color: var(--hint);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--text); }
.navbar__actions { display: flex; align-items: center; gap: 12px; }

/* Login/Profile button — круглая кнопка справа */
.navbar__btn-login,
.navbar__btn-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.navbar__btn-login {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.navbar__btn-login:hover { opacity: 0.85; transform: translateY(-1px); }
.navbar__btn-profile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.navbar__btn-profile:hover { background: var(--bg-card-hover); }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--navbar-h); left: 0; right: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.navbar__mobile a:last-child { border-bottom: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: rgba(108,99,255,0.1); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card-hover); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   CARDS (Glassmorphism)
   ============================================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover { background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.card--no-hover:hover { transform: none; background: var(--bg-card); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-active  { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-expired { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-pending { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-suspended { background: rgba(156,163,175,0.15); color: #9ca3af; border: 1px solid rgba(156,163,175,0.3); }

/* ============================================================
   PROGRESS BAR (Traffic)
   ============================================================ */
.progress-wrap { margin: 8px 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--hint);
  margin-bottom: 6px;
}
.progress-bar {
  height: 8px;
  background: var(--bg-card);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-bar__fill {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 50px;
  transition: width 0.6s ease;
}
.progress-bar.warning .progress-bar__fill { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.progress-bar.critical .progress-bar__fill { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-title span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub {
  font-size: 1.05rem;
  color: var(--hint);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
/* Animated gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6c63ff, transparent);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00d4ff, transparent);
  bottom: -150px; right: -100px;
  animation-delay: -4s;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a855f7, transparent);
  top: 40%; left: 50%;
  animation-delay: -2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}
/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero__title span { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__sub {
  font-size: 1.15rem;
  color: var(--hint);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label { font-size: 0.85rem; color: var(--hint); margin-top: 2px; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px;
}
.feature-card__icon {
  width: 52px; height: 52px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card__icon--wide {
  width: auto;
  padding: 0 12px;
  gap: 4px;
}
.feature-card__icon img {
  width: 28px; height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.feature-card__icon img.icon-green {
  filter: brightness(0) saturate(100%) invert(58%) sepia(60%) saturate(400%) hue-rotate(90deg) brightness(95%);
}
.feature-card__icon img.icon-original {
  filter: none;
}
/* Иконки в кнопках и badge на тёмном фоне */
.navbar__btn-login img,
.navbar__btn-profile img,
.hero__badge img,
.btn img {
  filter: brightness(0) invert(1);
  vertical-align: middle;
}
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card__text { font-size: 0.9rem; color: var(--hint); line-height: 1.6; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin: 0 auto; }
.step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }
.step__line-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step__num {
  width: 48px; height: 48px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}
.step__connector {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-top: 8px;
  min-height: 32px;
}
.step:last-child .step__connector { display: none; }
.step__body { padding-top: 10px; }
.step__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 0.9rem; color: var(--hint); line-height: 1.6; }

/* ============================================================
   PLANS PREVIEW / PRICING CARDS
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.plan-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.plan-card--featured {
  border-color: rgba(108,99,255,0.4);
  background: rgba(108,99,255,0.08);
}
.plan-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-grad);
}
.plan-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.plan-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.plan-card__price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.plan-card__price span { font-size: 1rem; font-weight: 500; color: var(--hint); }
.plan-card__period { font-size: 0.85rem; color: var(--hint); margin-bottom: 24px; }
.plan-card__features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--hint);
}
.plan-card__feature-icon { color: var(--accent); font-size: 0.9rem; flex-shrink: 0; }
.plan-card__feature strong { color: var(--text); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 320px; border-radius: var(--radius-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.footer__brand-desc { font-size: 0.88rem; color: var(--hint); line-height: 1.6; max-width: 280px; }
.footer__col-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hint); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.9rem; color: var(--hint); transition: color var(--transition); }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--hint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 600;
  transition: opacity var(--transition);
}
.footer__tg:hover { opacity: 0.8; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(30,30,40,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}
.toast.success { border-color: rgba(34,197,94,0.4); color: #22c55e; }
.toast.error   { border-color: rgba(239,68,68,0.4);  color: #ef4444; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.88rem; font-weight: 600; color: var(--hint); }
.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--hint); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.form-input.error { border-color: #ef4444; }
.form-error { font-size: 0.82rem; color: #ef4444; display: none; }
.form-error.visible { display: block; }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrap { padding-top: var(--navbar-h); min-height: 100vh; }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.accordion-item.open { border-color: rgba(108,99,255,0.3); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--bg-card-hover); }
.accordion-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body__inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--hint); line-height: 1.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__btn-login,
  .navbar__btn-profile { display: none; }
  .navbar__hamburger { display: flex; }

  .hero__stats { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 24px; }
}
