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

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52e0;
  --primary-light: #8b85ff;
  --accent: #00d4aa;
  --dark: #0d0d1a;
  --dark-2: #12122a;
  --dark-3: #1a1a35;
  --card-bg: #1e1e3f;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-primary.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text);
  padding: 13px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(108,99,255,0.1); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo-icon { font-size: 20px; }
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn-primary { margin-top: 8px; justify-content: center; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -100px; left: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -50px; right: -50px;
}
.hero .container { position: relative; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========== SECTION COMMON ========== */
.section { padding: 96px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* ========== FEATURES ========== */
.features { background: var(--dark-2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== HOW IT WORKS ========== */
.howto { background: var(--dark); }
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--text-muted); }
.step-arrow {
  font-size: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ========== PRICING ========== */
.pricing { background: var(--dark-2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.pricing-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 48px;
  grid-column: 1/-1;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,99,255,0.15), var(--card-bg));
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.pricing-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.pricing-card .btn-primary,
.pricing-card .btn-outline { width: 100%; justify-content: center; }
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.review-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.review-author {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========== DOWNLOAD ========== */
.download { background: var(--dark); }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.download-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.dl-icon { font-size: 28px; }
.dl-info { display: flex; flex-direction: column; }
.dl-store { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.dl-platform { font-size: 15px; font-weight: 700; }
.download-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq { background: var(--dark-2); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-arrow {
  font-size: 20px;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 220px;
}
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-stats { padding: 16px 20px; }
  .stat-item { padding: 0 14px; }
  .stat-num { font-size: 22px; }

  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }
}
