/* ═══════════════════════════════════════════════════════════
   LAYOUT — header + hero spacing (loads last, wins all fights)
   Sticky header = no padding-top gap on main
   ═══════════════════════════════════════════════════════════ */

main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-block: 0.65rem !important;
  z-index: 1000 !important;
}

.mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999 !important;
  pointer-events: none;
}

.mobile-menu.open {
  pointer-events: auto !important;
}

/* Heroes: compact on inner pages only */
.page-hero,
body.page-inner .page-hero {
  display: block !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.75rem 0 1.25rem !important;
  align-items: unset !important;
  justify-content: unset !important;
  flex: none !important;
}

.page-hero-content {
  position: relative !important;
  z-index: 2 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.page-hero .eyebrow {
  margin-top: 0 !important;
  margin-bottom: 0.6rem !important;
}

.page-hero h1 {
  margin-top: 0 !important;
  margin-bottom: 0.65rem !important;
}

.page-hero .hero-actions {
  margin-top: 0.85rem !important;
}

.page-hero-content::after {
  display: none !important;
}

/* ═══ HOMEPAGE HERO — spacious + 3D backdrop ═══ */
.page-home .hero {
  display: flex !important;
  align-items: center !important;
  min-height: clamp(540px, 80vh, 760px) !important;
  height: auto !important;
  margin: 0 !important;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem) !important;
  overflow: hidden !important;
}

.page-home .hero-content {
  position: relative !important;
  z-index: 3 !important;
  width: 100%;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  max-width: 46rem;
}

.page-home .hero-content .eyebrow {
  margin-top: 0 !important;
  margin-bottom: 1.35rem !important;
}

.page-home .hero-content h1 {
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
  font-size: clamp(2.35rem, 5.8vw, 4rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em !important;
}

.page-home .hero-content .lead {
  margin-bottom: 0 !important;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem) !important;
  line-height: 1.8 !important;
}

.page-home .hero-actions {
  margin-top: 2.25rem !important;
  gap: 1rem 1.25rem !important;
}

.page-home .hero-trust {
  margin-top: 2.5rem !important;
  padding-top: 1.75rem !important;
  gap: 1rem 2rem !important;
}

.page-home .hero-content h1 .line-inner {
  transform: none !important;
  opacity: 1 !important;
}

/* Video / overlay / particles */
.page-home .hero-overlay {
  background:
    linear-gradient(105deg, rgba(4, 8, 14, 0.92) 0%, rgba(4, 8, 14, 0.78) 38%, rgba(4, 8, 14, 0.35) 62%, rgba(4, 8, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.5) 0%, rgba(4, 8, 14, 0.85) 100%) !important;
}

.page-home .hero-particles {
  opacity: 0.5 !important;
}

/* 3D neural orb + orbit rings */
.page-home .hero-backdrop .hero-3d-wrap,
.page-home .hero-3d-wrap {
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  right: -2% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: min(50vw, 580px) !important;
  height: min(50vw, 580px) !important;
  opacity: 0.72 !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.page-home .hero-orbit-ring {
  display: block !important;
  border-color: rgba(61, 184, 191, 0.28) !important;
}

.page-home .hero-orbit-ring--2 {
  border-color: rgba(201, 169, 98, 0.22) !important;
}

.page-home .hero-orbs {
  display: block !important;
  z-index: 1 !important;
}

.page-home .hero-orbs .hero-orb--teal {
  opacity: 0.35 !important;
}

.page-home .hero-orbs .hero-orb--gold {
  opacity: 0.28 !important;
}

.page-home .hero-orbs .hero-orb--purple {
  opacity: 0.22 !important;
}

@media (max-width: 1023px) {
  .page-home .hero {
    min-height: clamp(500px, 88vh, 680px) !important;
    align-items: flex-start !important;
    padding: 2rem 0 2.75rem !important;
  }

  .page-home .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-home .hero-content .lead {
    margin-inline: auto;
  }

  .page-home .hero-actions,
  .page-home .hero-trust {
    justify-content: center;
  }

  .page-home .hero-backdrop .hero-3d-wrap,
  .page-home .hero-3d-wrap {
    top: auto !important;
    bottom: 0 !important;
    right: -12% !important;
    transform: none !important;
    width: min(72vw, 420px) !important;
    height: min(58vw, 340px) !important;
    opacity: 0.55 !important;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 0.5rem 0 1rem !important;
  }

  .page-home .hero {
    min-height: clamp(520px, 90vh, 700px) !important;
    padding: 1.75rem 0 2.5rem !important;
  }

  .page-home .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.65rem) !important;
  }

  .page-home .hero-actions {
    margin-top: 1.75rem !important;
  }

  .page-home .hero-trust {
    margin-top: 2rem !important;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-content {
    text-align: left;
  }

  .page-home .hero-actions,
  .page-home .hero-trust {
    justify-content: flex-start;
  }
}
