/* ============================================================
   SIMSURVEYS HOMEPAGE SECTIONS
   ============================================================ */

/* ── HERO ── */
.hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  text-align: center;
  background: var(--white);
}

.hero__kicker {
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── STATS BAR ── */
.stats-bar {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* ── PROVEN RESULTS / SOCIAL PROOF ── */
.proven-results {
  padding: 100px 0;
  background: var(--white);
}

.proven-results__header {
  text-align: center;
  margin-bottom: 56px;
}

.proven-results__header .section-desc {
  margin: 12px auto 0;
}

.proven-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proof-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.proof-card__domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.proof-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 8px;
}

.proof-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 20px;
}

.proof-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}

.proof-card__badge svg {
  flex-shrink: 0;
}

.proof-card__link {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.proof-card__link:hover {
  gap: 10px;
  text-decoration: none;
}

.proven-results__footer {
  text-align: center;
  margin-top: 40px;
}

/* ── PRODUCTS TRIPTYCH ── */
.products {
  padding: 100px 0;
  background: var(--off-white);
}

.products__header {
  text-align: center;
  margin-bottom: 56px;
}

.products__header .section-desc {
  margin: 12px auto 0;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  --card-accent: var(--accent);
}

.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.product-card__icon--platform {
  background: rgba(var(--platform-blue-rgb), 0.08);
  color: var(--platform-blue);
}

.product-card__icon--oracle {
  background: rgba(var(--oracle-amber-rgb), 0.08);
  color: var(--oracle-amber);
}

.product-card__icon--voices {
  background: rgba(var(--voices-teal-rgb), 0.08);
  color: var(--voices-teal);
}

.product-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--ink);
  margin-bottom: 4px;
}

.product-card__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--card-accent);
  margin-bottom: 16px;
}

.product-card__desc {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 24px;
}

.product-card__link {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--card-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.product-card__link:hover {
  gap: 10px;
  text-decoration: none;
}

/* ── PRODUCT SHOWCASE (TABBED) ── */
.product-showcase {
  margin-top: 64px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.product-showcase__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.product-showcase__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-showcase__tab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.product-showcase__tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.product-showcase__tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-showcase__panel {
  display: none;
}

.product-showcase__panel.active {
  display: block;
  animation: showcaseFadeIn 0.35s ease;
}

@keyframes showcaseFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-showcase__visual {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.product-showcase__visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--showcase-accent, var(--accent));
}

.product-showcase__code {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #94a3b8;
  white-space: pre;
  margin: 0;
}

.product-showcase__code .comment { color: #8b9bb5; font-style: italic; }
.product-showcase__code .key { color: #a78bfa; }
.product-showcase__code .string { color: #86efac; }
.product-showcase__code .number { color: #fbbf24; }
.product-showcase__code .brace { color: #e2e8f0; }

/* ── AGENTIC COMMERCE BAND ── */
.agentic {
  padding: 100px 0;
  background: var(--white);
}

.agentic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.agentic__text .eyebrow {
  margin-bottom: 16px;
}

.agentic__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.agentic__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.agentic__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agentic__features li {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.agentic__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oracle-amber);
  flex-shrink: 0;
}

.agentic__code-block {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #94a3b8;
  white-space: pre;
  margin: 0;
}

.agentic__code-block .comment {
  color: #8b9bb5;
  font-style: italic;
}

.agentic__code-block .key {
  color: #a78bfa;
}

.agentic__code-block .string {
  color: #86efac;
}

.agentic__code-block .number {
  color: #fbbf24;
}

.agentic__code-block .brace {
  color: #e2e8f0;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 100px 0;
  background: var(--off-white);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.step {
  text-align: center;
  padding: 0 20px;
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.step__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 8px;
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
}

.step__connector {
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: var(--line-strong);
  font-size: 1.25rem;
}

/* ── RESEARCH CREDIBILITY ── */
.research {
  padding: 100px 0;
  background: var(--white);
}

.research__header {
  text-align: center;
  margin-bottom: 56px;
}

.research__header .section-desc {
  margin: 12px auto 0;
}

.research__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.research-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--accent);
}

.research-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 8px;
}

.research-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.research-card__link {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.research-card__link:hover {
  gap: 10px;
}

.research__patent {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ── USE CASES ── */
.use-cases {
  padding: 80px 0;
  background: var(--off-white);
}

.use-cases__header {
  text-align: center;
  margin-bottom: 40px;
}

.use-cases__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.use-case-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--ink-2);
  font-weight: 500;
  transition: all 0.2s ease;
}

.use-case-pill:hover {
  border-color: var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent);
}

/* ── FINAL CTA ── */
.final-cta {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--accent-bg) 0%, var(--white) 100%);
  text-align: center;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--ink);
  margin-bottom: 16px;
}

.final-cta__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-md);
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.final-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .proven-results__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products__grid,
  .research__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-showcase {
    margin-top: 48px;
  }

  .agentic__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }

  .step {
    text-align: left;
    padding: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
  }

  .step__number {
    margin-bottom: 0;
  }

  .step__connector {
    display: none;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(var(--header-height) + 48px) 0 48px;
  }

  .proven-results,
  .products,
  .agentic,
  .how-it-works,
  .research {
    padding: 64px 0;
  }

  .product-showcase__tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .product-showcase__tab {
    justify-content: center;
  }

  .product-showcase__visual {
    padding: 20px;
  }

  .product-showcase__code {
    padding: 20px;
    font-size: 0.75rem;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .final-cta {
    padding: 80px 0;
  }

  .step {
    grid-template-columns: 1fr;
  }
}
