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

:root {
  --bg: #F8F6F1;
  --fg: #0B1414;
  --accent: #E8541A;
  --accent-dark: #C44315;
  --teal: #0B4F4F;
  --teal-light: #0D6666;
  --muted: #6B7B7B;
  --border: #D8E0DF;
  --card-bg: #FFFFFF;
  --section-pad: 96px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* === NAV === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  position: sticky;
  top: 0;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.5px;
}
.nav-tagline { font-size: 13px; color: var(--muted); letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* === HERO === */
.hero { padding: 80px 64px 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.eyebrow-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

.hero-headline {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.headline-accent { color: var(--accent); }

.hero-sub { font-size: 18px; color: var(--muted); max-width: 460px; line-height: 1.7; margin-bottom: 48px; }

.hero-proof { display: flex; gap: 24px; align-items: center; }
.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.proof-badge svg { color: var(--accent); }

.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 48px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--fg); background: white; }

/* Hero visual — phone mockup */
.hero-visual { position: relative; }
.phone-mockup {
  background: #111;
  border-radius: 40px;
  padding: 16px;
  max-width: 340px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  margin: 0 auto;
}
.phone-screen {
  background: #1a1a1a;
  border-radius: 28px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.phone-header {
  background: var(--teal);
  color: white;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-header-title { font-weight: 600; font-size: 14px; }
.phone-header-sub { font-size: 11px; opacity: 0.8; }
.phone-chat { flex: 1; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  animation: msgPop 0.3s ease;
}
@keyframes msgPop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-ai { background: var(--teal); color: white; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-user { background: rgba(255,255,255,0.12); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-ai .time { display: block; font-size: 10px; opacity: 0.7; margin-top: 4px; }
.typing-dots {
  display: flex; gap: 4px; align-items: center;
  padding: 12px 16px;
  background: var(--teal);
  border-radius: 14px;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.dot { width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; animation: bounce 1.2s infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.phone-input-bar {
  background: #222;
  padding: 12px 16px;
  border-top: 1px solid #333;
  display: flex;
  gap: 8px;
  align-items: center;
}
.phone-input {
  flex: 1;
  background: #333;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  color: white;
  font-size: 13px;
  outline: none;
}
.phone-send {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--teal);
  padding: 40px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 40px; font-weight: 800; color: white; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* === FEATURES === */
.features { padding: var(--section-pad) 64px; }
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.section-headline { font-size: 48px; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 64px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: #F0F4F4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--teal);
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.feature-tag {
  display: inline-block;
  background: #E8F4F4;
  color: var(--teal);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* === DEMO SECTION === */
.demo-section {
  padding: var(--section-pad) 64px;
  background: var(--card-bg);
}
.demo-section .section-headline { color: var(--fg); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.demo-widget-wrap { position: relative; }
.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.live-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.widget-frame {
  background: #F0F4F4;
  border-radius: 24px;
  padding: 32px;
  border: 2px solid var(--border);
  position: relative;
}
.widget-bubble {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 84, 26, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}
.widget-bubble:hover { transform: scale(1.08); }
.widget-bubble svg { width: 28px; height: 28px; color: white; }

.demo-info h3 { font-size: 28px; margin-bottom: 16px; }
.demo-info p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.demo-steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.demo-steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.step-text { font-size: 15px; line-height: 1.5; }
.step-text strong { color: var(--fg); }

/* === CTA SECTION === */
.cta-section {
  padding: var(--section-pad) 64px;
  text-align: center;
}
.cta-section .section-headline { font-size: 52px; margin-bottom: 24px; }
.cta-section p { font-size: 18px; color: var(--muted); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* === FOOTER === */
.footer {
  padding: 48px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--teal); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 16px 24px; }
  .hero, .features, .demo-section, .cta-section { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}

/* === DEMO PAGE === */
.demo-page { min-height: 100vh; display: flex; flex-direction: column; }
.demo-content { flex: 1; padding: 48px 64px; max-width: 1200px; margin: 0 auto; width: 100%; }
.demo-header { margin-bottom: 48px; }
.demo-header h1 { font-size: 36px; margin-bottom: 12px; }
.demo-header p { font-size: 16px; color: var(--muted); }

/* Chat demo container */
.chat-demo-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.chat-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
}
.chat-panel-header {
  background: var(--teal);
  color: white;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.chat-panel-header-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.chat-panel-header h3 { font-size: 16px; font-weight: 600; }
.chat-panel-header span { font-size: 13px; opacity: 0.8; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg-demo { padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.6; max-width: 80%; }
.chat-msg-demo.ai { background: var(--teal); color: white; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-demo.user { background: #F0F4F4; color: var(--fg); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg-demo .ts { display: block; font-size: 11px; opacity: 0.6; margin-top: 6px; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 14px 18px; background: var(--teal); border-radius: 16px; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-input-bar { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.chat-input-bar input { flex: 1; border: 1.5px solid var(--border); border-radius: 100px; padding: 12px 20px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.chat-input-bar input:focus { border-color: var(--teal); }
.chat-send-btn { background: var(--accent); color: white; border: none; border-radius: 100px; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.chat-send-btn:hover { background: var(--accent-dark); }

/* Sidebar */
.demo-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.sidebar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.lead-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; }
.lead-item:last-child { border-bottom: none; }
.lead-name { font-weight: 600; font-size: 14px; }
.lead-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lead-status { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.status-new { background: #FEF3C7; color: #92400E; }
.status-booked { background: #D1FAE5; color: #065F46; }
.status-contacted { background: #DBEAFE; color: #1E40AF; }
.empty-state { text-align: center; padding: 32px; color: var(--muted); font-size: 14px; }

.demo-actions { display: flex; flex-direction: column; gap: 12px; }
.demo-actions .btn-primary { justify-content: center; }
.demo-actions .btn-ghost { justify-content: center; }