/* ============================================
   LeadMill AI — Styles
   ============================================ */

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

:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #1a1a1a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #050505 0%, #0a0a1a 25%, #0d0b1a 50%, #080818 75%, #050505 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section {
  padding: 120px 0;
  position: relative;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 16px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-img {
  height: 120px;
  width: auto;
}

.footer-brand .logo-img {
  height: 140px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--primary-light);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu .nav-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 24px auto 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-left: 2px;
}

.hero-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ============================================
   Calendar
   ============================================ */

.calendar-wrapper {
  max-width: 480px;
  margin: 64px auto 0;
  perspective: 1000px;
}

.calendar-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 70, 229, 0.05);
}

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

.calendar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.calendar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 16px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.calendar-day.day-label {
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-day.booked {
  color: #fff;
  font-weight: 600;
  transform: scale(1);
  animation: bookPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calendar-day.booked.clr-1 {
  background: #4f46e5;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

.calendar-day.booked.clr-2 {
  background: #7c3aed;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

.calendar-day.booked.clr-3 {
  background: #2563eb;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.calendar-day.booked.clr-4 {
  background: #22c55e;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.4);
}

.calendar-day.booked.clr-5 {
  background: #06b6d4;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

@keyframes bookPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

.calendar-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.booked {
  background: var(--primary);
}

.legend-dot.available {
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
}

.calendar-count {
  color: var(--text-muted);
  font-weight: 600;
}

#booking-count {
  color: var(--primary-light);
}

/* ============================================
   FAQ
   ============================================ */

.faq-section {
  background: var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.3s ease, color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   Workflow / How It Works
   ============================================ */

.workflow-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  max-width: 420px;
  margin: 0 auto 60px;
}

.workflow-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s;
  flex: 1;
  justify-content: center;
}

.workflow-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.3);
}

.workflow-tab:hover:not(.active) {
  color: var(--text);
}

.workflow-content {
  display: none;
}

.workflow-content.active {
  display: block;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Horizontal 3-column workflow grid */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.workflow-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.workflow-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 24px 80px rgba(79, 70, 229, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.12), 0 0 40px rgba(99, 102, 241, 0.06);
}

/* Preview area — compact mockup UI */
.workflow-card-preview {
  height: 220px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(10, 10, 26, 0.3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.workflow-card-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Card body with inline step number */
.workflow-card-body {
  padding: 24px 28px 28px;
}

.workflow-step-num {
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.workflow-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.workflow-card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Connecting arrows between cards */
.workflow-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 110px;
  right: -16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(99, 102, 241, 0.35);
  border-bottom: 2px solid rgba(99, 102, 241, 0.35);
  transform: rotate(-45deg);
  z-index: 2;
}

/* ---- Mockup: Lead Sources + Notification ---- */
.mockup-lead-in {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-sources {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.lead-source {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.25s;
}

.lead-source.active {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--primary-light);
}

.lead-notif-popup {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

.lead-notif-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lead-notif-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

.lead-notif-label {
  color: var(--text);
}

.lead-notif-time {
  margin-left: auto;
  font-size: 0.5625rem;
  color: var(--text-dim);
}

.lead-notif-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

/* ---- Mockup: Audience Selector ---- */
.mockup-audience {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--text-dim);
}

.audience-chip.active {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--primary-light);
}

.chip-count {
  font-weight: 700;
  opacity: 0.7;
}

.audience-selected {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.audience-stack {
  display: flex;
}

.audience-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--surface-2);
  margin-left: -8px;
}

.audience-avatar:first-child {
  margin-left: 0;
}

.audience-avatar.a2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.audience-avatar.a3 { background: linear-gradient(135deg, #2563eb, #6366f1); }
.audience-avatar.a4 { background: var(--surface-3); color: var(--text-muted); font-size: 0.45rem; }

.audience-info {
  flex: 1;
}

.audience-total {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.audience-detail {
  display: block;
  font-size: 0.5625rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.audience-ready {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #22c55e;
  padding: 6px 0;
}

/* ---- Compact Mockup: Notification/Contact List ---- */
.mockup-mini {
  width: 100%;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mockup-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.mm-count {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 8px;
  border-radius: 100px;
}

.mockup-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.mockup-mini-row:last-child {
  border-bottom: none;
}

.mockup-mini-row.dim {
  opacity: 0.35;
}

.mockup-mini-avatar {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.mockup-mini-text {
  flex: 1;
  min-width: 0;
}

.mm-name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.mm-sub {
  display: block;
  font-size: 0.5625rem;
  color: var(--text-dim);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-mini-dot {
  width: 7px;
  height: 7px;
  background: #6366f1;
  border-radius: 50%;
  flex-shrink: 0;
}

.mm-tag {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
}

.mm-tag.warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* ---- Compact Mockup: Chat ---- */
.mockup-mini-chat {
  width: 100%;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 6px;
}

.mm-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mm-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.mm-bubble {
  padding: 6px 10px;
  font-size: 0.625rem;
  line-height: 1.4;
  margin: 5px 10px;
  border-radius: 8px;
  max-width: 82%;
}

.mm-bubble.ai {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-bottom-left-radius: 3px;
}

.mm-bubble.user {
  background: var(--primary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 3px;
}

/* ---- Compact Mockup: Calendar ---- */
.mockup-mini-cal {
  width: 100%;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mm-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.mm-cal-confirmed {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 7px;
  border-radius: 100px;
}

.mm-cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 10px 14px;
}

.mm-d {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mm-n {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
  border-radius: 5px;
}

.mm-n.bk {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-light);
  font-weight: 600;
}

.mm-n.sel {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.mm-cal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: rgba(34, 197, 94, 0.03);
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mm-booked-pill {
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  background: #22c55e;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Compact Mockup: Stats Dashboard ---- */
.mockup-mini-stats {
  width: 100%;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mm-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.mm-stats-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 7px;
  border-radius: 100px;
}

.mm-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 12px;
  gap: 4px;
}

.mm-stat {
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
}

.mm-stat.hl {
  background: rgba(34, 197, 94, 0.08);
}

.mm-stat-val {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.mm-stat.hl .mm-stat-val {
  color: #22c55e;
}

.mm-stat-label {
  display: block;
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-stats-bar {
  height: 3px;
  background: var(--surface-3);
  margin: 0 14px 12px;
  border-radius: 2px;
  overflow: hidden;
}

.mm-stats-fill {
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 2px;
}

/* ---- Tracked End-to-End Bar ---- */
.tracked-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 20px 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tracked-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tracked-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
}

.tracked-metric {
  text-align: center;
}

.tracked-num {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tracked-desc {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.tracked-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Stagger workflow cards */
.workflow-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.workflow-grid [data-animate]:nth-child(2) { transition-delay: 0.12s; }
.workflow-grid [data-animate]:nth-child(3) { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .workflow-card:not(:last-child)::after {
    display: none;
  }

  .tracked-bar {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .tracked-metrics {
    gap: 20px;
  }
}

/* ============================================
   Chat Demo
   ============================================ */

.chat-demo-section {
  background: var(--surface);
}

.chat-demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.chat-demo-text h2 {
  margin-bottom: 20px;
}

.chat-demo-text > p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.phone-frame {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 36px;
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.phone-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.phone-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.phone-status {
  display: block;
  font-size: 0.6875rem;
  color: var(--accent);
}

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

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  animation: msgIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-msg.incoming {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--text);
}

.chat-msg.outgoing {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-msg.system {
  align-self: center;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  text-align: center;
  max-width: 100%;
}

.phone-input {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: typing 1.4s ease infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@media (max-width: 900px) {
  .chat-demo-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .chat-demo-text {
    text-align: center;
  }
  .check-list {
    align-items: center;
  }
}

/* ============================================
   Calculator
   ============================================ */

.calculator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.calc-input-group {
  margin-bottom: 32px;
}

.calc-input-group:last-child {
  margin-bottom: 0;
}

.calc-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-prefix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
}

.calc-input-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  outline: none;
}

.calc-input-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
  transition: transform 0.2s;
}

.calc-input-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-input-wrap input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.calc-display {
  min-width: 64px;
  text-align: right;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-result-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
}

.calc-result-card.highlight {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.05));
  border-color: rgba(79, 70, 229, 0.2);
  flex: 1;
}

.calc-result-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.calc-result-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: all 0.3s;
}

.calc-result-card.highlight .calc-result-value {
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc-result-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.calc-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-result-row .calc-result-value {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .calculator-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 32px;
  }
  .calc-result-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Testimonials
   ============================================ */

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

.testimonial-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-quote strong {
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.testimonial-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ============================================
   Booking / Demo Section
   ============================================ */

.booking-section {
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.booking-text h2 {
  margin-bottom: 20px;
}

.booking-text > p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.booking-text .check-list {
  margin-bottom: 0;
}

.calendly-frame {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(79, 70, 229, 0.05);
}

.calendly-inline-widget {
  border-radius: var(--radius-xl);
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .booking-text {
    text-align: center;
  }

  .booking-text .check-list {
    align-items: center;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   Animations
   ============================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.testimonials-grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.testimonials-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   Responsive Polish
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat-num {
    font-size: 1.75rem;
  }

  .workflow-toggle {
    flex-direction: column;
  }

  .section-header {
    margin-bottom: 48px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .calc-result-row {
    grid-template-columns: 1fr;
  }
}
