/* ==========================================================================
   CA Gaurav Dixit — Premium Landing Page
   Custom design system layered on top of TailwindCSS
   --------------------------------------------------------------------------
   1.  Design tokens (light / dark)
   2.  Base & typography
   3.  Scrollbar & selection
   4.  Preloader
   5.  Scroll progress bar
   6.  Cursor glow / particles / decorative shapes
   7.  Navigation
   8.  Buttons
   9.  Cards, glassmorphism & 3D tilt
   10. Hero
   11. Section furniture (eyebrow, headings, dividers)
   12. Marquee & Owl Carousel overrides
   13. Process timeline
   14. Stats band
   15. Accordion (FAQ)
   16. Forms
   17. Footer, back-to-top, mobile action bar
   18. Keyframes
   19. Accessibility & responsive refinements
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand */
  --brand:        #2563EB;
  --brand-600:    #1D4ED8;
  --brand-700:    #1E40AF;
  --brand-soft:   rgba(37, 99, 235, 0.10);
  --teal:         #06B6D4;
  --accent:       #F59E0B;   /* gold — used sparingly for "premium" cues */
  --accent-soft:  rgba(245, 158, 11, 0.12);
  --success:      #10B981;
  --whatsapp:     #25D366;

  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-alt:       #F6F9FE;
  --surface:      #FFFFFF;
  --surface-2:    #F1F5F9;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border:       rgba(15, 23, 42, 0.09);
  --border-strong:rgba(15, 23, 42, 0.14);

  /* Type */
  --text:         #0B1220;
  --text-soft:    #33415C;
  --text-muted:   #5B6B85;

  /* Effects */
  --shadow-sm:    0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-md:    0 4px 10px rgba(15, 23, 42, .06), 0 16px 36px rgba(15, 23, 42, .08);
  --shadow-lg:    0 10px 24px rgba(15, 23, 42, .08), 0 32px 64px rgba(15, 23, 42, .12);
  --glow-brand:   0 12px 30px rgba(37, 99, 235, .32);
  --ring:         0 0 0 4px rgba(37, 99, 235, .18);

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #2563EB 0%, #0EA5E9 55%, #06B6D4 100%);
  --grad-brand-r: linear-gradient(135deg, #06B6D4 0%, #0EA5E9 45%, #2563EB 100%);
  --grad-gold:    linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  --grad-ink:     linear-gradient(160deg, #0B1220 0%, #101B33 45%, #0A1424 100%);

  /* Layout */
  --nav-h:        76px;
  --radius:       22px;
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --ease-soft:    cubic-bezier(.4, 0, .2, 1);
}

html.dark {
  --bg:           #060A14;
  --bg-alt:       #09101F;
  --surface:      #0E1729;
  --surface-2:    #121E36;
  --surface-glass: rgba(18, 30, 54, 0.62);
  --border:       rgba(255, 255, 255, 0.10);
  --border-strong:rgba(255, 255, 255, 0.18);

  --text:         #E9EEF8;
  --text-soft:    #C2CEE2;
  --text-muted:   #90A2BE;

  --brand:        #60A5FA;
  --brand-600:    #3B82F6;
  --brand-soft:   rgba(96, 165, 250, 0.14);

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .40), 0 4px 12px rgba(0, 0, 0, .30);
  --shadow-md:    0 4px 10px rgba(0, 0, 0, .40), 0 16px 36px rgba(0, 0, 0, .44);
  --shadow-lg:    0 10px 24px rgba(0, 0, 0, .45), 0 32px 64px rgba(0, 0, 0, .55);
  --glow-brand:   0 12px 34px rgba(59, 130, 246, .40);
}


/* ==========================================================================
   2. BASE & TYPOGRAPHY
   ========================================================================== */

* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .45s var(--ease-soft), color .45s var(--ease-soft);
}

/* Locks scroll while the preloader / mobile menu is open */
body.is-locked { overflow: hidden; }

/* Scoped to `body` purely to out-specify Tailwind's Preflight, which resets
   headings to `font-weight: inherit`. The CDN build injects its stylesheet at
   runtime, so we cannot rely on this file loading last. */
