/* ==========================================================================
   Valar Digital Commerce — Modern enhancement layer (v2)
   Editorial look & motion system inspired by hand-built premium sites:
   display serif headings with italic accents, soft blurred colour blobs,
   masked line entrances, clip-wipe image reveals, pill buttons that fill
   upward, scroll-driven logo ticker, count-ups, ring cursor + magnetic
   buttons, full-screen circular mobile menu, word-by-word lit paragraphs.
   Loaded LAST on every page. No content or markup structure is changed.
   ========================================================================== */

:root {
  --v-blue: #084da8;
  --v-blue-deep: #0b2e5f;
  --v-green: #598f2f;
  --v-ink: #12141d;
  --v-ink-70: rgba(18, 20, 29, 0.72);
  --v-ink-45: rgba(18, 20, 29, 0.46);
  --v-ink-14: rgba(18, 20, 29, 0.14);
  --v-page: #f7f9fd;
  --v-blue-soft: #bcd3f5;
  --v-green-soft: #cfe3bd;
  --v-lav-soft: #d9d2f3;
  --v-sun-soft: #fbe3c8;
  --v-r-lg: 28px;
  --v-r-xl: 44px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Lato everywhere, matching valarcommerce.com (headings were Fraunces serif) */
  --font-display: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- Base ---------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: var(--v-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 1.1s var(--ease);
}

::selection {
  background: var(--v-blue-soft);
  color: var(--v-blue-deep);
}

/* Replace the live theme's blanket transition with targeted ones */
* {
  transition: none;
}

a,
button,
.btn,
.nav-link,
img {
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.3s var(--ease-out),
    opacity 0.3s var(--ease);
}

/* ---------------- Typography: display headings (Lato Bold, as on the live site) ---------------- */
h1, h2,
.hero-section h1,
.hero-section h2,
.section-head h2,
.about-section h2,
.about-section h3,
.benefits-section h2,
.faq-section h2.head,
.cta-section h2,
.expand-business h2,
.expand-photo-section h2,
.empower-business h2,
.features .feature-text h2,
.build-future h2,
.contact-form .form-header h3,
.enquiry-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.2;
}

/* Italic accent on highlighted words (was gradient text) */
.about-section h2 span,
.section-head h2 span,
.hero-section h2 span,
.benefits-section .text-primary,
.about-section h3 span {
  font-style: italic;
  font-weight: inherit;
  color: var(--v-blue);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* Eyebrow labels with a leading rule */
.section-eyebrow,
.trusted-label,
.phase-card .phase-label {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}

.section-eyebrow::before,
.trusted-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------------- Buttons: pill, tracked caps, upward fill ---------------- */
.btn,
.navbar-cta a,
.hero-section .cta-action a,
.expand-business .expand-cta-section .btn,
.uniform-btn,
.btn-whatsapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600 !important;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out),
    color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--v-ink);
  transform: translateY(101%);
  transition: transform 0.28s var(--ease-out);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 14px 30px -14px rgba(8, 77, 168, 0.55);
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.2s, background-color 0.2s;
}

.btn-success:hover {
  box-shadow: 0 18px 40px -18px rgba(89, 143, 47, 0.7);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn i.fa-circle-arrow-right,
.btn i.fa-arrow-right,
.hub-card .learn-more i {
  transition: transform 0.45s var(--ease-out);
}

.btn:hover i.fa-circle-arrow-right,
.btn:hover i.fa-arrow-right {
  transform: translateX(5px);
}

/* Undo live's generic scale/colour hovers, now handled above */
.btn-primary:hover,
.btn-success:hover,
.hero-section .cta-action a:hover {
  transform: translateY(-2px);
  background-color: inherit;
}

.btn-primary:hover { background-color: var(--v-blue); }
.btn-success:hover { background-color: var(--v-green); }
.btn-outline-primary:hover { background-color: transparent; }
.btn-white-primary:hover { background-color: #fff; }

/* Text links with sliding arrow */
.hub-card .learn-more,
.related-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 0.35em;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease-out), opacity 0.3s;
}

.hub-card:hover .learn-more {
  gap: 1em;
}

/* ---------------- Scroll progress ---------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 10001;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--v-green), var(--v-blue), #6c4fa1, var(--v-green));
  pointer-events: none;
}

/* ---------------- Navbar: fixed, glass when stuck ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 0.65rem 0 !important;
  transition: none !important;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 249, 253, 0.96);
  /* No backdrop-filter here. It sat directly on top of the hero's four
     continuously animating blurred blobs, so every blob frame forced the
     browser to re-capture and re-blur the navbar's entire backdrop - and it
     was doing that behind a 96%-opaque fill, where the blur was all but
     invisible. Solid fill, same look, no per-frame full-width blur. */
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  box-shadow: 0 1px 0 var(--v-ink-14), 0 8px 24px -16px rgba(18, 20, 29, 0.35);
  pointer-events: none;
}

