/* ============================================
   INDEX.CSS — Homepage Specific Styles
   ============================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--n900);
}

.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Fond image (widget Elementor) : même remplissage que la vidéo */
.hero__video.hero__video--bg-image {
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(2, 12, 27, 0.7) 0%,
    rgba(2, 12, 27, 0.4) 50%,
    rgba(2, 12, 27, 0.75) 100%
  );
  z-index: 1;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(26, 111, 240, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 111, 240, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) var(--pad) 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}

.hero__content {
  max-width: 620px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(93, 163, 255, 0.25);
  border-radius: var(--r-pill);
  background: rgba(93, 163, 255, 0.08);
  margin-bottom: 2rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.5);
  }
}

.hero__badge-text {
  font-family: var(--fi);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  word-break: break-word;
}

.hero__title {
  font-family: var(--fs);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero__title-line {
  display: block;
}

.hero__title-line--dim {
  color: rgba(255, 255, 255, 0.65);
}

.hero__title-line--white {
  color: var(--white);
}

.hero__title-line--accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero__badges .hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--fs);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.8rem;
  background: transparent;
  margin-bottom: 0;
}

.hero__badges .hero__badge svg {
  stroke: rgba(93, 163, 255, 0.6);
  flex-shrink: 0;
}

.hero__proofs {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__proof-value {
  font-family: var(--fs);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero__proof-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__proof-sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Hero right: visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero__visual-card {
  background: rgba(10, 30, 61, 0.9);
  border: 1px solid rgba(93, 163, 255, 0.15);
  border-radius: var(--r-md);
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.hero__visual-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue3),
    var(--accent),
    var(--blue3),
    transparent
  );
  box-shadow: 0 0 12px rgba(93, 163, 255, 0.6);
  animation: scan-line 2.8s ease-in-out infinite;
  top: 0;
}

@keyframes scan-line {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.hero__visual-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__visual-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  background: rgba(26, 111, 240, 0.2);
  border: 1px solid rgba(26, 111, 240, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue3);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__visual-title {
  font-family: var(--fs);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.hero__visual-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.2rem;
}

.hero__visual-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__visual-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero__visual-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__visual-stat-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero__visual-stat-val {
  font-family: var(--fs);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__visual-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.hero__visual-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue2), var(--accent));
  animation: bar-fill 2s var(--ease) forwards;
  width: 0;
}

@keyframes bar-fill {
  to {
    width: var(--w);
  }
}

.hero__visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.75rem;
}

.hero__visual-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.hero__visual-badge-text {
  font-family: var(--fi);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-indicator 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-indicator {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ── PROOF BAR ── */
.proof-bar {
  background: var(--n800);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
}

.proof-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.proof-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 120px;
}

.proof-bar__value {
  font-family: var(--fs);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.proof-bar__value em {
  color: var(--accent);
  font-style: normal;
}

.proof-bar__label {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.proof-bar__sep {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ── PROBLEM SECTION ── */
.problem {
  background: var(--n900);
  overflow: hidden;
  position: relative;
}

.problem__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

/* ── CAR STAGE — Scène cinématique #problem ── */
.car-stage {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #0a1421;
}

/* Logo HPS — au-dessus visuellement mais derrière en z-index */
.car-stage__logo {
  position: absolute;
  top: 15%;
  left: 55%;
  transform: translate(-50%, 0) scale(0.7);
  width: 60%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0) invert(0.3)
    drop-shadow(0 0 50px rgba(93, 163, 255, 0.35));
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.problem--solved .car-stage__logo {
  opacity: 0.2;
  transform: translate(-50%, 0) scale(1);
}

/* Conteneur du véhicule — centré dans le cadre */
.car-stage__vehicle {
  position: absolute;
  bottom: -2%;
  left: -20%;
  width: 140%;
  will-change: transform;
  z-index: 1;
}

/* Voiture propre (image 5) */
.car-stage__car-clean {
  display: block;
  width: 100%;
  user-select: none;
}

/* Voiture endommagée (image 4) — visible par défaut, fade via toggle */
.car-stage__car-damaged {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  user-select: none;
}

/* Roue avant (image 6) — rotation GSAP */
.car-stage__wheel {
  position: absolute;
  /* À ajuster selon la composition exacte de 5.png */
  bottom: 3%;
  left: 10%;
  width: 24%;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
}

.problem__image-wrapper {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.problem__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 12, 27, 0.3),
    rgba(6, 21, 46, 0.5)
  );
}

.problem__image-label {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.85rem;
  z-index: 2;
}

.problem__image-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--error);
}

