/* ─────────────────── Landing page ─────────────────── */

/* ── Hero with animated mesh gradient ─────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: -10%;
  background: var(--grad-hero);
  z-index: -2;
  animation: hero-drift 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 25% 30%, var(--brand-500) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 60%, var(--accent-500) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 80%, var(--brand-400) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 20%, var(--accent-500) 50%, transparent 50%);
  background-size: 220px 220px, 280px 280px, 240px 240px, 200px 200px;
  opacity: .35; z-index: -1; pointer-events: none;
}
@keyframes hero-drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-2%, 1%) scale(1.04); }
  100% { transform: translate(2%, -1%) scale(1.02); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(217,70,239,.08));
  border: 1px solid rgba(168,85,247,.3);
  font-size: 12px; font-weight: 600;
  color: var(--brand-400);
  letter-spacing: .3px; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
[data-theme='light'] .hero-eyebrow { color: var(--brand-600); }
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 10px var(--accent-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.02;
  max-width: 920px; margin: 0 auto 24px;
  text-align: center;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--brand-400) 0%, var(--accent-500) 50%, var(--brand-500) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 8s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted); max-width: 720px; margin: 0 auto 36px;
  text-align: center; line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
}

/* ── Stats strip below hero ───────────────── */
.stats-strip {
  position: relative;
  padding: 50px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-strip::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-mesh);
  pointer-events: none;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; text-align: center; position: relative;
}
.stat-block .stat-num {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800; letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.stat-block .stat-label {
  font-size: 13px; color: var(--text-muted);
  margin-top: 8px; line-height: 1.4;
}
.stat-block .stat-source {
  font-size: 11px; color: var(--text-dim);
  margin-top: 6px; font-style: italic;
}

/* ── LLM strip ───────────────── */
.llm-strip { padding: 48px 0 16px; text-align: center; }
.llm-strip-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 22px; font-weight: 600;
}
.llm-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.llm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: all .2s ease;
}
.llm-pill:hover {
  border-color: var(--brand-500);
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(217,70,239,.04));
  color: var(--text);
  transform: translateY(-2px);
}

/* ── Trusted-by section ─────────────── */
.trusted-by {
  padding: 48px 0 0;
  text-align: center;
}
.trusted-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 28px; font-weight: 600;
}
.trusted-row {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; align-items: center;
  opacity: .65; max-width: 880px; margin: 0 auto;
}
.trusted-row:hover { opacity: 1; }
.trusted-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  letter-spacing: -.3px; transition: color .15s ease;
}
.trusted-item:hover { color: var(--text); }
.trusted-item svg { width: 22px; height: 22px; opacity: .7; }

