/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  --hero-from: #1E3A8A;
  --hero-to:   #581C87;
  --hero-dark: #172462;
  --icon-from: #3B82F6;
  --icon-to:   #9333EA;
  --dark:      #0F172A;

  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white:    #ffffff;
  --success:  #10B981;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);

  --transition: all 0.2s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Section backgrounds ────────────────────────────────────── */
.section-white { background: var(--white); padding: 96px 0; }
.section-gray  { background: var(--gray-50); padding: 96px 0; }
.section-hero  {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 96px 0;
}

/* ─── Section Header ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-title-white { color: #ffffff !important; }
.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}
.section-subtitle-white { color: rgba(255,255,255,0.75) !important; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: #1e293b; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gradient {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30,58,138,0.3);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,58,138,0.4); }

.btn-white {
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); }

.btn-outline-dark {
  background: transparent;
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
}
.btn-outline-dark:hover { border-color: var(--gray-900); transform: translateY(-1px); }

.btn-large  { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block  { width: 100%; justify-content: center; }

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.brand-icon svg { width: 20px; height: 20px; }
.brand-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(to right, var(--hero-from), var(--hero-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  transition: var(--transition);
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-actions { margin-left: auto; }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  overflow: hidden;
}
/* Dot pattern — world map feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(88,28,135,0.35) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
}
.hero-content { max-width: 740px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-number {
  font-size: 30px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 5px; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.25); }

/* ─── Servers ────────────────────────────────────────────────── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.server-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.server-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.server-flag { font-size: 22px; flex-shrink: 0; }
.server-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.server-status {
  font-size: 12px;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.server-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--icon-from), var(--icon-to));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}
.feature-icon-box svg { width: 28px; height: 28px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.feature-description { font-size: 15px; color: var(--gray-500); line-height: 1.65; }

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, var(--hero-from), var(--hero-to)) border-box;
  box-shadow: 0 8px 30px rgba(30,58,138,0.15);
  transform: scale(1.02);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-badge-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}
.price-amount { font-size: 48px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.price-currency { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.price-period { font-size: 14px; color: var(--gray-500); margin-left: 4px; }
.savings-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  vertical-align: middle;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700);
}
.check-icon { color: var(--success); font-size: 16px; font-weight: 700; flex-shrink: 0; }

/* ─── Referral ───────────────────────────────────────────────── */
.referral-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.referral-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.referral-icon-box svg { width: 36px; height: 36px; }
.referral-title { font-size: 24px; font-weight: 800; color: white; margin-bottom: 12px; }
.referral-desc { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 24px; line-height: 1.6; }

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-actions { display: flex; justify-content: center; }

/* ─── Download ───────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.download-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  color: white;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.download-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-4px); }
.download-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.download-icon svg { width: 28px; height: 28px; }
.download-card h3 { font-size: 15px; font-weight: 700; }
.platform-version { font-size: 12px; color: rgba(255,255,255,0.55); }
.btn-dl {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: white;
  transition: var(--transition);
}
.download-card:hover .btn-dl { background: rgba(255,255,255,0.28); }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
  font-family: inherit;
}
.faq-question:hover { color: var(--hero-from); }
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--gray-400);
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-answer p { font-size: 15px; color: var(--gray-500); line-height: 1.7; padding-bottom: 20px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 48px 0 32px; }
.footer-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon-footer {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.brand-icon-footer svg { width: 18px; height: 18px; }
.brand-text-footer { font-size: 18px; font-weight: 700; color: white; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.45); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.35); }

/* ─── Scroll Animations ──────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .download-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .features-grid  { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .download-grid  { grid-template-columns: repeat(2, 1fr); }
  .servers-grid   { grid-template-columns: repeat(2, 1fr); }
  .hero .container { padding: 80px 24px; }
  .hero-actions   { flex-direction: column; }
  .hero-stats     { gap: 24px; }
  .stat-divider   { display: none; }
  .referral-card  { flex-direction: column; padding: 32px 24px; }
  .section-white, .section-gray, .section-hero { padding: 64px 0; }
  .nav-menu       { display: none; }
  .mobile-toggle  { display: flex; }
  .nav-actions .btn { padding: 10px 16px; font-size: 13px; }
  .mobile-hide    { display: none !important; }
}

@media (max-width: 480px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .servers-grid  { grid-template-columns: 1fr 1fr; }
}
