/* ========================================
   NEBULA VPN — Professional Style
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 85, 247, 0.3);
  --success: #10b981;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

nav > a:hover {
  color: var(--text-primary);
}

.nav-dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  transition: color 0.2s;
}

.dropdown-btn:hover {
  color: var(--text-primary);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown.active .dropdown-content {
  display: flex;
}

.dropdown-content a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-primary);
}

.btn-nav {
  background: var(--purple);
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-nav:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.5;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple-light);
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-cta-coming {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-coming {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-coming .coming-soon {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 8px;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.btn-primary-large svg,
.btn-secondary-large svg,
.btn-icon {
  width: 24px;
  height: 24px;
}

.btn-primary-large:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-secondary-large:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 200%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(168, 85, 247, 0.3));
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: 100px 40px;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--purple-light);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
  background: linear-gradient(90deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 40px;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 4px;
}

.stat-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
  padding: 100px 40px;
}

.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card.popular {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
}

.price-currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--purple-light);
}

.price-period {
  font-size: 16px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  stroke: var(--success);
  flex-shrink: 0;
}

.btn-pricing {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-pricing:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-pricing.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.btn-pricing.primary:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
}

.guarantee {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

/* ========================================
   CTA
   ======================================== */
.cta {
  padding: 100px 40px;
  background: var(--bg-secondary);
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta .btn-primary-large {
  display: inline-flex;
  gap: 12px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 44px;
  }
  
  .hero-desc {
    max-width: 100%;
    margin: 0 auto 32px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: block;
    margin-top: 40px;
  }
  
  .hero-image {
    max-width: 100%;
    width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 16px 20px;
  }
  
  nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 100px 20px 60px;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .features, .pricing, .cta {
    padding: 60px 20px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .btn-primary-large, .btn-secondary-large {
    width: 100%;
    justify-content: center;
  }
  
  .price-amount {
    font-size: 40px;
  }
}