.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #060706;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.home-hero--image {
  background-color: #060706;
}

.home-hero--gradient {
  background-image:
    radial-gradient(1300px 580px at 8% 50%, rgba(223, 32, 41, 0.62) 0%, rgba(223, 32, 41, 0) 70%),
    radial-gradient(1100px 560px at 28% 54%, rgba(245, 230, 8, 0.5) 0%, rgba(245, 230, 8, 0) 74%),
    radial-gradient(1100px 600px at 50% 50%, rgba(9, 155, 210, 0.58) 0%, rgba(9, 155, 210, 0) 72%),
    radial-gradient(1040px 560px at 70% 46%, rgba(20, 158, 167, 0.5) 0%, rgba(20, 158, 167, 0) 74%),
    radial-gradient(1040px 600px at 88% 48%, rgba(148, 48, 169, 0.6) 0%, rgba(148, 48, 169, 0) 70%),
    linear-gradient(120deg, #090b0d 0%, #14171c 52%, #090b0d 100%);
}

.home-hero--flow {
  background-image:
    linear-gradient(126deg, rgba(223, 32, 41, 0.72) 6%, rgba(223, 32, 41, 0) 28%),
    linear-gradient(126deg, rgba(245, 230, 8, 0.66) 20%, rgba(245, 230, 8, 0) 39%),
    linear-gradient(126deg, rgba(9, 155, 210, 0.7) 33%, rgba(9, 155, 210, 0) 52%),
    linear-gradient(126deg, rgba(20, 158, 167, 0.68) 46%, rgba(20, 158, 167, 0) 65%),
    linear-gradient(126deg, rgba(148, 48, 169, 0.7) 59%, rgba(148, 48, 169, 0) 78%),
    linear-gradient(126deg, rgba(108, 46, 143, 0.66) 72%, rgba(108, 46, 143, 0) 90%),
    linear-gradient(126deg, #111419 0%, #171c22 42%, #111419 100%);
  background-size: 100% 100%;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 6, 0.18) 0%, rgba(6, 7, 6, 0.42) 100%),
    radial-gradient(1200px 650px at 50% 100%, rgba(6, 7, 6, 0.18) 0%, rgba(6, 7, 6, 0.48) 100%);
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1280px, 94%);
  margin: 0 auto;
  padding: 120px 0 80px;
  text-align: center;
}

.home-hero__eyebrow {
  margin: 0 0 12px;
  color: #f5e608;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0;
  max-width: 24ch;
  color: #f6f5f5;
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 1.05;
  margin-inline: auto;
}

.home-hero__text {
  margin: 24px 0 0;
  max-width: 72ch;
  color: #f6f5f5;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  margin-inline: auto;
}

.home-hero__text--highlight {
  color: #46c7ff;
  font-weight: 600;
}

.hero-wave-line {
  position: relative;
}

.hero-wave-word {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(9px);
  display: inline-block;
}

.hero-wave-space {
  display: inline-block;
  width: 0.3ch;
}

.home-hero.has-wave .home-hero__inner::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  background:
    radial-gradient(42% 55% at 22% 50%, rgba(223, 32, 41, 0.44) 0%, rgba(223, 32, 41, 0) 72%),
    radial-gradient(40% 58% at 40% 52%, rgba(245, 230, 8, 0.38) 0%, rgba(245, 230, 8, 0) 72%),
    radial-gradient(40% 58% at 58% 50%, rgba(9, 155, 210, 0.44) 0%, rgba(9, 155, 210, 0) 72%),
    radial-gradient(40% 58% at 74% 52%, rgba(20, 158, 167, 0.42) 0%, rgba(20, 158, 167, 0) 72%),
    radial-gradient(44% 60% at 90% 48%, rgba(148, 48, 169, 0.46) 0%, rgba(148, 48, 169, 0) 72%);
  filter: blur(18px);
  transform: translateX(-135%);
  will-change: transform, opacity;
}

.home-hero.has-wave.is-wave-visible .home-hero__inner::before {
  animation: hero-wave-patina 1.35s ease-out forwards;
  animation-delay: 0.1s;
}

.home-hero.has-wave.is-wave-visible .hero-wave-word {
  animation: hero-word-appear 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--hero-line-delay, 0s) + 0.25s + (var(--word-index, 0) * 0.06s));
}

.hero-wave-line--1 { --hero-line-delay: 0.1s; }
.hero-wave-line--2 { --hero-line-delay: 0.26s; }
.hero-wave-line--3 { --hero-line-delay: 0.46s; }
.hero-wave-line--4 { --hero-line-delay: 0.64s; }

.home-hero.has-wave .hero-wave-cta {
  opacity: 0;
  transform: translateY(10px);
}

.home-hero.has-wave.is-wave-visible .hero-wave-cta {
  animation: hero-cta-appear 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 1.05s;
}

@keyframes hero-wave-sweep {
  0% {
    transform: translateX(-128%) skewX(-16deg);
    opacity: 0.9;
  }
  100% {
    transform: translateX(128%) skewX(-16deg);
    opacity: 0;
  }
}

@keyframes hero-wave-patina {
  0% {
    transform: translateX(-135%);
    opacity: 0;
  }
  12% {
    opacity: 0.92;
  }
  78% {
    opacity: 0.78;
  }
  100% {
    transform: translateX(135%);
    opacity: 0;
  }
}

@keyframes hero-word-appear {
  from {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-cta-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave-word,
  .home-hero.has-wave .hero-wave-cta {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .home-hero.has-wave .hero-wave-line::after {
    content: none;
    animation: none;
  }

  .home-hero.has-wave .home-hero__inner::before {
    content: none;
    animation: none;
  }
}

.home-hero__cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #c91527 0%, #df2029 55%, #ff3b46 100%);
  color: #f6f5f5;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255, 120, 126, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 63, 76, 0.42),
    0 12px 30px rgba(223, 32, 41, 0.56),
    0 0 28px rgba(255, 46, 68, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
  background: linear-gradient(135deg, #e91b31 0%, #ff2e44 52%, #ff5f66 100%);
  box-shadow:
    0 0 0 3px rgba(255, 74, 90, 0.55),
    0 16px 34px rgba(255, 46, 68, 0.72),
    0 0 42px rgba(255, 46, 68, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.01);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  background: transparent;
}

.site-header__inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
}

.site-header__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header__brand .custom-logo {
  display: block;
  height: auto;
  max-height: 58px;
  width: auto;
  max-width: 220px;
}

.site-header__brand-link {
  color: #f6f5f5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}

.site-header__link {
  position: relative;
  color: #f5e608;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 6px;
}

.site-header__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(245, 230, 8, 0) 0%,
    rgba(245, 230, 8, 0.9) 20%,
    rgba(245, 230, 8, 1) 50%,
    rgba(245, 230, 8, 0.9) 80%,
    rgba(245, 230, 8, 0) 100%
  );
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: #fff36e;
}

.hero-variant-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
}

.hero-variant-switch__btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(246, 245, 245, 0.35);
  border-radius: 999px;
  color: #f6f5f5;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(6, 7, 6, 0.25);
}

.hero-variant-switch__btn:hover,
.hero-variant-switch__btn:focus-visible,
.hero-variant-switch__btn.is-active {
  border-color: rgba(223, 32, 41, 0.95);
  background: rgba(223, 32, 41, 0.22);
}

@media (max-width: 1024px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
  }

  .hero-variant-switch {
    display: none;
  }
}
