:root {
  --cream: #F7F9F4;
  --cream-soft: #F1F5EF;
  --ink: #0B1F17;
  --green: #25D366;
  --green-pale: #DCF8C6;
  --teal: #075E54;
  --border: #DDE6D9;
  --white: #FFFFFF;
  --text-muted: #4B5A52;
  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1200px;
  --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { box-shadow: 0 6px 18px rgba(11,31,23,0.25); }

.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { box-shadow: 0 6px 18px rgba(37,211,102,0.35); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: rgba(11,31,23,0.05); }

.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,249,244,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
}
.brand-word { display: inline-flex; }
.brand-max { color: var(--green); }
.brand-qualify { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a { color: var(--ink); opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login { font-weight: 600; font-size: 15px; opacity: 0.85; }
.nav-login:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { stroke: var(--ink); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.mobile-menu a { font-weight: 600; font-size: 16px; }
.mobile-menu.open { display: flex; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* Hero */
.hero {
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 58px;
  margin: 22px 0 24px;
}
.highlight {
  background: var(--green);
  padding: 2px 10px;
  border-radius: 8px;
  display: inline-block;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--text-muted); }

/* Chat mockup */
.chat-mock {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(11,31,23,0.12);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
}
.chat-header {
  background: var(--teal);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header .name { font-weight: 700; font-size: 15px; }
.chat-header .status { font-size: 12px; opacity: 0.75; }
.chat-body {
  background: #EEF3EA;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
}
.bubble.in { background: var(--white); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--green-pale); align-self: flex-end; border-bottom-right-radius: 4px; }

.lead-score-card {
  position: absolute;
  right: -18px;
  bottom: 96px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  width: 220px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.lead-score-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.65; margin-bottom: 6px; }
.lead-score-card .score-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.lead-score-card .score { font-family: var(--font-heading); font-size: 32px; font-weight: 800; }
.lead-score-card .tag { background: var(--green); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); margin-left: auto; }
.lead-score-card .meta { font-size: 12px; opacity: 0.8; display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.lead-score-card .meta:first-of-type { border-top: none; }

/* Trust strip */
.trust {
  padding: 32px 0 64px;
  text-align: center;
}
.trust-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.trust-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 16px;
}
.trust-logos span {
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 20px 24px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-logos img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Section shared */
.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--teal); color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: 38px; margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--text-muted); }
.section-dark .section-head p { color: rgba(255,255,255,0.75); }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.step-card.active { background: var(--ink); color: var(--white); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  width: 34px; height: 34px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.step-card h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 15px; }
.step-card.active p { color: rgba(255,255,255,0.75); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* Pipeline / dashboard */
.pipeline-panel {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}
.pipeline-tabs {
  display: flex;
  gap: 10px;
  padding: 20px 24px 0;
  flex-wrap: wrap;
}
.pipeline-tabs span {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
}
.pipeline-tabs span.on { background: var(--ink); color: var(--white); }
.pipeline-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.pipeline-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
}
.pipeline-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.pipeline-table tr:last-child td { border-bottom: none; }
.lead-cell { display: flex; align-items: center; gap: 12px; }
.avatar-chip {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lead-cell .sub { color: var(--text-muted); font-size: 12.5px; }
.score-pill {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
}
.status-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.status-hot { background: var(--green-pale); color: var(--teal); }
.status-nurturing { background: #FDF2D2; color: #8A6300; }
.status-disqualified { background: #F2E4E4; color: #8A2E2E; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(11,31,23,0.2);
}
.price-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.price-title-row h3 { margin-bottom: 0; }
.price-tag {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.price-card h3 { font-family: var(--font-heading); font-size: 22px; margin-bottom: 6px; }
.price-amount { font-family: var(--font-heading); font-size: 40px; font-weight: 800; margin: 14px 0 6px; }
.price-amount span { font-size: 15px; font-weight: 600; opacity: 0.6; }
.price-card .desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.price-card.featured .desc { color: rgba(255,255,255,0.7); }
.price-features { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.price-features li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 0;
  align-items: flex-start;
}
.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.price-card.featured .price-features li::before { color: var(--green); }

/* Final CTA */
.final-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-inline: auto;
}
.final-cta h2 { font-size: 40px; margin-bottom: 32px; }
.final-cta .hero-ctas { justify-content: center; }

/* Footer */
.site-footer {
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 14px;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* Utility */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .steps, .features-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
  .lead-score-card { position: static; margin-top: 16px; width: 100%; }
  .trust-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .nav-login { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .steps, .features-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 28px; }
  .final-cta { padding: 48px 24px; margin: 0 16px; }
  .final-cta h2 { font-size: 28px; }
  .pipeline-table { display: block; overflow-x: auto; white-space: nowrap; }
  .wrap { padding: 0 16px; }
}