/* ── Sections ─────────────── */
.section { padding: 100px 0; position: relative; }
.section h2 {
  font-size: clamp(30px, 4.5vw, 44px); font-weight: 800;
  letter-spacing: -1px; text-align: center; margin-bottom: 14px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.section h2 .grad {
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section .sub {
  color: var(--text-muted); text-align: center;
  max-width: 640px; margin: 0 auto 56px;
  font-size: 16px; line-height: 1.6;
}

/* ── Feature grid (centered icons + content) ─────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature {
  position: relative;
  padding: 36px 26px 28px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  background-image: var(--grad-card);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  text-align: center;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--brand-500);
  box-shadow: 0 12px 40px var(--brand-glow);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(167,139,250,.06));
  border: 1px solid rgba(99,102,241,.25);
  color: var(--brand-500);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  transition: all .25s ease;
}
.feature:hover .feature-icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: 0 8px 24px var(--brand-glow);
}
[data-theme='light'] .feature-icon { color: var(--brand-600); }
.feature h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -.3px;
}
.feature p {
  color: var(--text-muted);
  font-size: 14px; line-height: 1.65;
  max-width: 280px; margin: 0 auto;
}

/* ── How it works (icon-card style, centered, clean) ─────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1080px; margin: 0 auto;
}
.how-step {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  background-image: var(--grad-card);
  text-align: center;
  transition: all .25s ease;
}
.how-step:hover {
  transform: translateY(-3px);
  border-color: var(--brand-500);
  box-shadow: 0 12px 36px var(--brand-glow);
}
.how-step .step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--brand-500);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.how-step .step-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(167,139,250,.05));
  border: 1px solid rgba(99,102,241,.22);
  color: var(--brand-500);
  display: grid; place-items: center;
  transition: all .25s ease;
}
.how-step:hover .step-icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  border-color: var(--brand-500);
  transform: scale(1.05);
}
[data-theme='light'] .how-step .step-icon { color: var(--brand-600); }
.how-step h4 {
  font-size: 16px; margin: 0 0 8px;
  font-weight: 700; letter-spacing: -.2px;
}
.how-step p {
  font-size: 13.5px; color: var(--text-muted);
  line-height: 1.6;
}

/* ── Reasons-cards (Why won't traditional SEO...) ── */
.reasons-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; max-width: 1040px; margin: 0 auto;
}
.reason-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  background-image: var(--grad-card);
  position: relative;
  transition: all .2s ease;
}
.reason-card:hover {
  border-color: var(--brand-500);
  box-shadow: 0 8px 28px var(--brand-glow);
}
.reason-card .reason-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px; letter-spacing: 1px;
}
.reason-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.reason-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ── Testimonials ───────────────── */
.testimonials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; max-width: 1080px; margin: 0 auto;
}
.testimonial {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  background-image: var(--grad-card);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.testimonial:hover {
  transform: translateY(-3px);
  border-color: rgba(168,85,247,.4);
}
.testimonial::before {
  content: '"'; position: absolute; top: 14px; right: 22px;
  font-size: 60px; font-weight: 900; line-height: 1;
  color: var(--brand-500); opacity: .15;
  font-family: Georgia, serif;
}
.testimonial-stars {
  display: flex; gap: 2px; color: var(--accent-500);
}
.testimonial-quote {
  flex: 1;
  font-size: 15px; line-height: 1.6; color: var(--text);
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ── Research / data section ─────────────── */
.research-block {
  max-width: 880px; margin: 0 auto; text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(217,70,239,.04)), var(--card);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.research-block::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-mesh);
  pointer-events: none;
}
.research-block > * { position: relative; }
.research-quote {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 600; letter-spacing: -.5px;
  line-height: 1.4; color: var(--text);
  margin-bottom: 16px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.research-quote .hl {
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.research-source {
  font-size: 13px; color: var(--text-muted);
}
.research-source a { color: var(--brand-500); font-weight: 600; }
.research-source a:hover { text-decoration: underline; }

.research-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; max-width: 1040px; margin: 36px auto 0;
}
.research-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  text-align: center;
}
.research-card .num {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.research-card .label {
  font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.5;
}
.research-card .src {
  font-size: 11px; color: var(--text-dim); margin-top: 8px; font-style: italic;
}

/* ── Pricing preview ─────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; max-width: 820px; margin: 0 auto;
}
.plan {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  background-image: var(--grad-card);
  display: flex; flex-direction: column;
  position: relative;
}
.plan.popular {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--brand-500), var(--accent-500)) border-box;
  box-shadow: 0 20px 60px var(--brand-glow);
}
.plan.popular::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; right: 28px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 6px; letter-spacing: 1px;
  box-shadow: 0 4px 16px var(--brand-glow);
}
.plan h3 {
  font-size: 14px; color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.plan-price {
  font-size: 48px; font-weight: 800; letter-spacing: -2px;
  margin: 14px 0 4px; line-height: 1;
}
.plan.popular .plan-price {
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-price .per { font-size: 14px; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.plan-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.55; }
.plan-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-list li { padding: 8px 0 8px 28px; position: relative; font-size: 14px; color: var(--text); line-height: 1.5; }
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}

/* ── Big CTA strip ───────── */
.cta-strip {
  padding: 80px 60px; text-align: center; border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 30% 30%, var(--brand-glow), transparent 60%),
    radial-gradient(50% 50% at 80% 80%, var(--accent-glow), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 25% 30%, var(--brand-400) 50%, transparent 50%),
    radial-gradient(1px 1px at 75% 60%, var(--accent-500) 50%, transparent 50%);
  background-size: 240px 240px, 280px 280px;
  opacity: .25; pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h2 { margin-bottom: 16px; }
.cta-strip p { color: var(--text-muted); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; font-size: 16px; }

/* ── FAQ ───────── */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 0; overflow: hidden;
  background-image: var(--grad-card);
  transition: border-color .2s ease;
}
.faq-item:hover { border-color: rgba(168,85,247,.3); }
.faq-q {
  width: 100%; text-align: left;
  padding: 20px 22px; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; color: var(--text);
}
.faq-q::after {
  content: '+'; font-size: 24px; color: var(--brand-500);
  transition: transform .2s; font-weight: 300;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 22px 20px;
  color: var(--text-muted); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── Section divider ─────────── */
.section-divider {
  height: 1px; max-width: 720px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border-strong) 50%, transparent);
}

/* ── Scroll-reveal animations ─────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}
.reveal[data-delay="1"].in  { transition-delay: .08s; }
.reveal[data-delay="2"].in  { transition-delay: .16s; }
.reveal[data-delay="3"].in  { transition-delay: .24s; }
.reveal[data-delay="4"].in  { transition-delay: .32s; }
.reveal[data-delay="5"].in  { transition-delay: .40s; }
.reveal[data-delay="6"].in  { transition-delay: .48s; }

/* Counter animation for stats */
.stat-num.counted {
  animation: count-pop .6s cubic-bezier(.2,.8,.4,1.3);
}
@keyframes count-pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating hero stars */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Subtle glow pulse for primary CTAs */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(139,92,246,0); }
  50%      { box-shadow: 0 0 32px rgba(139,92,246,.45); }
}
.btn-primary.btn-lg {
  animation: cta-pulse 3.4s ease-in-out infinite;
}

/* Hero badge subtle drift */
.hero-eyebrow {
  animation: float-y 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow, .btn-primary.btn-lg { animation: none; }
  .hero::before { animation: none; }
  .hero h1 .grad { animation: none; }
}
