/* ============================================
   NodaFlow — Custom Styles & Animations
   ============================================ */

/* Gradient animé Hero */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero background */
.hero-gradient {
  background: linear-gradient(-45deg, #0a0a1a, #1a0a2e, #0a1a2e, #0a0a2a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Orbes flottants */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(108, 99, 255, 0.15);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 212, 170, 0.12);
  bottom: -50px;
  left: -50px;
  animation-delay: 3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(108, 99, 255, 0.1);
  top: 50%;
  left: 50%;
  animation-delay: 1.5s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Cards hover */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.4);
}

/* Pricing card popular */
.pricing-popular {
  position: relative;
  border-color: rgba(108, 99, 255, 0.6);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.15);
}

.pricing-popular::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #6C63FF, #00D4AA);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Nav blur */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-scrolled {
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Workflow steps connector */
.workflow-step {
  position: relative;
}

.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #6C63FF, transparent);
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6C63FF, #00D4AA);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
}

/* Bouton gradient */
.btn-gradient {
  background: linear-gradient(135deg, #6C63FF, #00D4AA);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gradient:hover {
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.35);
  transform: translateY(-2px);
}

.btn-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00D4AA, #6C63FF);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-gradient:hover::after {
  opacity: 1;
}

.btn-gradient span {
  position: relative;
  z-index: 1;
}

/* Form focus */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: #6C63FF;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
  outline: none;
}

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

/* Selection */
::selection {
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6C63FF, #00D4AA);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8078FF, #33DDBB);
}

/* Grille de fond */
.grid-bg {
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Toast notification */
.toast {
  animation: slideIn 0.4s ease forwards;
}

/* Compteur animation */
.counter {
  font-variant-numeric: tabular-nums;
}
