/* ============================================================
   Vostok Consult - motion layer styles (additive)
   Pairs with js/motion.js + js/ai-network.js.
   Brand tokens expected in :root (already on the live site):
   --night --navy --navy-2 --amber --amber-2 --amber-deep
   --bg --ink --muted
   ============================================================ */

:root {
  --vc-glow: 0 0 0 1px rgba(240, 169, 60, .18), 0 0 42px -10px rgba(240, 169, 60, .40);
  --vc-card-shadow: 0 24px 50px -28px rgba(11, 20, 38, .45);
}

/* ---------- hero canvas ------------------------------------- */
#ai-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- scroll progress bar ------------------------------ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--amber-deep, #E0912A), var(--amber-2, #F6C679));
  box-shadow: 0 0 12px rgba(240, 169, 60, .55);
  pointer-events: none;
}

/* ---------- compact sticky header ----------------------------
   NOTE: colours assume a dark header. If your header is light,
   swap the rgba() background for a light one.                   */
[data-nav],
.site-header {
  transition: padding .35s ease, background-color .35s ease, box-shadow .35s ease;
}
[data-nav].is-scrolled,
.site-header.is-scrolled {
  background: rgba(11, 20, 38, .88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .65);
}

/* ---------- magnetic CTA ------------------------------------- */
.btn-magnetic {
  position: relative;
  isolation: isolate;           /* lets the -1 z-index glow sit behind the face */
  display: inline-block;
  will-change: transform;
}
.btn-magnetic::after {          /* soft animated amber halo */
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(120deg,
      var(--amber-deep, #E0912A),
      var(--amber-2, #F6C679) 40%,
      var(--amber, #F0A93C) 60%,
      var(--amber-deep, #E0912A));
  background-size: 220% 220%;
  filter: blur(7px);
  opacity: 0;
  transition: opacity .35s ease;
  animation: vc-shimmer 3.2s linear infinite;
}
.btn-magnetic:hover::after,
.btn-magnetic:focus-visible::after { opacity: .9; }
.btn-magnetic::before {         /* light sheen sweep */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn-magnetic:hover::before { transform: translateX(130%); }
@keyframes vc-shimmer { to { background-position: 220% 0; } }

/* ---------- premium cards ------------------------------------ */
.vc-card {
  border-radius: 18px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.vc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vc-card-shadow), var(--vc-glow);
  border-color: rgba(240, 169, 60, .45);
}
.card-tilt {
  transform-style: preserve-3d;
  transition: box-shadow .35s ease, border-color .35s ease; /* GSAP owns transform */
}

/* ---------- process timeline --------------------------------- */
.vc-timeline { position: relative; }
.vc-timeline-line {
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .10);
  overflow: hidden;
}
.vc-timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--amber-2, #F6C679), var(--amber-deep, #E0912A));
  transform: scaleY(0);
  transform-origin: top center;
  box-shadow: 0 0 14px rgba(240, 169, 60, .6);
}
.vc-step {
  position: relative;
  padding: 1.1rem 0 1.1rem 72px;
}
.vc-step-dot {
  position: absolute;
  left: 12px;
  top: 1.35rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .22);
  background: var(--navy, #101B33);
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease, transform .4s ease;
}
.vc-step-dot::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: background .4s ease;
}
.vc-step-title,
.vc-step-body { transition: color .4s ease, opacity .4s ease; }
.vc-step-body { opacity: .72; }
.vc-step.is-active .vc-step-dot {
  border-color: var(--amber, #F0A93C);
  background: rgba(240, 169, 60, .12);
  box-shadow: 0 0 0 5px rgba(240, 169, 60, .12), 0 0 26px rgba(240, 169, 60, .55);
  transform: scale(1.08);
}
.vc-step.is-active .vc-step-dot::after { background: var(--amber, #F0A93C); }
.vc-step.is-active .vc-step-title { color: var(--amber-2, #F6C679); }
.vc-step.is-active .vc-step-body { opacity: 1; }

/* ---------- pinned horizontal section ------------------------ */
[data-hscroll] { overflow: hidden; }
[data-hscroll-track] {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}
@media (max-width: 991.98px) {   /* graceful swipe fallback */
  .vc-hswipe {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .5rem;
  }
  .vc-hswipe::-webkit-scrollbar { display: none; }
  [data-hscroll-track] { transform: none !important; }
  [data-hscroll-track] > * { scroll-snap-align: center; }
}

/* ---------- marquee (jurisdiction badges) --------------------
   Duplicate the track contents once in the markup for a
   seamless loop.                                                */
.vc-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.vc-marquee-track {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: max-content;
  animation: vc-marquee 32s linear infinite;
}
.vc-marquee:hover .vc-marquee-track { animation-play-state: paused; }
@keyframes vc-marquee { to { transform: translateX(-50%); } }

/* ---------- ambient depth utilities -------------------------- */
.vc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: vc-float 14s ease-in-out infinite alternate;
}
.vc-orb--amber { background: radial-gradient(circle, rgba(240, 169, 60, .28), transparent 65%); }
.vc-orb--blue  { background: radial-gradient(circle, rgba(30, 52, 92, .85), transparent 65%); }
@keyframes vc-float {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(2.5%, 4%, 0) scale(1.06); }
}
.vc-grid-bg {
  background-image: radial-gradient(rgba(240, 169, 60, .13) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- sticky mobile CTA bar ----------------------------- */
.vc-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: none;
  gap: .55rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(11, 20, 38, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(240, 169, 60, .28);
}
.vc-mobile-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem .5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #EAF0FA;
}
.vc-mobile-cta a.is-primary {
  background: linear-gradient(120deg, var(--amber-deep, #E0912A), var(--amber, #F0A93C));
  border-color: transparent;
  color: #1A1205;
}
@media (max-width: 767.98px) {
  .vc-mobile-cta { display: flex; }
  body { padding-bottom: 76px; } /* keep footer clear of the bar */
}

/* ---------- WhatsApp float (desktop / tablet) ----------------- */
.vc-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5), 0 0 0 0 rgba(37, 211, 102, .5);
  animation: vc-pulse 2.6s ease-out infinite;
  transition: transform .25s ease;
}
.vc-whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }
@keyframes vc-pulse {
  0%   { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5), 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 767.98px) {
  .vc-whatsapp-float { display: none; } /* mobile bar covers this */
}

/* ---------- text helpers -------------------------------------- */
.text-amber-grad {
  background: linear-gradient(100deg, var(--amber-2, #F6C679), var(--amber, #F0A93C) 55%, var(--amber-deep, #E0912A));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- reduced motion ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .vc-marquee-track { animation: none; transform: none; }
  .vc-orb { animation: none; }
  .btn-magnetic::after { animation: none; }
  .vc-whatsapp-float { animation: none; }
  #scroll-progress { display: none; }
}
