/* ============================================================
   WOW LAYER v1 (Tier 1) — premium motion & atmosphere
   JarvisNextGen.in · added after style.v6.css · versioned
   Aurora hero · kinetic title · marquee · progress · grain ·
   tilt · magnetic · stagger · focus glow · smooth FAQ
   ============================================================ */

/* ---------- 1. SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.55);
  z-index: 300; pointer-events: none;
}

/* ---------- 2. FILM GRAIN (texture overlay) ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- 3. AURORA BLOBS (hero atmosphere) ---------- */
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 1; opacity: 0.55; }
.aurora-1 {
  width: 540px; height: 540px; left: -150px; top: -130px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.5), transparent 62%);
  animation: auroraDrift 17s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 480px; height: 480px; right: -110px; top: 28%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.42), transparent 62%);
  animation: auroraDrift 21s ease-in-out infinite alternate-reverse;
}
.aurora-3 {
  width: 430px; height: 430px; left: 42%; bottom: -170px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.34), transparent 62%);
  animation: auroraDrift 25s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(42px, 30px) scale(1.12); }
  100% { transform: translate(-32px, 22px) scale(0.94); }
}

/* ---------- 4. KINETIC HERO TITLE (stagger cascade) ---------- */
.hero-title .hl {
  display: inline-block;
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
}
.reveal.visible .hl:nth-of-type(1) { transition-delay: .06s; }
.reveal.visible .hl:nth-of-type(2) { transition-delay: .22s; }
.reveal.visible .hl:nth-of-type(3) { transition-delay: .38s; }
.reveal.visible .hl { opacity: 1; transform: translateY(0); }

/* gradient shimmer on grad-text */
.grad-text {
  background: linear-gradient(90deg, #4361EE, #00C2FF, #4361EE, #00C2FF);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShimmer 7s linear infinite;
}
@keyframes gradShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* ---------- 5. TECH MARQUEE (infinite strip) ---------- */
.marquee {
  overflow: hidden;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  position: relative;
}
.marquee::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 50% 50%, rgba(67, 97, 238, 0.14), transparent 70%);
}
.marquee-track {
  display: flex; align-items: center; gap: 36px;
  width: max-content; white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font); font-size: 13.5px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(248, 250, 252, 0.82);
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 194, 255, 0.25);
}
.marquee-track i {
  font-style: normal; color: var(--cyan); font-size: 9px;
  text-shadow: 0 0 8px rgba(0, 194, 255, 0.8);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ---------- 6. 3D TILT ZONE (hero phone) ---------- */
.tilt-zone .phone-stage {
  transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

/* ---------- 7. MAGNETIC HERO CTAs ---------- */
.hero-actions .btn {
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

/* ---------- 8. CARD LIFT + GLOW UPGRADES ---------- */
.price-card { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease; }
.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 194, 255, 0.18), 0 0 42px rgba(0, 194, 255, 0.14);
}
.trust-badges .badge { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.trust-badges .badge:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 194, 255, 0.22); border-color: rgba(0, 194, 255, 0.5); }

/* services tab pills — glow on hover */
.svc-tab { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.svc-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(67, 97, 238, 0.3); border-color: rgba(0, 194, 255, 0.5); }

/* ---------- 9. STAGGER REVEAL (children cascade) ---------- */
.pricing-grid .price-card, .trust-badges .badge { transition-delay: 0ms; }

/* ---------- 10. FAQ SMOOTH OPEN ---------- */
.faq-item[open] p { animation: faqIn .38s cubic-bezier(.22, 1, .36, 1); }
.faq-item[open] { background: linear-gradient(180deg, rgba(67, 97, 238, 0.04), transparent 70%); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 11. FORM FOCUS GLOW ---------- */
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.18), 0 0 22px rgba(0, 194, 255, 0.12);
  outline: none;
}

/* ---------- 12. NAV — subtle underline glow already exists; add logo hover ---------- */
.brand-logo { transition: transform .3s ease, filter .3s ease; }
.brand:hover .brand-logo { transform: scale(1.04); filter: drop-shadow(0 0 10px rgba(0, 194, 255, 0.5)); }

/* ---------- RESPONSIVE + MOTION SAFETY ---------- */
@media (max-width: 720px) {
  .aurora-1 { width: 340px; height: 340px; filter: blur(46px); opacity: 0.45; }
  .aurora-2 { width: 300px; height: 300px; filter: blur(46px); opacity: 0.38; }
  .aurora-3 { display: none; }
  .marquee-track span { font-size: 11.5px; letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .orb { animation: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; }
  .grad-text { animation: none !important; }
  .hero-title .hl { opacity: 1; transform: none; transition: none; }
}
