/* Premium hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  overflow: visible;
  padding-top: 0;
  background: #062249;
  color: white;
  isolation: isolate;
}

.hero-background-picture,
.hero-background,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background-picture {
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-background {
  z-index: auto;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.98;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, opacity;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 34, 73, 0.92) 0%, rgba(6, 34, 73, 0.74) 42%, rgba(6, 34, 73, 0.28) 100%),
    linear-gradient(180deg, rgba(3, 12, 28, 0.24) 0%, rgba(3, 12, 28, 0.86) 100%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: clamp(36px, 5vw, 80px);
  padding-top: clamp(96px, 10vw, 164px);
  padding-bottom: clamp(52px, 7vw, 96px);
}

.hero-copy {
  position: relative;
  max-width: 740px;
}

.hero-title {
  position: relative;
  z-index: 2;
  margin-top: 0;
  color: white;
  font-size: clamp(3.1rem, 5.6vw, 5.9rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-line {
  display: block;
}

.hero-gradient {
  background: linear-gradient(100deg, #B9D9FF 0%, #4F91FF 38%, #0E4FFF 74%, #8FC2FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-actions {
  position: relative;
  z-index: 4;
  display: flex;
  visibility: visible;
  opacity: 1;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}

.hero .btn {
  display: inline-flex;
  visibility: visible;
  opacity: 1;
  min-height: 54px;
  border-radius: 8px;
  padding-inline: 24px;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, box-shadow;
}

.hero .btn:hover {
  transform: translate3d(0, -2px, 0) scale(1.035);
}

.hero-primary {
  border-color: rgba(14, 79, 255, 0.95);
  background: linear-gradient(135deg, #0E4FFF 0%, #062249 100%);
  box-shadow: 0 18px 44px rgba(14, 79, 255, 0.34);
}

.hero-primary:hover {
  box-shadow: 0 24px 58px rgba(14, 79, 255, 0.44);
}

.hero-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.hero-secondary:hover {
  border-color: rgba(143, 194, 255, 0.56);
  background: rgba(255, 255, 255, 0.13);
  color: white;
  box-shadow: 0 24px 58px rgba(6, 34, 73, 0.24);
}

.hero-visual {
  position: relative;
  z-index: 9;
  min-height: clamp(520px, 55vw, 780px);
  perspective: 1200px;
  pointer-events: none;
  transform-style: preserve-3d;
}

.hero-astronaut-layer {
  position: absolute;
  max-width: none;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.hero-astronaut {
  display: block;
  width: 100%;
  max-width: none;
  user-select: none;
  will-change: transform, opacity;
}

.hero-astronaut-flight {
  display: block;
  width: 100%;
  transform-origin: 54% 48%;
  will-change: transform, opacity;
}

.hero-astronaut-picture {
  display: block;
  width: 100%;
  max-width: none;
  line-height: 0;
}

.hero-astronaut-layer {
  top: 38%;
  right: -18%;
  z-index: 1;
  width: clamp(720px, 62vw, 1040px);
  transform: translate3d(0, -50%, 0);
}

.hero-astronaut {
  filter: drop-shadow(0 36px 76px rgba(6, 34, 73, 0.46));
  transform: translate3d(0, 0, 0) rotate(2deg);
  transform-origin: 54% 48%;
}

@media (min-width: 1024px) {
  .hero {
    z-index: 2;
    min-height: 100svh;
    overflow: visible;
    isolation: isolate;
  }

  .hero-background-picture {
    z-index: -2;
  }

  .hero-overlay {
    z-index: -1;
  }

  .hero-shell {
    z-index: 1;
    min-height: 100svh;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: start;
    gap: clamp(36px, 5vw, 80px);
    padding-top: clamp(96px, 10vw, 164px);
    padding-bottom: clamp(52px, 7vw, 96px);
    text-align: left;
  }

  .hero-copy {
    max-width: 740px;
    margin-inline: 0;
  }

  .hero-title {
    font-size: clamp(3.1rem, 5.6vw, 5.9rem);
    line-height: 0.94;
  }

  .hero-actions {
    width: auto;
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .hero .btn {
    width: auto;
    max-width: none;
  }

  .hero-visual {
    z-index: 9;
    min-height: clamp(520px, 55vw, 780px);
    margin-top: 0;
  }

  .hero-astronaut-layer {
    top: 38%;
    right: -18%;
    z-index: 1;
    width: clamp(720px, 62vw, 1040px);
    transform: translate3d(0, -50%, 0);
  }
}

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 104px;
    text-align: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(2.8rem, 8vw, 4.8rem);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-astronaut-layer {
    top: 40%;
    right: 50%;
    width: min(900px, 122vw);
    transform: translate3d(58%, -50%, 0);
  }
}

@media (max-width: 640px) {
  .hero {
    z-index: auto;
    isolation: auto;
    overflow: clip;
  }

  .hero-background-picture {
    z-index: 0;
  }

  .hero-overlay {
    z-index: 1;
  }

  .hero-shell {
    z-index: auto;
  }

  .hero-copy {
    z-index: 10;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
    line-height: 1;
  }

  .hero-shell {
    gap: 44px;
    padding-top: 88px;
    padding-bottom: 42px;
  }

  .hero-actions {
    width: 100%;
    margin-bottom: 18px;
  }

  .hero .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-visual {
    z-index: 80;
    min-height: 390px;
    margin-top: -4px;
  }

  .hero-astronaut-layer {
    top: 57%;
    z-index: 80;
    width: min(590px, 144vw);
    transform: translate3d(54%, -50%, 0);
  }
}