.navbar.is-scrolled {
  padding: 0.65rem 0 !important;
}

.navbar.is-scrolled::before {
  opacity: 1;
}

.navbar > .container {
  position: relative;
}

.navbar .navbar-brand img {
  height: 50px !important;
  width: auto;
  transition: none !important;
}

.navbar.is-scrolled .navbar-brand img {
  height: 50px !important;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-size: 0.74rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600 !important;
    color: rgba(18, 20, 29, 0.86) !important;
    padding: 0.3em 0 !important;
    margin: 0 0.8rem;
    position: relative;
  }

  .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1.5px;
    width: 100%;
    background: var(--v-blue);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.45s var(--ease-out);
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--v-blue-deep) !important;
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: 0 50%;
  }

  .navbar-cta a {
    padding: 0.7em 1.4em !important;
    font-size: 0.7rem !important;
  }
}

.navbar .navbar-brand {
  flex: 0 0 auto;
}

/* Tablet-landscape / small laptop: eight items + two buttons must fit */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav .nav-link {
    font-size: 0.64rem !important;
    letter-spacing: 0.08em;
    margin: 0 0.42rem;
  }

  .navbar-cta a {
    padding: 0.6em 1em !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.08em;
  }

  .navbar-cta a.me-2 {
    margin-right: 0.35rem !important;
  }

  .navbar .navbar-brand img {
    height: 52px !important;
  }
}

/* Burger: round button, two lines -> X */
.navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid rgba(18, 20, 29, 0.35) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 10002;
  box-shadow: none !important;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.navbar-toggler:hover {
  background: var(--v-ink);
  border-color: var(--v-ink) !important;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: none !important;
  width: 20px;
  height: 2px;
  background: var(--v-ink);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(-4px);
  transition: transform 0.4s var(--ease-out), background-color 0.4s;
}

.navbar-toggler .navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.navbar-toggler:hover .navbar-toggler-icon {
  background: #fff;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  transform: translate(-50%, -50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0;
  transform: rotate(-90deg);
}

