/* SpaceX-style hero — prepended above the existing nebula experience */

.sx-hero {
  --sx-blue: #0b86ff;
  --sx-blue-bright: #3aa0ff;
  --sx-cyan: #00c8ff;
  --sx-glow: rgba(11, 134, 255, 0.55);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 96px 24px 120px;
  overflow: hidden;
  background: #000;
  text-align: center;
  color: #eaf0ff;
}

.sx-hero__stars,
.sx-hero__glow,
.sx-hero__horizon {
  position: absolute;
  pointer-events: none;
}

.sx-hero__stars,
.sx-hero__glow {
  inset: 0;
}

/* Faint starfield via layered radial dots */
.sx-hero__stars {
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 22% 42%, rgba(255, 255, 255, 0.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 36% 12%, rgba(255, 255, 255, 0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 48% 68%, rgba(255, 255, 255, 0.3) 0, transparent 100%),
    radial-gradient(1px 1px at 61% 28%, rgba(255, 255, 255, 0.5) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 74% 52%, rgba(255, 255, 255, 0.28) 0, transparent 100%),
    radial-gradient(1px 1px at 83% 16%, rgba(255, 255, 255, 0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 91% 72%, rgba(255, 255, 255, 0.32) 0, transparent 100%),
    radial-gradient(1px 1px at 14% 78%, rgba(255, 255, 255, 0.25) 0, transparent 100%),
    radial-gradient(1px 1px at 55% 88%, rgba(255, 255, 255, 0.22) 0, transparent 100%),
    radial-gradient(1px 1px at 29% 58%, rgba(255, 255, 255, 0.38) 0, transparent 100%),
    radial-gradient(1px 1px at 67% 8%, rgba(255, 255, 255, 0.3) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 34%, rgba(255, 255, 255, 0.42) 0, transparent 100%),
    radial-gradient(1px 1px at 78% 84%, rgba(255, 255, 255, 0.2) 0, transparent 100%),
    radial-gradient(1px 1px at 5% 52%, rgba(255, 255, 255, 0.28) 0, transparent 100%);
  opacity: 0.85;
}

.sx-hero__glow {
  z-index: 1;
  background:
    radial-gradient(48% 42% at 50% 42%, rgba(11, 134, 255, 0.18), transparent 70%),
    radial-gradient(30% 28% at 50% 48%, rgba(0, 200, 255, 0.08), transparent 72%);
}

.sx-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
}

.sx-hero__eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7eb6ff;
}

.sx-hero__title {
  margin: 0;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.sx-hero__title-accent {
  display: block;
  background: linear-gradient(
    100deg,
    #dce9ff 0%,
    #7eb6ff 28%,
    var(--sx-blue) 62%,
    #015cff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sx-hero__lede {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  color: #8b9bb8;
}

.sx-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.sx-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.75rem;
  padding: 1.15rem 2.75rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(98deg, #0027f2 0%, #015cff 42%, #00a8ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 8px 28px -4px rgba(0, 39, 242, 0.75),
    0 0 40px 2px rgba(1, 92, 255, 0.65),
    0 0 72px -4px rgba(0, 168, 255, 0.45);
  color: #fff;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.sx-hero__cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 10px 32px -2px rgba(0, 39, 242, 0.85),
    0 0 48px 4px rgba(1, 92, 255, 0.75),
    0 0 84px -2px rgba(0, 168, 255, 0.55);
}

.sx-hero__cta-arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.25s ease;
}

.sx-hero__cta:hover .sx-hero__cta-arrow {
  transform: translateX(3px);
}

.sx-hero__caption {
  margin: 0;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.82rem;
  color: #5c6b85;
}

/* Planet horizon — image asset with center-weighted glow baked in */
.sx-hero__horizon {
  z-index: 2;
  left: 50%;
  bottom: -2%;
  width: min(160vw, 2200px);
  height: auto;
  transform: translateX(-50%);
  line-height: 0;
}

.sx-hero__horizon img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Hide the duplicated headline inside the nebula sticky section */
#nebula .sx-old-headline,
section[data-sx-nebula] .sx-old-headline,
.sx-old-headline {
  display: none !important;
}

/* Fallback if the class mark is lost after hydration */
#nebula
  > .sticky
  > .absolute.inset-0.z-10.flex.items-center.justify-center.px-6.text-center,
section[data-sx-nebula]
  > .sticky
  > .absolute.inset-0.z-10.flex.items-center.justify-center.px-6.text-center {
  display: none !important;
}

@media (max-width: 640px) {
  .sx-hero {
    padding: 88px 20px 100px;
  }

  .sx-hero__horizon {
    width: 210%;
    bottom: -4%;
  }

  .sx-hero__lede {
    max-width: 22rem;
  }
}

@media (max-width: 640px) {
  .sx-hero {
    padding: 88px 20px 100px;
  }

  .sx-hero__horizon {
    width: 210%;
    bottom: -4%;
  }

  .sx-hero__lede {
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-hero__cta,
  .sx-hero__cta-arrow {
    transition: none;
  }
}
