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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  --accent: #22d3ee;
  --success: #10b981;
  --border: #2d2d52;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-bright); }
.logo span { color: var(--primary-light); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text-bright); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: all .2s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,.4); }
.btn-secondary { background: transparent; color: var(--text-bright); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary-light); background: var(--bg-card); }
.btn-large { padding: 16px 40px; font-size: 1.1rem; border-radius: 10px; }
.btn-small { padding: 8px 16px; font-size: .875rem; }

/* Hero */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 24px;
  position: relative;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  position: relative;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  position: relative;
}
.hero-badge strong { color: var(--accent); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 0;
}
.stat {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
}
.stat-label { color: var(--text-muted); margin-top: 8px; font-size: .95rem; }

/* Features */
.features { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all .3s;
}
.feature-card:hover { border-color: var(--primary); background: var(--bg-card-hover); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-bright); margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); line-height: 1.7; }

/* How it Works */
.how-it-works { padding: 80px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.step { text-align: center; }
.step-number {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: white;
  margin: 0 auto 20px;
}
.step h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-bright); margin-bottom: 12px; }
.step p { color: var(--text-muted); }

/* Pricing */
.pricing { padding: 80px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
  transition: all .3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(99,102,241,.2);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pricing-name { font-size: 1.25rem; font-weight: 700; color: var(--text-bright); margin-bottom: 8px; }
.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  padding: 8px 0;
  color: var(--text);
  font-size: .95rem;
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '\2713'; color: var(--success); font-weight: 700; }

/* Demo */
.demo-section { padding: 80px 0; text-align: center; }
.demo-container {
  max-width: 500px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.demo-header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.demo-messages {
  height: 320px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5;
}
.demo-msg.bot { background: var(--bg-card-hover); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.demo-msg.user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.demo-input-wrap {
  display: flex;
  border-top: 1px solid var(--border);
}
.demo-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
}
.demo-input::placeholder { color: var(--text-muted); }
.demo-send {
  background: var(--primary);
  border: none;
  color: white;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.demo-send:hover { background: var(--primary-dark); }

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,.05));
}
.cta h2 { font-size: 2.5rem; font-weight: 800; color: var(--text-bright); margin-bottom: 16px; }
.cta p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 32px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 120px 0 60px; }
}