/* Full-screen circular mobile menu (replaces the height collapse) */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    background: var(--v-page);
    clip-path: circle(0% at calc(100% - 46px) 46px);
    visibility: hidden;
    height: auto !important;
    overflow: visible;
    transition: clip-path 0.8s var(--ease-out), visibility 0s linear 0.8s;
  }

  .navbar .navbar-collapse.collapsing {
    transition: clip-path 0.8s var(--ease-out), visibility 0s;
  }

  .navbar .navbar-collapse.show {
    clip-path: circle(150% at calc(100% - 46px) 46px);
    visibility: visible;
    transition: clip-path 0.8s var(--ease-out), visibility 0s;
  }

  .navbar .navbar-collapse .mx-auto {
    margin: 0 !important;
  }

  .navbar .navbar-collapse .navbar-nav {
    align-items: center;
    gap: 1.1rem;
  }

  .navbar .navbar-collapse .nav-link {
    font-size: 1.15rem !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600 !important;
    color: var(--v-ink) !important;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out), color 0.35s;
  }

  .navbar .navbar-collapse.show .nav-link {
    opacity: 1;
    transform: none;
  }

  .navbar .navbar-collapse.show .nav-item:nth-child(1) .nav-link { transition-delay: 0.16s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(2) .nav-link { transition-delay: 0.22s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(3) .nav-link { transition-delay: 0.28s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(4) .nav-link { transition-delay: 0.34s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(5) .nav-link { transition-delay: 0.40s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(6) .nav-link { transition-delay: 0.46s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(7) .nav-link { transition-delay: 0.52s; }
  .navbar .navbar-collapse.show .nav-item:nth-child(8) .nav-link { transition-delay: 0.58s; }

  .navbar .navbar-collapse .navbar-cta {
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease) 0.64s, transform 0.6s var(--ease-out) 0.64s;
  }

  .navbar .navbar-collapse.show .navbar-cta {
    opacity: 1;
    transform: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ---------------- ONDC submenu (Marketplace, Programs) ----------------
   "ONDC" stays a real link to ondc.html; the submenu opens on hover/focus on
   desktop and is listed inline under it in the full-screen mobile menu. No
   .dropdown-toggle: its ::after caret would collide with the nav underline. */
.nav-caret {
  font-size: 0.62em;
  margin-left: 0.3em;
  vertical-align: 0.15em;
  transition: transform 0.3s var(--ease-out);
}

.navbar .nav-item.dropdown .dropdown-item {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(18, 20, 29, 0.86);
}

.navbar .nav-item.dropdown .dropdown-item:hover,
.navbar .nav-item.dropdown .dropdown-item:focus,
.navbar .nav-item.dropdown .dropdown-item.active {
  color: var(--v-blue);
  background: rgba(8, 77, 168, 0.08);
}

@media (min-width: 992px) {
  .navbar .nav-item.dropdown .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 200px;
  }

  .navbar .nav-item.dropdown:hover > .dropdown-menu,
  .navbar .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
    animation: navDrop 0.22s var(--ease-out);
  }

  .navbar .nav-item.dropdown:hover .nav-caret,
  .navbar .nav-item.dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse .nav-item.dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar .nav-item.dropdown::after,
  .navbar .nav-caret {
    display: none;
  }

  .navbar .navbar-collapse .dropdown-menu {
    display: flex;
    gap: 1.4rem;
    position: static;
    min-width: 0;
    margin: 0.55rem 0 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
  }

  .navbar .navbar-collapse.show .dropdown-menu {
    opacity: 1;
    transform: none;
    transition-delay: 0.55s;
  }

  .navbar .navbar-collapse .dropdown-item {
    padding: 0;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--v-ink-45);
    background: none !important;
  }
}

/* ---------------- Hero: blobs, masked lines, clip-wipe image ---------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent !important;
}

.hero-bg {
  position: absolute;
  inset: -15% -10%;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  will-change: transform;
  contain: paint layout;
  transform: translate3d(0, 0, 0);
  animation: blobDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.blob.b1 { width: 46vw; height: 46vw; background: var(--v-blue-soft); top: -6%; right: -8%; }
.blob.b2 { width: 34vw; height: 34vw; background: var(--v-green-soft); bottom: 2%; left: -6%; opacity: 0.5; animation-delay: -6s; }
.blob.b3 { width: 26vw; height: 26vw; background: var(--v-lav-soft); top: 38%; right: 34%; opacity: 0.42; animation-delay: -11s; }
.blob.b4 { width: 22vw; height: 22vw; background: var(--v-sun-soft); bottom: -6%; right: 16%; opacity: 0.4; animation-delay: -3s; }

/* TRANSLATE ONLY - no scale()/rotate().
   A blurred layer is rasterised (blur included) once and then transformed. As
   soon as the keyframes also scale or rotate it the raster scale no longer
   matches, so the browser re-runs the 48px blur across the whole 46vw blob
   every single frame - four of them, in the hero, forever. That re-raster is
   what made the hero animation stutter on weaker GPUs. */
@keyframes blobDrift {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(3vw, -2vw, 0); }
  100% { transform: translate3d(-2vw, 2vw, 0); }
}

/* Heading word masks (JS wraps each word in .w > span). Words wrap
   naturally; each rises out of its own mask with a per-word stagger. */
.hero-section h1 .w,
.hero-section h2 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-section h1 .w > span,
.hero-section h2 .w > span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
  transition: transform 0.45s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 16ms);
}

.ready .hero-section h1 .w > span,
.ready .hero-section h2 .w > span {
  transform: translateY(0);
}

/* Undo live's hover-nudge on the hero h1/h2 */
.hero-section h1,
.hero-section:hover h1,
.hero-section h2,
.hero-section:hover h2 {
  transform: none;
}

.hero-section h1 span img,
.hero-section h2 span img,
.hero-ondc-logo {
  vertical-align: -0.12em;
}

