@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');
:root {
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--ease-ai: cubic-bezier(0.22, 1, 0.36, 1);
--delay-base: 0.03s;
}
/* Performance defaults */
img, video { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
font-family: 'Inter', sans-serif;
background-color: #000000;
color: #ffffff;
overflow-x: hidden;
position: relative;
}
/* --- VelvetSound Inspired Grid Lines --- */
.grid-lines {
position: fixed;
inset: 0;
width: 100%;
max-width: 80rem; /* max-w-7xl */
margin: 0 auto;
pointer-events: none;
z-index: 0;
display: flex;
justify-content: space-between;
padding: 0 1.5rem;
opacity: 0.4;
}
@media (min-width: 768px) { .grid-lines { padding: 0 1.5rem; } }
.grid-line { width: 1px; height: 100%; background-color: rgba(255, 255, 255, 0.05); }
/* --- AI Reveal: word-level blur-up (layout-safe) --- */
@keyframes animationIn {
0% {
opacity: 0;
transform: translateY(30px);
filter: blur(8px);
}
100% {
opacity: 1;
transform: translateY(0);
filter: blur(0px);
}
}
.ai-word {
display: inline-block;
white-space: nowrap;
opacity: 0;
transform: none;
filter: none;
will-change: transform, opacity, filter;
}
.ai-content.ai-active .ai-word {
animation: animationIn 0.7s var(--ease-ai) forwards;
animation-delay: calc(var(--ai-index) * 0.035s);
}
h1 .ai-word, h2 .ai-word {
animation-duration: 0.9s;
animation-delay: calc(var(--ai-index) * 0.05s);
}
.hero-reveal {
opacity: 0;
transform: translateY(24px);
filter: blur(10px);
transition: opacity 0.9s var(--ease-ai), transform 0.9s var(--ease-ai), filter 0.9s var(--ease-ai);
}
.ai-active.hero-reveal {
opacity: 1;
transform: translateY(0);
filter: blur(0);
}
/* Trusted By / audience marquees */
.logo-marquee-wrap {
overflow: hidden;
width: 100%;
-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
@media (min-width: 1024px) {
  .logo-marquee-wrap { padding-left: 50%; }
}
.logo-marquee {
display: flex;
align-items: center;
gap: 48px;
width: max-content;
animation: logoMarquee 28s linear infinite;
will-change: transform;
}
.logo-marquee-alt { animation-duration: 34s; animation-direction: reverse; }
.logo-marquee span,
.logo-marquee .logo-marquee-item {
flex-shrink: 0;
white-space: nowrap;
}
@media (hover: hover) {
  .logo-marquee-wrap:hover .logo-marquee { animation-play-state: paused; }
}
@media (max-width: 767px) {
  .logo-marquee { gap: 32px; animation-duration: 22s; }
  .logo-marquee-alt { animation-duration: 26s; }
}
@keyframes logoMarquee {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
/* Comment cards — continuous visible motion */
.comment-card {
opacity: 0;
transform: translateY(30px) scale(0.96);
filter: blur(6px);
transition: opacity 0.8s var(--ease-ai), transform 0.8s var(--ease-ai), filter 0.8s var(--ease-ai);
position: relative;
}
.comment-card::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
border: 1px solid transparent;
background: linear-gradient(135deg, rgba(168,85,247,0.25), transparent 50%, rgba(59,130,246,0.12)) border-box;
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
mask-composite: exclude;
-webkit-mask-composite: xor;
opacity: 0;
animation: cardBorderPulse 4s ease-in-out infinite;
animation-delay: calc(var(--delay, 0) * 1s);
}
.comment-card.ai-active {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
animation: cardBreathe 3.5s var(--ease-ai) infinite;
animation-delay: calc(var(--delay, 0) * 0.5s);
}
.comment-card.ai-active::before { opacity: 1; }
.comment-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 40px rgba(168,85,247,0.1), 0 0 60px rgba(168,85,247,0.05);
}
@keyframes cardBreathe {
0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
30% { transform: translateY(-10px) scale(1.01); box-shadow: 0 16px 40px rgba(168,85,247,0.1); }
60% { transform: translateY(-4px) scale(1.004); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
}
@keyframes cardBorderPulse {
0%, 100% { opacity: 0; }
50% { opacity: 1; }
}
/* Rating stars: staggered pop-in + hover */
.comment-star svg { transition: transform 0.25s var(--ease-ai); }
.comment-star:hover svg { transform: scale(1.3); }
.comment-star:active svg { transform: scale(0.9); }
.ai-active .comment-star {
animation: starPop 0.5s var(--ease-ai) backwards;
}
.ai-active .comment-star:nth-child(1) { animation-delay: 0.05s; }
.ai-active .comment-star:nth-child(2) { animation-delay: 0.12s; }
.ai-active .comment-star:nth-child(3) { animation-delay: 0.19s; }
.ai-active .comment-star:nth-child(4) { animation-delay: 0.26s; }
.ai-active .comment-star:nth-child(5) { animation-delay: 0.33s; }
@keyframes starPop {
0% { opacity: 0; transform: translateY(14px) scale(0.6); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* Comments section: continuous motion (rating shimmer + form glow) */
#comment-rating .comment-star { position: relative; }
#comment-rating .comment-star::after {
content: '';
position: absolute;
inset: 3px;
border-radius: 50%;
box-shadow: 0 0 0 rgba(168,85,247,0);
opacity: 0;
animation: starShimmer 2.4s ease-in-out infinite;
animation-delay: calc(var(--s, 0) * 0.2s);
pointer-events: none;
}
@keyframes starShimmer {
0%, 100% { opacity: 0; box-shadow: 0 0 0 rgba(168,85,247,0); }
50% { opacity: 0.7; box-shadow: 0 0 14px rgba(168,85,247,0.55); }
}
.comment-panel {
animation: panelGlow 4s var(--ease-smooth) infinite;
position: relative;
}
.comment-panel::before {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
background: linear-gradient(135deg, rgba(168,85,247,0.15), transparent 40%, transparent 60%, rgba(168,85,247,0.1));
opacity: 0;
animation: panelShimmer 5s ease-in-out infinite;
pointer-events: none;
z-index: 0;
}
.comment-panel > * { position: relative; z-index: 1; }
@keyframes panelGlow {
0%, 100% { border-color: rgba(255,255,255,0.08); box-shadow: 0 0 0 rgba(168,85,247,0); }
50% { border-color: rgba(168,85,247,0.3); box-shadow: 0 0 40px rgba(168,85,247,0.08); }
}
@keyframes panelShimmer {
0%, 100% { opacity: 0; transform: translateX(-100%); }
50% { opacity: 1; transform: translateX(100%); }
}
/* Continuous Float Animation (VelvetSound) */
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out infinite; animation-delay: 3s; }
/* General Fade Up for Blocks */
.fade-up-block {
opacity: 0;
transform: translateY(30px);
filter: blur(5px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}
.ai-active.fade-up-block {
opacity: 1;
transform: translateY(0);
filter: blur(0);
}
/* Section Numbers (VelvetSound Style) */
.section-number {
font-family: 'Inter', sans-serif;
font-weight: 700;
font-size: 12rem;
line-height: 1;
color: rgba(255, 255, 255, 0.03);
position: absolute;
pointer-events: none;
user-select: none;
z-index: 0;
}
/* Hover Interaction — word-wave on big text */
.ai-hover-target {
  transition: color 0.2s ease;
}
.ai-hover-target:hover .ai-word {
  animation: wordHover 0.7s var(--ease-ai) forwards;
  animation-delay: calc(var(--ai-index) * 0.022s);
}
@keyframes wordHover {
0% { opacity: 1; transform: translateY(0); filter: blur(0); }
35% { opacity: 1; transform: translateY(-10px); filter: blur(0); }
60% { opacity: 1; transform: translateY(2px); filter: blur(0); }
100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* Utilities */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.accordion-content {
transition: max-height 0.4s var(--ease-ai), opacity 0.4s var(--ease-ai);
max-height: 0;
opacity: 0;
overflow: hidden;
}
.accordion-content.open { max-height: 500px; opacity: 1; }
.parallax-effect { will-change: transform; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* --- Nebula-style Animation System --- */
:root {
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.45, 0, .55, 1);
}

/* Blur-to-clear entry (Nebula's primary reveal pattern) */
@keyframes blurFadeIn {
  0% { opacity: 0; filter: blur(10px); transform: translateY(12px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Floating dot with glow */
@keyframes floatDot {
  0%, 100% { opacity: var(--o, 0.16); transform: translateY(0) scale(var(--sc, 0.8)); }
  50% { opacity: calc(var(--o, 0.16) + 0.3); transform: translateY(calc(var(--dy, -12px))) scale(calc(var(--sc, 0.8) + 0.2)); }
}

/* Orb drift */
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8px, -6px) scale(1.05); }
  66% { transform: translate(-5px, 4px) scale(0.97); }
}

/* Dash flow for connection lines */
@keyframes dashFlow {
  to { stroke-dashoffset: -24; }
}

/* Particle flow for funnel bars */
@keyframes particleFlow {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* Dot flow for integration lines */
@keyframes dotFlow {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

@keyframes dotFlowDown {
  0% { bottom: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { bottom: 48px; opacity: 0; }
}

/* Sparkline draw */
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Pulse ring */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* --- Glass Panel (Nebula .glass equivalent) --- */
.glass-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

/* --- Hero Orbs (soft radial gradients) --- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
  animation: orbDrift 8s var(--ease-smooth) infinite;
}
.hero-orb-1 {
  width: 280px; height: 280px; top: -50px; left: 8%;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 180px; height: 180px; bottom: -30px; right: 12%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  animation-delay: 3s;
}

/* --- Floating Ambient Dots (with glow) --- */
.hero-dot {
  position: absolute;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: rgba(168, 85, 247, var(--o, 0.16));
  box-shadow: 0 0 18px currentColor;
  color: rgba(168, 85, 247, var(--o, 0.16));
  animation: floatDot var(--dur, 3.2s) var(--ease-smooth) infinite;
  animation-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

/* --- Dashboard Frame --- */
.hero-dash {
  display: flex;
  min-height: 280px;
}
.hero-dash-side {
  width: 48px;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-side-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.hero-side-dot.active {
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168,85,247,0.5);
}
.hero-dash-main {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Bar Chart (blur-fade entry, not scaleY) --- */
.hero-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
}
.hero-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(168,85,247,0.8), rgba(168,85,247,0.4));
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  animation: blurFadeIn 0.8s var(--ease-spring) forwards;
  animation-delay: var(--d, 0s);
  position: relative;
}
.hero-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px 4px 0 0;
}

/* --- Stat Cards --- */
.hero-stats-row {
  display: flex;
  gap: 12px;
}
.hero-stat-card {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: blurFadeIn 0.7s var(--ease-spring) forwards;
  animation-delay: var(--d, 0.6s);
}
.hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.hero-stat-val {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat-val.purple { color: #a855f7; }
.hero-stat-change {
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}
.hero-stat-change.up { color: #34d399; }

/* --- Sparkline --- */
.hero-spark {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  animation: blurFadeIn 0.7s var(--ease-spring) forwards;
  animation-delay: 0.8s;
}
.hero-spark svg {
  width: 100%;
  height: 40px;
  overflow: visible;
}
.hero-spark-path {
  stroke: #a855f7;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 1.8s var(--ease-smooth) forwards;
  animation-delay: 1s;
}
.hero-spark-fill {
  fill: url(#sparkGrad);
  opacity: 0;
  animation: blurFadeIn 0.8s var(--ease-smooth) forwards;
  animation-delay: 1.4s;
}

/* --- Workflow Nodes --- */
.hero-workflow {
  position: relative;
  min-height: 280px;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-wf-node {
  position: absolute;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  animation: blurFadeIn 0.7s var(--ease-spring) forwards;
  animation-delay: var(--d, 0s);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-wf-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}
.hero-wf-node.purple {
  border-color: rgba(168,85,247,0.2);
  background: rgba(168,85,247,0.06);
}
.hero-wf-node-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-wf-node-icon.purple { background: rgba(59,130,246,0.12); color: #a855f7; }
.hero-wf-node-icon.blue { background: rgba(59,130,246,0.12); color: #a855f7; }
.hero-wf-node-icon.green { background: rgba(34,197,94,0.12); color: #22c55e; }
.hero-wf-node-icon.purple { background: rgba(168,85,247,0.12); color: #a855f7; }

/* --- Workflow Connection Lines --- */
.hero-wf-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-wf-line {
  stroke: rgba(168,85,247,0.2);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 6 4;
  animation: dashFlow 2s linear infinite;
}

/* --- Pulse Ring on Active Node --- */
.hero-wf-pulse {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a855f7;
}
.hero-wf-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(168,85,247,0.3);
  animation: pulseRing 2.5s ease-out infinite;
}

/* --- Blog Card Thumbnails --- */
.blog-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(10,10,10,0.8), rgba(10,10,10,0.95));
}
.blog-thumb-glow {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
  animation: orbDrift 6s var(--ease-smooth) infinite;
}
.blog-thumb-icon {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  animation: blurFadeIn 0.8s var(--ease-spring) forwards;
  animation-delay: var(--d, 0.3s);
}
.blog-thumb-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}
/* --- Auth Page Dot Grid --- */
.auth-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a855f7;
  animation: authDotPulse var(--dur, 3s) ease-in-out var(--d, 0s) infinite;
}
@keyframes authDotPulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--b, 0.4); transform: scale(1); }
}
/* --- Modern Card Effects --- */
/* --- Glassmorphism Card Base --- */
.feature-card,
.testimonial-card,
.step-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover,
.testimonial-card:hover,
.step-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* --- Feature Card --- */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-card .card-icon {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover .card-icon {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.2);
}
.feature-card .stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover .stat-pill {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}
.feature-card:hover .stat-pill:nth-child(1) { transition-delay: 0s; }
.feature-card:hover .stat-pill:nth-child(2) { transition-delay: 0.05s; }
.feature-card:hover .stat-pill:nth-child(3) { transition-delay: 0.1s; }
/* --- Testimonial Card --- */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -15px; right: 12px;
  font-size: 90px;
  font-family: Georgia, serif;
  color: rgba(168, 85, 247, 0.05);
  line-height: 1;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-card:hover::before {
  color: rgba(168, 85, 247, 0.1);
  transform: scale(1.1) translateY(-5px);
}
.testimonial-card:hover {
  transform: translateY(-4px);
}
.testimonial-card .avatar-ring {
  position: relative;
}
.testimonial-card .avatar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: all 0.4s;
}
.testimonial-card:hover .avatar-ring::before {
  border-color: rgba(168, 85, 247, 0.4);
  animation: avatarSpin 3s linear infinite;
}
@keyframes avatarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.testimonial-card .star-icon {
  transition: all 0.3s;
}
.testimonial-card:hover .star-icon {
  animation: starBounce 0.5s ease forwards;
}
.testimonial-card:hover .star-icon:nth-child(1) { animation-delay: 0s; }
.testimonial-card:hover .star-icon:nth-child(2) { animation-delay: 0.05s; }
.testimonial-card:hover .star-icon:nth-child(3) { animation-delay: 0.1s; }
.testimonial-card:hover .star-icon:nth-child(4) { animation-delay: 0.15s; }
.testimonial-card:hover .star-icon:nth-child(5) { animation-delay: 0.2s; }
@keyframes starBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.testimonial-card .stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.testimonial-card:hover .stat-pill {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}
/* --- Step Card --- */
.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover::after {
  transform: scaleX(1);
}
.step-card:hover {
  transform: translateY(-6px);
}
.step-card .step-num {
  position: relative;
  background: linear-gradient(135deg, #a855f7, #60a5fa);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15), 0 0 25px rgba(168, 85, 247, 0.25);
}
.step-card .step-num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0);
  transition: all 0.4s;
}
.step-card:hover .step-num::after {
  border-color: rgba(168, 85, 247, 0.3);
  animation: stepPulse 1.5s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0; }
}
.step-card .step-icon {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover .step-icon {
  transform: translateX(4px) rotate(-10deg);
  color: #60a5fa;
}
.step-card .stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover .stat-pill {
  transform: translateY(-2px);
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
}
/* --- Pricing Card Effects --- */
.pricing-card {
  position: relative;
}
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: radial-gradient(180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.pricing-card:hover::after {
  opacity: 1;
}
.pricing-card ul li {
  transition: all 0.2s;
}
.pricing-card:hover ul li {
  transform: translateX(2px);
}
.pricing-card:hover ul li:nth-child(1) { transition-delay: 0s; }
.pricing-card:hover ul li:nth-child(2) { transition-delay: 0.03s; }
.pricing-card:hover ul li:nth-child(3) { transition-delay: 0.06s; }
.pricing-card:hover ul li:nth-child(4) { transition-delay: 0.09s; }

.lf-logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: none;
}
.lf-logo-mark-sm {
  width: 20px;
  height: 20px;
}

/* --- UnicornStudio: always fill its container, no overflow --- */
.aura-background-component { transform-origin: top left; overflow: hidden; }
[data-us-project] { width: 100% !important; height: 100% !important; }

/* Laptop only — landscape Unicorn bake. Never apply these on phones. */
html.lf-lite:not(.lf-phone) .aura-background-component {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  pointer-events: none !important;
  background: #050505 !important;
}
html.lf-lite:not(.lf-phone) .aura-background-component::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('bg-laptop.jpg') center center / cover no-repeat;
  pointer-events: none;
}
html.lf-lite:not(.lf-phone) .aura-background-component.has-phone-video::before { display: none; }
html.lf-lite:not(.lf-phone) .lf-phone-bg-video {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  pointer-events: none;
}
html.lf-lite:not(.lf-phone) .lf-phone-bg-video.is-back { opacity: 0; }
html.lf-lite:not(.lf-phone) .aura-background-component canvas,
html.lf-lite:not(.lf-phone) [data-us-project],
html.lf-lite:not(.lf-phone) [data-us-project] canvas {
  display: none !important;
}

/* ============================================================
   GLOBAL MOBILE / RESPONSIVE FIXES
   ============================================================ */

/* Prevent horizontal scroll on all devices */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Constrain absolutely-positioned elements that could escape viewport */
.fixed, [style*="position:fixed"], [style*="position: fixed"] {
  max-width: 100vw;
}

/* Phones: Unicorn look without live WebGL. Image drifts; video loop if present. */
@media (max-width: 900px), (pointer: coarse) {
  .aura-background-component {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    pointer-events: none !important;
    background: #050505 !important;
  }
  .aura-background-component::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: url('bg-phone.jpg') center / cover no-repeat;
    animation: lfPhoneBgDrift 22s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
  }
  .aura-background-component::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.22) 48%, rgba(5,5,5,0.16) 100%);
    pointer-events: none;
  }
  .aura-background-component.has-phone-video::before {
    display: none;
  }
  .lf-phone-bg-video {
    display: block !important;
    visibility: visible !important;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    opacity: 1;
    transition: opacity 0.5s linear;
  }
  .aura-background-component.has-phone-video {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
  }
  .lf-phone-bg-video.is-back {
    opacity: 0;
  }
  .aura-background-component > *:not(.lf-phone-bg-video),
  .aura-background-component canvas,
  [data-us-project],
  [data-us-project] canvas {
    display: none !important;
    visibility: hidden !important;
  }
  @keyframes lfPhoneBgDrift {
    0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
    50% { transform: scale(1.08) translate3d(-2.4%, 1.8%, 0); }
  }

  .ai-word,
  .hero-reveal,
  .reveal,
  .comment-card,
  .ai-content,
  .ai-observe {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  nav, #navbar, .nav-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(5, 5, 5, 0.94) !important;
  }

  [style*="width:700px"], [style*="width: 700px"] { width: 380px !important; height: 380px !important; }
  [style*="width:500px"], [style*="width: 500px"] { width: 300px !important; height: 300px !important; }
  [style*="width:400px"], [style*="width: 400px"] { width: 240px !important; height: 240px !important; }
}

