/* Hero section — blends into section 2 (bg-promo-gradient) */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin-bottom: -140px;
  padding-bottom: 140px;
  z-index: 2;
  background: transparent;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -140px;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

/* Soft bottom blend — matches promo gradient (#0a1a3a → #0f1f4d), no hard line */
.hero-bg-layer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75%;
  min-height: 280px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 26, 58, 0.12) 20%,
    rgba(10, 26, 58, 0.4) 40%,
    rgba(15, 31, 77, 0.72) 58%,
    rgba(15, 31, 77, 0.88) 72%,
    rgba(15, 31, 77, 0.55) 88%,
    transparent 100%
  );
}

/* Section 2 — overlap hero fade zone for seamless mix */
.hero-section + section {
  position: relative;
  z-index: 5;
  margin-top: 0 !important;
  background: transparent !important;
}

/* Soften decorative blur orb at page bottom near hero seam */
.bg-promo-gradient > div[aria-hidden="true"] > div.absolute.bottom-0 {
  opacity: 0.35;
}

/* Image — semi-transparent, fades out at bottom */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.42;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 45%,
      rgba(0, 0, 0, 0.5) 75%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 22%,
      rgba(0, 0, 0, 0.85) 50%,
      rgba(0, 0, 0, 1) 100%
    );
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 45%,
      rgba(0, 0, 0, 0.5) 75%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 22%,
      rgba(0, 0, 0, 0.85) 50%,
      rgba(0, 0, 0, 1) 100%
    );
  mask-composite: intersect;
}

/* Overlay — readable text, soft bottom fade */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -140px;
  background:
    linear-gradient(
      90deg,
      rgba(10, 26, 58, 0.88) 0%,
      rgba(10, 26, 58, 0.72) 35%,
      rgba(10, 26, 58, 0.35) 55%,
      rgba(10, 26, 58, 0.12) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 26, 58, 0.2) 0%,
      transparent 28%,
      rgba(10, 26, 58, 0.35) 50%,
      rgba(15, 31, 77, 0.7) 70%,
      rgba(15, 31, 77, 0.45) 88%,
      transparent 100%
    );
  pointer-events: none;
}

.hero-section nav {
  position: relative;
  z-index: 20;
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content-inner {
  position: relative;
  max-width: 52rem;
}

.hero-animate-left > * {
  animation: heroFadeUp 0.75s ease-out both;
}

.hero-animate-left > *:nth-child(1) { animation-delay: 0.15s; }
.hero-animate-left > *:nth-child(2) { animation-delay: 0.25s; }
.hero-animate-left > *:nth-child(3) { animation-delay: 0.35s; }
.hero-animate-left > *:nth-child(4) { animation-delay: 0.45s; }
.hero-animate-left > *:nth-child(5) { animation-delay: 0.55s; }
.hero-animate-left > *:nth-child(6) { animation-delay: 0.65s; }

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content-inner .glass-card {
  background-color: rgba(10, 26, 58, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-content-inner .glass-card:hover {
  background-color: rgba(10, 26, 58, 0.88) !important;
  border-color: rgba(191, 10, 48, 0.4) !important;
}

.hero-content-inner .badge-pill {
  background-color: rgba(191, 10, 48, 0.28) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-content-inner h1 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65);
}

.hero-content-inner p {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

.hero-content-inner > .grid {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 1023px) {
  .hero-bg-image {
    object-position: center 40%;
    opacity: 0.38;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.9) 45%,
      rgba(0, 0, 0, 1) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.9) 45%,
      rgba(0, 0, 0, 1) 100%
    );
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(10, 26, 58, 0.7) 0%,
        rgba(10, 26, 58, 0.4) 35%,
        rgba(15, 31, 77, 0.65) 65%,
        transparent 100%
      );
  }

  .hero-section {
    margin-bottom: -100px;
    padding-bottom: 100px;
  }

  .hero-bg-layer {
    bottom: -100px;
  }

  .hero-bg-layer::after {
    height: 80%;
    min-height: 220px;
  }

  .hero-content-inner {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-bg-image {
    object-position: center 35%;
    opacity: 0.35;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(10, 26, 58, 0.65) 0%,
        rgba(10, 26, 58, 0.35) 30%,
        rgba(15, 31, 77, 0.7) 70%,
        transparent 100%
      );
  }

  .hero-section {
    margin-bottom: -80px;
    padding-bottom: 80px;
  }

  .hero-bg-layer {
    bottom: -80px;
  }

  .hero-bg-layer::after {
    height: 85%;
    min-height: 180px;
  }
}

@media (min-width: 1024px) {
  .hero-content-inner .glass-card {
    text-align: left;
  }

  .hero-bg-image {
    object-position: 68% center;
  }
}

@media (min-width: 1600px) {
  .hero-bg-image {
    object-position: 70% center;
  }
}
