@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

/* Animated gradient mesh background */
.gradient-mesh {
  background: radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(14, 165, 233, 0.10) 0%, transparent 50%);
}

.dark .gradient-mesh {
  background: radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.10) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

/* Animated gradient orbs */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}

.orb {
  animation: float-orb 12s ease-in-out infinite;
  filter: blur(80px);
}

.orb-2 { animation-delay: -4s; }
.orb-3 { animation-delay: -8s; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.light .glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), 0 0 80px rgba(59, 130, 246, 0.05);
}

.glow-blue:hover {
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.25), 0 0 100px rgba(59, 130, 246, 0.1);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer border */
.shimmer-border {
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(99,102,241,0.15));
  border: 1px solid transparent;
  background-clip: padding-box;
}

.shimmer-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(99,102,241,0.3), rgba(14,165,233,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

/* Fade in up animation */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-200 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-300 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-400 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-500 { animation-delay: 0.5s; opacity: 0; }

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

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

.feature-card:hover {
  transform: translateY(-4px);
}

/* Typing cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  animation: blink 1s step-end infinite;
}

/* Screenshot mockup glow */
.mockup-glow {
  box-shadow: 0 25px 80px rgba(59, 130, 246, 0.2), 0 8px 32px rgba(0,0,0,0.3);
}

/* Pricing card highlight */
.pricing-highlight {
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(99,102,241,0.15) 100%);
  border: 1px solid rgba(99,102,241,0.4);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.7); }

/* Badge pulse */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.badge-pulse {
  animation: pulse-ring 2s infinite;
}

/* Light mode overrides */
html:not(.dark) .glass {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

html:not(.dark) body {
  background-color: #f8fafc;
}

/* ══════════════════════════════════
   Features sticky-scroll section
══════════════════════════════════ */

/* Feature visuals: stack all absolutely, fade between them */
.feature-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.feature-visual.active {
  opacity: 1;
  pointer-events: auto;
}

/* Fallback placeholder shown when img fails to load */
.feature-visual-fallback {
  display: none;
}

/* Accordion items */
.feature-acc-item {
  border-bottom: 1px solid rgba(148,163,184,0.15);
}

.feature-acc-item:first-child {
  border-top: 1px solid rgba(148,163,184,0.15);
}

.feature-acc-trigger {
  cursor: default;
  user-select: none;
}

/* Accordion body: max-height transition */
.feature-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-acc-item.active .feature-acc-body {
  max-height: 360px;
}

/* Chevron rotates when active */
.feature-acc-item.active .feature-chevron {
  transform: rotate(180deg);
}

/* Icon bg highlight when active */
.feature-acc-item.active .feature-acc-trigger > div:first-child {
  background-color: rgba(59, 130, 246, 0.15);
}

/* Active item title color */
.feature-acc-item.active .feature-acc-trigger span:first-of-type {
  color: #3b82f6;
}

.dark .feature-acc-item.active .feature-acc-trigger span:first-of-type {
  color: #60a5fa;
}

/* Progress bar animation */
.feature-progress {
  transition: width 0.1s linear;
}

/* Hide scrollbar while keeping scroll functionality */
.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ══════════════════════════════════
   FAQ accordion
══════════════════════════════════ */

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-body {
  max-height: 300px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-trigger {
  cursor: pointer;
}

/* ══════════════════════════════════
   Testimonials infinite marquee
══════════════════════════════════ */

@keyframes marquee-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.marquee-track {
  overflow: hidden;
  /* Edge fade masks */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-inner {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.marquee-left {
  animation: marquee-scroll-left 38s linear infinite;
}

.marquee-right {
  animation: marquee-scroll-right 42s linear infinite;
}

/* Pause on hover */
.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

/* Card sizing */
.marquee-card {
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.marquee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}
