/* Home & global page heroes */
.page-hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(61, 79, 219, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232, 93, 76, 0.12), transparent),
    var(--bg);
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.page-hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.page-hero--kb .page-hero__inner {
  max-width: 52rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Home bento hub */
.home-hub {
  padding: var(--section-pad) 0;
}

.bento--hub {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento--hub {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento-card--large {
    grid-column: span 7;
    padding: 2rem;
  }

  .bento-card--tall {
    grid-column: span 5;
    grid-row: span 2;
  }

  .bento-card--wide {
    grid-column: span 6;
  }
}

.bento-card--large h3 {
  font-size: 1.5rem;
}

.bento-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.home-cta-band {
  margin: var(--section-pad) 0;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: var(--text-inverse);
  text-align: center;
}

.home-cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  opacity: 0.8;
}

.home-info {
  padding-bottom: var(--section-pad);
}

.info-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.kb-index-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 2rem;
}

.kb-block__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kb-block__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.kb-index-blocks {
  padding-bottom: var(--section-pad);
}

.kb-block {
  margin-bottom: 3rem;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 150;
  max-width: calc(100% - 2rem);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sticky-cta .btn {
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .sticky-cta {
    left: 1rem;
    right: 1rem;
  }

  .sticky-cta .btn {
    width: 100%;
  }
}