body h1, body h2, body h3, body h4 {
  letter-spacing: -0.022em;
  line-height: 1.14;
  font-weight: 700;
}
body h1 { font-weight: 800; letter-spacing: -0.032em; }

.text-body   { color: var(--text-soft); }
.text-muted  { color: var(--text-muted); }
.bg-canvas   { background-color: var(--bg); }
.bg-canvas-alt { background-color: var(--bg-alt); }
.border-soft { border-color: var(--border); }

/* Gradient text — kept on a wrapper so the descender isn't clipped */
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.gradient-text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Very subtle film grain — adds depth to flat gradients */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ==========================================================================
   3. SCROLLBAR & SELECTION
   ========================================================================== */

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--teal));
  border-radius: 99px;
  border: 3px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-600); }

/* Visible, on-brand focus ring for keyboard users only */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ==========================================================================
   4. PRELOADER
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease-soft), visibility .6s;
}
#preloader.is-done { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, var(--brand), var(--teal), var(--accent), var(--brand));
  animation: spin 1.15s linear infinite;
  position: relative;
}
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--bg);
}
.loader-mark {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-bar {
  width: 190px;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.loader-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad-brand);
  transition: width .25s var(--ease-soft);
}


/* ==========================================================================
   5. SCROLL PROGRESS BAR
   ========================================================================== */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--teal), var(--accent));
  z-index: 1000;
  will-change: transform;
}


/* ==========================================================================
   6. CURSOR GLOW / PARTICLES / DECORATIVE SHAPES
   ========================================================================== */

/* Soft light that trails the pointer — desktop only, purely decorative */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, .16) 0%, rgba(6, 182, 212, .08) 42%, transparent 70%);
  filter: blur(28px);
  transition: opacity .4s var(--ease-soft);
  will-change: transform;
}
html.dark #cursor-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, .22) 0%, rgba(6, 182, 212, .10) 42%, transparent 70%);
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .55;
}

/* Organic morphing gradient blobs */
.blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
  animation: blobMorph 18s ease-in-out infinite, blobDrift 26s ease-in-out infinite;
}
.blob--brand { background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .45), rgba(6, 182, 212, .18)); }
.blob--gold  { background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, .38), rgba(236, 72, 153, .14)); }
.blob--teal  { background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, .34), rgba(59, 130, 246, .14)); }
.blob--slow  { animation-duration: 26s, 38s; }

/* Small icons that bob gently in the background */
.float-icon {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--brand);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  animation: floatY 7s ease-in-out infinite;
  z-index: 2;
}


/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */

#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-soft), border-color .4s var(--ease-soft),
              box-shadow .4s var(--ease-soft), height .4s var(--ease-soft);
}
#navbar.is-scrolled {
  height: 66px;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
}
html.dark #navbar.is-scrolled { box-shadow: 0 4px 26px rgba(0, 0, 0, .45); }

/* The drawer is pinned at var(--nav-h); letting the bar shrink under it would
   open a gap. Below the desktop breakpoint the height stays constant. */
@media (max-width: 1023px) {
  #navbar.is-scrolled { height: var(--nav-h); }
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.03em;
  box-shadow: var(--glow-brand);
  transition: transform .45s var(--ease);
}
a:hover > .brand-mark { transform: rotate(-6deg) scale(1.06); }

/* Animated underline */
.nav-link {
  position: relative;
  font-size: .935rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 2px;
  transition: color .3s var(--ease-soft);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .38s var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--text); }
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Theme toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  transition: transform .35s var(--ease), color .3s, border-color .3s, background-color .3s;
}
.theme-toggle:hover {
  transform: translateY(-2px) rotate(12deg);
  color: var(--brand);
  border-color: var(--brand);
}
.theme-toggle .fa-sun  { display: none; }
html.dark .theme-toggle .fa-sun  { display: block; }
html.dark .theme-toggle .fa-moon { display: none; }

/* Mobile drawer */
#mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 890;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease-soft), transform .32s var(--ease), visibility .32s;
}
#mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

#mobile-menu a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 0;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  transition: color .25s, padding-left .3s var(--ease);
}
#mobile-menu a:hover { color: var(--brand); padding-left: .5rem; }

