/* Linear Clone - Animations */

/* Hero entrance animations */
.Hero-module__QQJnga__homepageHero h1,
.Hero-module__QQJnga__homepageHero p,
.Hero-module__QQJnga__homepageHero .Button-module__bZ-sGa__root {
  animation: fadeInUp 0.8s ease-out both;
}

.Hero-module__QQJnga__homepageHero h1 { animation-delay: 0.1s; }
.Hero-module__QQJnga__homepageHero p { animation-delay: 0.25s; }
.Hero-module__QQJnga__homepageHero .Flex-module__A66dmG__root .Button-module__bZ-sGa__root { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero illustration animation */
.HeroIllustration-module__LcHIQG__root {
  animation: heroIllustrationIn 1s ease-out 0.3s both;
}

@keyframes heroIllustrationIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo cloud animation */
[class*="Logos"] {
  animation: fadeIn 0.8s ease-out 0.5s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered animations - opt-in via class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
[class*="Card"],
[class*="Bento"] > div,
[class*="bento"] > div {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

[class*="Card"]:hover,
[class*="Bento"] > div:hover,
[class*="bento"] > div:hover {
  transform: translateY(-4px);
}

/* Button hover effects */
.Button-module__bZ-sGa__root {
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.Button-module__bZ-sGa__root:hover {
  transform: translateY(-2px);
}

/* Link hover - scoped to linear content only */
.linear-content a {
  transition: opacity 0.2s ease-out;
}

.linear-content a:hover {
  opacity: 0.8;
}

/* Smooth scroll - scoped to linear content only */
.linear-content {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
