/* =======================
   BOTFLOW — DESIGN SYSTEM
   ======================= */

:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #0F1520;
  --bg-card: #141D2E;
  --bg-card-alt: #192435;
  --surface: #1E2D42;
  --border: #1F3044;
  --teal: #0F766E;
  --teal-bright: #14B8A6;
  --teal-glow: rgba(20, 184, 166, 0.15);
  --amber: #D97706;
  --amber-bright: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.12);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #4E6280;
  --green-tag: #065F46;
  --green-tag-text: #6EE7B7;
  --amber-tag: #78350F;
  --amber-tag-text: #FDE68A;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal-bright);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-data-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 28px;
  width: fit-content;
}

.data-point { padding: 0 24px; }
.data-point:first-child { padding-left: 0; }

.data-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-bright);
  margin-bottom: 2px;
}

.data-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.data-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- CHAT FRAME ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(20,184,166,0.08);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar::after {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.chat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 6px var(--teal-bright);
  animation: pulse 2s ease-in-out infinite;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg { display: flex; }
.msg.user-msg { justify-content: flex-end; }

.bubble {
  max-width: 78%;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.bot-bubble {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.user-bubble {
  background: var(--teal);
  color: white;
  border-bottom-right-radius: 4px;
}

.appointment-card {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.appt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-bright);
  flex-shrink: 0;
}

.appt-info { flex: 1; }

.appt-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-bright);
  font-family: 'Syne', sans-serif;
}

.appt-detail {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.appt-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-bright);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lead-capture {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.lead-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.lead-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.tag-green { background: var(--green-tag); color: var(--green-tag-text); }
.tag-amber { background: var(--amber-tag); color: var(--amber-tag-text); }
.tag-white { background: var(--surface); color: var(--text-secondary); }

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-alt);
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.typing-label {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- NICHE SECTION ---- */
.niches {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.niches-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 40px;
}

.niches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s;
}

.niche-card:hover { border-color: var(--teal); }

.niche-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-bright);
  margin-bottom: 20px;
}

.niche-vert {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.niche-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.niche-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.niche-features {
  list-style: none;
  margin-bottom: 24px;
}

.niche-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.niche-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex-shrink: 0;
}

.niche-features li:last-child { border-bottom: none; }

.niche-metric {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--amber-bright);
}

.metric-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- OUTCOMES SECTION ---- */
.outcomes {
  padding: 80px 0;
  background: var(--bg-primary);
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  transition: border-color 0.2s;
}

.outcome-card:hover { border-color: rgba(20, 184, 166, 0.4); }

.outcome-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-glow);
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-bright);
  margin-bottom: 16px;
}

.outcome-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Syne', sans-serif;
}

.outcome-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- MANIFESTO SECTION ---- */
.manifesto {
  padding: 100px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity: 0.3;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
}

.manifesto-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 32px;
}

.manifesto-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.manifesto-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.manifesto-quote-mark {
  position: absolute;
  top: 30px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 120px;
  color: var(--teal);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-logo svg { color: var(--teal-bright); }

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sep { color: var(--border); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content { text-align: center; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-data-bar { margin: 0 auto; }

  .niches-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .hero-inner,
  .niches-inner,
  .outcomes-inner,
  .manifesto-inner,
  .footer-inner {
    padding: 0 20px;
  }

  .hero { padding: 60px 0 72px; }

  .data-sep { display: none; }
  .hero-data-bar { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .data-point { padding: 0 8px; }

  .niche-card { padding: 24px 20px; }
}