/* Secondary hero copy staggers in after the heading */
.hero-section .badge-pill,
.hero-section p.lead,
.hero-section .cta-action,
.hero-section .d-flex.justify-content-center {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.hero-section .badge-pill { transition-delay: 0.04s; }
.hero-section p.lead { transition-delay: 0.12s; }
.hero-section .cta-action { transition-delay: 0.18s; }
.hero-section .d-flex.justify-content-center { transition-delay: 0.18s; }

.ready .hero-section .badge-pill,
.ready .hero-section p.lead,
.ready .hero-section .cta-action,
.ready .hero-section .d-flex.justify-content-center {
  opacity: 1;
  transform: none;
}

/* Hero imagery: arch frame + clip wipe + subtle parallax scale */
.hero-section .img-container,
.hero-visual .photo-frame,
.ondc-hero-card,
.hero-section .contact-card {
  position: relative;
}

/* The arch mask lives on the IMAGE, not the frame, so the floating tag
   (.photo-badge) can overhang the corner without being clipped. */
.hero-section .img-container .expand-image,
.hero-visual .photo-frame img {
  border-radius: 210px 210px 30px 30px !important;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path, transform;
  transition: clip-path 0.55s var(--ease-out) 0.04s;
  box-shadow: 0 50px 90px -50px rgba(11, 46, 95, 0.55);
  animation: none;
}

.ready .hero-section .img-container .expand-image,
.ready .hero-visual .photo-frame img {
  clip-path: inset(0 0 0 0);
}

.hero-visual .photo-frame {
  overflow: visible !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  animation: none;
}

.hero-visual .photo-frame img {
  transform: scale(1.02);
  transform-origin: 50% 60%;
  will-change: transform;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  width: 100%;
}

.hero-visual::before {
  display: none;
}

/* Floating tag (existing .photo-badge) pops in last, overhanging the corner */
.photo-badge {
  position: absolute;
  right: -18px;
  bottom: 22px;
  border-radius: 20px;
  padding: 0.9rem 1.2rem;
  background: #fff;
  color: var(--v-ink);
  border: none;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 22px 50px -26px rgba(18, 20, 29, 0.45);
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
  transition: opacity 0.6s var(--ease-out) 0.45s, transform 0.6s var(--ease-out) 0.45s;
  z-index: 3;
}

.photo-badge .dot,
.photo-badge i {
  color: var(--v-green);
}

@media (max-width: 576px) {
  .photo-badge {
    right: 8px;
    bottom: 12px;
  }
}

.photo-badge i {
  color: var(--v-green);
}

.ready .photo-badge {
  opacity: 1;
  transform: none;
}

/* ONDC hero card & contact card: soft lift in */
.ondc-hero-card,
.hero-section .contact-card {
  border-radius: var(--v-r-lg) !important;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  will-change: opacity, transform;
  transition: opacity 0.75s var(--ease-out) 0.2s, transform 0.75s var(--ease-out) 0.2s;
}

.ready .ondc-hero-card,
.ready .hero-section .contact-card {
  opacity: 1;
  transform: none;
}

/* Count-up numbers */
.ondc-hero-stats strong,
.stats-section .col-md-3 h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--v-blue);
}

/* ---------------- Trusted logos: infinite ticker ---------------- */
.trusted-partners,
.trusted-strip {
  background: transparent !important;
}

.trusted-logos.is-ticker {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trusted-logos.is-ticker .ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
  padding-right: clamp(3rem, 6vw, 6rem);
  will-change: transform;
  flex: 0 0 auto;
}

.trusted-logos.is-ticker p {
  margin: 0;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--v-ink-45);
}

.trusted-logos img {
  opacity: 1;
  transition: transform 0.4s var(--ease-out);
}

.trusted-logos img:hover {
  transform: translateY(-3px) scale(1.04);
}

/* ---------------- Cards & panels ---------------- */
.feature-box,
.about-col,
.cta-card,
.problem-card,
.build-card,
.phase-card,
.hub-card,
.industry-card,
.related-card,
.accordion-item,
.contact-box,
.enquiry-form,
.card,
.testimonial-section .card {
  border-radius: var(--v-r-lg) !important;
  border: 1px solid var(--v-ink-14);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s;
}

.phase-card,
.cta-card.blue-card,
.cta-card.green-card {
  border-color: transparent;
}

.feature-box:hover,
.about-col:hover,
.problem-card:hover,
.build-card:hover,
.hub-card:hover,
.industry-card:hover,
.related-card:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(18, 20, 29, 0.35);
  border-color: transparent;
}

.cta-card:hover,
.phase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 70px -30px rgba(18, 20, 29, 0.45);
}

.hub-card .icon,
.problem-card .icon,
.industry-card .icon,
.related-card .icon {
  transition: transform 0.6s var(--ease-out), background-color 0.4s;
}

.hub-card:hover .icon,
.problem-card:hover .icon,
.industry-card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
}

/* Big ghost numerals (live .features) keep their playful scale */
.features .large-number {
  font-family: var(--font-display);
  font-weight: 300;
}

/* Imagery */
.empower-video img,
.benefits-section img.img-fluid,
.benefits-photo,
.build-visual img,
.about-section .about-image-container img,
.expand-photo-section img {
  border-radius: var(--v-r-lg);
}

.empower-video {
  border-radius: var(--v-r-xl);
  overflow: hidden;
}

