/**
 * Showcase hero - foreground motion styles only.
 * Ambient layers (grid, beams, particles, radial) are untouched.
 */

.landing-hero--showcase .landing-hero__title-main--glow {
  perspective: 900px;
  transform-style: preserve-3d;
}

.landing-hero--showcase .landing-hero__title-main--glow .landing-hero__letter {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
  text-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
  animation: landing-hero-letter-glow 5s ease-in-out infinite;
  animation-delay: calc(var(--letter-i, 0) * 0.04s);
}

@keyframes landing-hero-letter-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.08); }
  50% { text-shadow: 0 0 28px rgba(147, 197, 253, 0.22); }
}

.landing-hero--showcase .landing-hero__parallax-card--back,
.landing-hero--showcase .landing-hero__parallax-card--mid,
.landing-hero--showcase .landing-hero__parallax-card--front {
  pointer-events: auto;
}

.landing-hero--showcase .landing-hero__shot-nav {
  pointer-events: auto;
}

.landing-hero__flip-wrap {
  display: inline-block;
  perspective: 720px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.landing-hero--showcase .landing-hero__flip {
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.landing-hero--showcase .landing-hero__flip.is-exiting {
  filter: blur(5px);
  opacity: 0;
  transform: rotateX(-82deg) translateY(-6px) scale(0.96);
  transition:
    transform 0.38s cubic-bezier(0.55, 0, 0.85, 0.36),
    opacity 0.32s ease,
    filter 0.32s ease;
}

.landing-hero--showcase .landing-hero__flip.is-entering {
  animation: landing-hero-flip-3d 0.58s cubic-bezier(0.22, 1.12, 0.48, 1) forwards;
}

@keyframes landing-hero-flip-3d {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: rotateX(72deg) translateY(10px) scale(0.94);
  }
  55% {
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: rotateX(0deg) translateY(0) scale(1);
  }
}

.landing-hero--showcase .landing-hero__announce {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 14px -8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__announce {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.75);
}

.landing-hero--showcase .landing-hero__announce::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(147, 197, 253, 0.22) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: landing-hero-announce-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes landing-hero-announce-shimmer {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.landing-hero--showcase .landing-hero__announce-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.landing-hero--showcase .landing-hero__announce:hover .landing-hero__announce-arrow {
  transform: translateX(4px);
}

.landing-hero--showcase .landing-hero__metrics li {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  will-change: transform;
}

.landing-hero--showcase .landing-hero__metrics li:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 24px -12px rgba(59, 130, 246, 0.45);
}

.landing-hero--showcase .landing-hero__metrics li:hover strong {
  color: #93c5fd;
}

.landing-hero--showcase [data-magnetic] {
  position: relative;
  will-change: transform;
}

.landing-hero--showcase .landing-hero__btn--primary.landing-hero__btn--glow {
  overflow: hidden;
  isolation: isolate;
}

.landing-hero--showcase .landing-hero__btn--primary.landing-hero__btn--glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  animation: landing-hero-btn-shine 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes landing-hero-btn-shine {
  0%, 68% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

.landing-hero--showcase .landing-hero__btn--secondary:hover {
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.25), 0 12px 28px -14px rgba(59, 130, 246, 0.35);
}

.landing-hero--showcase .landing-hero__parallax-link {
  position: relative;
}

.landing-hero--showcase .landing-hero__parallax-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
  opacity: 0.55;
}

.landing-hero--showcase .landing-hero__parallax-link:hover::after {
  transform: scaleX(1);
}

.landing-hero--showcase .landing-hero__av {
  will-change: transform;
}

.landing-hero--showcase .landing-hero__social--parallax:hover .landing-hero__av {
  box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.45);
}

.landing-hero--showcase .landing-hero__parallax-card--back .landing-hero__float-badge {
  animation: landing-hero-badge-float 4.2s ease-in-out infinite;
}

@keyframes landing-hero-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.landing-hero--showcase .landing-hero__live-dot {
  position: relative;
}

.landing-hero--showcase .landing-hero__live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.55);
  animation: landing-hero-live-ring 2.4s ease-out infinite;
}

@keyframes landing-hero-live-ring {
  0% { transform: scale(0.65); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.landing-hero--showcase .landing-hero__parallax-frame--hero .landing-hero__frame-shine {
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 42%,
    transparent 58%
  );
  transform: translateX(-120%) skewX(-12deg);
  animation: landing-hero-frame-sweep 5.5s ease-in-out infinite;
}

@keyframes landing-hero-frame-sweep {
  0%, 62% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  68% { opacity: 1; }
  100% { transform: translateX(140%) skewX(-12deg); opacity: 0; }
}

.landing-hero--showcase .landing-hero__parallax-card--back .landing-hero__parallax-frame--hero,
.landing-hero--showcase .landing-hero__parallax-card--mid .landing-hero__parallax-frame,
.landing-hero--showcase .landing-hero__parallax-card--front .landing-hero__parallax-frame {
  animation: none;
}

@keyframes landing-hero-ui-float-main {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes landing-hero-ui-float-mid {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes landing-hero-ui-float-front {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.landing-hero--showcase .landing-hero__card-caption {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.landing-hero--showcase .landing-hero__parallax-card--mid:hover .landing-hero__card-caption,
.landing-hero--showcase .landing-hero__parallax-card--front:hover .landing-hero__card-caption {
  transform: translateY(-2px) scale(1.03);
}

.landing-hero--showcase .landing-hero__shot-pill {
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-hero--showcase .landing-hero__shot-pill.is-active {
  font-weight: 600;
}

.landing-hero--showcase .landing-hero__strip-item {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.landing-hero--showcase .landing-hero__strip-item:hover {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 10px 28px -16px rgba(59, 130, 246, 0.4);
}

.landing-hero--showcase .landing-hero__stage-stat:first-child {
  animation: landing-hero-stat-glow 3.5s ease-in-out infinite;
}

@keyframes landing-hero-stat-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2), 0 0 16px -4px rgba(74, 222, 128, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero--showcase .landing-hero__announce::after,
  .landing-hero--showcase .landing-hero__referral-promo::after,
  .landing-hero--showcase .landing-hero__referral-promo-dot,
  .landing-hero--showcase .landing-hero__referral-promo-shine,
  .landing-hero--showcase .landing-hero__copy-glass-sheen,
  .landing-hero--showcase .landing-hero__title-main--glow .landing-hero__letter,
  .landing-hero--showcase .landing-hero__btn--primary.landing-hero__btn--glow::after,
  .landing-hero--showcase .landing-hero__parallax-frame--hero .landing-hero__frame-shine,
  .landing-hero--showcase .landing-hero__float-badge,
  .landing-hero--showcase .landing-hero__parallax-card--back .landing-hero__parallax-frame--hero,
  .landing-hero--showcase .landing-hero__parallax-card--mid .landing-hero__parallax-frame,
  .landing-hero--showcase .landing-hero__parallax-card--front .landing-hero__parallax-frame,
  .landing-hero--showcase .landing-hero__live-dot::after,
  .landing-hero--showcase .landing-hero__stage-stat:first-child {
    animation: none !important;
  }

  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__referral-promo,
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__parallax-copy [data-hero-enter],
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__float-badge,
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__stage-stat,
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__card-caption,
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__shot-nav,
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__strip-item,
  .landing-hero--showcase:not(.landing-hero--motion-ready) .landing-hero__stack-ticker {
    opacity: 1;
  }
}
