/* Hero — brand power mark identity */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding:
    calc(var(--navbar-height) + clamp(1.5rem, 4vw, 2.75rem))
    0
    clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.hero__glow--1 {
  top: -12%;
  right: 5%;
  width: min(480px, 52vw);
  height: min(480px, 52vw);
  background: rgba(232, 69, 122, 0.16);
  animation: glow-drift 16s ease-in-out infinite;
}

.hero__glow--2 {
  bottom: 0;
  left: -10%;
  width: min(400px, 48vw);
  height: min(400px, 48vw);
  background: rgba(61, 220, 151, 0.06);
  animation: glow-drift 18s ease-in-out infinite reverse;
}

.hero__glow--3 {
  top: 45%;
  left: 42%;
  width: min(260px, 36vw);
  height: min(260px, 36vw);
  background: rgba(255, 255, 255, 0.03);
  filter: blur(70px);
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(3%, -4%) scale(1.06); opacity: 1; }
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.hero__title {
  margin: 0.65rem 0 0;
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  text-wrap: balance;
}

.hero__title-accent {
  color: var(--color-accent);
}

.hero__subtitle {
  margin-top: 1.15rem;
  max-width: 30rem;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: var(--leading-snug);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
  margin-top: 1.75rem;
}

.hero__open,
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero__trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__open-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45);
  animation: open-pulse 2.2s ease-out infinite;
}

.hero__open.is-closed .hero__open-dot {
  background: var(--color-brand);
  box-shadow: 0 0 0 0 rgba(232, 69, 122, 0.45);
  animation-name: open-pulse-closed;
}

@keyframes open-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

@keyframes open-pulse-closed {
  0% { box-shadow: 0 0 0 0 rgba(232, 69, 122, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(232, 69, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 69, 122, 0); }
}


/* Mascot stage */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.hero__stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  will-change: transform;
  animation: mascot-float 6.5s ease-in-out infinite;
}

.hero__stage > * {
  grid-area: 1 / 1;
}

.hero__stage-glow {
  position: absolute;
  /* Centered on magenta torso, not full SVG (arms widen the artboard) */
  width: 76%;
  height: 76%;
  left: 5%;
  top: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 0, 76, 0.38), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: mascot-glow 5s ease-in-out infinite;
}

/* Ambient rings/sparks — anchored to magenta body */
.hero__ambient {
  position: absolute;
  width: 90%;
  height: 90%;
  left: -2%;
  top: 6%;
  pointer-events: none;
  z-index: 0;
}

.hero__ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 0, 76, 0.42);
  box-shadow: 0 0 18px rgba(229, 0, 76, 0.18);
  animation: ambient-ring 6.5s ease-in-out infinite;
}

.hero__ring--2 {
  inset: 6%;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  animation-duration: 8.5s;
  animation-delay: -2.2s;
}

.hero__ring--3 {
  inset: -8%;
  border-color: rgba(61, 220, 151, 0.28);
  animation-duration: 10s;
  animation-delay: -4s;
}

.hero__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(229, 0, 76, 0.7);
  animation: ambient-spark 4.8s ease-in-out infinite;
}

.hero__spark--1 { top: 12%; left: 18%; animation-delay: 0s; }
.hero__spark--2 { top: 20%; right: 14%; width: 5px; height: 5px; animation-delay: -1.2s; background: #e5004c; }
.hero__spark--3 { bottom: 18%; left: 14%; width: 4px; height: 4px; animation-delay: -2.4s; }
.hero__spark--4 { bottom: 22%; right: 16%; animation-delay: -3.5s; background: rgba(61, 220, 151, 0.85); }

.hero__bubble {
  position: absolute;
  top: 8%;
  right: 20%;
  z-index: 2;
  padding: 0.78rem 1.25rem 0.88rem;
  border-radius: 1.25rem 1.25rem 1.25rem 0.4rem;
  background: #fff;
  color: #111;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(229, 0, 76, 0.14);
  animation: bubble-pop 5.5s ease-in-out infinite;
  transform-origin: 15% 110%;
}

.hero__bubble::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 3px 3px 0 -1px rgba(229, 0, 76, 0.08);
}

.hero__bubble-text {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-mascot);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero__mascot {
  position: relative;
  z-index: 1;
  width: min(82%, 360px);
  height: auto;
  overflow: visible;
}

.hero__mascot-body {
  filter: drop-shadow(0 12px 40px rgba(229, 0, 76, 0.28));
}

.hero__fill-brand {
  fill: #e5004c;
}

.hero__fill-white {
  fill: #fff;
  fill-rule: evenodd;
}

/* Natural blink: quick eyelid close via scaleY (body shows through) */
.hero__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-blink 5.6s linear infinite;
}

.hero__eyes path {
  fill: #fff;
}

/* Left hand (pointing) moves; right hand stays in original pose */
.hero__arm--point {
  transform-box: view-box;
  transform-origin: 42px 48px;
  animation: mascot-wave 2.8s ease-in-out infinite;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes mascot-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Double blink mid-cycle, then a single blink — rest open */
@keyframes mascot-blink {
  0%, 36%, 42%, 48%, 78%, 84%, 100% { transform: scaleY(1); }
  38%, 46% { transform: scaleY(0.06); }
  40%, 44% { transform: scaleY(1); }
  80%, 82% { transform: scaleY(0.06); }
}

@keyframes mascot-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(6deg); }
}

@keyframes ambient-ring {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ambient-spark {
  0%, 100% { transform: translateY(0) scale(0.65); opacity: 0.35; }
  50% { transform: translateY(-12px) scale(1.15); opacity: 1; }
}

@keyframes bubble-pop {
  0%, 8%, 78%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  12% { transform: scale(1.05) translateY(-2px); }
  82% { transform: scale(0.97) translateY(2px); opacity: 0.95; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transform: translateX(-50%);
}

.hero__scroll-hint svg {
  width: 14px;
  height: 14px;
  animation: float-y 2s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .hero__scroll-hint:hover {
    color: var(--color-text-secondary);
  }
}

@media (min-width: 960px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }

  .hero__visual {
    min-height: 480px;
    justify-content: flex-end;
  }

  .hero__stage {
    width: min(100%, 460px);
  }

  .hero__mascot {
    width: min(86%, 400px);
  }

  .hero__scroll-hint {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__stage,
  .hero__stage-glow,
  .hero__eyes,
  .hero__arm--point,
  .hero__ring,
  .hero__spark,
  .hero__bubble,
  .hero__scroll-hint svg,
  .hero__open-dot {
    animation: none;
  }
}
