.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.landing-hero.hidden {
  display: none;
}

.hero-perspective {
  transition: transform 800ms cubic-bezier(0.6, 0, 0.9, 0.2), opacity 800ms ease;
}

.landing-hero.fly-through-active .hero-perspective {
  transform: scale(50);
  opacity: 0;
}

.hero-logo {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 6.5rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.word-dream {
  display: inline-flex;
  position: relative;
}

.word-dream .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.15em);
  transition: opacity 300ms ease, transform 300ms ease;
  background-image: linear-gradient(90deg, #3b82f6 0%, #22d3ee 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.word-dream .letter.visible {
  opacity: 1;
  transform: translateY(0);
}

.word-dream.typing::after {
  content: '';
  display: inline-block;
  width: 0.06em;
  height: 0.9em;
  margin-left: 0.05em;
  background: #22d3ee;
  vertical-align: baseline;
  animation: landing-cursor-blink 900ms steps(1) infinite;
}

@keyframes landing-cursor-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.word-id {
  display: inline-flex;
  margin-left: 0.15em;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.15);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
}

.word-id.landed {
  opacity: 1;
  transform: scale(1);
}

.landing-explainer {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 600ms ease;
}

.landing-explainer.visible {
  display: flex;
  opacity: 1;
}

.landing-logo {
  display: block;
  width: 140px;
  height: 140px;
  max-width: 100%;
  margin: 0 auto 1.25rem;
}

/* Returning visitors / reduced motion: skip straight to the explainer, no hero, no animation. */
html.no-intro .landing-hero {
  display: none;
}

html.no-intro .landing-explainer {
  display: flex;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .word-dream .letter,
  .word-id,
  .hero-perspective,
  .landing-explainer {
    transition: none !important;
    animation: none !important;
  }
}