/* Hamburger — icon swap (bars ⇄ xmark), sized to match .theme-toggle */
.burger {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color .3s, border-color .3s, background-color .3s;
}
.burger:hover { color: var(--brand); border-color: var(--brand); }

.burger .fa-xmark { display: none; }
.burger.is-open { color: var(--brand); border-color: var(--brand); }
.burger.is-open .fa-bars  { display: none; }
.burger.is-open .fa-xmark { display: block; animation: iconPop .35s var(--ease); }

@keyframes iconPop {
  from { transform: rotate(-90deg) scale(.55); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* --- Phone: shrink the whole nav cluster so it never feels cramped --- */
@media (max-width: 640px) {
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: .92rem;
  }
  .theme-toggle,
  .burger {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: .85rem;
  }
  /* A rotating toggle looks jittery at this size */
  .theme-toggle:hover { transform: translateY(-1px); }
}


/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s, color .3s, border-color .3s;
}
.btn:hover  { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.985); }

/* Shine sweep shared by every button */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .35) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn:hover::before { transform: translateX(130%); }

.btn-primary {
  color: #fff;
  background: var(--grad-brand);
  background-size: 180% 180%;
  box-shadow: var(--glow-brand);
  animation: gradientPan 7s ease infinite;
}
.btn-primary:hover { box-shadow: 0 18px 42px rgba(37, 99, 235, .42); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 12px 30px rgba(37, 211, 102, .34);
}
.btn-whatsapp:hover { box-shadow: 0 18px 42px rgba(37, 211, 102, .45); }

.btn-light {
  color: var(--brand-700);
  background: #fff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, .22);
}
.btn-light:hover { box-shadow: 0 18px 44px rgba(2, 6, 23, .3); }

.btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

/* Text link with a sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand);
}
.link-arrow i { transition: transform .35s var(--ease); }
.link-arrow:hover i { transform: translateX(5px); }


/* ==========================================================================
   9. CARDS, GLASS & 3D TILT
   ========================================================================== */

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card-lift:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Gradient hairline that fades in on hover */
.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease-soft);
  pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

/* Frosted glass */
.glass {
  background: var(--surface-glass);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.glass-dark {
  background: rgba(255, 255, 255, .07);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}

/* Pointer-driven 3D tilt (angles supplied by main.js) */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .35s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.tilt:hover { --ty: -9px; box-shadow: var(--shadow-lg); }
.tilt > * { transform: translateZ(24px); }

/* Icon chip inside cards */
.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 1.32rem;
  color: var(--brand);
  background: var(--brand-soft);
  transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s;
}
.card:hover .icon-chip,
.tilt:hover .icon-chip {
  transform: rotate(-8deg) scale(1.1);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--glow-brand);
}
/* Inside a tilted card the chip must keep its Z offset, or it snaps flat on hover */
.tilt:hover .icon-chip { transform: translateZ(24px) rotate(-8deg) scale(1.1); }

.icon-chip--gold { color: #B45309; background: var(--accent-soft); }
html.dark .icon-chip--gold { color: #FBBF24; }
.card:hover .icon-chip--gold,
.tilt:hover .icon-chip--gold { background: var(--grad-gold); color: #fff; box-shadow: 0 12px 30px rgba(245, 158, 11, .35); }

/* Badge / pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.pill-brand { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

/* Hidden extra services, revealed by the "View all" toggle */
.service-extra {
  display: none;
}
.service-extra.is-revealed {
  display: block;
  animation: fadeUp .6s var(--ease) both;
}


/* ==========================================================================
   10. HERO
   ========================================================================== */

#hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 42px);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(37, 99, 235, .12), transparent 62%),
    radial-gradient(880px 520px at 6% 12%, rgba(6, 182, 212, .10), transparent 60%),
    var(--bg);
}
html.dark #hero {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(37, 99, 235, .20), transparent 62%),
    radial-gradient(880px 520px at 6% 12%, rgba(6, 182, 212, .13), transparent 60%),
    var(--bg);
}

/* Faint grid so the whitespace still has structure */
#hero .hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 78%);
  opacity: .55;
}

.hero-visual { position: relative; }

