/* ─── ANIMATIONS ─── */

/* Hero fade-in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1    { animation: fadeUp 0.7s ease-out 0.1s both; }
.hero-sub   { animation: fadeUp 0.7s ease-out 0.25s both; }
.hero-cta   { animation: fadeUp 0.7s ease-out 0.4s both; }

/* Scroll-reveal: sections fade up when they enter viewport */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cloud elements — start off-screen, driven by JS scroll */
#cloud1 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -50%;
  transition: left 0.8s ease-out;
}
#cloud2 {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  right: -50%;
  transition: right 0.5s ease-out;
}
#bird1 {
  position: absolute;
  left: -120px;
  top: 15%;
  transition: left 1.5s ease-out, top 1.5s ease-out;
  z-index: 20;
  width: 80px;
}
#bird2 {
  position: absolute;
  left: -110px;
  top: 50%;
  transition: left 1.8s ease-out, top 1.8s ease-out;
  z-index: 19;
  width: 68px;
}

/* Cloud section container */
#cloud-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
}
#cloud-section .inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

/* Feature tabs — active state */
.feature-item {
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
}
.feature-item .feature-num { transition: color 0.2s; }
.feature-item .feature-text h3 { transition: color 0.2s; }
.feature-item .feature-text p  { transition: color 0.2s; }
.feature-item.active .feature-num { color: var(--accent) !important; }
.feature-item.active .feature-text h3 { color: var(--fg) !important; }
.feature-item:not(.active) .feature-num { color: var(--fg-light) !important; }
.feature-item:not(.active) .feature-text h3 { color: var(--fg-muted) !important; }

/* Mockup GIF area */
.mockup-gif-area {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
}
.mockup-gif-area .gif-panel {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mockup-gif-area .gif-panel.active {
  display: block;
  opacity: 1;
}

/* Play button hover */
.play-btn { transition: transform 0.2s ease; }
.play-btn:hover { transform: scale(1.1); }

/* Footer banner (replaced parallax) */

/* SVG illustrations */
.scene-wrapper {
  width: 100%;
  padding: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  .features-inner,
  .ai-feature-grid,
  .skills-inner,
  .agents-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-content { text-align: center; align-items: center; }

  footer { grid-template-columns: 1fr 1fr; gap: 32px; }

  .mockup-sidebar { width: 120px; }
}
