/* Hero — the assembling sphere fills the stage; the wordmark rides on top.
   Also owns the capability ticker strip that closes the hero. */

.hero {
  position: relative;
  overflow: clip;
}

.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  opacity: var(--stage-fade, 1);
}

/* Breathing bloom behind the sphere. */
.hero-glow {
  position: absolute;
  left: 50%;
  top: 49%;
  width: calc(var(--hero-sphere) * 1.35);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Radial gradients are already soft — a filter blur here would cost a
     huge GPU layer for no visible gain. */
  background:
    radial-gradient(circle at 42% 36%, rgba(232, 121, 249, 0.12), transparent 55%),
    radial-gradient(circle at 55% 55%, rgba(139, 92, 246, 0.14), transparent 62%),
    radial-gradient(circle at 60% 70%, rgba(49, 46, 129, 0.2), transparent 70%);
  animation: glow-breathe 9s var(--ease-soft) infinite alternate;
}

.hero {
  --hero-sphere: min(132vmin, 1500px);
}

@media (max-width: 720px) {
  .hero {
    --hero-sphere: min(102vmax, 720px);
  }
}

.hero-sphere {
  position: absolute;
  left: 50%;
  top: 49%;
  width: var(--hero-sphere);
  aspect-ratio: 1;
  transform: translate(-50%, calc(-50% + var(--drift-y, 0px)));
  pointer-events: none;
  will-change: transform;
}

.hero-sphere canvas,
.hero-sphere img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-sphere img.fallback {
  object-fit: contain;
  opacity: 0.95;
}

/* Darkens the sphere just enough for the wordmark to own the center. */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46rem 30rem at 50% 52%, rgba(18, 5, 13, 0.68), transparent 68%),
    linear-gradient(180deg, rgba(18, 5, 13, 0.5), transparent 16%, transparent 88%, var(--void) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(4.5rem, 10vh, 6rem) 1.25rem 3rem;
  max-width: 62rem;
  text-shadow: 0 2px 28px rgba(18, 5, 13, 0.7);
}

/* Wordmark — matches the app home screen: bold "Volocity 8", light "Pro". */
.hero-brand {
  margin: 0;
  font-size: clamp(2.9rem, 9.5vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  white-space: nowrap;
}

.hero-pro {
  font-weight: 250;
  letter-spacing: -0.03em;
}

.hero-editions {
  margin: 1.1rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 250;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 4.75rem;
}

.hero-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.75rem;
  color: var(--text-secondary);
  opacity: 0.9;
}

.hero-platforms svg {
  display: block;
  filter: drop-shadow(0 1px 8px rgba(18, 5, 13, 0.6));
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(195, 168, 180, 0.55);
  border-radius: 14px;
  display: block;
}

.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text-secondary);
  animation: scroll-cue 2.4s var(--ease-soft) infinite;
}

.hero-scroll:hover {
  border-color: var(--text);
}
