/* Home page */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background: var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 78% 28%, rgba(67, 185, 172, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 45% at 12% 70%, rgba(47, 107, 255, 0.06), transparent 65%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .section-label {
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: var(--fs-6xl);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 8.5em;
}

.hero-copy .lead {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
}

.hero-visual .hero-img {
  width: 100%;
  height: 510px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.need-card {
  position: absolute;
  right: -12px;
  bottom: -36px;
  width: 340px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 22px 20px;
}

.need-card h3 {
  font-size: var(--fs-base);
  margin-bottom: 14px;
}

.need-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--color-border-light);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  transition: color var(--transition), transform 0.28s var(--ease-out);
}

.need-list a:first-of-type {
  border-top: none;
}

.need-list a:hover {
  color: var(--color-teal);
  transform: translateX(4px);
}

.need-list .chevron {
  margin-left: auto;
  width: 14px;
  height: 14px;
  opacity: 0.45;
  transition: transform var(--transition), opacity var(--transition);
}

.need-list a:hover .chevron {
  transform: translateX(3px);
  opacity: 0.8;
}

/* Hero entrance (keyframes in motion.css) */
.hero-copy .section-label,
.hero-copy h1,
.hero-copy .lead,
.hero-copy .hero-actions,
.hero-visual .hero-img,
.need-card {
  animation: hero-fade-up var(--dur-enter) var(--ease-out) both;
}

.hero-copy .section-label {
  animation-delay: 0.05s;
}

.hero-copy h1 {
  animation-delay: 0.14s;
}

.hero-copy .lead {
  animation-delay: 0.24s;
}

.hero-copy .hero-actions {
  animation-delay: 0.34s;
}

.hero-visual .hero-img {
  animation-delay: 0.22s;
}

.need-card {
  animation-delay: 0.42s;
}

/* Coverage section */
.section-coverage {
  padding: 100px 0 80px;
  background: var(--color-white);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

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

.coverage-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}

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

.coverage-card .num-badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.coverage-card-body {
  flex: 1;
  min-width: 0;
}

.coverage-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 10px;
}

.coverage-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.coverage-card .text-link .chevron,
.why-card .text-link .chevron {
  transition: transform var(--transition);
}

.coverage-card:hover .text-link .chevron,
.section-coverage .text-link:hover .chevron {
  transform: translateX(3px);
}

.coverage-card.accent-blue .text-link {
  color: var(--color-blue);
}

.coverage-card.accent-orange .text-link {
  color: var(--color-orange-dark);
}

.coverage-card.accent-blue .text-link:hover {
  color: var(--color-blue);
  opacity: 0.85;
}

.coverage-card.accent-orange .text-link:hover {
  color: var(--color-orange);
}

/* Why section */
.section-why {
  padding: 80px 0;
  background: var(--color-bg);
}

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

.why-card {
  padding: 28px 24px;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
}

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

.why-card .eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, var(--color-text-muted));
  margin-bottom: 12px;
}

.why-card .stat {
  font-size: 32px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--accent, var(--color-teal));
}

.why-card .stat-sub {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin-bottom: 12px;
}

.why-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Process */
.section-process {
  padding: 72px 0 96px;
  background: var(--color-white);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out),
    opacity var(--dur-reveal) var(--ease-out);
}

.process-step:hover,
.section-process.reveal.is-inview .process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  transition-delay: 0s;
}

.process-step h3 {
  font-size: var(--fs-md);
  margin-bottom: 4px;
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* Process step stagger on reveal */
.section-process.reveal:not(.is-inview) .process-step {
  opacity: 0;
  transform: translateY(12px);
}

.section-process.reveal.is-inview .process-step {
  opacity: 1;
  transform: translateY(0);
}

.section-process.reveal.is-inview .process-step:nth-child(1) {
  transition-delay: 0.08s;
}

.section-process.reveal.is-inview .process-step:nth-child(2) {
  transition-delay: 0.18s;
}

.section-process.reveal.is-inview .process-step:nth-child(3) {
  transition-delay: 0.28s;
}

@media (max-width: 960px) {
  .hero-grid,
  .process-grid,
  .coverage-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: var(--fs-5xl);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 8.9em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual .hero-img {
    height: 280px;
  }

  .need-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 94%;
    margin-top: -28px;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    /* Avoid fighting centering transform — opacity only */
    animation-name: hero-fade-in;
  }

  .section-coverage,
  .section-why,
  .section-process {
    padding: 56px 0;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .hero-copy .lead {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .section-label,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .hero-actions,
  .hero-visual .hero-img,
  .need-card {
    animation: none;
  }

  .section-process.reveal:not(.is-inview) .process-step,
  .section-process.reveal.is-inview .process-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .coverage-card:hover,
  .why-card:hover,
  .process-step:hover,
  .need-list a:hover {
    transform: none;
  }
}
