/* PulseVPN GitHub Pages Web Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070913;
  --bg-card: rgba(18, 24, 43, 0.7);
  --bg-card-hover: rgba(28, 37, 65, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.4);
  
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.25);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.3);
  --accent-green: #00ff87;
  --accent-orange: #ff9900;
  
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Effects */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-glow: 0 0 20px rgba(0, 240, 255, 0.4);
  --purple-glow: 0 0 25px rgba(112, 0, 255, 0.4);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow Effects */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #80f7ff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neon-glow);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0099ff 100%);
  color: #070913;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.5);
  color: #070913;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--secondary) 0%, #a855f7 100%);
  color: #fff;
  box-shadow: var(--purple-glow);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(112, 0, 255, 0.6);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 135, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

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

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.metric-item strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  font-family: var(--font-heading);
}

.metric-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone Mockup Showcase */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 310px;
  height: 620px;
  background: #0f172a;
  border-radius: 44px;
  border: 8px solid #1e293b;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8), var(--neon-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.4);
}

.phone-notch {
  width: 100px;
  height: 18px;
  background: #1e293b;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.phone-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #0b1120 0%, #151d30 100%);
}

.connect-status {
  text-align: center;
  margin-top: 20px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 255, 135, 0.15);
  color: var(--accent-green);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.location-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.ip-address {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Central Power Ring Button */
.power-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  animation: pulse-ring-glow 2.5s infinite alternate;
}

@keyframes pulse-ring-glow {
  from { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
  to { box-shadow: 0 0 45px rgba(0, 240, 255, 0.7); }
}

.power-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0088ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.power-btn svg {
  width: 48px;
  height: 48px;
  fill: #070913;
}

.phone-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

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

.stat-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stat-box strong {
  font-size: 0.95rem;
  color: var(--primary);
}

/* Floating Glass Cards */
.floating-glass {
  position: absolute;
  background: rgba(18, 24, 43, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-top-left {
  top: 40px;
  left: -40px;
  animation: float-slow 4s ease-in-out infinite alternate;
}

.card-bottom-right {
  bottom: 60px;
  right: -40px;
  animation: float-slow 5s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* Section Styling */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Glass Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Interactive Ping Tester Widget */
.ping-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--glass-shadow);
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.server-item:hover {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

.server-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flag-icon {
  font-size: 1.5rem;
}

.server-details h4 {
  font-size: 1rem;
}

.server-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ping-bar-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ping-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-green);
  min-width: 60px;
  text-align: right;
}

.ping-meter {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.ping-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(112, 0, 255, 0.15) 0%, rgba(18, 24, 43, 0.9) 100%);
  border-color: var(--secondary);
  box-shadow: var(--purple-glow);
  transform: scale(1.04);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), #a855f7);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.plan-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.plan-price {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
}

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

.trial-callout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.plan-features li svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-green);
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  stroke: var(--primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Legal & Support Layout */
.legal-content,
.support-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--glass-shadow);
}

.legal-content h2,
.support-content h2 {
  font-size: 1.75rem;
  margin: 32px 0 16px;
  color: var(--primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.legal-content p,
.support-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-content ul {
  margin: 0 0 24px 24px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: rgba(4, 6, 12, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  color: var(--text-dim);
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    transform: none;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 9, 19, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
