html { scroll-padding-top: 96px; }
body { font-family: 'Inter', sans-serif; color: #c8d4e8; background: #080810; }
::selection { background: rgba(77,184,255,0.28); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #080810; }
::-webkit-scrollbar-thumb { background: #1a6fff; border-radius: 3px; }
:focus-visible { outline: 2px solid #4db8ff; outline-offset: 3px; border-radius: 4px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #4db8ff 0%, #1a6fff 55%, #a8d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav scrolled state */
#navbar.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(77,184,255,0.14);
}

/* How It Works step connector */
@media (min-width: 1024px) {
  .step-connector {
    position: relative;
  }
  .step-connector:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    border-top: 2px dashed rgba(77,184,255,0.18);
    pointer-events: none;
  }
}

/* Mobile menu — max-height collapse so it takes NO space when closed */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
  pointer-events: none;
}
#mobile-menu.open {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
}

/* Preview mode: skip reveal animations */
body.preview-mode .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Scroll progress bar */
#scroll-progress { transform-origin: left center; }

/* CTA button shimmer */
@keyframes btn-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(250%)  skewX(-15deg); }
}
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%) skewX(-15deg);
  animation: btn-shimmer 3.5s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}

/* Service card aurora sweep */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(77,184,255,0.07) 50%, rgba(168,216,255,0.10) 55%, rgba(77,184,255,0.07) 60%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before {
  transform: translateX(150%);
  transition: transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

/* Testimonial carousel */
#testimonials-track { will-change: transform; }

/* Apply form field shake on invalid */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.shake { animation: shake 0.4s cubic-bezier(0.22,1,0.36,1); }