.problem__image-label-text {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--error);
  letter-spacing: 0.05em;
}

.problem__content {
}

.problem__title {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

/* ── PROBLEM TOGGLE ── */
.problem__toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.problem__toggle-label {
  font-family: var(--fs);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.35s;
}

.problem--solved .problem__toggle-label {
  opacity: 0;
  pointer-events: none;
}

.problem__toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
}

.problem__toggle-track {
  width: 52px;
  height: 28px;
  background: rgba(239, 68, 68, 0.2);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  border-radius: 14px;
  position: relative;
  transition:
    background 0.35s,
    border-color 0.35s;
}

.problem__toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ff4c4c;
  border-radius: 50%;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s;
}

.problem__toggle[aria-pressed="true"] .problem__toggle-track {
  background: rgba(26, 111, 240, 0.2);
  border-color: rgba(26, 111, 240, 0.5);
}

.problem__toggle[aria-pressed="true"] .problem__toggle-thumb {
  transform: translateX(24px);
  background: #1a6ff0;
}

/* Icons X / checkmark */
.icon--solution {
  display: none;
}
.icon--problem {
  display: block;
}

/* Bullet texts */
.bullet--solution {
  display: none;
}
.bullet--problem {
  display: block;
}

/* ── PROBLEM — état "solved" ── */
.problem--solved .icon--problem {
  display: none;
}
.problem--solved .icon--solution {
  display: block;
}

.problem--solved .bullet--problem {
  display: none;
}
.problem--solved .bullet--solution {
  display: block;
}

.problem--solved .problem__bullet-icon {
  background: rgba(26, 111, 240, 0.12);
  border-color: rgba(26, 111, 240, 0.3);
  transition:
    background 0.4s,
    border-color 0.4s;
}

.problem--solved .problem__bullet-icon svg {
  stroke: var(--blue3);
}

.problem--solved .problem__punchline {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.problem__punchline {
  transition: opacity 0.4s;
}

.problem__bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.problem__bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.problem__bullet-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.problem__bullet-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--error);
  stroke-width: 2;
  fill: none;
}

.problem__bullet-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.problem__punchline {
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.06);
  border-left: 2px solid var(--error);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

.problem__punchline p {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── SOLUTION SECTION ── */
.solution {
  background: var(--white);
}

.solution__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3.5rem;
}

.solution__content {
}

.solution__title {
  color: var(--g700);
  margin-bottom: 2.5rem;
}

.solution__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Timeline / fil d'Ariane ── */
.solution__timeline {
  position: relative;
  /* Align line center ↔ circle center at every breakpoint (override vars in media queries). */
  --solution-pl: 64px;
  --solution-line-left: 20px;
  --solution-line-width: 2px;
  --solution-circle-size: 42px;
  padding-left: var(--solution-pl);
}

/* Vertical line (under steps & numbers) */
.solution__timeline::before {
  content: "";
  position: absolute;
  left: var(--solution-line-left);
  top: 0;
  bottom: 0;
  width: var(--solution-line-width);
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 111, 240, 0.12) 4%,
    rgba(26, 111, 240, 0.12) 96%,
    transparent 100%
  );
}

/* Progress fill – grows as steps reveal (above track, below step circles) */
.solution__timeline::after {
  content: "";
  position: absolute;
  left: var(--solution-line-left);
  top: 0;
  width: var(--solution-line-width);
  height: var(--tl-h, 0px);
  background: var(--blue2, #1a6ff0);
  transition: height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.solution__cta {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(24px);
}

/* ── Step card ── */
.solution__step {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
  cursor: default;
  opacity: 0;
  transform: translateY(30px);
  overflow: visible;
  border-bottom: 1px solid rgba(26, 111, 240, 0.08);
}
.solution__step:last-child {
  border-bottom: none;
}

/* Scan sweep — contained inside the step-content wrapper */
.solution__step-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
  padding: 0.25rem 0;
}

.solution__step-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 111, 240, 0.06) 0%,
    rgba(26, 111, 240, 0.15) 25%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(26, 111, 240, 0.06) 75%,
    transparent 100%
  );
  transform: translateX(-110%);
  pointer-events: none;
  z-index: 2;
}