@media (max-width: 768px) {

  /* Reduce section padding */
  .section { padding: 64px 0; }
  .section-inner { padding: 0 16px; }

  /* Hero: reduce bottom padding so content isn't cut off */
  section[style*="padding-top:64px"] { padding-bottom: 40px !important; }

  .grid-lines { display: flex !important; opacity: 0.28; }

  /* Float card: ensure it doesn't overflow on small screens */
  .float-card { max-width: 100%; margin: 0 auto; }

  /* bg-number decorative text: smaller on mobile */
  .bg-number { font-size: clamp(4rem, 18vw, 8rem) !important; }

  /* KPI / stat cards: 2 columns on mobile */
  .grid.grid-cols-2.lg\:grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Scroll indicator: hide on mobile (finger doesn't need it) */
  .scroll-indicator { display: none; }

  /* Footer newsletter form: stack on mobile */
  .flex.gap-2 form, form.flex.gap-2 { flex-direction: column; }

  /* ROI calculator: stack columns on mobile */
  .grid.md\:grid-cols-2.gap-0 { grid-template-columns: 1fr !important; }
  .border-r.border-white\/5 { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.05); }

  /* Process nodes: allow text to wrap */
  .process-node { flex-wrap: wrap; }

  /* Industry cards: single column on mobile */
  .grid.md\:grid-cols-2.gap-4 { grid-template-columns: 1fr !important; }

  /* Benefit cards / value cards: single column on mobile */
  .grid.md\:grid-cols-3.gap-6 { grid-template-columns: 1fr !important; }

  /* Feature cards 2-col grid: single col on mobile */
  .grid.sm\:grid-cols-2.gap-5 { grid-template-columns: 1fr !important; }

  /* Integrations grid: 4 cols → 4 cols still OK, but reduce gap */
  .grid.grid-cols-4.md\:grid-cols-8 { gap: 8px !important; }

  /* Heading sizes: tighten letter spacing */
  .heading-xl, .heading-hero { letter-spacing: -0.02em; }

  /* Button groups: stack on mobile */
  .flex.flex-col.sm\:flex-row { flex-direction: column !important; align-items: stretch !important; }
  .flex.flex-col.sm\:flex-row a,
  .flex.flex-col.sm\:flex-row button { text-align: center; justify-content: center; }

  /* Nav: make Get Started button smaller text on very small screens */
  nav .bg-purple-600 { font-size: 0.8125rem; padding: 8px 14px; }
}