/* Glass cards that hover over the illustration */
.hero-card {
  position: absolute;
  z-index: 3;
  padding: .85rem 1.05rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: floatY 6.5s ease-in-out infinite;
}

/* Typing / rotating keyword */
.typed-wrap {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.2em;
}
#typed-text { font-weight: 700; }
.typed-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--brand);
  animation: caretBlink 1s steps(1) infinite;
  transform: translateY(2px);
}

/* Stat counters */
.stat-value {
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   11. SECTION FURNITURE
   ========================================================================== */

.section { padding: 96px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
}
.eyebrow i { font-size: .72rem; }

/* Wave divider */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}
.wave-divider svg { display: block; width: 100%; height: 68px; }
/* Each variant expects a path already drawn for its edge — no flipping needed. */
.wave-divider--top    { top: -1px; }
.wave-divider--bottom { bottom: -1px; }

/* Parallax layer — translateY driven by main.js */
.parallax { will-change: transform; }


/* ==========================================================================
   12. MARQUEE & OWL CAROUSEL OVERRIDES
   ========================================================================== */

/* Fade the slider edges so logos glide in/out instead of being cut */
.edge-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.owl-carousel .owl-item img {
  width: auto;
  max-width: 100%;
}

.trust-logo {
  height: 74px;
  width: auto;
  margin: 0 auto;
  opacity: .62;
  filter: grayscale(100%);
  transition: opacity .4s var(--ease-soft), filter .4s var(--ease-soft), transform .4s var(--ease);
}
.trust-logo:hover { opacity: 1; filter: grayscale(0%); transform: translateY(-3px) scale(1.04); }
html.dark .trust-logo { opacity: .5; filter: grayscale(100%) invert(1) brightness(1.7); }
html.dark .trust-logo:hover { opacity: .95; }

/* Dots */
.owl-theme .owl-dots { margin-top: 34px !important; }
.owl-theme .owl-dots .owl-dot span {
  width: 9px !important;
  height: 9px !important;
  margin: 0 5px !important;
  background: var(--border-strong) !important;
  transition: width .35s var(--ease), background .35s;
}
.owl-theme .owl-dots .owl-dot.active span {
  width: 28px !important;
  background: var(--grad-brand) !important;
}

/* Nav arrows */
.owl-theme .owl-nav { margin-top: 0 !important; }
.owl-theme .owl-nav [class*='owl-'] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50% !important;
  background: var(--surface) !important;
  color: var(--text-soft) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-md);
  font-size: 1rem !important;
  transition: all .35s var(--ease);
}
.owl-theme .owl-nav [class*='owl-']:hover {
  background: var(--grad-brand) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--glow-brand);
}
.owl-theme .owl-nav .owl-prev { left: -8px; }
.owl-theme .owl-nav .owl-next { right: -8px; }
@media (min-width: 1280px) {
  .owl-theme .owl-nav .owl-prev { left: -26px; }
  .owl-theme .owl-nav .owl-next { right: -26px; }
}
@media (max-width: 640px) {
  .owl-theme .owl-nav { display: none; }
}

/* Testimonial card */
.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5rem;
  line-height: .8;
  color: var(--brand);
  opacity: .18;
}


/* ==========================================================================
   13. PROCESS TIMELINE
   ========================================================================== */

.process-track { position: relative; }

/* Desktop: horizontal connector drawn behind the step bubbles */
@media (min-width: 1024px) {
  .process-track::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
  }
  .process-track::after {
    content: '';
    position: absolute;
    top: 42px;
    left: 10%;
    height: 2px;
    width: 0;
    background: var(--grad-brand);
    transition: width 1.6s var(--ease-soft);
  }
  .process-track.is-drawn::after { width: 80%; }
}

.step-bubble {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), background .45s, color .45s, box-shadow .45s;
}
.step:hover .step-bubble {
  transform: translateY(-8px) scale(1.06);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--glow-brand);
}
.step-bubble::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 32px;
  border: 1px dashed var(--border-strong);
  opacity: 0;
  transition: opacity .45s;
  animation: spin 14s linear infinite;
}
.step:hover .step-bubble::after { opacity: 1; }

/* Mobile: vertical connector */
@media (max-width: 1023px) {
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 92px;
    bottom: -26px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--border-strong), transparent);
  }
}


