/* Homepage v2: editorial polish over the existing inline styles.
 * Loaded after the inline <style> block so it wins on specificity.
 * Surgical pass: hero eyebrow + scroll-driven hero image motion,
 * refined section eyebrows, FAQ collapse, scroll-reveal on sections.
 * Does NOT touch CTA copy, hierarchy, or section order. */

/* ---------- Hero eyebrow ---------- */
.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #FF8A73);
  margin-bottom: 1.1rem;
}
.hero .hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Hero h1 italic tweak (preserve existing weight) ---------- */
.hero h1 {
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.025em;
}
.hero h1 .highlight {
  font-style: italic;
}

/* ---------- Hero image: scroll-driven subtle zoom ---------- */
.hero-image-wrapper {
  overflow: hidden;
  border-radius: inherit;
}
.hero-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transform-origin: center;
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .hero-image-wrapper img {
    animation: hero-zoom linear both;
    animation-timeline: scroll();
    animation-range: 0 600px;
  }
}
@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

/* ---------- Section eyebrow utility ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #FF8A73);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---------- Polished section headings ---------- */
.problem-section h2,
.solution-section h2,
.platform-section h2,
.comparison-section h2,
.final-cta-section h2,
.faq-section h2 {
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.018em;
}

/* ---------- Scroll-reveal on section entry ---------- */
@supports (animation-timeline: view()) {
  .problem-section,
  .solution-section,
  .platform-section,
  .comparison-section,
  .final-cta-section,
  .faq-section {
    animation: section-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}
@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- FAQ accordion ---------- */
.faq-list .faq-item {
  cursor: pointer;
  position: relative;
}
.faq-list .faq-item .faq-question {
  position: relative;
  padding-right: 2.5rem;
  cursor: pointer;
}
.faq-list .faq-item .faq-question::after {
  content: '+';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent, #FF8A73);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-list .faq-item.is-open .faq-question::after {
  content: '\2013'; /* en dash */
  font-size: 1.5rem;
}
.faq-list .faq-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  margin: 0;
  transition: grid-template-rows 0.3s ease, margin 0.3s ease;
}
.faq-list .faq-item .faq-answer > * {
  min-height: 0;
}
.faq-list .faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
}

/* Initial state (before JS attaches) keeps content visible to avoid CLS flicker
   while JS settles. JS runs on DOMContentLoaded, hides everything, then
   selectively opens the first item. */
.faq-list.js-ready .faq-item:not(.is-open) .faq-answer {
  grid-template-rows: 0fr;
}

/* ---------- Stats row: tabular-nums ---------- */
.stats-row .stat-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrapper img {
    animation: none !important;
    transform: scale(1.02);
  }
  .problem-section,
  .solution-section,
  .platform-section,
  .comparison-section,
  .final-cta-section,
  .faq-section {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .faq-list .faq-item .faq-answer {
    transition: none;
  }
}