/* Tablet-specific adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .section { padding: 80px 0; }
  .section-inner { padding: 0 20px; }
  [style*="width:700px"], [style*="width: 700px"] { width: 500px !important; height: 500px !important; }

  .aura-background-component { opacity: 1; }
}

/* Very small screens (< 380px) */
@media (max-width: 380px) {
  .section-inner { padding: 0 12px; }
  nav .text-lg { font-size: 0.9375rem; }
  .btn-primary, .btn-secondary { padding: 12px 18px; font-size: 0.8125rem; }
  .kpi-card { padding: 20px 12px; }
  .counter-num { font-size: 2rem; }
}

/* Ensure email input + button don't overflow on mobile */
@media (max-width: 640px) {
  .email-input { font-size: 0.9375rem; }
  .flex.flex-col.sm\:flex-row.items-stretch { width: 100%; }
  .btn-primary.whitespace-nowrap { white-space: normal; }
}

/* Ensure navbar has proper background */
#navbar {
  background: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Prevent feature card mouse-glow from causing repaint jank on mobile */
@media (hover: none) {
  .feature-card::after { display: none; }
  .pricing-card::after { display: none; }
  .comment-card { animation: none !important; }
}

/* Fix: prevent large absolute/fixed elements from causing horizontal scroll */
.hero-workflow { overflow: hidden; }
.hero-orb { overflow: hidden; }

