/**
 * ATLAS Scroll Effects Styles
 */

/* 淡入动画 */
.atlas-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.atlas-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shared section reveal used by public pages and product surfaces. */
.atlas-section-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease-out, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.atlas-section-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 延迟动画 */
.atlas-fade-in[data-delay="1"] { transition-delay: 0.1s; }
.atlas-fade-in[data-delay="2"] { transition-delay: 0.2s; }
.atlas-fade-in[data-delay="3"] { transition-delay: 0.3s; }
.atlas-fade-in[data-delay="4"] { transition-delay: 0.4s; }
.atlas-fade-in[data-delay="5"] { transition-delay: 0.5s; }

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atlas-fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

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