/* ── Boomerang Marketing Site ─────────────────────────────────
   Modern, professional SaaS aesthetic matching the app brand.
   ──────────────────────────────────────────────────────────── */
:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --panel: #111a30;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --text: #e6e9f2;
  --muted: #9aa6c0;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px; cursor: pointer;
  border-radius: 10px; padding: 10px 18px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99, 102, 241, .45); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 16, 32, .72); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 38px; width: auto; object-fit: contain; display: block;
  border-radius: 8px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links > a:not(.btn):hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 8%, rgba(99, 102, 241, .28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 60%, rgba(16, 185, 129, .12), transparent 70%);
  animation: glowShift 14s ease-in-out infinite alternate;
}
@keyframes glowShift {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: .9; }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { display: inline-flex; margin-bottom: 26px; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(99, 102, 241, .28), 0 4px 14px rgba(0, 0, 0, .35); }
.hero-logo img { height: 64px; width: auto; object-fit: contain; display: block; border-radius: 16px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(139, 92, 246, .08); }
.hero-title { font-size: clamp(40px, 6.5vw, 66px); line-height: 1.04; font-weight: 800; letter-spacing: -1.8px; margin-bottom: 22px; }
.accent { background: linear-gradient(90deg, var(--indigo), var(--violet), var(--emerald)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 660px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Trust strip */
.trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust-ic { width: 16px; height: 16px; fill: none; stroke: var(--emerald); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(148,163,184,.5); }

/* Product mockup */
.mockup { margin-top: 52px; width: 100%; max-width: 820px; background: linear-gradient(180deg, #0f1830, #0c1226); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02); text-align: left; }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.mockup-url { margin-left: 12px; font-size: 12px; color: #64748b; background: rgba(255,255,255,.04); padding: 4px 12px; border-radius: 6px; }
.mockup-body { padding: 22px; }
.chat-q { display: inline-block; background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; padding: 10px 16px; border-radius: 14px 14px 14px 4px; font-size: 14.5px; font-weight: 500; max-width: 90%; margin-bottom: 16px; }
.chat-a { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 16px 18px; }
.chat-a-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--violet); margin-bottom: 10px; }
.chat-a-badge svg { width: 15px; height: 15px; fill: var(--violet); }
.chat-a p { font-size: 14.5px; color: #cbd5e1; margin-bottom: 16px; line-height: 1.55; }
.chart { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: 10px; }
.bar-label { font-size: 12.5px; color: var(--muted); }
.bar-track { height: 12px; background: rgba(255,255,255,.05); border-radius: 6px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.bar-track i.bar-good { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-val { font-size: 12.5px; color: #e6e9f2; font-weight: 600; text-align: right; }

/* Stats band */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 24px; }
.stat { text-align: center; }
.stat-num { font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -.5px; background: linear-gradient(90deg, var(--indigo), var(--emerald)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; margin-bottom: 22px; }
.section-title.center { text-align: center; margin-bottom: 44px; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 780px; margin-bottom: 18px; }

/* ── Cards grid ──────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; background: linear-gradient(135deg, rgba(99,102,241,.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card:hover::before { opacity: 1; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(139,92,246,.18)); border: 1px solid rgba(139,92,246,.3); }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: url(#g); stroke: #a5b4fc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ── Privacy ─────────────────────────────────────────────── */
.privacy { max-width: 820px; margin: 0 auto; }
.privacy-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.privacy-list li { position: relative; padding-left: 32px; font-size: 17px; color: var(--text); }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(16, 185, 129, .15); color: var(--emerald); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; transition: border-color .2s ease; }
.faq-item[open] { border-color: rgba(139,92,246,.4); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--violet); font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14.5px; color: var(--muted); padding: 0 0 18px; line-height: 1.6; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta { padding: 90px 0; background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(99, 102, 241, .18), transparent 70%), var(--bg-2); border-top: 1px solid var(--border); text-align: center; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta-inner p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 30px; }

/* ── Comparison table (vs chatbot) ───────────────────────── */
.compare { max-width: 940px; margin: 40px auto 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); }
.compare-row { display: grid; grid-template-columns: 1.1fr 1.5fr 1.5fr; border-top: 1px solid var(--border); }
.compare-row:first-child { border-top: none; }
.compare-feat, .compare-them, .compare-us { padding: 14px 16px; font-size: 14px; line-height: 1.45; display: flex; align-items: center; gap: 8px; }
.compare-feat { font-weight: 700; color: var(--text); background: rgba(255,255,255,.02); }
.compare-them { color: var(--muted); border-left: 1px solid var(--border); }
.compare-us { color: #e6e9f2; border-left: 1px solid var(--border); background: linear-gradient(180deg, rgba(99,102,241,.08), rgba(16,185,129,.05)); }
.compare-them .x { color: #f87171; font-weight: 700; flex-shrink: 0; }
.compare-us .c { color: var(--emerald); font-weight: 700; flex-shrink: 0; }
.compare-head .compare-feat { background: transparent; }
.compare-head .compare-them, .compare-head .compare-us { font-weight: 800; font-size: 15px; flex-direction: column; align-items: flex-start; gap: 2px; }
.compare-head .compare-them span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }
.compare-head .compare-us { color: #fff; }

/* Highlighted rows (key differentiators) */
.compare-row-hl { position: relative; }
.compare-row-hl .compare-feat { color: var(--violet); background: rgba(139,92,246,.10); box-shadow: inset 3px 0 0 var(--violet); }
.compare-row-hl .compare-us { background: linear-gradient(180deg, rgba(139,92,246,.18), rgba(16,185,129,.10)); color: #fff; font-weight: 600; }
.compare-row-hl .compare-them { background: rgba(255,255,255,.015); }

/* Plain-language concept callout */
.concept { max-width: 860px; margin: 40px auto 0; padding: 30px 32px; border-radius: 16px; background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(16,185,129,.06)); border: 1px solid rgba(139,92,246,.25); }
.concept h3 { font-size: clamp(20px, 2.6vw, 24px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.concept p { font-size: 15.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.65; }
.concept p:last-child { margin-bottom: 0; }
.concept strong { color: var(--text); }

/* ── Before / After payoff band ──────────────────────────── */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.ba-col { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.ba-before { border-color: rgba(248,113,113,.25); }
.ba-after { border-color: rgba(16,185,129,.3); background: linear-gradient(180deg, rgba(16,185,129,.06), rgba(99,102,241,.05)); }
.ba-tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.ba-tag-before { background: rgba(248,113,113,.12); color: #fca5a5; }
.ba-tag-after { background: rgba(16,185,129,.14); color: #6ee7b7; }
.ba-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; flex: 1; }
.ba-col li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.ba-before li::before { content: "✕"; position: absolute; left: 0; color: #f87171; font-weight: 700; }
.ba-after li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.ba-time { font-size: 15px; font-weight: 800; padding-top: 14px; border-top: 1px solid var(--border); }
.ba-time-before { color: #fca5a5; }
.ba-time-after { color: #6ee7b7; }
.ba-arrow { display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--violet); font-weight: 700; }
.ba-note { text-align: center; font-size: 12.5px; color: #64748b; margin-top: 18px; font-style: italic; }

.quote { max-width: 760px; margin: 36px auto 0; text-align: center; }
.quote blockquote { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; line-height: 1.5; color: var(--text); margin-bottom: 14px; }
.quote figcaption { font-size: 14px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 48px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; }
.footer-note { font-size: 13.5px; color: var(--muted); max-width: 560px; }
.footer-copy { font-size: 13px; color: #5b6680; }

/* Mobile nav toggle (hamburger) — hidden on desktop; shown ≤860px. */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  /* The links row becomes a dropdown panel toggled by the hamburger. */
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #0f1424; border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { width: 100%; padding: 11px 12px; border-radius: 9px; }
  .nav-links > a:not(.btn):hover { background: rgba(255,255,255,.06); }
  .nav-links .btn { justify-content: center; margin-top: 4px; }
  .grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .hero-logo img { height: 50px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  /* Comparison: feature becomes a full-width sub-header, them vs us side by side */
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-feat { grid-column: 1 / -1; background: rgba(255,255,255,.04); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 16px; }
  .compare-head .compare-feat { display: none; }
  .compare-them, .compare-us { font-size: 13px; align-items: flex-start; }
  .concept { padding: 24px 22px; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); }
}