/* Responsive image / video defaults */
img, video, iframe {
  max-width: 100%;
  height: auto;
}
.aura-background-component canvas,
[data-us-project] canvas {
  max-width: none;
  height: 100%;
}

/* Dash mockup: don't let it overflow on mobile */
.dash-mockup { overflow: hidden; }

/* Fix about page ROI calculator border on mobile */
@media (max-width: 767px) {
  .nu.overflow-hidden > .grid { display: flex !important; flex-direction: column !important; }
}

/* Phone + tablet nav: keep hamburger clickable, hide crowding actions */
#mobile-toggle { flex-shrink: 0; position: relative; z-index: 51; }

/* Desktop nav — one look on every page (match landing) */
#navbar,
.nav-glass,
nav#main-nav {
  background: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
#navbar .nav-link::after,
.nav-glass .nav-link::after,
nav#main-nav .nav-link::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
}
#navbar a.nav-link,
.nav-glass a.nav-link,
nav#main-nav a.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a3a3a3;
  transition: color .2s ease, background-color .2s ease;
}
#navbar a.nav-link:hover,
.nav-glass a.nav-link:hover,
nav#main-nav a.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-glass .max-w-7xl > .hidden.md\:flex,
.nav-glass .max-w-7xl > .hidden.lg\:flex,
nav#main-nav .max-w-7xl > .hidden.md\:flex,
nav#main-nav .max-w-7xl > .hidden.lg\:flex,
#navbar .max-w-7xl > .hidden.md\:flex,
#navbar .max-w-7xl > .hidden.lg\:flex {
  gap: 0.25rem;
}

