/* Standalone Light Rays hero. Imported last to isolate it from legacy hero experiments. */

.hero-rays-screen {
  position: relative;
  min-height: max(100svh, 780px);
  overflow: clip;
  isolation: isolate;
  background: #0b0a11;
}

.hero-rays-screen::after {
  display: none;
}

.hero-light-rays {
  z-index: 0;
  opacity: 0.94;
}

.hero-light-rays[data-fallback="true"] {
  background: radial-gradient(ellipse 52% 78% at 50% -8%, rgba(197, 210, 242, 0.28), transparent 74%);
}

.hero-rays-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 17, 0.46), transparent 23%, transparent 77%, rgba(11, 10, 17, 0.46)),
    linear-gradient(180deg, rgba(11, 10, 17, 0.12) 0%, transparent 24%, rgba(11, 10, 17, 0.06) 55%, rgba(11, 10, 17, 0.76) 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 16px;
  width: 100%;
  min-height: max(100svh, 780px);
  padding: calc(var(--header-height) + 36px) var(--page-pad) 24px;
}

.hero-slider {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(390px, 1fr) auto;
  width: 100%;
}

.hero-slider__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(242, 245, 255, 0.48);
  font-size: 10px;
  font-weight: 630;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-slider__meta p {
  margin: 0;
}

.hero-slider__meta span {
  font-variant-numeric: tabular-nums;
}

.hero-slider__viewport {
  position: relative;
  min-height: 390px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translateY(24px) scale(0.992);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition:
    transform 720ms cubic-bezier(0.2, 0.72, 0.18, 1),
    opacity 520ms ease;
}

.hero-slide.is-active {
  z-index: 1;
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__kicker {
  margin: 0 0 20px;
  color: rgba(240, 244, 255, 0.58);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.hero-slide h1 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(58px, 5.25vw, 102px);
  font-weight: 430;
  line-height: 0.94;
  letter-spacing: -0.062em;
  text-wrap: balance;
  text-shadow: 0 2px 42px rgba(4, 6, 16, 0.5);
}

.hero-slide__lead {
  max-width: 720px;
  margin: 26px auto 0;
  color: rgba(235, 239, 249, 0.67);
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 360;
  line-height: 1.48;
  text-wrap: balance;
}

.hero-slide__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}

.hero-slide__actions .glass-button {
  min-width: 208px;
}

.hero-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 42px;
}

.hero-slider__controls > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-slider__controls > button:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-slider__dots button {
  width: 20px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: width 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.hero-slider__dots button.is-active {
  width: 42px;
  background: rgba(238, 244, 255, 0.86);
  box-shadow: 0 0 16px rgba(179, 205, 255, 0.35);
}

.hero-directions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.hero-directions > button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  align-content: space-between;
  gap: 7px;
  overflow: hidden;
  padding: 16px 44px 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 60%),
    rgba(10, 11, 20, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(130%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.hero-directions > button::before {
  position: absolute;
  top: -60px;
  left: 12%;
  width: 140px;
  height: 90px;
  border-radius: 50%;
  content: "";
  background: rgba(198, 214, 255, 0.12);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-directions > button:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.028) 60%),
    rgba(10, 11, 20, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 54px rgba(0, 0, 0, 0.28);
}

.hero-directions > button:hover::before {
  opacity: 1;
}

.hero-directions span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.12em;
}

.hero-directions strong {
  overflow: hidden;
  font-size: clamp(15px, 1.06vw, 18px);
  font-weight: 510;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-directions small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 370;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-directions svg {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255, 255, 255, 0.42);
  transition: transform 220ms ease, color 220ms ease;
}

.hero-directions > button:hover svg {
  transform: translate(2px, -2px);
  color: #fff;
}

