:root {
  --hero-pop-duration: 0.45s;
  --hero-shrink-duration: 0.8s;
  --hero-fade-duration: 0.6s;
  --hero-highlight: #30d158;
  --hero-surface: #f5f7fb;
  --hero-text-dark: #0f172a;
  --hero-text-muted: #475569;
}

header,
main,
footer {
  transition: opacity var(--hero-fade-duration) ease;
}

body.hero-intro-active {
  overflow: hidden;
}

body.hero-intro-prep header,
body.hero-intro-prep main,
body.hero-intro-prep footer {
  opacity: 0;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--hero-fade-duration) ease, background var(--hero-shrink-duration) ease;
}

.hero-overlay.is-compact {
  background: rgba(255, 255, 255, 0.92);
}

.hero-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: min(92vw, 1120px);
}

.hero-media {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(92vw, 1290px);
  transition:
    transform var(--hero-shrink-duration) cubic-bezier(0.4, 0, 0.2, 1),
    width var(--hero-shrink-duration) cubic-bezier(0.4, 0, 0.2, 1),
    gap var(--hero-shrink-duration) cubic-bezier(0.4, 0, 0.2, 1),
    opacity var(--hero-pop-duration) ease;
  will-change: transform, width, opacity;
}

.hero-media--intro {
  opacity: 0;
  transform: scale(0.94);
}

.hero-overlay.is-active .hero-media--intro {
  animation: heroIntroPop var(--hero-pop-duration) ease forwards;
}

.hero-overlay.is-compact .hero-media--intro {
  width: min(80vw, 900px);
  transform: scale(0.82);
}

.hero-media--docked {

  opacity: 1;
  transform: none;
  margin-inline: auto;
}

.hero-media--docked .hero-card {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.hero-card {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: clamp(220px, 35vw, 420px);
}

.hero-card video,
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card__label {
  position: absolute;
  top: clamp(1.25rem, 3vw, 1.75rem);
  left: clamp(1.25rem, 3vw, 1.75rem);
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;

  text-align: left;
}

.hero {
  position: relative;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background: var(--hero-surface);
}

.hero__container {
  width: min(94vw, 1290px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 6vw, 2rem);
  color: var(--hero-text-dark);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 760px;
}

.hero__pretitle {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hero-text-muted);
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2.2rem, 7vw, 2.4rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero__highlight {
  color: var(--hero-highlight);
}

.hero__description {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--hero-text-muted);
  margin-inline: auto;
  max-width: 640px;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cta .btn-primary {
  padding-inline: 1.75rem;
}

.hero__media-target {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__badge {
  background: #1a1a1c;
  color: #ffffff;
  width: 100%;
  padding: 29px;
  border-radius: 25px;
  font-size: 27px;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.hero__subtext {
  font-size: 19px;
  color: #afafaf;
  margin-bottom: 40px;
}

.hero-content {
  opacity: 0;
  transform: translateY(24px);
  animation: heroContentReveal var(--hero-fade-duration) ease forwards;
  animation-delay: 0.1s;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroContentReveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  width: min(94vw, 900px);
}

.hero__brands img {
  width: 100%;
  max-width: 140px;
  margin-inline: auto;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.hero__brands img:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .hero__media-target {
    width: 100%;
    padding: 0 1rem;
  }

  .hero-media {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-media--intro {
    transform: scale(0.98);
  }

  .hero-overlay.is-compact .hero-media--intro {
    width: min(82vw, 500px);
    transform: scale(0.96);
  }

  .hero-media--docked {
    width: 100%;
    max-width: 100%;
  }

  .hero-card {
    flex: none;
    min-width: 100%;
    width: 100%;
    max-width: 100%;
  }
}

@keyframes heroIntroPop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  60% {
    opacity: 1;
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
