/* OpenClawInstall.AI Animations */

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulse animation for CTAs */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(255,42,70,.28); }
  50% { transform: scale(1.02); box-shadow: 0 15px 35px rgba(255,42,70,.4); }
}

/* Glow animation */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,42,70,0.3); }
  50% { box-shadow: 0 0 40px rgba(255,42,70,0.6); }
}

/* Slide in from left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slide in from right */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Shimmer effect for loading/skeletons */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Count up animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apply animations to elements */
.hero .eyebrow {
  animation: fadeIn 0.6s ease-out;
}

.hero h1 {
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.hero p {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero img {
  animation: fadeIn 0.8s ease-out 0.3s both, float 6s ease-in-out 1s infinite;
}

.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Feature cards stagger animation */
.feature:nth-child(1) { animation: fadeIn 0.6s ease-out 0.1s both; }
.feature:nth-child(2) { animation: fadeIn 0.6s ease-out 0.2s both; }
.feature:nth-child(3) { animation: fadeIn 0.6s ease-out 0.3s both; }

/* Flow cards animation */
.flow-card {
  animation: fadeIn 0.5s ease-out;
}

/* Choice button hover glow */
.choice:hover {
  animation: glow 1.5s ease-in-out infinite;
}

/* Urgency box pulse */
.urgency-box {
  animation: fadeIn 0.5s ease-out;
}

.urgency-count {
  animation: pulse 2s ease-in-out infinite;
}

/* Newsletter card entrance */
.newsletter-card {
  animation: fadeIn 0.6s ease-out;
}

/* Card hover lift */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Navigation link hover underline */
.navlinks a {
  position: relative;
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navlinks a:hover::after {
  transform: scaleX(1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 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;
  }
}