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

/* Light theme (default) */
:root {
  --bg:         #ffffff;
  --bg-tinted:  #f7f7f9;
  --bg-card:    #ffffff;
  --border:     rgba(0,0,0,0.08);
  --border-acc: rgba(109,40,217,0.2);
  --acc:        #6d28d9;
  --acc-2:      #5b21b6;
  --acc-light:  #7c3aed;
  --acc-subtle: rgba(109,40,217,0.07);
  --text:       #0f0f14;
  --muted:      #6b7280;
  --muted-2:    #9ca3af;
  --green:      #059669;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  --radius:     14px;
  --radius-lg:  22px;
  --theme-transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Dark theme overrides */
html.dark {
  --bg:         #07070f;
  --bg-tinted:  #0d0d1a;
  --bg-card:    #0f0f1c;
  --border:     rgba(255,255,255,0.07);
  --border-acc: rgba(139,92,246,0.28);
  --acc:        #7c3aed;
  --acc-2:      #6d28d9;
  --acc-light:  #a78bfa;
  --acc-subtle: rgba(124,58,237,0.12);
  --text:       #f1f5f9;
  --muted:      #94a3b8;
  --muted-2:    #64748b;
  --green:      #10b981;
  --shadow-sm:  0 1px 6px rgba(0,0,0,0.35);
  --shadow:     0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.55);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: var(--theme-transition);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg-card); color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--acc); color: var(--acc); transform: rotate(20deg); }
.icon-sun  { display: block; }
.icon-moon { display: none; }
html.dark .icon-sun  { display: none; }
html.dark .icon-moon { display: block; }
a { color: var(--acc-light); text-decoration: none; }
a:hover { color: var(--acc); }

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 50px; font-weight: 600; cursor: pointer;
  border: none; transition: all .22s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-sm  { padding: 9px 20px; font-size: 14px; }
.btn-lg  { padding: 15px 30px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(109,40,217,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(109,40,217,0.38);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-tinted);
  border-color: rgba(0,0,0,0.14);
  transform: translateY(-2px);
  color: var(--text);
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, var(--acc-light) 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all .3s ease;
  border-bottom: 1px solid transparent;
}
/* Theme transitions on key elements */
.nav, .feature-card, .step, .price-card, .faq-item, .cta-box, .footer,
.section, .section--tinted, .hero-card, .pay-chip {
  transition: var(--theme-transition), transform .25s ease, border-color .25s ease;
}
html.dark .nav.scrolled { background: rgba(7,7,15,0.88) !important; }
html.dark .hero-card { background: rgba(15,15,28,0.9) !important; }
html.dark .cta-box { background: linear-gradient(140deg, rgba(124,58,237,0.18) 0%, var(--bg-card) 55%) !important; }

.nav.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.logo-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.logo-fallback { font-size: 22px; display: none; }
.logo-vpn { color: var(--acc); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 15px;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--acc); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
.orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  top: -160px; left: -140px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
  bottom: -60px; right: -60px;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.07) 0%, transparent 70%);
  top: 40%; left: 50%; transform: translate(-50%,-50%);
}
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.22);
  border-radius: 50px; padding: 6px 14px;
  font-size: 13px; color: var(--green); font-weight: 600;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -2px; margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 500px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-val   { font-size: 15px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--muted-2); }
.stat-div   { width: 1px; height: 32px; background: var(--border); }

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative; display: flex;
  justify-content: center; align-items: center;
  min-height: 420px;
}
.hero-logo-wrap {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.logo-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%,100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.hero-logo-img {
  width: 200px; height: 200px; object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(109,40,217,0.2));
  animation: floatLogo 4s ease-in-out infinite;
}
.hero-logo-emoji {
  font-size: 140px; line-height: 1;
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.hero-card-1 { top: 10%; right: 0; }
.hero-card-2 { bottom: 20%; left: 0; }
.hero-card-3 { bottom: 8%; right: 8%; }

.hc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hc-dot--green { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }

.parallax-float { animation: cardFloat 5s ease-in-out infinite; }
.hero-card-1 { animation-delay: 0s; }
.hero-card-2 { animation-delay: 1.5s; }
.hero-card-3 { animation-delay: 0.8s; }
@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(.5deg); }
}

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section--tinted { background: var(--bg-tinted); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--acc); margin-bottom: 10px;
}
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-sub   { font-size: 17px; color: var(--muted); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-card--wide {
  grid-column: span 2;
  display: flex; align-items: flex-start; gap: 20px;
}
.feature-card--accent {
  background: linear-gradient(140deg, rgba(124,58,237,0.05) 0%, #fff 60%);
  border-color: var(--border-acc);
}
.feature-icon { font-size: 26px; margin-bottom: 14px; flex-shrink: 0; }
.feature-card--wide .feature-icon { margin-bottom: 0; margin-top: 2px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── STEPS ── */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 860px; margin: 0 auto;
}
.step {
  flex: 1; background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(109,40,217,0.3);
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-line {
  flex: 0 0 40px; align-self: center; height: 1.5px;
  background: linear-gradient(90deg, var(--border-acc), var(--border));
  margin-bottom: 0; position: relative;
}
.step-line::after {
  content: '›'; position: absolute;
  right: -6px; top: 50%; transform: translateY(-50%);
  color: var(--acc); font-size: 18px; font-weight: 700;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 40px;
}
.price-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.price-card--popular {
  border-color: var(--border-acc);
  background: linear-gradient(160deg, rgba(124,58,237,0.06) 0%, #fff 55%);
  box-shadow: 0 4px 24px rgba(109,40,217,0.12);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--acc-light), var(--acc-2));
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 50px; white-space: nowrap;
}
.price-name   { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-amount { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.price-amount span { font-size: 20px; font-weight: 600; color: var(--muted); }
.price-per    { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.price-save   { font-size: 13px; color: var(--green); font-weight: 600; }
.price-btn    { margin-top: auto; }
.price-btn .btn { width: 100%; justify-content: center; }

.payment-methods { text-align: center; }
.pay-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pay-icons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pay-chip  {
  background: var(--bg-tinted); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 7px 16px; font-size: 14px; color: var(--muted);
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.faq-item.open { border-color: var(--border-acc); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-size: 15px; font-weight: 600;
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: left; transition: background .15s;
}
.faq-q:hover { background: var(--bg-tinted); }
.faq-q::after { content: '+'; font-size: 22px; color: var(--acc); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 0;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 4px 24px 20px;
  color: var(--muted); font-size: 15px; line-height: 1.7;
  transform: translateY(10px);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-a p { transform: translateY(0); }

/* ── CTA ── */
.cta-section { padding: 80px 0 100px; }
.cta-box {
  background: linear-gradient(140deg, rgba(124,58,237,0.07) 0%, #fff 50%);
  border: 1.5px solid var(--border-acc);
  border-radius: 28px; padding: 72px 40px; text-align: center;
  box-shadow: 0 8px 40px rgba(109,40,217,0.1);
}
.cta-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 20px; }
.cta-emoji-fallback { font-size: 64px; display: block; margin-bottom: 20px; }
.cta-box h2 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.cta-box p  { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

/* ── FOOTER ── */
.footer { background: var(--bg-tinted); border-top: 1.5px solid var(--border); padding: 32px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted-2); font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-line { display: none; }
  .hero-title { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 28px; }
}
