/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: 'Montserrat', sans-serif; }
body { background-color: #0a0a0f; color: #e2e8f0; overflow-x: hidden; }

/* ─── Gradient Text ────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Grid Pattern Background ──────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ─── CTA Button (shimmer on hover) ────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(59,130,246,0.45); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

/* ─── Secondary Button ─────────────────────────────── */
.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.15);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ─── Feature / Pain-point Cards ───────────────────── */
.card {
  background: #0f0f1a;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1.25rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: rgba(139,92,246,0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(139,92,246,0.08);
}

/* ─── Testimonial Card ─────────────────────────────── */
.t-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.t-card:hover {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.04);
}

/* ─── Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Hero Fade In ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-el { animation: fadeInUp 0.75s ease both; }

/* ─── Comparison Slider ─────────────────────────────── */
.cmp-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.cmp-after {
  position: absolute;
  inset: 0;
  /* clip-path set by JS */
  clip-path: inset(0 50% 0 0);
}
.cmp-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.85);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}
.cmp-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ─── Logo Marquee ──────────────────────────────────── */
.marquee-track { animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* ─── Glow Blobs ────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ─── Sticky CTA Bar ────────────────────────────────── */
#sticky-bar {
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#sticky-bar.show { transform: translateY(0); }

/* ─── Hero Gallery (responsive staggered 4-card fan) ─── */
.hero-gallery-wrap {
  height: 280px;
}
.hero-card-outer {
  width: 120px;
  height: 207px;
  flex-shrink: 0;
}
.hero-card-side {
  width: 120px;
  height: 207px;
  flex-shrink: 0;
}

@media (min-width: 400px) {
  .hero-gallery-wrap  { height: 340px; }
  .hero-card-outer    { width: 145px; height: 250px; }
  .hero-card-side     { width: 145px; height: 250px; }
}

@media (min-width: 640px) {
  .hero-gallery-wrap  { height: 420px; }
  .hero-card-outer    { width: 186px; height: 320px; }
  .hero-card-side     { width: 186px; height: 320px; }
}

@media (min-width: 1024px) {
  .hero-gallery-wrap  { height: 450px; }
  .hero-card-outer    { width: 210px; height: 361px; }
  .hero-card-side     { width: 210px; height: 361px; }
}

/* Card hover */
.hero-card-outer  { transition: transform 0.35s ease, filter 0.35s ease; }
.hero-card-outer:hover  { filter: brightness(1.08); }
.hero-card-side   { transition: transform 0.35s ease, filter 0.35s ease; }
.hero-card-side:hover   { filter: brightness(1.08); }
