/* ============================================
   ComplyX — Custom CSS (Draftr-inspired)
   Purple glow system + animations + effects
   ============================================ */

/* Hero glow — Draftr purple radial */
.hero-glow {
  background: radial-gradient(85% 65% at 50% 0%, rgba(227, 222, 253, 0.7) 0%, rgba(243, 239, 254, 0.4) 45%, rgba(255, 255, 255, 0) 100%);
}

/* CTA glow — stronger purple */
.cta-glow {
  background: radial-gradient(70% 60% at 50% 50%, rgba(227, 222, 253, 0.85) 0%, rgba(243, 239, 254, 0.5) 60%, #ffffff 100%);
}

/* Accent glow — warm orange */
.accent-glow {
  background: radial-gradient(85% 65% at 50% 0%, rgba(255, 237, 213, 0.5) 0%, rgba(255, 247, 237, 0.3) 45%, rgba(255, 255, 255, 0) 100%);
}

/* Dashed line animation for integration maps */
.integration-line {
  stroke-dasharray: 6;
  animation: dash 20s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -100; }
}

/* Hide scrollbars for carousels */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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

/* Reveal on scroll — with stagger */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SVG sizing safety */
svg { display: block; max-width: 100%; height: auto; }
svg:not([width]):not([height]) { width: 24px; height: 24px; flex-shrink: 0; }

/* Gradient text — Draftr purple */
.gradient-text {
  background: linear-gradient(135deg, #6D28D9, #9B6FF0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-accent {
  background: linear-gradient(135deg, #F97316, #FB923C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism — Draftr style */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Grid background pattern — purple */
.grid-bg {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Gradient border card */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 1.5rem;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #7C3AED, #9B6FF0, #F97316);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.gradient-border:hover::before {
  opacity: 0.6;
}

/* Card hover lift */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-shine:hover::after {
  left: 100%;
}

/* Animated gradient blob */
.blob {
  animation: blob 8s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Float animation */
.float-anim {
  animation: floatAnim 4s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Pulse glow */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.2); }
  50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.4); }
}

/* Marquee animation */
.marquee {
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
