/*----------------------------------------*/
/*  Astroshipx hero
/*----------------------------------------*/

.pd-hero {
  position: relative;
  background: var(--tp-background-1);
  overflow: hidden;
}

.pd-hero__slider {
  position: relative;
}

.pd-hero__slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 840px);
  background: var(--tp-background-1);
  overflow: hidden;
}

/* Background photo, slowly pushed in while its slide is on screen. */
.pd-hero__media {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  transform: scale(1.06);
}

.swiper-slide-active .pd-hero__media {
  animation: pdHeroZoom 9s ease-out both;
}

@keyframes pdHeroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* Dark wash so the copy stays readable over any photograph. */
.pd-hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 22, .82);
}

/* Solid accent block anchored behind the headline. */
.pd-hero__glow {
  position: absolute;
  left: -14%;
  top: 6%;
  width: 46rem;
  height: 46rem;
  max-width: 90vw;
  border-radius: 50%;
  background: none;
  pointer-events: none;
}

.pd-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 90px 0;
}

/* ---------- copy ---------- */
.pd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(0, 255, 255, .35);
  border-radius: 999px;
  background: var(--tp-theme-soft);
  color: #ffb59a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pd-hero__eyebrow i {
  color: var(--tp-theme-1);
  font-size: 15px;
}

.pd-hero__title {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(2.5rem, 5.6vw, 5.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.025em;
}

/* Accent word: orange with a hand-drawn style underline. */
.pd-hero__title em {
  position: relative;
  font-style: normal;
  color: var(--tp-theme-1);
  white-space: nowrap;
}

.pd-hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.12em;
  height: .09em;
  border-radius: 999px;
  background: var(--tp-theme-2);
  transform: scaleX(0);
  transform-origin: left;
}

.swiper-slide-active .pd-hero__title em::after {
  animation: pdHeroUnderline .9s cubic-bezier(.22, 1, .36, 1) .95s forwards;
}

@keyframes pdHeroUnderline {
  to { transform: scaleX(1); }
}

.pd-hero__text {
  max-width: 48ch;
  margin: 0 0 36px;
  color: #a5b2c8;
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- slide entrance ---------- */
.pd-hero__slide .pd-hero__eyebrow,
.pd-hero__slide .pd-hero__title,
.pd-hero__slide .pd-hero__text,
.pd-hero__slide .pd-hero__actions {
  opacity: 0;
  transform: translateY(28px);
}

.swiper-slide-active .pd-hero__eyebrow { animation: pdHeroUp .8s cubic-bezier(.22, 1, .36, 1) .15s forwards; }
.swiper-slide-active .pd-hero__title { animation: pdHeroUp .8s cubic-bezier(.22, 1, .36, 1) .3s forwards; }
.swiper-slide-active .pd-hero__text { animation: pdHeroUp .8s cubic-bezier(.22, 1, .36, 1) .45s forwards; }
.swiper-slide-active .pd-hero__actions { animation: pdHeroUp .8s cubic-bezier(.22, 1, .36, 1) .6s forwards; }

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

/* ---------- slide navigation ---------- */
.pd-hero__nav {
  position: absolute;
  right: max(24px, 4vw);
  bottom: 46px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-hero__nav button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, .25);
  border-radius: 50%;
  background: rgba(22, 34, 54, .55);
  backdrop-filter: blur(6px);
  color: #e2e8f0;
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
}

.pd-hero__nav button:hover {
  border-color: transparent;
  background: var(--tp-theme-2);
  color: #fff;
}

/* ---------- tracking bar + stats ---------- */
.pd-hero__bar {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(148, 163, 184, .16);
  background: rgba(12, 18, 32, .92);
  backdrop-filter: blur(10px);
}

.pd-hero__bar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 34px;
  padding: 26px 0;
}

.pd-hero__track {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.pd-hero__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.pd-hero__field i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--tp-theme-1);
  font-size: 16px;
}

.pd-hero__field input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 46px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 6px;
  background: rgba(8, 13, 22, .75);
  color: #f1f5f9;
  font-size: 15px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.pd-hero__field input::placeholder { color: #64748b; }

.pd-hero__field input:focus {
  border-color: var(--tp-theme-1);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, .16);
}

.pd-hero__track .pd-btn {
  padding: 0 30px;
  height: 56px;
  white-space: nowrap;
}

.pd-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-hero__stats li {
  padding-left: 18px;
  border-left: 1px solid rgba(148, 163, 184, .22);
}

.pd-hero__stats strong {
  display: block;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.pd-hero__stats strong span { color: var(--tp-theme-1); }

.pd-hero__stats small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .pd-hero__bar-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 991px) {
  .pd-hero__slide { min-height: 620px; }
  .pd-hero__inner { padding: 70px 0 120px; }
  .pd-hero__media { background-position: center; }
  .pd-hero__nav { bottom: 30px; left: max(20px, 4vw); right: auto; }
}

@media (max-width: 767px) {
  .pd-hero__slide { min-height: 560px; }
  .pd-hero__text { font-size: 15.5px; margin-bottom: 28px; }
  .pd-hero__actions { gap: 10px; }
  .pd-btn { padding: 14px 24px; font-size: 13.5px; }
  .pd-hero__track { flex-direction: column; }
  .pd-hero__track .pd-btn { justify-content: center; padding: 0 24px; }
  .pd-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .pd-hero__stats strong { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-hero__media,
  .swiper-slide-active .pd-hero__media,
  .swiper-slide-active .pd-hero__eyebrow,
  .swiper-slide-active .pd-hero__title,
  .swiper-slide-active .pd-hero__text,
  .swiper-slide-active .pd-hero__actions,
  .swiper-slide-active .pd-hero__title em::after {
    animation: none;
  }

  .pd-hero__slide .pd-hero__eyebrow,
  .pd-hero__slide .pd-hero__title,
  .pd-hero__slide .pd-hero__text,
  .pd-hero__slide .pd-hero__actions {
    opacity: 1;
    transform: none;
  }

  .pd-hero__title em::after { transform: scaleX(1); }
}