.solution__step.is-visible .solution__step-content::after {
  animation: scanSweep 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scanSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

/* ── Number on the timeline ── */
.solution__step-num {
  position: absolute;
  left: calc(
    var(--solution-line-left) + var(--solution-line-width) / 2 -
      var(--solution-circle-size) / 2 - var(--solution-pl)
  );
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: var(--solution-circle-size);
  height: var(--solution-circle-size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fs);
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(26, 111, 240, 0.35);
  background: #fff;
  border: 2px solid rgba(26, 111, 240, 0.15);
  border-radius: 50%;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0;
  line-height: 1;
}

/* Active number */
.solution__step.is-visible .solution__step-num {
  background: var(--blue2, #1a6ff0);
  border-color: var(--blue2, #1a6ff0);
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(26, 111, 240, 0.12),
    0 2px 8px rgba(26, 111, 240, 0.2);
}

/* ── Icon next to body ── */
.solution__step-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  background: rgba(26, 111, 240, 0.06);
  border: 1px solid rgba(26, 111, 240, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}

.solution__step-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue2, #1a6ff0);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease;
}

.solution__step.is-visible .solution__step-icon {
  background: rgba(26, 111, 240, 0.1);
  border-color: rgba(26, 111, 240, 0.25);
}

.solution__step-body {
  flex: 1;
}

.solution__step-title {
  font-family: var(--fs);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--g700);
  margin-bottom: 0.35rem;
  transition: color 0.4s ease;
}

.solution__step.is-visible .solution__step-title {
  color: var(--blue2, #1a6ff0);
}

.solution__step-text {
  font-size: 0.9rem;
  color: var(--g500);
  line-height: 1.65;
}

.solution__visual {
  display: flex;
  align-items: center;
  align-self: start;
}

/* ── SCAN VISUAL ── */
.solution__scan {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  width: 100%;
}

.solution__scan-base,
.solution__scan-overlay {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
}

.solution__scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 100% 0 0);
}

.solution__scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(93, 163, 255, 0) 0%,
    rgba(93, 163, 255, 0.9) 30%,
    rgba(93, 163, 255, 0.9) 70%,
    rgba(93, 163, 255, 0) 100%
  );
  box-shadow:
    0 0 16px 4px rgba(93, 163, 255, 0.5),
    0 0 40px 8px rgba(93, 163, 255, 0.2);
  transform: translateX(-100%);
}

.scan-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff4c4c;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 76, 76, 0.6);
  opacity: 0;
  transform: scale(0);
}

.scan-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: inherit;
  animation: scan-ping 2s ease-out infinite;
}

@keyframes scan-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ── SERVICES SECTION ── */
.services {
  position: relative;
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/index/index-solutions-bg.jpeg") center/cover
    no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.services__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 12, 27, 0.92) 0%,
    rgba(2, 12, 27, 0.8) 50%,
    rgba(2, 12, 27, 0.92) 100%
  );
  z-index: 1;
}

.services__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
  position: relative;
  z-index: 2;
}

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.services__header .eyebrow {
  justify-content: center;
}

.services__title {
  color: var(--white);
  margin-bottom: 1rem;
}

.services__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-sm);
  padding: 2.25rem 2rem;
  transition:
    background var(--t-base),
    border-color var(--t-base),
    transform var(--t-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Equal height in grid */
.services__grid {
  align-items: stretch;
}

/* Clickable card */
.service-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Scan line on hover */
.service-card__scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(93, 163, 255, 0.06),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.service-card:hover .service-card__scan,
.service-card.is-tapped .service-card__scan {
  animation: cardScanSweep 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardScanSweep {
  0% {
    left: -50%;
  }
  100% {
    left: 120%;
  }
}

.service-card:hover,
.service-card.is-tapped {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(93, 163, 255, 0.2);
  transform: translateY(-4px);
}

.service-card__category {
  font-family: var(--fs);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-xs);
  background: rgba(26, 111, 240, 0.12);
  border: 1px solid rgba(26, 111, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue3);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--fs);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.service-card__items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.service-card__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* Pictogram per bullet */
.service-card__item svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue3);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.service-card:hover .service-card__item svg,
.service-card.is-tapped .service-card__item svg {
  opacity: 1;
}