@media (max-width: 1023px) {
  nav .hidden.md\:flex,
  .nav-glass .hidden.md\:flex,
  #navbar .hidden.md\:flex {
    display: none !important;
  }
  #mobile-toggle,
  #mobile-toggle.md\:hidden,
  #mobile-toggle.lg\:hidden {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }
  #mobile-menu.md\:hidden:not(.hidden),
  #mobile-menu.lg\:hidden:not(.hidden) {
    display: block !important;
  }
  #nav-guest > a:not([class*="bg-purple-"]):not([class*="bg-brand-"]) {
    display: none !important;
  }
  nav a[href$="contact.html"],
  #main-nav a[href$="contact.html"],
  .nav-glass > .max-w-7xl > .flex a[href$="contact.html"] {
    display: none !important;
  }
  #nav-guest a[class*="bg-purple-"],
  #nav-guest a[class*="bg-brand-"],
  nav a[href$="auth.html"][class*="bg-purple-"],
  nav a[href$="auth.html"][class*="bg-brand-"] {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  nav .flex.items-center.gap-3 { gap: 0.5rem; }
}

@media (max-width: 360px) {
  #nav-guest a[class*="bg-purple-"],
  #nav-guest a[class*="bg-brand-"] {
    display: none !important;
  }
}

@media (max-width: 767px) {
  h1, .heading-hero {
    font-size: clamp(1.7rem, 7.4vw, 2.35rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }
  h1 .text-5xl, h1 .text-6xl, h1 .text-7xl { font-size: 1.55rem !important; }
  h2.text-5xl, h2.text-6xl, h2.text-7xl, .heading-section {
    font-size: clamp(1.35rem, 5.5vw, 1.9rem) !important;
    line-height: 1.15 !important;
  }
  section.min-h-screen {
    min-height: 0 !important;
    padding-top: 5.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  [class*="w-[500px]"],
  [class*="w-\\[500px\\]"] {
    max-width: 72vw !important;
  }
  .bg-number { max-width: 40vw; overflow: hidden; }
  .live-chat-btn {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .chat-panel {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    bottom: 76px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  h1, .heading-hero {
    font-size: clamp(2rem, 4.4vw, 2.75rem) !important;
    line-height: 1.12 !important;
  }
  h1 .text-5xl, h1 .text-6xl { font-size: 2rem !important; }
}

/* ============================================================
   MOBILE-FIRST DESIGN SYSTEM
   ============================================================ */

/* --- Mobile Typography Scale --- */
@media (max-width: 767px) {
  .heading-hero {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
  }
  .heading-section {
    font-size: clamp(1.25rem, 6vw, 1.75rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }
  .heading-card {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }
  .body-text {
    font-size: 0.9375rem !important;
    line-height: 1.65 !important;
  }
  .body-sm {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
  }
  .label {
    font-size: 0.625rem !important;
  }
  .counter-num {
    font-size: 2rem !important;
  }
  .counter-suffix {
    font-size: 1rem !important;
  }
}

/* --- Mobile Element Sizing --- */
@media (max-width: 767px) {
  /* CTA Buttons - larger tap targets */
  .btn-primary {
    padding: 16px 32px !important;
    min-height: 48px;
    font-size: 0.9375rem !important;
  }
  .btn-secondary {
    padding: 16px 32px !important;
    min-height: 48px;
    font-size: 0.9375rem !important;
  }
  
  /* Cards - tighter padding */
  .feature-card {
    padding: 20px !important;
  }
  .benefit-card {
    padding: 24px !important;
  }
  .testimonial-card {
    padding: 20px !important;
  }
  .kpi-card {
    padding: 20px 16px !important;
  }
  .nu {
    padding: 16px !important;
  }
  
  /* Nav - slightly shorter */
  nav .max-w-7xl {
    height: 56px !important;
  }
  
  /* Spacing - tighter sections */
  .section {
    padding: 48px 0 !important;
  }
  
  /* Icons - proportionally smaller */
  .feature-card .w-11,
  .benefit-card .w-12 {
    width: 40px !important;
    height: 40px !important;
  }
  .feature-card .w-11 i,
  .benefit-card .w-12 i {
    width: 18px !important;
    height: 18px !important;
  }
}

/* --- Mobile Tap Feedback (replaces hover) --- */
@media (hover: none) {
  .btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
  }
  .btn-secondary:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
  }
  .feature-card:active {
    transform: scale(0.98);
    border-color: rgba(168, 85, 247, 0.2);
  }
  .benefit-card:active {
    transform: scale(0.98);
  }
  .faq-item:active {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* --- Gradient Section Dividers --- */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
  margin: 0;
  border: none;
}

@media (max-width: 767px) {
  .section-divider {
    margin: 0 16px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.15), transparent);
  }
}

/* ============================================================
   ANIMATION ENHANCEMENTS
   ============================================================ */

/* --- Staggered Card Reveal --- */
.reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger:nth-child(1) { transition-delay: 0s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger:nth-child(6) { transition-delay: 0.5s; }

@media (max-width: 767px) {
  .reveal-stagger:nth-child(1) { transition-delay: 0s; }
  .reveal-stagger:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger:nth-child(3) { transition-delay: 0.16s; }
  .reveal-stagger:nth-child(4) { transition-delay: 0.24s; }
  .reveal-stagger:nth-child(5) { transition-delay: 0.32s; }
  .reveal-stagger:nth-child(6) { transition-delay: 0.4s; }
}

/* --- Blur-to-Clear Text Reveal --- */
.reveal-text {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-text.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (max-width: 767px) {
  .reveal-text {
    filter: blur(4px);
    transform: translateY(8px);
  }
}

/* --- Magnetic Button Effect (Desktop only) --- */
@media (hover: hover) {
  .magnetic-btn {
    transition: transform 0.3s var(--ease);
  }
  .magnetic-btn:hover {
    transform: translate(var(--mx, 0), var(--my, 0));
  }
}

/* --- Card Gradient Border on Hover --- */
.gradient-border {
  position: relative;
  overflow: hidden;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.gradient-border:hover::before,
.gradient-border:focus-visible::before {
  opacity: 1;
}

@media (hover: none) {
  .gradient-border::before {
    display: none;
  }
}

/* --- CTA Button Glow Pulse --- */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-glow:hover::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .btn-glow::after {
    opacity: 0.5;
  }
}

/* --- Number Counter Bounce --- */
@keyframes counterBounce {
  0% { transform: translateY(10px); opacity: 0; }
  60% { transform: translateY(-3px); opacity: 1; }
  80% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
.counter-animate {
  animation: counterBounce 0.6s var(--ease) forwards;
}

/* --- Floating Element Subtle Motion --- */
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-subtle {
  animation: floatSubtle 4s ease-in-out infinite;
}

@media (max-width: 767px) {
  .float-subtle {
    animation: none;
  }
}

/* --- Hero Badge Shimmer --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.badge-shimmer {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* ============================================================
   MOBILE UX IMPROVEMENTS
   ============================================================ */

/* --- Animated Hamburger Icon --- */
.hamburger {
  position: relative;
  width: 24px;
  height: 24px;
}
.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* --- Mobile Card Swipe (Horizontal scroll) --- */
@media (max-width: 767px) {
  .swipe-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 16px;
    scrollbar-width: none;
  }
  .swipe-cards::-webkit-scrollbar {
    display: none;
  }
  .swipe-cards > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

/* --- Bottom Navigation Safe Area --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .sticky-cta-bottom {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* --- Mobile Loading State --- */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ============================================================
   LAYOUT POLISH
   ============================================================ */

/* --- Consistent Spacing System --- */
.spacing-xs { gap: 8px; }
.spacing-sm { gap: 12px; }
.spacing-md { gap: 16px; }
.spacing-lg { gap: 24px; }
.spacing-xl { gap: 32px; }

/* --- Card Hover Glow (Mouse follow) --- */
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
}
.glow-card:hover::after {
  opacity: 1;
}

@media (hover: none) {
  .glow-card::after {
    display: none;
  }
}

/* --- FAQ Accordion Smooth Animation --- */
.faq-item-enhanced {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.faq-answer-enhanced {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item-enhanced.open .faq-answer-enhanced {
  grid-template-rows: 1fr;
}
.faq-answer-enhanced > div {
  overflow: hidden;
}

/* --- Visual Hierarchy Helpers --- */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Micro-interactions --- */
.transition-base {
  transition: all 0.3s var(--ease);
}
.transition-fast {
  transition: all 0.15s var(--ease);
}
.transition-slow {
  transition: all 0.5s var(--ease);
}

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.6);
  outline-offset: 2px;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline-offset: 3px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger,
  .reveal-text,
  .gradient-border::before,
  .btn-glow::after,
  .float-subtle,
  .badge-shimmer {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #fff;
  }
  .feature-card,
  .benefit-card,
  .testimonial-card {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* --- Mobile Menu (overlay style) --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 2, 2, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: #a855f7;
}