/* ==========================================================================
   14. STATS BAND
   ========================================================================== */

.stats-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-ink);
  color: #fff;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 12% 0%, rgba(37, 99, 235, .40), transparent 60%),
    radial-gradient(700px 420px at 88% 100%, rgba(6, 182, 212, .30), transparent 60%);
}
.stats-band > * { position: relative; z-index: 1; }


/* ==========================================================================
   15. ACCORDION (FAQ)
   ========================================================================== */

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s, box-shadow .4s var(--ease), background .35s;
}
.faq-item.is-open {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.faq-item.is-open .faq-q { color: var(--brand); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  transition: color .3s;
}
.faq-q:hover { color: var(--brand); }

.faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: .8rem;
  color: var(--brand);
  background: var(--brand-soft);
  transition: transform .45s var(--ease), background .35s, color .35s;
}
.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
  background: var(--grad-brand);
  color: #fff;
}

/* grid-rows 0fr → 1fr gives a smooth auto-height reveal without JS measuring */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-soft);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 1.5rem 1.45rem;
  color: var(--text-muted);
  line-height: 1.72;
}


/* ==========================================================================
   16. FORMS
   ========================================================================== */

.field {
  width: 100%;
  padding: .92rem 1.1rem;
  border-radius: 14px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field::placeholder { color: var(--text-muted); opacity: .8; }
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}
.field:user-invalid { border-color: #EF4444; }

.field-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-soft);
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6B85' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  padding-right: 2.6rem;
}
html.dark select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2390A2BE' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}


/* ==========================================================================
   17. FOOTER, BACK-TO-TOP, MOBILE ACTION BAR
   ========================================================================== */

.footer-link {
  position: relative;
  display: inline-block;
  color: var(--text-muted);
  font-size: .93rem;
  transition: color .3s, transform .3s var(--ease);
}
.footer-link:hover { color: var(--brand); transform: translateX(4px); }

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .38s var(--ease);
}
.social-btn:hover {
  transform: translateY(-4px);
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--glow-brand);
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--glow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.85);
  transition: all .42s var(--ease);
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { transform: translateY(-4px) scale(1.06); }

/* Persistent call/WhatsApp bar on phones — the biggest mobile conversion lever */
#mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 850;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom));
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
#mobile-cta.is-visible { transform: translateY(0); }
#mobile-cta .btn { width: 100%; padding: .8rem 1rem; font-size: .9rem; }

@media (min-width: 768px) { #mobile-cta { display: none; } }
@media (max-width: 767px) { #back-to-top { bottom: 88px; } }


/* ==========================================================================
   18. KEYFRAMES
   ========================================================================== */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  34%      { border-radius: 62% 38% 34% 66% / 58% 36% 64% 42%; }
  67%      { border-radius: 36% 64% 57% 43% / 47% 62% 38% 53%; }
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(34px, -26px) scale(1.09); }
  66%      { transform: translate(-26px, 20px) scale(.94); }
}

@keyframes gradientPan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes caretBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-ring { animation: pulseRing 2.2s infinite; }

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


/* ==========================================================================
   19. ACCESSIBILITY & RESPONSIVE REFINEMENTS
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 9999;
  padding: .8rem 1.3rem;
  border-radius: 0 0 12px 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }

/* Tablet / mobile tuning */
@media (max-width: 1023px) {
  :root { --nav-h: 70px; }
  .hero-card { transform: scale(.9); }
}

@media (max-width: 640px) {
  :root { --radius: 18px; --nav-h: 64px; }
  .section { padding: 72px 0; }
  .blob { filter: blur(38px); }
  /* Floating hero cards get in the way on small screens */
  .hero-card, .float-icon { display: none; }
  .wave-divider svg { height: 42px; }
}

/* Respect the user's motion preference — kill all decorative movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .blob, .float-icon, .hero-card, #cursor-glow, #particles { animation: none !important; }
  #cursor-glow, #particles { display: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media print {
  #navbar, #mobile-cta, #back-to-top, #scroll-progress,
  #preloader, #cursor-glow, #particles, .blob { display: none !important; }
  body { color: #000; background: #fff; }
}