/* Arrow at bottom */
.service-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(93, 163, 255, 0.14);
  border: 1px solid rgba(93, 163, 255, 0.35);
  margin-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d9ecff;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.service-card__arrow-icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s;
}

.service-card:hover .service-card__arrow,
.service-card.is-tapped .service-card__arrow {
  opacity: 1;
  transform: translateX(2px);
}

.service-card:hover .service-card__arrow-icon,
.service-card.is-tapped .service-card__arrow-icon {
  transform: translateX(2px);
}

/* ── CLIENT TYPES SECTION ── */
.clients {
  background: var(--white);
}

.clients__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
}

.clients__header {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* Carousel wrapper */
.clients__carousel {
  position: relative;
}

/* Arrows */
.clients__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.clients__arrow--prev {
  left: -18px;
}
.clients__arrow--next {
  right: -18px;
}

.clients__arrow:hover {
  background: var(--white);
  border-color: var(--blue2);
  box-shadow: 0 4px 16px rgba(26, 111, 240, 0.15);
}

.clients__arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--g700);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Track */
.clients__track {
  display: flex;
  gap: 1rem;
  touch-action: pan-x pinch-zoom;
}

/* Viewport clips the track */
.clients__carousel {
  overflow: hidden;
}

.client-card {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 3/2;
  cursor: pointer;
  flex-shrink: 0;
  /* width set by JS sizeCards() */
}

.client-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.client-card:hover .client-card__image {
  transform: scale(1.06);
}

.client-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 12, 27, 0.92) 0%,
    rgba(2, 12, 27, 0.3) 55%,
    transparent 100%
  );
  transition: background var(--t-base);
}

.client-card:hover .client-card__overlay {
  background: linear-gradient(
    to top,
    rgba(6, 21, 46, 0.96) 0%,
    rgba(6, 21, 46, 0.5) 55%,
    rgba(26, 111, 240, 0.1) 100%
  );
}

.client-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem;
}

.client-card__tag {
  font-family: var(--fs);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.client-card__title {
  font-family: var(--fs);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0;
  transition: margin-bottom 0.3s;
}

.client-card:hover .client-card__title {
  margin-bottom: 0.35rem;
}

.client-card__desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease),
    opacity 0.3s 0.05s;
}

.client-card:hover .client-card__desc,
.client-card.is-tapped .client-card__desc {
  max-height: 80px;
  opacity: 1;
}

/* ── CASE STUDIES SECTION ── */
.cases {
  background: var(--n900);
  position: relative;
  overflow: hidden;
}

.cases__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad) 4.5rem;
  position: relative;
  z-index: 1;
}

.cases__header {
  text-align: center;
  margin-bottom: 3rem;
}

.cases__header .eyebrow {
  justify-content: center;
}

.cases__title {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.case-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  padding: 1.75rem 1.5rem;
  transition: all var(--t-base);
  position: relative;
}

.case-card:hover {
  background: rgba(26, 111, 240, 0.06);
  border-color: rgba(93, 163, 255, 0.18);
  transform: translateY(-3px);
}

.case-card__country {
  font-family: var(--fs);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case-card__client {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.case-card__stat {
  font-family: var(--fs);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.case-card__stat em {
  font-style: normal;
  color: var(--accent);
}

.case-card__vehicles {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.case-card__timeline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.7rem;
}

.case-card__timeline svg {
  width: 11px;
  height: 11px;
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ── GLOBE SECTION ── */
.globe-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 540px) 280px;
  grid-template-rows: auto auto;
  gap: 2rem 3.5rem;
  justify-content: center;
}

/* Globe : colonne 1, ligne 1 */
#hps-globe {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

#hps-globe canvas {
  display: block;
  background: transparent !important;
}

/* CTA : colonne 1, ligne 2 — sous le globe */
.globe-section__cta {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  justify-content: center;
}

/* Légende : colonne 2, lignes 1-2 — à droite */
.globe-legend {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.globe-legend__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-xs);
  transition: background-color var(--t-base);
  touch-action: manipulation;
}

