:root {
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-blob {
  0%, 100% { transform: scale(1); opacity: 0.76; }
  50% { transform: scale(1.08); opacity: 0.92; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-section .hero-visual {
  animation: float-up 9s ease-in-out infinite;
}

.hero-panel,
.feature-card,
.pricing-card,
.stat-card,
.testimonial-slider,
.faq-accordion,
.cta-panel,
.dashboard-card,
.analytics-chart,
.activity-card,
.settings-card,
.contact-card,
.privacy-section {
  transition: transform 300ms var(--ease), opacity 400ms ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
}

.reveal-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.9s ease forwards;
}

.reveal-section:nth-child(2) { animation-delay: 0.12s; }
.reveal-section:nth-child(3) { animation-delay: 0.18s; }
.reveal-section:nth-child(4) { animation-delay: 0.24s; }
.reveal-section:nth-child(5) { animation-delay: 0.3s; }
.reveal-section:nth-child(6) { animation-delay: 0.36s; }
.reveal-section:nth-child(7) { animation-delay: 0.42s; }

button,
input,
textarea,
select {
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

body.dark-mode {
  color: #e8eeff;
}

body.light-mode {
  background: #f5f6ff;
  color: #0f172a;
}

body.light-mode .glass-panel {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .button-secondary,
body.light-mode .button-outline {
  background: rgba(15, 23, 42, 0.07);
  color: #0f172a;
}

body.light-mode .site-header,
body.light-mode .site-footer {
  background: rgba(255, 255, 255, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(143, 92, 255, 0.9);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 180ms ease, width 180ms ease, height 180ms ease, background 180ms ease;
}

.custom-cursor.active {
  width: 36px;
  height: 36px;
  background: rgba(143, 92, 255, 0.12);
}
