:root {
  --primary-dark: #0a0e1a;
  --secondary-dark: #0f172a;
  --accent-blue: #38bdf8;
  --accent-green: #22c55e;
  --accent-purple: #a78bfa;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark) !important;
  color: #f8fafc;
  overflow-x: hidden;
}

::selection { background: var(--accent-blue); color: #000; }

/* ========== BACKGROUND PARTICLES ========== */
.bg-particles {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(56,189,248,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167,139,250,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(34,197,94,0.04) 0%, transparent 50%);
}

.bg-grid {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ========== PARALLAX SECTIONS ========== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute; top: -20%; left: 0;
  width: 100%; height: 140%;
  z-index: -1;
  will-change: transform;
}

/* ========== GLASSMORPHISM ========== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 20px 60px rgba(56,189,248,0.08);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-80px); transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(80px); transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.8); transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========== HERO ========== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px; padding: 8px 20px;
  font-size: 0.8rem; color: var(--accent-blue);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
  50% { box-shadow: 0 0 20px 4px rgba(56,189,248,0.15); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
}

.btn-cta {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.btn-cta-primary {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  box-shadow: 0 8px 30px rgba(56,189,248,0.3);
}
.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(56,189,248,0.5);
  color: #fff;
}

.btn-cta-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.15);
  color: #fff;
}
.btn-cta-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(56,189,248,0.05);
  color: #fff;
}

/* ========== CHAT SIMULATOR ========== */
.chat-container {
  height: 500px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 24px;
  padding: 25px;
  border: 1px solid var(--glass-border);
}

.chat-feed {
  display: flex;
  flex-direction: column;
  animation: scrollChat 55s linear infinite;
}

@keyframes scrollChat {
  0% { transform: translateY(5%); }
  100% { transform: translateY(-100%); }
}

.chat-separator {
  text-align: center;
  font-size: 0.65rem;
  color: var(--accent-blue);
  margin: 35px 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.4;
}

.msg {
  max-width: 80%;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.msg-user {
  align-self: flex-start;
  background: #075e54;
  color: white;
  border-bottom-left-radius: 4px;
}

.msg-ia {
  align-self: flex-end;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  color: #e2e8f0;
  border-bottom-right-radius: 4px;
}

.chat-icon { font-size: 1rem; margin-right: 6px; vertical-align: middle; }
.audio-bar { width: 80px; height: 18px; background: rgba(255,255,255,0.15); display: inline-block; border-radius: 9px; margin-left: 4px; }

/* ========== FEATURES GRID ========== */
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  opacity: 0; transition: opacity 0.4s;
}

.feature-card:hover { border-color: rgba(56,189,248,0.2); background: rgba(255,255,255,0.04); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ========== STATS COUNTER ========== */
.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
}

.counter-section {
  background: linear-gradient(135deg, rgba(56,189,248,0.05), rgba(167,139,250,0.05));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ========== PLANS ========== */
.plan-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 30px;
  transition: all 0.5s;
  position: relative;
}

.plan-card.featured {
  border-color: var(--accent-blue);
  background: rgba(56,189,248,0.04);
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(56,189,248,0.1);
}

.plan-card:hover { transform: translateY(-8px); }
.plan-card.featured:hover { transform: scale(1.05) translateY(-8px); }

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 30px;
}

.testimonial-card .stars { color: #f59e0b; font-size: 0.9rem; }

/* ========== FAQ ========== */
.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(56,189,248,0.2); }

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

.faq-answer {
  padding: 0 24px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s; color: var(--accent-blue); }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(167,139,250,0.08));
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 32px;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #64748b;
}

/* ========== NAVBAR ========== */
.nav-landing {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s;
}

.nav-landing.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .chat-container { height: 350px; }
  .plan-card.featured { transform: scale(1); }
  .plan-card.featured:hover { transform: translateY(-8px); }
  .btn-cta { padding: 14px 28px; font-size: 1rem; }
}
