/* ============================================================
   ERWAGO Infotech — Clean White Design System (vectr-style)
   Horizontal scroll-infographic + high interactivity
   ============================================================ */

:root {
  --navy: #09142D;
  --navy-deep: #06111F;
  --blue: #2279FD;
  --blue-dark: #1857C4;
  --cyan: #7CCBFF;
  --bg: #FFFFFF;
  --soft: #F4F7FB;
  --soft-blue: #E7EEF8;
  --line: #E4EAF3;
  --text: #101828;
  --muted: #64748B;
  --white: #FFFFFF;

  --radius: 22px;
  --radius-sm: 14px;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 14px 40px rgba(16, 24, 40, 0.09);
  --shadow-blue: 0 16px 44px rgba(34, 121, 253, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

::selection { background: rgba(34, 121, 253, 0.18); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ---------- Buttons (magnetic) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
}
/* Every button: blue background, white text; darker blue on hover */
.btn-primary, .btn-dark, .btn-ghost {
  background: var(--blue);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover, .btn-dark:hover, .btn-ghost:hover {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 20px 54px rgba(34, 121, 253, 0.34);
}
/* the "Take the tour" button keeps its light secondary look */
.btn-tour {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}
.btn-tour:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.btn .arr { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  position: relative;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a:not(.btn):hover, .main-nav a:not(.btn).active { color: var(--blue); }
.main-nav .btn { padding: 11px 24px; font-size: 0.88rem; }
/* "Tour" nav link — play glyph to signal the interactive presentation */
.main-nav a.nav-tour { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 700; }
.main-nav a.nav-tour::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--blue);
  transition: transform 0.25s var(--ease);
}
.main-nav a.nav-tour:hover::before { transform: scale(1.25); }
.btn-tour svg { transform: translateY(0.5px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Generic sections ---------- */
main { padding-top: var(--header-h); }
.section { padding: clamp(80px, 10vh, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 56px; text-align: left; }
.section-head .eyebrow { justify-content: center; }
.section-head.left .eyebrow { justify-content: flex-start; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.center { text-align: center; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.22s; }
.reveal[data-delay="3"] { transition-delay: 0.34s; }
.reveal[data-delay="4"] { transition-delay: 0.46s; }
.reveal[data-delay="5"] { transition-delay: 0.58s; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D3DFF0; }
.card .card-num {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.card h3 { margin: 12px 0 8px; }
.card p { font-size: 0.96rem; margin: 0; }
.card .card-img {
  height: 190px;
  display: grid;
  place-items: center;
  margin: -8px -8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  overflow: visible;
}
.card .card-img img {
  max-height: 165px;
  width: auto;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-img img { transform: scale(1.07) translateY(-4px); }

/* big number cards (vectr-style) */
.num-card { padding: 38px 34px; }
.num-card .big-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--soft-blue);
  -webkit-text-stroke: 1.5px var(--blue);
  margin-bottom: 16px;
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* visible keyboard focus across interactive elements (a11y) */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.rail-dot:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.chip-arrow { color: #B7C5DA; font-weight: 700; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--blue); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(34, 121, 253, 0.55);
  box-shadow: 0 0 16px rgba(34, 121, 253, 0.35);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease),
              background 0.25s, border-color 0.25s, opacity 0.3s;
}
body.cursor-hover .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(34, 121, 253, 0.08); border-color: var(--blue); }
body.cursor-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
body.cursor-hidden .cursor-ring, body.cursor-hidden .cursor-dot { opacity: 0; }

/* ============================================================
   PRELOADER  (white screen + glowing string)
   ============================================================ */
.site-loader {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.site-loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader-logo { height: 74px; width: auto; animation: loaderPulse 1.8s ease-in-out infinite; }
.loader-string {
  position: relative; width: min(260px, 60vw); height: 3px;
  border-radius: 3px; background: var(--soft-blue); overflow: hidden;
}
.loader-string::after {
  content: ""; position: absolute; inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 14px rgba(34, 121, 253, 0.6);
  animation: loaderFill 1.5s var(--ease) forwards;
}
.loader-comet {
  position: absolute; top: 50%; left: 0;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 16px 4px rgba(124, 203, 255, 0.8);
  animation: loaderComet 1.5s var(--ease) forwards;
}
.site-loader.quick .loader-string::after, .site-loader.quick .loader-comet { animation-duration: 0.35s; }
.site-loader.quick .loader-logo { animation: none; }
@keyframes loaderFill { to { inset: 0 0 0 0; } }
@keyframes loaderComet { to { left: 100%; } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader-logo, .loader-string::after, .loader-comet { animation: none !important; }
  .loader-string::after { inset: 0; }
}

/* ============================================================
   INTRO GATE  (tour-first landing screen)
   ============================================================ */
.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 28%, #FFFFFF, rgba(255, 255, 255, 0)) ,
    radial-gradient(ellipse 70% 60% at 80% 90%, rgba(124, 203, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 80%, rgba(34, 121, 253, 0.14), transparent 60%),
    #F4F7FB;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
html.intro-seen .intro-gate { display: none; }
.intro-gate.closing { opacity: 0; visibility: hidden; }
.intro-gate::before {
  content: "";
  position: absolute;
  width: 140%; height: 140%;
  top: -20%; left: -20%;
  background: conic-gradient(from 0deg, transparent 0 80%, rgba(34, 121, 253, 0.06) 90%, transparent 100%);
  animation: introSpin 18s linear infinite;
}
@keyframes introSpin { to { transform: rotate(360deg); } }
.intro-inner { position: relative; max-width: 700px; animation: introIn 0.85s var(--ease) both; }
@keyframes introIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.intro-logo { height: 86px; width: auto; margin: 0 auto 26px; animation: floatY 6s ease-in-out infinite; }
.intro-eyebrow { justify-content: center; }
.intro-title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 16px; }
.intro-sub { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin: 0 auto; }
.intro-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.intro-hint { margin-top: 26px; font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(50px, 8vh, 100px) 0 clamp(50px, 7vh, 90px); overflow: hidden; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 121, 253, 0.07), transparent 65%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-copy .sub { font-size: 1.12rem; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-visual { position: relative; animation: floatY 7s ease-in-out infinite; }
.hero-visual img {
  width: 100%;
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero-visual .glow {
  position: absolute;
  inset: 6% 0%;
  background: radial-gradient(ellipse at center, rgba(34, 121, 253, 0.16), rgba(124, 203, 255, 0.08) 45%, transparent 72%);
  filter: blur(26px);
  z-index: 0;
  animation: glowBreath 6s ease-in-out infinite;
}
@keyframes glowBreath {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ============================================================
   IMAGE INTERACTION SYSTEM
   Glow halo · sheen sweep · pointer parallax · entrance settle
   Applied to every product visual across the site.
   Motion uses transform/opacity only and is gated on hover/in-view.
   ============================================================ */

/* shared stage behaviour for image wrappers */
.card-img, .offer-visual, .hpanel-visual {
  position: relative;
  isolation: isolate;
}

/* glow halo behind the product (brand blue), revealed on hover */
.card-img::after, .offer-visual::after {
  content: "";
  position: absolute;
  inset: 8% 10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 121, 253, 0.22), rgba(124, 203, 255, 0.1) 50%, transparent 72%);
  filter: blur(22px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.card:hover .card-img::after,
.offer-card:hover .offer-visual::after { opacity: 1; transform: scale(1); }

/* images sit above the glow and parallax via JS */
.card-img img, .offer-visual img, .hpanel-visual img, .step-card img, .page-hero img {
  position: relative;
  z-index: 1;
  transform-origin: center 62%;
  will-change: transform;
}

/* entrance "settle": blur-to-sharp + scale, tied to existing reveal trigger */
.card-img img, .offer-visual img, .step-card img {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.reveal.in .card-img img,
.reveal.in .offer-visual img,
.step-card.reveal.in img,
.reveal.in .step-card img,
.reveal.in.card .card-img img {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: 0.12s;
}
/* safety net: if a visual is in view but its reveal observer hasn't fired,
   never leave product images invisible */
.card-img img:not([style*="transform"]),
.offer-visual img,
.step-card img { will-change: opacity, transform; }
.no-js .card-img img, .no-js .offer-visual img, .no-js .step-card img { opacity: 1; transform: none; filter: none; }
/* page-hero / hero featured visuals settle immediately on load */
.page-hero img { animation: vizSettle 0.9s var(--ease) both; }
@keyframes vizSettle {
  from { opacity: 0; transform: translateY(18px) scale(0.95); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
/* gentle continuous float on sub-page hero visuals */
.page-hero .wrap > div:last-child { animation: floatY 7.5s ease-in-out infinite; }

/* hover lift for journey panel visuals (no continuous motion — focal restraint) */
.hpanel-visual img { transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.hpanel.active .hpanel-visual img { filter: drop-shadow(0 26px 44px rgba(34, 121, 253, 0.18)); }

/* pointer-parallax sets these vars in JS; default identity */
.viz-tilt {
  transform:
    perspective(900px)
    rotateX(var(--viz-rx, 0deg))
    rotateY(var(--viz-ry, 0deg))
    translate3d(var(--viz-tx, 0), var(--viz-ty, 0), 0)
    scale(var(--viz-s, 1));
}

/* hero capability rings */
.stat-strip {
  margin-top: clamp(46px, 7vh, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-eyebrow {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 30px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 14px 8px;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
}
.stat-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.stat-ring { position: relative; width: 116px; height: 116px; }
.stat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: none; stroke: var(--soft-blue); stroke-width: 9; }
.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.6s var(--ease);
  filter: drop-shadow(0 3px 8px rgba(34, 121, 253, 0.35));
}
.ring-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 160px;
  line-height: 1.4;
}

/* ---------- Marquee ticker ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  background: var(--soft);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span i {
  font-style: normal;
  color: var(--blue);
}

/* ============================================================
   HORIZONTAL SCROLL JOURNEY  — the signature infographic
   ============================================================ */
.hscroll { position: relative; }
/* JS sets the outer height; sticky viewport pins while track slides */
.hscroll-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.hscroll-head {
  position: absolute;
  top: calc(var(--header-h) + 18px);
  left: 0; right: 0;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.hscroll-head .eyebrow { justify-content: center; margin-bottom: 8px; }
.hscroll-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0; }

/* progress rail */
.hscroll-rail {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 78vw);
  z-index: 5;
}
.hscroll-rail .rail-line {
  position: relative;
  height: 3px;
  background: var(--soft-blue);
  border-radius: 3px;
}
.hscroll-rail .rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--blue);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(34, 121, 253, 0.5);
}
.hscroll-rail .rail-dots {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rail-dot {
  width: 26px; height: 26px;
  margin-top: -0px;
  transform: translateY(0);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--soft-blue);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.35s var(--ease);
  cursor: pointer;
}
.rail-dot.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(34, 121, 253, 0.16);
  transform: scale(1.18);
}

/* the sliding track */
.hscroll-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  will-change: transform;
}
.hpanel {
  flex: 0 0 100vw;
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: 0 clamp(28px, 8vw, 140px);
}
.hpanel-visual { position: relative; display: grid; place-items: center; }
.hpanel-visual img {
  max-height: min(52vh, 460px);
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 30px 50px rgba(16, 24, 40, 0.12));
  transition: transform 0.6s var(--ease);
}
.hpanel.active .hpanel-visual img { transform: scale(1.03); }
.hpanel-copy .step-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hpanel-copy .step-tag::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--blue);
}
.hpanel-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.hpanel-copy p { font-size: 1.05rem; max-width: 480px; }
/* staged content inside panels */
.hpanel .stagger { opacity: 0; transform: translateX(48px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hpanel.active .stagger { opacity: 1; transform: translateX(0); }
.hpanel.active .stagger:nth-child(2) { transition-delay: 0.1s; }
.hpanel.active .stagger:nth-child(3) { transition-delay: 0.2s; }
.hpanel.active .stagger:nth-child(4) { transition-delay: 0.3s; }

/* hint */
.hscroll-hint {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 5;
  opacity: 0.7;
}

/* ============================================================
   Offers
   ============================================================ */
.offer-card { display: grid; grid-template-rows: auto 1fr; padding: 40px; overflow: hidden; }
.offer-card .offer-visual {
  display: grid; place-items: center;
  height: 240px;
  margin: -12px -12px 22px;
  border-radius: var(--radius-sm);
  background: transparent;
  overflow: visible;
}
.offer-card .offer-visual img { max-height: 210px; width: auto; transition: transform 0.5s var(--ease); }
.offer-card:hover .offer-visual img { transform: scale(1.06) rotate(-1deg); }
.offer-card ul { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 11px; }
.offer-card li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.offer-card li::before { content: "→"; color: var(--blue); font-weight: 700; flex: 0 0 auto; }

/* ============================================================
   Steps (vertical fallback / subpage steps)
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { text-align: left; }
.step-card .step-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.step-card img { height: 120px; width: auto; margin: 14px 0 6px; }

/* ============================================================
   Proof / stats
   ============================================================ */
.proof-card {
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  background: var(--navy);
  border: 1px solid var(--navy);
  color: var(--white);
}
.proof-card h3 { color: var(--white); font-size: 1.5rem; }
.proof-card > p { color: rgba(231, 238, 248, 0.66); }
.proof-rows { display: grid; gap: 24px; margin-top: 30px; }
.proof-row .proof-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  color: rgba(231, 238, 248, 0.9);
  margin-bottom: 9px;
}
.proof-row .proof-label b { color: var(--cyan); }
.proof-bar { height: 9px; border-radius: 6px; background: rgba(124, 203, 255, 0.16); overflow: hidden; }
.proof-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 1.5s var(--ease);
}

/* ============================================================
   Testimonials
   ============================================================ */
.signal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.signal-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; }
.signal-card blockquote { margin: 0; font-size: 0.99rem; color: var(--text); flex: 1; }
.signal-card blockquote::before { content: "“"; color: var(--blue); font-family: var(--font-head); font-size: 2rem; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.signal-card .who { display: flex; align-items: center; gap: 12px; }
.signal-card .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(140deg, var(--blue), var(--cyan));
}
.signal-card .who b { font-family: var(--font-head); display: block; font-size: 0.93rem; color: var(--navy); }
.signal-card .who span { font-size: 0.8rem; color: var(--muted); }
.signal-card .stars { color: #FFB400; font-size: 0.95rem; letter-spacing: 2px; line-height: 1; }
.signal-card .stars .off { color: #D8E0EC; }

/* ---------- Social links (footer) ---------- */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--navy);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.social-links svg { width: 18px; height: 18px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 26px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq details[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soft);
  color: var(--blue);
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq details p { padding: 0 0 24px; margin: 0; font-size: 0.96rem; }

/* ============================================================
   CTA gateway
   ============================================================ */
.gateway {
  border-radius: 28px;
  padding: clamp(48px, 7vw, 84px);
  text-align: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.gateway::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 380px;
  background: radial-gradient(ellipse, rgba(34, 121, 253, 0.35), transparent 70%);
  pointer-events: none;
}
.gateway h2 { color: var(--white); }
.gateway > .wrap > p, .gateway > p { color: rgba(231, 238, 248, 0.72); }
.gateway-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 40px auto 0; }
.door {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 203, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: left;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(6px);
}
.door:hover { transform: translateY(-5px); border-color: var(--cyan); background: rgba(255, 255, 255, 0.1); }
.door h3 { color: var(--white); font-size: 1.2rem; }
.door p { color: rgba(231, 238, 248, 0.65); font-size: 0.92rem; }
.door .card-num { font-family: var(--font-head); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: var(--cyan); }

/* ============================================================
   Page hero (sub-pages)
   ============================================================ */
.page-hero { padding: clamp(50px, 8vh, 90px) 0 clamp(40px, 6vh, 70px); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.page-hero.solo .wrap { display: block; max-width: 820px; text-align: center; }
.page-hero.solo .eyebrow { justify-content: center; }
.journey-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(34, 121, 253, 0.08);
  border: 1px solid rgba(34, 121, 253, 0.22);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.page-hero .sub { max-width: 600px; font-size: 1.08rem; }
.page-hero img { animation: floatY 7s ease-in-out infinite; }

/* quote band */
.quote-band {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}
.quote-band .q-accent { color: var(--blue); }

/* soft band section */
.band { background: var(--soft); border-block: 1px solid var(--line); }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--navy); display: block; margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(34, 121, 253, 0.12);
}
textarea { min-height: 130px; resize: vertical; }
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 500;
  color: var(--text);
}
.radio-card:hover { border-color: var(--blue); }
.radio-card input { accent-color: var(--blue); margin-top: 4px; }
.radio-card.checked { border-color: var(--blue); background: rgba(34, 121, 253, 0.05); box-shadow: 0 0 0 3px rgba(34, 121, 253, 0.1); }

/* survey */
.survey-shell { max-width: 720px; margin: 0 auto; }
.survey-progress { display: flex; align-items: center; margin-bottom: 44px; }
.sp-node {
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--soft);
  border: 2px solid var(--line);
  transition: all 0.4s;
}
.sp-node.done, .sp-node.current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(34, 121, 253, 0.14);
}
.sp-bar { flex: 1; height: 3px; background: var(--soft-blue); position: relative; overflow: hidden; }
.sp-bar i { position: absolute; inset: 0; width: 0; background: var(--blue); transition: width 0.6s var(--ease); }
.sp-bar.filled i { width: 100%; }
.survey-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-md);
  animation: panelIn 0.5s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }
.survey-nav { display: flex; justify-content: space-between; margin-top: 30px; }

/* contact channels */
.channel-card { display: flex; gap: 16px; align-items: flex-start; }
.channel-card .ch-icon {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 1.25rem;
}
.channel-card .ch-icon svg { width: 24px; height: 24px; display: block; }
.channel-card .ch-icon.wa { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.3); color: #25D366; }
.channel-card b { font-family: var(--font-head); display: block; margin-bottom: 2px; color: var(--navy); }
.channel-card span, .channel-card a { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: #94A3B8;
}
.footer-bottom .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-bottom .footer-legal a { color: #94A3B8; font-size: 0.83rem; transition: color 0.2s; }
.footer-bottom .footer-legal a:hover { color: var(--blue); }
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }

/* sticky mobile CTA */
.sticky-cta { display: none; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90; }
.sticky-cta .btn { width: 100%; justify-content: center; box-shadow: 0 12px 38px rgba(34, 121, 253, 0.4); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .grid-4, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* static fallback for the horizontal journey (reduced motion / desktop fallback):
   same carousel treatment as mobile, applied via JS */
.hscroll.static { height: auto !important; }
.hscroll.static .hscroll-viewport { position: static; height: auto; overflow: visible; padding: 56px 0 16px; }
.hscroll.static .hscroll-head { position: static; margin-bottom: 26px; }
.hscroll.static .hscroll-track {
  transform: none !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 22px;
  padding: 0 24px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.hscroll.static .hpanel {
  flex: 0 0 min(900px, 82vw);
  min-height: auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-snap-align: center;
  background: var(--white);
}
.hscroll.static .hpanel .stagger { opacity: 1; transform: none; }
.hscroll.static .hpanel-visual img { max-height: 320px; }
.hscroll.static .hscroll-rail, .hscroll.static .hscroll-hint { display: none; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .main-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    flex-direction: column;
    align-items: flex-start;
    width: min(320px, 84vw);
    height: calc(100vh - var(--header-h));
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: block; }

  .hero .wrap, .page-hero .wrap, .grid-2, .grid-3, .gateway-doors, .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .section { padding: 64px 0; }

  /* horizontal journey → native swipe carousel */
  .hscroll { height: auto !important; }
  .hscroll-viewport { position: static; height: auto; overflow: visible; padding: 56px 0 16px; }
  .hscroll-head { position: static; margin-bottom: 26px; }
  .hscroll-track {
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    padding: 0 22px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) transparent;
  }
  .hpanel {
    flex: 0 0 86vw;
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scroll-snap-align: center;
    background: var(--white);
  }
  .hpanel .stagger { opacity: 1; transform: none; }
  .hpanel-visual img { max-height: 220px; }
  .hpanel-copy h3 { font-size: 1.4rem; }
  .hpanel-copy p { font-size: 0.95rem; }
  .hscroll-rail, .hscroll-hint { display: none; }

  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 110px; }
  .signal-row { grid-auto-columns: 86%; }
  .offer-card { padding: 28px; }
}

@media (max-width: 560px) {
  .grid-4, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-ring { width: 104px; height: 104px; }
}

/* ============================================================
   Motion safety
   This is an intentionally rich, animated marketing experience.
   We keep content reachable but do not strip the animations.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* guarantee scroll-revealed content is visible even if observers lag */
  .reveal { opacity: 1; transform: none; }
}