.globe-legend__item:hover,
.globe-legend__item.is-active {
  background-color: rgba(26, 111, 240, 0.1);
}

.globe-legend__item.is-active {
  background-color: rgba(255, 76, 76, 0.1);
}

.globe-legend__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue2);
  box-shadow: 0 0 8px rgba(26, 111, 240, 0.7);
}

.globe-legend__dot--hq {
  background: var(--blue2);
  box-shadow: 0 0 8px rgba(26, 111, 240, 0.7);
}

.globe-legend__item.is-active .globe-legend__dot {
  background: #ff4c4c;
  box-shadow: 0 0 8px rgba(255, 76, 76, 0.7);
}

.globe-legend__item.is-active .globe-legend__country {
  color: var(--white);
}

.globe-legend__item.is-active .globe-legend__tag {
  color: #ff6b6b;
}

.globe-legend__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.globe-legend__country {
  font-family: var(--fs);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.globe-legend__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Reveal — hidden by default, shown on hover/active */
.globe-legend__reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s 0.05s;
}

.globe-legend__item:hover .globe-legend__reveal,
.globe-legend__item.is-active .globe-legend__reveal {
  max-height: 120px;
  opacity: 1;
}

.globe-legend__tag {
  display: inline-block;
  font-family: var(--fs);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
}

.globe-legend__reveal p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
}

/* Tooltip injecté par Globe.gl dans <body> */
.globe-tooltip {
  background: rgba(6, 21, 46, 0.95);
  border: 1px solid rgba(26, 111, 240, 0.3);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.9rem;
  font-family: var(--fi);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  max-width: 200px;
  line-height: 1.5;
}

.globe-tooltip strong {
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

/* Globe responsive — 1024px */
@media (max-width: 1024px) {
  .globe-section__layout {
    grid-template-columns: minmax(0, 420px) 240px;
    gap: 1.75rem 2.5rem;
  }

  #hps-globe {
    width: 100%;
    max-width: 420px;
  }
}

/* Globe responsive — 768px mobile */
@media (max-width: 768px) {
  .globe-section__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  #hps-globe {
    order: 1;
    width: 100%;
    max-width: 360px;
    height: 360px;
  }

  .hero__ctas > .btn--primary-lg {
    padding: 1.1rem 0;
    width: 100%;
    justify-content: center;
  }

  .globe-legend {
    order: 2;
    width: 100%;
    max-width: 360px;
    gap: 0.75rem;
    grid-column: unset;
    grid-row: unset;
  }

  .globe-section__cta {
    order: 3;
    grid-column: unset;
    grid-row: unset;
    justify-content: center;
    width: 100%;
  }
}

.case-card__timeline-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--green);
}

/* ── STATS SECTION ── */
.stats-section {
  background: var(--n800);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__number {
  font-family: var(--fs);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__number em {
  font-style: normal;
  color: var(--accent);
}

.stat-item__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── TECHNOLOGY PREVIEW ── */
.tech-preview {
  background: var(--g50);
  overflow: hidden;
}

.tech-preview__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.tech-preview__content {
}

.tech-preview__title {
  color: var(--g700);
  margin-bottom: 1.5rem;
}

.tech-preview__text {
  font-size: 0.95rem;
  color: var(--g500);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.tech-preview__benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tech-preview__benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tech-preview__benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  background: var(--off);
  border: 1px solid var(--g100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-preview__benefit-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.tech-preview__benefit-text {
  font-size: 0.9rem;
  color: var(--g700);
  font-weight: 500;
}

.tech-preview__visual {
  position: relative;
}

.tech-preview__video-wrapper {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}

.tech-preview__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-preview__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 10, 24, 0.2), transparent);
}

/* ── WHY HPS ── */
.why-hps {
  background: var(--n900);
  position: relative;
  clip-path: inset(0);
}

.why-hps__bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.why-hps__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.why-hps__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
  position: relative;
  z-index: 1;
}

.why-hps__header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.why-hps__header .eyebrow {
  justify-content: center;
}

