/* ===== SyncList Animations — animations.css ===== */

/* --- Scroll Fade-In --- */
.anim-fade-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-fade-up.visible {
      opacity: 1;
      transform: translateY(0);
}

/* --- Pulse Dot (Hero Badge) --- */
@keyframes pulse-dot {

      0%,
      100% {
            opacity: 1;
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
      }

      50% {
            opacity: 0.8;
            box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
      }
}

/* --- Floating Orbs --- */
@keyframes float-orb {

      0%,
      100% {
            transform: translate(0, 0) scale(1);
      }

      33% {
            transform: translate(30px, -20px) scale(1.05);
      }

      66% {
            transform: translate(-15px, 15px) scale(0.97);
      }
}

.hero-orb-1 {
      animation: float-orb 15s ease-in-out infinite;
}

.hero-orb-2 {
      animation: float-orb 20s ease-in-out infinite reverse;
}

.cta-orb-1 {
      animation: float-orb 18s ease-in-out infinite;
}

.cta-orb-2 {
      animation: float-orb 22s ease-in-out infinite reverse;
}

/* --- Gradient Shimmer --- */
@keyframes gradient-shift {
      0% {
            background-position: 0% 50%;
      }

      50% {
            background-position: 100% 50%;
      }

      100% {
            background-position: 0% 50%;
      }
}

.gradient-text {
      background-size: 200% auto;
      animation: gradient-shift 4s ease-in-out infinite;
}

/* --- Card Hover Glow --- */
.mp-card:hover,
.feature-card:hover,
.cs-card:hover {
      box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(99, 102, 241, 0.08);
}

/* --- Button Shine Effect --- */
.btn-primary::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg,
                  transparent 40%,
                  rgba(255, 255, 255, 0.1) 50%,
                  transparent 60%);
      transform: translateX(-100%);
      transition: none;
}

.btn-primary {
      position: relative;
      overflow: hidden;
}

.btn-primary:hover::after {
      transform: translateX(100%);
      transition: transform 0.6s ease;
}

/* --- Counter Number Animation --- */
@keyframes count-up {
      from {
            opacity: 0;
            transform: translateY(10px);
      }

      to {
            opacity: 1;
            transform: translateY(0);
      }
}

.stat-item.visible .stat-number,
.stat-item.visible .stat-suffix {
      animation: count-up 0.5s ease-out forwards;
}

/* --- Step Card Connector Line --- */
@keyframes line-draw {
      from {
            width: 0;
      }

      to {
            width: 100%;
      }
}

/* --- Navbar Transition --- */
.navbar {
      transition: background 0.4s ease, padding 0.3s ease, border-color 0.3s ease;
}

/* --- Hamburger Animation --- */
.hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
      opacity: 0;
}

.hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
}

/* --- FAQ Smooth Expand --- */
.faq-answer {
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
}

.faq-item:not(.active) .faq-answer {
      opacity: 0;
}

.faq-item.active .faq-answer {
      opacity: 1;
}

/* --- Marketplace Icon Pulse on Hover --- */
.mp-icon {
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.3s ease;
}

.mp-card:hover .mp-icon {
      transform: scale(1.1);
      box-shadow: 0 0 24px var(--mp-color, rgba(99, 102, 241, 0.4));
}

/* --- Pricing Card Glow --- */
.pricing-card:hover {
      box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2),
            0 16px 48px rgba(0, 0, 0, 0.4),
            0 0 80px rgba(99, 102, 241, 0.1);
      transform: translateY(-4px);
      transition: var(--transition);
}

/* --- Grid Pattern Subtle Movement --- */
@keyframes grid-drift {
      0% {
            background-position: 0 0;
      }

      100% {
            background-position: 60px 60px;
      }
}

.hero-grid {
      animation: grid-drift 30s linear infinite;
}

/* --- Marketplace Ticker Marquee --- */
@keyframes marquee-scroll {
      0% {
            transform: translateX(0);
      }

      100% {
            transform: translateX(-50%);
      }
}

.ticker-track {
      display: flex;
      gap: 48px;
      animation: marquee-scroll 25s linear infinite;
      width: max-content;
}

.ticker-track:hover {
      animation-play-state: paused;
}

.ticker-wrapper {
      overflow: hidden;
      -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
      mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
      padding: 20px 0;
}

.ticker-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1rem;
      color: var(--text-tertiary);
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.3s ease;
}

.ticker-item:hover {
      color: var(--text-primary);
}

.ticker-item img {
      border-radius: 50%;
      opacity: 0.7;
      transition: opacity 0.3s ease;
}

.ticker-item:hover img {
      opacity: 1;
}

/* --- Scale-In Animation --- */
@keyframes scale-in {
      from {
            opacity: 0;
            transform: scale(0.85);
      }

      to {
            opacity: 1;
            transform: scale(1);
      }
}

.anim-scale-in {
      opacity: 0;
      transform: scale(0.85);
      transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-scale-in.visible {
      opacity: 1;
      transform: scale(1);
}

/* --- Benefits Section --- */
.benefits {
      padding: 100px 0;
      position: relative;
}

.benefits-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
}

.benefit-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-xl);
      padding: 48px 36px;
      text-align: center;
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--gradient-primary);
      transform: scaleX(0);
      transition: transform 0.4s ease;
}

.benefit-card:hover::before {
      transform: scaleX(1);
}

.benefit-card:hover {
      transform: translateY(-8px);
      border-color: var(--border-hover);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(99, 102, 241, 0.08);
}

.benefit-icon {
      font-size: 3rem;
      margin-bottom: 24px;
      display: block;
}

.benefit-card h3 {
      font-size: 1.5rem;
      margin-bottom: 16px;
      color: var(--text-primary);
      font-weight: 700;
}

.benefit-card p {
      color: var(--text-secondary);
      line-height: 1.7;
      font-size: 0.95rem;
}

@media (max-width: 768px) {
      .benefits-grid {
            grid-template-columns: 1fr;
      }
}
/* --- Logo Glow --- */
@keyframes logo-pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4)); }
    50% { filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.8)); }
}
.logo-icon svg {
    animation: logo-pulse-glow 3s ease-in-out infinite;
}
.logo:hover .logo-text {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: text-shadow 0.3s ease;
}

/* --- Breadcrumbs Animation --- */
@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-fade-in {
    animation: fade-in-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