/* Dark bands: deep navy gradient + faint grid. .empower-business (careers,
   contact) was the live site's flat #0033cc royal blue, the only place that
   colour survived the redesign; it now matches the other dark bands. */
.expand-business,
.expand-photo-section,
.empower-business,
.cta-section {
  position: relative;
  isolation: isolate;
}

.expand-business,
.expand-photo-section,
.empower-business {
  background: radial-gradient(120% 140% at 85% 10%, #163b73 0%, var(--v-ink) 55%) !important;
}

/* On careers there is no .hero-section, so modern-plus.js puts the orbit ring
   in .empower-business. Unclipped, it stuck ~250px past the right edge and
   the whole page could slide sideways (body overflow-x:hidden only stops the
   scrollbar, not swipe/programmatic horizontal scrolling). */
.empower-business {
  overflow: hidden;
}

.expand-business::before,
.expand-photo-section::before,
.empower-business::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000 30%, transparent 100%);
}

.cta-section::before {
  background: linear-gradient(180deg, rgba(11, 46, 95, 0.55), rgba(18, 20, 29, 0.65)) !important;
}

/* FAQ accordion */
.accordion-item {
  background: #fff;
}

.accordion-button {
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.accordion-button::after {
  transition: transform 0.45s var(--ease-out);
}

/* Footer */
.footer {
  border-top: 1px solid var(--v-ink-14);
  background: transparent !important;
}

.footer .list-inline-item a:hover {
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 16px 30px -14px rgba(89, 143, 47, 0.6);
}

.footer-rights-policies {
  background: transparent !important;
}

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(0.94); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Curtain wipe for images */
[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  position: relative;
  overflow: hidden;
  border-radius: var(--v-r-lg);
}

[data-reveal="clip"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--curtain, var(--v-page));
  transform-origin: 50% 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="clip"].is-visible::after {
  transform: scaleY(0);
}

/* Word-by-word lit paragraphs */
[data-words] w {
  transition: color 0.35s var(--ease), opacity 0.35s var(--ease);
  color: var(--v-ink-45);
}

[data-words] w.lit {
  color: var(--v-ink);
}

[data-words] w.accent.lit {
  color: var(--v-blue);
  font-style: italic;
  font-family: var(--font-display);
}

/* Dark bands: the default ink-on-light word colours are invisible here */
.empower-business [data-words] w,
.expand-photo-section [data-words] w { color: rgba(255, 255, 255, 0.45); }
.empower-business [data-words] w.lit,
.expand-photo-section [data-words] w.lit { color: #fff; }
.empower-business [data-words] w.accent.lit,
.expand-photo-section [data-words] w.accent.lit { color: #cfe3bd; }

/* ---------------- Cursor ring: disabled for native 0ms latency ---------------- */
.cursor {
  display: none !important;
}

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--v-blue);
  border: 1px solid var(--v-ink-14);
  box-shadow: 0 10px 30px -14px rgba(18, 20, 29, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease-out), visibility 0.25s, background-color 0.2s, color 0.2s !important;
  will-change: transform, opacity;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.back-to-top:hover {
  background: var(--v-ink);
  color: #fff;
  border-color: var(--v-ink);
  transform: translate3d(0, -3px, 0) !important;
}

@media (max-width: 576px) {
  .back-to-top { left: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---------------- Footer elements: instant visibility, zero reveal lag ---------------- */
footer,
.footer-section,
.footer-rights-policies,
.technology-desc,
.footer-menus,
.footer-quick-links,
.footer-logo,
.copyrights,
.policies {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

.whatsapp-float {
  will-change: transform;
  transition: transform 0.18s var(--ease-out), box-shadow 0.2s var(--ease-out) !important;
}

.whatsapp-float:hover {
  transform: scale(1.08) !important;
}

/* ---------------- Responsive touches ---------------- */
@media (max-width: 940px) {
  .blob { filter: blur(42px); }
  .hero-section .img-container .expand-image,
  .hero-visual .photo-frame img {
    border-radius: 140px 140px 24px 24px !important;
    clip-path: inset(0 0 100% 0);
  }
  .ready .hero-section .img-container .expand-image,
  .ready .hero-visual .photo-frame img {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .hero-section h1 .w > span,
  .hero-section h2 .w > span,
  .hero-section .badge-pill,
  .hero-section p.lead,
  .hero-section .cta-action,
  .photo-badge,
  .ondc-hero-card,
  .hero-section .contact-card,
  .hero-section .img-container .expand-image,
  .hero-visual .photo-frame {
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-reveal="clip"]::after { display: none; }
  .btn::after { display: none; }
  .cursor { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
