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

:root {
  --bg: #0c1222;
  --bg-2: #111827;
  --surface: #1e293b;
  --surface-2: #273549;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --amber: #f59e0b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --font-head: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,18,34,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.logo-mark { font-size: 1.4rem; color: var(--accent-2); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* === HERO === */
.hero {
  padding: 140px 2rem 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.headline-accent { color: var(--accent-2); }
.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === CHAT WIDGET === */
.hero-widget {
  display: flex;
  justify-content: flex-end;
}
.chat-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(99,102,241,0.15), 0 4px 20px rgba(0,0,0,0.4);
}
.chat-header {
  background: var(--surface-2);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: white;
}
.chat-name { font-weight: 600; font-size: 0.9rem; }
.chat-status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: #4ade80; margin-top: 2px; }
.status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; }
.chat-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; min-height: 280px; }
.msg { display: flex; flex-direction: column; gap: 0.2rem; }
.msg-out { align-items: flex-end; }
.msg-bubble {
  background: var(--surface-2);
  padding: 0.65rem 0.9rem;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 240px;
}
.msg-out .msg-bubble {
  background: var(--accent);
  color: white;
  border-radius: 12px 12px 4px 12px;
}
.msg-time { font-size: 0.68rem; color: var(--text-muted); padding: 0 0.25rem; }
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  align-self: flex-start;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* === HERO STATS === */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; max-width: 160px; line-height: 1.4; }
.stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* === SECTION COMMON === */
section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* === DEMOS === */
.demos { border-top: 1px solid var(--border); }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.demo-card:hover { border-color: var(--accent); }
.demo-icon { font-size: 1.4rem; color: var(--accent-2); margin-bottom: 1rem; }
.demo-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.demo-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.72rem; color: var(--text-muted); }

/* === AUDIENCE === */
.audience { border-top: 1px solid var(--border); }
.audience-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.audience-kicker { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1rem; }
.audience-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 1.25rem; }
.audience-body { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.65; }
.audience-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.audience-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; }
.list-marker { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.audience-signals { display: flex; flex-direction: column; gap: 1rem; }
.signal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.signal-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.6rem; }
.signal-card p { font-size: 0.9rem; color: var(--text); line-height: 1.6; font-style: italic; margin-bottom: 0.5rem; }
.signal-context { font-size: 0.78rem; color: var(--text-muted); }

/* === HOW IT WORKS === */
.howitworks { border-top: 1px solid var(--border); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.step { position: relative; }
.step-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--surface-2);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === PRICING === */
.pricing { border-top: 1px solid var(--border); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}
.pricing-card--featured {
  background: linear-gradient(160deg, var(--surface) 0%, rgba(99,102,241,0.08) 100%);
  border-color: var(--accent);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-price { margin-bottom: 1.5rem; }
.price-setup { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.price-sep { color: var(--text-muted); margin: 0 0.4rem; }
.price-monthly { font-size: 0.9rem; color: var(--text-muted); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-features li { font-size: 0.85rem; color: var(--text-muted); }

/* === CLOSING === */
.closing {
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.closing-body { font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-widget { justify-content: flex-start; }
  .chat-window { max-width: 100%; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .audience-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .stat-divider { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 500px) {
  .hero { padding: 120px 1.25rem 60px; }
  section { padding: 3.5rem 1.25rem; }
  .demo-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}