
#hero {
  position: relative;
  overflow: visible;
  padding: 0 0 1.5rem;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 44rem;
  height: min(88vh, 52rem);
  border-radius: 0 0 2.25rem 2.25rem;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  animation: heroKenBurns 10s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.05) translate(-1%, -1%);
  }
}

.hero-slide.active .hero-slide-img {
  animation-play-state: running;
}

.hero-slide:not(.active) .hero-slide-img {
  animation-play-state: paused;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(245, 201, 79, 0.12),
      transparent 24%
    ),
    radial-gradient(
      circle at 18% 22%,
      rgba(14, 165, 233, 0.14),
      transparent 24%
    ),
    linear-gradient(
      125deg,
      rgba(8, 15, 28, 0.88) 0%,
      rgba(8, 15, 28, 0.5) 45%,
      rgba(8, 15, 28, 0.76) 100%
    );
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 8rem;
}

.hero-content {
  width: min(100%, 52rem);
}

.hero-copy-shell,
.hero-trust-grid .trust-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(3, 8, 20, 0.24);
  backdrop-filter: blur(18px);
}

.hero-copy-shell {
  width: 100%;
  height: 60vh;
  padding: 1.5rem 1.75rem 1.5rem;
  border-radius: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
  backdrop-filter: blur(0px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(9, 19, 35, 0.72), rgba(9, 19, 35, 0.42)),
    rgba(255, 255, 255, 0.04);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(24px);
}

.hero-slide.active .hero-eyebrow {
  animation: heroTextIn 0.7s 0.25s ease-out forwards;
}

.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 0.6rem 0;
  max-width: 11ch;
  opacity: 0;
  transform: translateY(34px);
}

.hero-slide.active .hero-title {
  animation: heroTextIn 0.8s 0.4s ease-out forwards;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  max-width: 40rem;
  opacity: 0;
  transform: translateY(24px);
}

.hero-slide.active .hero-desc {
  animation: heroTextIn 0.7s 0.58s ease-out forwards;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(22px);
}

.hero-slide.active .hero-pills {
  animation: heroTextIn 0.7s 0.74s ease-out forwards;
}

.hero-pills .pill {
  background: rgba(255, 255, 255, 0.11);
  color: #eef6ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  font-size: 0.98rem;
  padding: 0.72rem 1.15rem;
}

.hero-pills .pill.dark {
  background: rgba(255, 255, 255, 0.11);
  color: #eef6ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(22px);
}

.hero-slide.active .hero-actions {
  animation: heroTextIn 0.7s 0.9s ease-out forwards;
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-ghost:hover {
  background: #fff;
  color: #0f2b46;
  border-color: #fff;
}

.hero-nav {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.hero-nav-btn:active {
  transform: scale(0.95);
}

.hero-trust-wrap {
  position: relative;
  z-index: 7;
  margin-top: -5.5rem;
}

.hero-trust-grid {
  gap: 1rem;
  padding: 0 1rem;
}

.hero-trust-grid .trust-card {
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.72),
      rgba(240, 246, 255, 0.58)
    ),
    rgba(255, 255, 255, 0.5);
  border-radius: 1.2rem;
}

.hero-trust-grid .trust-card h3 {
  font-size: 1.55rem;
}

.dark-theme .hero-copy-shell {
  background:
    linear-gradient(145deg, rgba(8, 15, 28, 0.76), rgba(8, 15, 28, 0.52)),
    rgba(255, 255, 255, 0.04);
}

.dark-theme .hero-trust-grid .trust-card {
  background:
    linear-gradient(150deg, rgba(17, 24, 39, 0.8), rgba(11, 18, 33, 0.72)),
    rgba(15, 23, 42, 0.6);
}

@media screen and (max-width: 1050px) {
  .hero-slider {
    min-height: 42rem;
    height: auto;
  }

  .hero-stage {
    padding-top: 2.5rem;
    padding-bottom: 7rem;
  }

  .hero-copy-shell {
    height: 60vh;
    padding: 1.5rem 1.75rem 1.5rem;
  }

  .hero-trust-wrap {
    margin-top: -4.8rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-slider {
    min-height: 46rem;
    border-radius: 0 0 1.8rem 1.8rem;
  }

  .hero-stage {
    padding-top: 1.75rem;
    padding-bottom: 8rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero-copy-shell {
    height: 60vh;
    padding: 1.25rem 1.4rem 1.25rem;
    border-radius: 1.4rem;
  }

  .hero-title {
    max-width: none;
    letter-spacing: -1.6px;
  }

  .hero-desc {
    font-size: 0.96rem;
  }

  .hero-nav {
    right: 1rem;
  }

  .hero-nav-btn {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.75rem;
  }

  .hero-trust-wrap {
    margin-top: -5.4rem;
  }
}

@media screen and (max-width: 635px) {
  .hero-slider {
    min-height: 50rem;
  }

  .hero-stage {
    padding-bottom: 9rem;
  }

  .hero-copy-shell {
    height: auto;
    min-height: 22rem;
  }

  .hero-trust-wrap {
    margin-top: -6.6rem;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
  }
}
