/* ===== CSS Custom Properties (Dark & Light) ===== */
:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-light: #1c1c26;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f1f5f9;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --danger: #ef4444;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --transition: 0.25s ease;
}

body.light-mode {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-light: #f1f5f9;
  --border: rgba(0, 0, 0, 0.08);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 12%, rgba(59, 130, 246, 0.18), transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.14), transparent 15%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.12), transparent 22%);
  opacity: 0.85;
  animation: drift 22s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 3%) scale(1.02); }
}

.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.reveal.visible,
.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== SALE BAR ===== */
.sale-bar {
  background: linear-gradient(90deg, #dc2626, #f59e0b, #dc2626);
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001;
}
.countdown {
  background: rgba(0,0,0,0.35);
  padding: 3px 12px;
  border-radius: 20px;
  font-family: monospace;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ===== NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 40px;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--transition), top 0.25s ease;
}
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.88);
  top: 20px;
}
body.light-mode #navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
}
.logo span {
  color: var(--accent-blue);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--surface-light);
  border-color: var(--text-muted);
}
.btn-nav {
  background: #fff;
  color: #000;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,255,255,0.15);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.96);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1002;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.drawer-nav a {
  color: var(--text);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.15);
  color: #fff;
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 999px;
  padding: 14px 16px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 150px 24px 70px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% 0 0;
  left: 50%;
  width: 140%;
  height: 200%;
  transform: translateX(-50%);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 28%);
  filter: blur(80px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 20% 0 auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.06);
  filter: blur(32px);
  pointer-events: none;
}
.compatibility {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.chip {
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip.pixel i { color: var(--accent-emerald); }
.chip.galaxy i { color: #0ea5e9; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.02;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(90deg, #ffffff, #f8fafc);
  color: #000;
  box-shadow: 0 15px 35px rgba(255,255,255,0.12);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255,255,255,0.18);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--surface-light);
  transform: translateY(-3px) scale(1.02);
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 5%;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.trust-item i { margin-right: 6px; color: var(--accent-emerald); }

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

/* ===== PRICING GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--text-muted);
}
.card.elite {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(160deg, var(--surface) 0%, rgba(139,92,246,0.04) 100%);
}
.popular-tag {
  position: absolute;
  top: 14px; right: 18px;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.card.elite .card-header h3 { color: var(--accent-purple); }
.duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-light);
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.price {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 16px 0 4px;
}
.old {
  font-size: 1rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-right: 8px;
}
.save {
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.features {
  list-style: none;
  margin-bottom: 28px;
}
.features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.features li::before {
  content: '✓';
  font-weight: bold;
  color: var(--accent-emerald);
  width: 20px;
  text-align: center;
}
.features li.disabled {
  opacity: 0.3;
  text-decoration: line-through;
}
.features li.disabled::before {
  content: '✕';
  color: var(--text-muted);
}
.btn-card {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition);
  background: rgba(59,130,246,0.1);
  color: var(--accent-blue);
  border: 1.5px solid rgba(59,130,246,0.3);
}
.btn-card:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59,130,246,0.3);
}
.elite-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
}
.elite-btn:hover {
  background: #9b6df7;
  box-shadow: 0 6px 18px rgba(139,92,246,0.4);
}

/* ===== SPECS ===== */
.specs-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 900;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.spec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.spec-item:hover { border-color: var(--text-muted); transform: translateY(-3px); }
.spec-item i {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 12px;
}
.spec-item h4 { font-size: 1.1rem; margin-bottom: 8px; }
.spec-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  cursor: pointer;
}
.faq-question {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}
.faq-question i {
  transition: transform 0.3s;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.faq-item.open .faq-answer {
  max-height: 150px;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 50px 24px 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-brand { font-size: 1.2rem; margin-bottom: 6px; color: var(--text); }
.footer-text { margin-bottom: 12px; font-size: 0.9rem; }
.footer-links { margin-bottom: 14px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; opacity: 0.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding-top: 130px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
}