.why-hps__title {
  color: var(--white);
}

.why-hps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: rgba(6, 15, 32, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 2rem 1.75rem;
  transition:
    border-color 0.3s,
    transform 0.3s,
    background 0.3s;
  position: relative;
  overflow: hidden;
}

/* Scan line on hover */
.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(93, 163, 255, 0) 0%,
    rgba(93, 163, 255, 0.9) 30%,
    rgba(93, 163, 255, 0.9) 70%,
    rgba(93, 163, 255, 0) 100%
  );
  box-shadow: 0 0 12px 3px rgba(93, 163, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.why-card:hover::before {
  animation: whyCardScan 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes whyCardScan {
  0% {
    left: -4px;
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Top glow line after scan */
.why-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue2), var(--accent));
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  opacity: 0;
  transition: opacity 0.3s 0.3s;
}

.why-card:hover {
  background: rgba(10, 22, 50, 0.92);
  border-color: rgba(93, 163, 255, 0.15);
  transform: translateY(-4px);
}

.why-card:hover::after {
  opacity: 1;
}

.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-xs);
  background: rgba(26, 111, 240, 0.12);
  border: 1px solid rgba(26, 111, 240, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.why-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue3);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card__title {
  font-family: var(--fs);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.why-card__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

.why-hps__cta .btn {
  background: var(--blue);
  color: var(--white);
  border: none;
}

/* ── BEFORE / AFTER ── */
.before-after {
  background: var(--white);
}

.before-after__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem var(--pad);
}

.before-after__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.before-after__header .eyebrow {
  justify-content: center;
}

.before-after__header .section-title {
  color: var(--g700);
}

.ba-slider {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

/* After image: in flow, gives height to the slider */
.ba-slider__img--after {
  display: block;
  width: 100%;
  pointer-events: none;
}

/* Before image: absolute overlay, clipped */
.ba-slider__img--before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.ba-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.ba-slider:active .ba-slider__handle {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.ba-slider__label {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: var(--fs);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.ba-slider__label--before {
  left: 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.ba-slider__label--after {
  right: 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

/* ── CTA FINAL ── */
.cta-final {
  background: var(--n800);
  position: relative;
  overflow: hidden;
}

.cta-final__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem var(--pad);
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-final__eyebrow {
  justify-content: center;
}

.cta-final__title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-final__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE HOMEPAGE ── */
@media (max-width: 1024px) {
  .hero__visual {
    display: none;
  }

  .hero__content {
    max-width: 100%;
  }

  .problem__inner,
  .solution__inner,
  .tech-preview__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .solution__visual {
    position: static;
  }
  .solution__scan {
    max-width: 500px;
    margin: 0 auto;
  }
  .solution__scan-base,
  .solution__scan-overlay {
    max-height: none;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* card sizing handled by JS */

  .cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-section__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .why-hps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Fix background-attachment: fixed on mobile (iOS doesn't support it) */
  .services__bg {
    background-attachment: scroll;
  }

  /* Timeline mobile — same geometry as desktop via vars + calc */
  .solution__timeline {
    --solution-pl: 48px;
    --solution-line-left: 15px;
    --solution-circle-size: 32px;
  }
  .solution__step-num {
    font-size: 0.7rem;
  }
  .solution__step {
    padding: 1.25rem 0.5rem 1.25rem 0;
  }
  .solution__step-title {
    font-size: 0.88rem;
  }
  .solution__step-text {
    font-size: 0.82rem;
  }
  .solution__step-icon {
    width: 36px;
    height: 36px;
  }
  .solution__step-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .hero__proofs {
    gap: 1.25rem;
  }

  .hero__proof-sep {
    display: none;
  }

  .proof-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .proof-bar__sep {
    display: none;
  }

  .proof-bar__item {
    min-width: 45%;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Mobile — clients track */
  .clients__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .clients__arrow {
    width: 30px;
    height: 30px;
  }
  .clients__arrow--prev {
    left: 4px;
  }
  .clients__arrow--next {
    right: 4px;
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }

  .cases__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .stats-section__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .why-hps__grid {
    grid-template-columns: 1fr;
  }

  .cta-final__actions {
    flex-direction: column;
    align-items: center;
  }
}
