/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --bg-dark: #0a0a0f;
  --bg-card: #111118;
  --bg-card2: #16161f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(124,58,237,0.4);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #0f0a1e 50%, #0a0a0f 100%);
  --gradient-purple: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient-card: linear-gradient(145deg, #111118, #16161f);
  --shadow-glow: 0 0 60px rgba(124,58,237,0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(124,58,237,0.08);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.4);
  padding: 10px 22px;
  font-size: 14px;
}
.btn-outline:hover {
  background: rgba(124,58,237,0.1);
  border-color: var(--primary-light);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(10,10,15,0.95);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mobile-menu a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -200px; left: -200px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -100px; right: 100px;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 50%; right: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { display: flex; flex-direction: column; gap: 28px; }
.hero-headline {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 8px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-avatar-wrap {
  position: relative;
  width: 420px;
  max-width: 100%;
}
.hero-avatar-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 60%, rgba(124,58,237,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.hero-avatar-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.2);
  animation: ring-rotate 20s linear infinite;
}
.hero-avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-light);
}
@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-avatar-img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== DEMO ===== */
.demo {
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}
.demo-chat {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
  box-shadow: var(--shadow-card);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-message {
  display: flex;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-message.user {
  justify-content: flex-end;
}
.chat-message.bot {
  justify-content: flex-start;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-message.bot .chat-bubble {
  background: var(--bg-card2);
  color: var(--text-primary);
}
.chat-message.user .chat-bubble {
  background: var(--primary);
  color: #fff;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card2);
  border-radius: 12px;
  width: fit-content;
}
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.5; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-10px); }
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}
.suggestion-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.suggestion-chip:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124,58,237,0.1);
}
.chat-input-wrapper {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}
.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card2);
}
.chat-send {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-send:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.step-card {
  text-align: center;
}
.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 24px;
  position: relative;
  z-index: 2;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card.featured {
  border-color: var(--primary);
  background: var(--bg-card2);
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(124,58,237,0.2);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-purple);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pricing-plan {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.pricing-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-primary);
}
.pricing-period {
  font-size: 15px;
  color: var(--text-secondary);
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 800;
}
.pricing-cta {
  display: flex;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 100px 24px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-primary);
}
.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 100px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-avatar-wrap { width: 300px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .pricing-card.featured { transform: scale(1); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .chat-message { max-width: 90%; }
  .chat-bubble { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 28px; }
  .section-title { font-size: 24px; }
  .hero-actions { flex-direction: column; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .demo-chat { height: 500px; }
  .chat-suggestions { flex-direction: column; }
  .suggestion-chip { width: 100%; }
}
