/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         hsl(224, 71%, 6%);
  --bg2:        hsl(224, 65%, 10%);
  --bg3:        hsl(230, 65%, 14%);
  --blue:       hsl(217, 91%, 60%);
  --cyan:       hsl(188, 80%, 55%);
  --purple:     hsl(260, 80%, 65%);
  --text:       hsl(210, 40%, 96%);
  --muted:      hsl(215, 20%, 55%);
  --border:     hsl(224, 40%, 20%);
  --card-bg:    hsl(224, 60%, 10%);
  --radius:     14px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, hsl(217,91%,70%), hsl(188,80%,65%), hsl(260,80%,75%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
}
#navbar.scrolled {
  background: hsl(224 71% 6% / 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px hsl(0 0% 0% / 0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 18px hsl(217 91% 60% / 0.4);
  font-size: 1rem;
  animation: glow-pulse 3s ease-in-out infinite;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(217,91%,70%), hsl(260,80%,75%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px hsl(217 91% 60% / 0.4);
  transition: var(--transition);
}
.btn-primary:hover {
  box-shadow: 0 6px 32px hsl(217 91% 60% / 0.65);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid hsl(217 91% 60% / 0.55);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 14px hsl(217 91% 60% / 0.1);
  transition: var(--transition);
}
.btn-outline:hover {
  background: hsl(217 91% 60% / 0.12);
  border-color: var(--blue);
  box-shadow: 0 0 24px hsl(217 91% 60% / 0.3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg,
    hsl(224,71%,6%) 0%,
    hsl(230,75%,13%) 35%,
    hsl(245,70%,18%) 65%,
    hsl(224,71%,8%) 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 14s ease infinite;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
}
.glow1 { width: 380px; height: 380px; top: 18%; left: 12%; background: hsl(217,91%,60%); opacity: 0.12; }
.glow2 { width: 500px; height: 500px; bottom: 15%; right: 10%; background: hsl(260,80%,65%); opacity: 0.1; animation-delay: 2s; }
.glow3 { width: 250px; height: 250px; top: 50%; right: 30%; background: hsl(188,80%,55%); opacity: 0.08; animation-delay: 1s; }
.dots-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(hsl(217 91% 60% / 0.13) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 7rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: hsl(224 60% 12% / 0.8);
  border: 1px solid hsl(217 91% 60% / 0.3);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--blue);
  animation: fade-up 0.5s ease-out forwards;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  animation: fade-up 0.6s 0.1s ease-out both;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  animation: fade-up 0.6s 0.2s ease-out both;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fade-up 0.6s 0.3s ease-out both;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  animation: fade-up 0.6s 0.4s ease-out both;
}
.stat {
  background: hsl(224 60% 12% / 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
}
.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, hsl(217,91%,70%), hsl(188,80%,65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.section-header p { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: linear-gradient(145deg, var(--card-bg), hsl(230,65%,14%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: hsl(217 91% 60% / 0.5);
  box-shadow: 0 0 24px hsl(217 91% 60% / 0.15);
  transform: translateY(-4px);
}
.feat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px hsl(217 91% 60% / 0.3);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   PRICING PREVIEW
   ============================================================ */
.pricing-preview {
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, hsl(228,65%,9%) 0%, hsl(240,70%,13%) 50%, hsl(228,65%,9%) 100%);
  background-size: 300% 300%;
  animation: gradient-shift 10s ease infinite;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.pricing-preview h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.pricing-preview > p { color: var(--muted); max-width: 540px; font-size: 1rem; }
.provider-badges {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.badge-pill {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background: hsl(224 60% 12% / 0.8);
  border: 1px solid hsl(217 91% 60% / 0.35);
  font-weight: 600; font-size: 0.9rem;
  color: var(--text);
  backdrop-filter: blur(10px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: hsl(224,71%,4%);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   PRICING MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: hsl(0 0% 0% / 0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fade-up 0.2s ease-out;
}
.modal {
  background: hsl(224,65%,8%);
  border: 1px solid hsl(217 91% 60% / 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%; max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 80px hsl(217 91% 60% / 0.15);
}
.modal-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-header { margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.8rem; font-weight: 800; }
.modal-header p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* Provider tabs */
.provider-tabs {
  display: flex; gap: 0.4rem;
  background: hsl(224 50% 13%);
  padding: 0.35rem;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 1.75rem;
}
.tab {
  padding: 0.5rem 1.4rem;
  border: none; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; color: var(--muted);
  background: transparent; transition: var(--transition);
}
.tab.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 2px 12px hsl(217 91% 60% / 0.4);
}

/* Pricing cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.price-card {
  background: linear-gradient(145deg, hsl(224,60%,12%), hsl(230,65%,16%));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; transition: var(--transition);
}
.price-card.popular {
  border-color: hsl(217 91% 60% / 0.55);
  box-shadow: 0 0 32px hsl(217 91% 60% / 0.2);
  transform: scale(1.02);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.28rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}
.card-icon-row { display: flex; align-items: center; gap: 0.6rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.card-name { font-weight: 700; font-size: 1rem; }
.card-price {
  font-size: 1.9rem; font-weight: 900;
  background: linear-gradient(135deg, hsl(217,91%,70%), hsl(188,80%,65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-price span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.card-features li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.card-btn {
  width: 100%; padding: 0.7rem; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); border: none;
}
.card-btn.primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; box-shadow: 0 2px 12px hsl(217 91% 60% / 0.35); }
.card-btn.outline { background: transparent; color: var(--text); border: 1px solid hsl(217 91% 60% / 0.5); }
.card-btn.primary:hover { box-shadow: 0 4px 22px hsl(217 91% 60% / 0.55); transform: translateY(-1px); }
.card-btn.outline:hover { background: hsl(217 91% 60% / 0.1); }

/* ============================================================
   GET VPN PAGE
   ============================================================ */
#page-vpn {
  min-height: 100vh;
  background: linear-gradient(135deg, hsl(224,71%,6%) 0%, hsl(230,75%,12%) 50%, hsl(245,70%,16%) 100%);
  display: flex; flex-direction: column;
}
.vpn-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid hsl(224 40% 18% / 0.7);
}
.back-btn {
  background: none; border: none; color: var(--muted);
  font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.back-btn:hover { color: var(--text); }
.step-label { font-size: 0.85rem; color: var(--muted); }

/* Progress */
.progress-bar-wrap { height: 4px; background: hsl(224 50% 18%); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width 0.5s ease; }

/* Step circles */
.step-indicators {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 1.5rem 1rem;
}
.step-dot {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; transition: var(--transition);
}
.step-circle.done { background: var(--cyan); color: hsl(224,71%,6%); }
.step-circle.active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; box-shadow: 0 0 14px hsl(217 91% 60% / 0.5); }
.step-circle.inactive { background: hsl(224 50% 18%); color: var(--muted); }
.step-dot-label { font-size: 0.7rem; color: var(--muted); display: none; }
@media(min-width:500px) { .step-dot-label { display: block; } }
.step-active-label { color: var(--blue); font-weight: 600; }
.step-connector {
  width: 40px; height: 2px; margin-bottom: 1.4rem;
  transition: background 0.4s;
}
.step-connector.done { background: var(--cyan); }
.step-connector.inactive { background: hsl(224 50% 18%); }

/* VPN step content */
.vpn-content {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
}
.step-title {
  text-align: center; margin-bottom: 2rem;
}
.step-title h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 0.5rem; }
.step-title p { color: var(--muted); font-size: 0.95rem; }

/* Option cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}
.option-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, hsl(224,60%,10%), hsl(230,65%,14%));
  cursor: pointer; transition: var(--transition);
  text-align: left; width: 100%;
  font-family: inherit;
  color: var(--text);
}
.option-card:hover { border-color: hsl(217 91% 60% / 0.45); }
.option-card.selected {
  border-color: var(--blue);
  background: hsl(217 91% 60% / 0.1);
  box-shadow: 0 0 20px hsl(217 91% 60% / 0.2);
}
.option-card .opt-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: hsl(224 50% 18%);
  transition: var(--transition);
}
.option-card.selected .opt-icon {
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.opt-info { flex: 1; }
.opt-name { font-weight: 700; font-size: 0.95rem; }
.opt-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.opt-check { font-size: 1.1rem; color: var(--blue); opacity: 0; transition: var(--transition); }
.option-card.selected .opt-check { opacity: 1; }
.opt-ping { font-size: 0.78rem; font-family: monospace; color: var(--cyan); }

/* Security badge */
.sec-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  border: 1px solid hsl(188 80% 55% / 0.4);
  background: hsl(188 80% 55% / 0.12);
  color: var(--cyan);
  margin-top: 0.3rem;
}

/* Summary */
.summary-card {
  background: linear-gradient(145deg, hsl(224,60%,10%), hsl(230,65%,14%));
  border: 1px solid hsl(217 91% 60% / 0.3);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 0 24px hsl(217 91% 60% / 0.12);
  margin-bottom: 1.25rem;
}
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid hsl(224 40% 18% / 0.7);
}
.summary-row:last-child { border-bottom: none; }
.summary-key { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; }
.summary-val { font-weight: 700; font-size: 0.9rem; }
.ready-box {
  display: flex; gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  background: hsl(188 80% 55% / 0.08);
  border: 1px solid hsl(188 80% 55% / 0.25);
  margin-bottom: 1.5rem;
}
.ready-icon { color: var(--cyan); font-size: 1.1rem; flex-shrink: 0; }
.ready-box h4 { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.ready-box p { font-size: 0.82rem; color: var(--muted); }
.activate-btn {
  width: 100%; padding: 1rem;
  border-radius: var(--radius); border: none;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; font-size: 1.05rem; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 22px hsl(217 91% 60% / 0.45);
  transition: var(--transition);
}
.activate-btn:hover { box-shadow: 0 6px 34px hsl(217 91% 60% / 0.65); transform: translateY(-2px); }

/* Bottom nav */
.vpn-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: hsl(224 71% 6% / 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; gap: 1rem;
  max-width: 680px; width: 100%;
  margin: 0 auto; left: 50%; transform: translateX(-50%);
}
.vpn-nav .btn-outline { flex-shrink: 0; padding: 0.85rem 1.4rem; }
.vpn-nav .btn-primary { flex: 1; }

/* Toast */
#toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; padding: 1rem 2rem;
  border-radius: var(--radius); font-weight: 700;
  box-shadow: 0 8px 30px hsl(217 91% 60% / 0.5);
  z-index: 300; transition: transform 0.4s ease;
  text-align: center; max-width: 420px; width: 90%;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px hsl(217 91% 60% / 0.3); }
  50%       { box-shadow: 0 0 40px hsl(217 91% 60% / 0.7), 0 0 70px hsl(260 80% 65% / 0.3); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width: 640px) {
  .nav-links { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
  .modal { padding: 1.75rem 1.25rem; }
  .provider-tabs { flex-wrap: wrap; }
}
