/* Landing motion — hero, scroll reveal e flutuação */

@keyframes of-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes of-float-tilt-left {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-8px); }
}

@keyframes of-float-tilt-right {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-8px); }
}

@keyframes of-orb-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@keyframes of-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

@keyframes of-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes of-line-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.motion-hero-badge,
.motion-hero-title,
.motion-hero-text,
.motion-hero-actions,
.motion-hero-stats,
.motion-hero-visual {
  opacity: 0;
  animation: of-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-hero-badge { animation-delay: 0.05s; }
.motion-hero-title { animation-delay: 0.15s; }
.motion-hero-text { animation-delay: 0.28s; }
.motion-hero-actions { animation-delay: 0.4s; }
.motion-hero-stats { animation-delay: 0.52s; }
.motion-hero-visual { animation-delay: 0.22s; }

.motion-float {
  animation: of-float 5.5s ease-in-out infinite;
}

.motion-float-tilt-left {
  animation: of-float-tilt-left 6s ease-in-out infinite;
}

.motion-float-tilt-right {
  animation: of-float-tilt-right 6.5s ease-in-out infinite;
}

.motion-orb {
  animation: of-orb-pulse 8s ease-in-out infinite;
}

.motion-orb-delay {
  animation-delay: 2.5s;
}

.bg-grid-motion {
  animation: of-grid-drift 28s linear infinite;
}

.text-gradient-shimmer {
  background-image: linear-gradient(
    120deg,
    var(--indigo-deep) 0%,
    var(--indigo) 35%,
    var(--violet-brand) 50%,
    var(--indigo) 65%,
    var(--indigo-deep) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: of-shimmer 6s linear infinite;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-stagger > .motion-reveal:nth-child(1) { transition-delay: 0ms; }
.motion-stagger > .motion-reveal:nth-child(2) { transition-delay: 90ms; }
.motion-stagger > .motion-reveal:nth-child(3) { transition-delay: 180ms; }
.motion-stagger > .motion-reveal:nth-child(4) { transition-delay: 270ms; }
.motion-stagger > .motion-reveal:nth-child(5) { transition-delay: 360ms; }
.motion-stagger > .motion-reveal:nth-child(6) { transition-delay: 450ms; }

.motion-hero-line {
  opacity: 0;
  animation: of-line-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-hero-line:nth-child(1) { animation-delay: 0.55s; }
.motion-hero-line:nth-child(2) { animation-delay: 0.68s; }
.motion-hero-line:nth-child(3) { animation-delay: 0.81s; }
.motion-hero-line:nth-child(4) { animation-delay: 0.94s; }

#siteHeader {
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

#siteHeader.is-scrolled {
  box-shadow: var(--shadow-soft);
  border-color: oklch(0.92 0.012 258 / 0.9);
  background-color: oklch(0.99 0.005 260 / 0.95);
}

.plan-default,
.plan-highlight {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.group.rounded-2xl.border {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .motion-hero-badge,
  .motion-hero-title,
  .motion-hero-text,
  .motion-hero-actions,
  .motion-hero-stats,
  .motion-hero-visual,
  .motion-hero-line {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .motion-float,
  .motion-float-tilt-left,
  .motion-float-tilt-right,
  .motion-orb,
  .bg-grid-motion,
  .text-gradient-shimmer {
    animation: none;
  }

  .motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
