/* ==========================================================================
   Hero — headline, floating shapes, chip, CTA, scroll hint.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  gap: 1.6rem;
  overflow: clip;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  will-change: transform;
}

.hero__shape--1 {
  width: 120px;
  height: 120px;
  top: 18%;
  left: 12%;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(124, 92, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: float-1 9s ease-in-out infinite;
}

.hero__shape--2 {
  width: 80px;
  height: 80px;
  top: 65%;
  right: 14%;
  background: linear-gradient(135deg, rgba(255, 92, 241, 0.5), rgba(255, 92, 241, 0));
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: float-2 11s ease-in-out infinite;
}

.hero__shape--3 {
  width: 46px;
  height: 46px;
  top: 30%;
  right: 22%;
  background: linear-gradient(135deg, rgba(92, 225, 255, 0.55), rgba(92, 225, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: float-3 7s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(22px) rotate(-10deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, 16px); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-1);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

/*
  The gradient + clip live on each .word span, NOT on .hero__title itself.
  Chromium fails to paint a `background-clip: text` gradient behind a
  transformed descendant — the transform promotes that child to its own
  compositing layer, and the clip mask doesn't cross the layer boundary,
  so the text silently renders invisible. Since the entrance animation
  (hero-entrance.js) transforms each word individually for the stagger
  effect, the clip has to live on that same transformed element. JS sets
  --title-w/--word-x per word so the shared gradient still reads as one
  continuous sweep across the whole title instead of restarting per word.
*/
.hero__title .word {
  display: inline-block;
  background-image: linear-gradient(135deg, #ffffff 20%, var(--violet-soft) 55%, var(--pink) 85%);
  background-size: var(--title-w, 100%) 100%;
  background-position: var(--word-x, 0) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.hero__subtitle {
  max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-1);
  line-height: 1.6;
}

.hero__cta {
  margin-top: 0.5rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.scroll-hint__wheel {
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-hint__wheel span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--text-1);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(10px); }
}
