/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-bg:       #fafafa;
  --c-surface:  #ffffff;
  --c-text:     #1a1a2e;
  --c-muted:    #64748b;
  --c-border:   #e2e8f0;
  --c-primary:  #4338ca;
  --c-primary-light: #6366f1;
  --c-primary-dark:  #3730a3;
  --c-accent:   #06b6d4;
  --c-green:    #059669;
  --c-amber:    #d97706;
  --c-dark:     #0f0f23;
  --c-dark-2:   #1a1a2e;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:      1140px;
  --max-w-narrow: 760px;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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


/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all .2s;
  padding: 10px 24px; gap: 8px;
}
.btn--sm  { padding: 8px 18px; font-size: .85rem; }
.btn--lg  { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn--primary {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn--outline {
  background: transparent; color: var(--c-primary); border-color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-text); }
.btn--ghost:hover { color: var(--c-primary); }
.btn--white {
  background: #fff; color: var(--c-primary); border-color: #fff;
}
.btn--white:hover { background: #f0f0ff; }


/* ── Nav ───��─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,250,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .3s;
}
.nav--scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px; gap: 32px;
}
.nav__logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.nav__logo-ai { color: var(--c-primary); }
.nav__links { display: flex; gap: 28px; flex: 1; }
.nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--c-muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--c-text); }
.nav__actions { display: flex; gap: 12px; align-items: center; }
.nav__burger { display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; flex-direction: column;
  justify-content: space-between;
}
.nav__burger span {
  display: block; width: 100%; height: 2px; background: var(--c-text);
  border-radius: 2px; transition: .3s;
}


/* ── Hero ────��──────────────────────────────────���────── */
.hero {
  padding: 140px 24px 100px;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero__badge {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--c-primary); background: rgba(67,56,202,.08);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: .02em; text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 20px;
}
.hero__title em { font-style: normal; color: var(--c-primary); }
.hero__sub {
  font-size: 1.1rem; color: var(--c-muted); max-width: 520px;
  margin-bottom: 32px; line-height: 1.7;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__note { font-size: .82rem; color: var(--c-muted); }

.hero__visual { position: relative; min-height: 480px; overflow: visible; }
.hero__photo {
  display: block; width: 100%; height: 480px;
  object-fit: cover; object-position: center top;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(67,56,202,.15), 0 4px 20px rgba(0,0,0,.08);
}
.hero__photo-glow {
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(67,56,202,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__card {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  position: absolute; max-width: 320px; z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero__card--1 { top: 16px; right: -20px; animation-delay: 0s; }
.hero__card--2 { top: 200px; left: -30px; animation-delay: -2s; }
.hero__card--3 { bottom: -16px; right: 10px; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(67,56,202,.08); color: var(--c-primary);
}
.hero__card-icon--green { background: rgba(5,150,105,.08); color: var(--c-green); }
.hero__card-icon--amber { background: rgba(217,119,6,.08); color: var(--c-amber); }
.hero__card-title { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.hero__card-body { font-size: .82rem; color: var(--c-muted); line-height: 1.5; }


/* ── Problem ─────────────────────────────────────────── */
.problem {
  padding: 100px 0;
  background: var(--c-dark);
  color: #fff;
}
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.problem .section__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.problem__lead { color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.7; margin-top: 20px; }
.problem__stats { display: flex; flex-direction: column; gap: 32px; }
.stat {
  padding: 24px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.stat__number {
  display: block; font-size: 2rem; font-weight: 800; color: var(--c-accent);
  margin-bottom: 4px;
}
.stat__label { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.5; }

/*
  .reveal-target--left initial transform is set by the JS-injected style block
  (appended to <head> after DOM load, higher cascade order).
  This rule is intentionally left as a comment — do not add transform here.
*/


/* ── Solution intro ──────────────────────────────────── */
.solution { padding: 100px 0; }
.section__eyebrow {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-primary); text-align: center;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.section__title--center { text-align: center; }
.section__sub {
  text-align: center; color: var(--c-muted); max-width: 600px;
  margin: 16px auto 0; font-size: 1.05rem; line-height: 1.7;
}


/* ── Features ────────────────────────────────────────── */
.features { padding: 0 0 100px; }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.feature {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-border);
  transition: box-shadow .3s, transform .3s;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(67,56,202,.06); color: var(--c-primary);
  margin-bottom: 20px;
}
.feature__title { font-size: 1.1rem; margin-bottom: 8px; }
.feature__body { font-size: .92rem; color: var(--c-muted); line-height: 1.65; }


/* ── How it works ────────────────────────────────────── */
.how {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, #f0f0ff 100%);
}

/* Diagram */
.how__diagram {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 56px auto 0; max-width: 900px;
}
.diagram__col { flex: 1; text-align: center; }
.diagram__col--center { flex: 0 0 auto; }
.diagram__label {
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-muted); margin-bottom: 16px;
}
.diagram__icons {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.diagram__icon-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 40px; padding: 10px 20px;
  font-size: .88rem; font-weight: 500; color: var(--c-text);
  box-shadow: var(--shadow-sm); min-width: 160px;
}
.diagram__icon-pill svg { color: var(--c-primary); flex-shrink: 0; }
.diagram__icon-pill--green svg { color: var(--c-green); }
.diagram__icon-pill--green {
  border-color: rgba(5,150,105,.2); background: rgba(5,150,105,.04);
}
.diagram__arrow { flex-shrink: 0; padding: 0 8px; margin-top: 24px; }
.diagram__hub {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.diagram__hub-inner {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 24px rgba(67,56,202,.25);
}
.diagram__hub-agents { display: flex; gap: 6px; }
.diagram__agent-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(67,56,202,.08); color: var(--c-primary);
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(67,56,202,.15);
}

.how__steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-top: 60px; justify-content: center;
}
.step { text-align: center; max-width: 280px; flex-shrink: 0; }
.step__number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step__body { font-size: .92rem; color: var(--c-muted); line-height: 1.65; }
.step__line {
  height: 2px; width: 80px; background: var(--c-border);
  margin-top: 28px; flex-shrink: 0;
}


/* ── Social proof ─────────────────────────���──────────── */
.proof {
  padding: 100px 0; position: relative;
  background: url('images/small-business-interior.jpg') center/cover no-repeat fixed;
}
.proof::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.60);
}
.proof .container { position: relative; z-index: 1; }
.proof__quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 48px;
}
.quote {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.quote__text {
  font-size: 1rem; line-height: 1.7; color: var(--c-text);
  margin-bottom: 20px; font-style: italic;
}
.quote__attr { font-size: .85rem; color: var(--c-muted); }
.quote__attr strong { color: var(--c-text); font-weight: 600; }


/* ── Pricing ────────���───────────────────────────��────── */
.pricing { padding: 100px 0; background: var(--c-bg); }
.pricing__cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  max-width: 780px; margin: 48px auto 0;
}
.pricing__cards--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}
.pricing__card {
  padding: 40px 32px; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.pricing__card--main {
  border: 2px solid var(--c-primary); position: relative;
}
.pricing__badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--c-primary); color: #fff;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; padding: 5px 14px; border-radius: 20px;
}
.pricing__price { margin: 16px 0 8px; }
.pricing__amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.pricing__period { font-size: 1rem; color: var(--c-muted); }
.pricing__note { font-size: .85rem; color: var(--c-green); font-weight: 500; margin-bottom: 24px; }
.pricing__list { margin-bottom: 32px; }
.pricing__list li {
  font-size: .92rem; color: var(--c-muted); padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  padding-left: 24px; position: relative;
}
.pricing__list li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(5,150,105,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.pricing__card--enterprise {
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #f0f0ff, #faf5ff);
}
.pricing__card-title { font-size: 1.4rem; margin-bottom: 12px; }
.pricing__card-body { font-size: .95rem; color: var(--c-muted); line-height: 1.65; margin-bottom: 28px; }
.pricing__tier { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.pricing__agent-count {
  font-size: .88rem; font-weight: 600; color: var(--c-primary);
  margin-bottom: 20px;
}
.pricing__trial-note {
  text-align: center; font-size: .88rem; color: var(--c-muted);
  margin-top: 24px;
}


/* ── FAQ ─────────────────────────────────────────────── */
.faq { padding: 100px 0; }
.faq__list { margin-top: 48px; }
.faq__item {
  border-bottom: 1px solid var(--c-border); padding: 20px 0;
}
.faq__q {
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--c-muted);
  transition: transform .2s; flex-shrink: 0;
}
details[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  font-size: .95rem; color: var(--c-muted); line-height: 1.7;
  padding-top: 12px; max-width: 640px;
}


/* ── CTA Banner ──────────────────────────────────────── */
.cta {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* Photo background layer — the gradient sits on top */
.cta__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/open-sign.jpg');
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
  transform: scale(1.04); /* slight zoom provides parallax headroom */
  transition: background-position 8s ease;
  z-index: -2;
  will-change: transform;
}
/* Gradient overlay — preserves brand colour and text legibility */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,15,35,0.88) 0%,
    rgba(55,48,163,0.85) 100%
  );
  z-index: -1;
}
.cta__content { position: relative; }
.cta__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; letter-spacing: -.02em; }
.cta__sub { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }


/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 60px 0 40px;
  background: var(--c-dark); color: rgba(255,255,255,.6);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer__tagline { margin-top: 8px; font-size: .9rem; }
.footer__col h4 {
  color: #fff; font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px;
}
.footer__col a {
  display: block; font-size: .9rem; padding: 4px 0;
  transition: color .2s;
}
.footer__col a:hover { color: #fff; }
.footer .nav__logo { color: #fff; }
.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}


/* ���─ Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { max-width: 400px; margin: 0 auto; min-height: auto; }
  .hero__photo { height: 360px; }
  .hero__card { display: none; }
  .problem__grid { grid-template-columns: 1fr; gap: 40px; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .how__diagram { flex-direction: column; gap: 16px; }
  .diagram__arrow { transform: rotate(90deg); padding: 0; margin: 0; }
  .how__steps { flex-direction: column; align-items: center; }
  .step__line { width: 2px; height: 40px; margin: 0; }
  .proof__quotes { grid-template-columns: 1fr; }
  .pricing__cards { grid-template-columns: 1fr; }
  .pricing__cards--three { grid-template-columns: 1fr; max-width: 480px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Disable fixed background attachment on mobile (performance + iOS bug) */
  .cta__bg { background-attachment: scroll; }
  .proof { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__links.nav__links--open,
  .nav__actions.nav__actions--open {
    display: flex;
  }
  /* Mobile menu */
  .nav--mobile-open .nav__inner {
    flex-wrap: wrap; height: auto; padding-bottom: 16px;
  }
  .nav--mobile-open .nav__links {
    display: flex; flex-direction: column; width: 100%;
    order: 10; gap: 12px; padding-top: 12px;
    border-top: 1px solid var(--c-border);
  }
  .nav--mobile-open .nav__actions {
    display: flex; width: 100%; order: 11;
    padding-top: 8px;
  }
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2rem; }
}