.hero-stage__footer {
  display: flex;
  min-height: 30px;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.hero-stage__footer p,
.hero-stage__footer button {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.hero-stage__footer button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hero-stage__footer button svg {
  transition: transform 180ms ease;
}

.hero-stage__footer button:hover {
  color: rgba(255, 255, 255, 0.76);
}

.hero-stage__footer button:hover svg {
  transform: translateY(3px);
}

.hero-stage__footer .proof-mark {
  width: 24px;
  height: 24px;
}

@media (max-width: 1180px) {
  .hero-rays-screen,
  .hero-stage {
    min-height: max(100svh, 740px);
  }

  .hero-stage {
    padding-top: calc(var(--header-height) + 28px);
  }

  .hero-slider {
    grid-template-rows: auto minmax(350px, 1fr) auto;
  }

  .hero-slider__viewport {
    min-height: 350px;
  }

  .hero-slide h1 {
    max-width: 920px;
    font-size: clamp(52px, 6vw, 76px);
  }

  .hero-directions > button {
    min-height: 104px;
  }

  .hero-directions small {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-rays-screen,
  .hero-stage {
    min-height: 100svh;
  }

  .hero-stage {
    gap: 14px;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 18px;
  }

  .hero-slider {
    grid-template-rows: auto minmax(390px, 1fr) auto;
  }

  .hero-slider__viewport {
    min-height: 390px;
  }

  .hero-directions {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(210px, 36vw));
    width: calc(100% + var(--page-pad));
    margin-right: calc(var(--page-pad) * -1);
    padding: 4px var(--page-pad) 8px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .hero-directions::-webkit-scrollbar {
    display: none;
  }

  .hero-directions > button {
    min-height: 96px;
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .hero-rays-screen {
    min-height: max(100svh, 820px);
  }

  .hero-stage {
    min-height: max(100svh, 820px);
    gap: 10px;
    padding-top: calc(var(--header-height) + 22px);
    padding-bottom: 14px;
  }

  .hero-light-rays {
    opacity: 0.8;
    transform: scaleX(1.4);
    transform-origin: top center;
  }

  .hero-rays-vignette {
    background:
      linear-gradient(90deg, rgba(7, 7, 13, 0.52), transparent 50%, rgba(7, 7, 13, 0.52)),
      linear-gradient(180deg, rgba(7, 7, 13, 0.1), transparent 22%, rgba(7, 7, 13, 0.2) 60%, rgba(7, 7, 13, 0.9) 100%);
  }

  .hero-slider {
    grid-template-rows: auto minmax(410px, 1fr) auto;
  }

  .hero-slider__meta {
    font-size: 8px;
  }

  .hero-slider__viewport {
    min-height: 410px;
  }

  .hero-slide {
    align-items: flex-start;
    text-align: left;
  }

  .hero-slide__kicker {
    margin-bottom: 14px;
    font-size: 8px;
  }

  .hero-slide h1 {
    max-width: 360px;
    font-size: clamp(40px, 11vw, 48px);
    line-height: 0.98;
    text-wrap: balance;
  }

  .hero-slide__lead {
    max-width: 350px;
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.42;
    text-wrap: pretty;
  }

  .hero-slide__actions {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 24px;
  }

  .hero-slide__actions .glass-button {
    min-width: 0;
    min-height: 50px;
    gap: 13px;
    padding-inline: 17px 14px;
    font-size: 13px;
  }

  .hero-slide__actions .text-link {
    font-size: 11px;
  }

  .hero-slider__controls {
    justify-content: flex-start;
  }

  .hero-slider__controls > button {
    width: 36px;
    height: 36px;
  }

  .hero-directions {
    grid-template-columns: repeat(5, minmax(225px, 78vw));
  }

  .hero-directions > button {
    min-height: 92px;
    padding: 14px 42px 14px 15px;
    border-radius: 20px;
  }

  .hero-directions strong {
    font-size: 17px;
  }

  .hero-directions small {
    display: block;
    font-size: 10px;
  }

  .hero-stage__footer {
    justify-content: center;
    font-size: 10px;
  }

  .hero-stage__footer > button {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-slide h1 {
    font-size: 39px;
  }

  .hero-slide__actions {
    gap: 9px;
  }

  .hero-slider__dots button {
    width: 15px;
  }

  .hero-slider__dots button.is-active {
    width: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-directions > button,
  .hero-slider__dots button {
    transition: none;
  }
}
