.section#platform {
  min-width: 0;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  .section#platform { overflow-x: clip; }
}

.visibility-journey {
  box-sizing: border-box;
  width: auto;
  max-width: 1240px;
  min-width: 0;
  margin: clamp(54px, 7vw, 92px) max(24px, calc((100% - 1240px) / 2)) 0;
  overflow: hidden;
}

.vj-compare {
  --position: 50%;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: #0c0b10;
  border: 1px solid rgba(116, 93, 212, .28);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(24, 19, 44, .18);
  isolation: isolate;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.vj-image-layer,
.vj-image-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vj-image-layer img { display: block; object-fit: cover; }
.vj-image-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,10,.38), transparent 32%, transparent 68%, rgba(7,7,10,.55));
}

.vj-manual-layer {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  will-change: clip-path;
}
.vj-ai-layer { z-index: 1; }

.vj-label {
  position: absolute;
  z-index: 5;
  top: clamp(18px, 3vw, 34px);
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  background: rgba(10,9,14,.58);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.vj-label span { color: rgba(255,255,255,.52); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.vj-label strong { font-size: clamp(13px, 1.3vw, 17px); font-weight: 550; }
.vj-label-manual { left: clamp(18px, 3vw, 34px); }
.vj-label-ai { right: clamp(18px, 3vw, 34px); border-color: rgba(178,159,255,.36); }
.vj-label-ai span { color: #bbaeff; }

.vj-bottom-copy {
  position: absolute;
  z-index: 5;
  bottom: clamp(18px, 2.5vw, 30px);
  max-width: 300px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.55;
}
.vj-bottom-copy b { display: block; margin-top: 5px; color: #fff; font-size: 9px; letter-spacing: .12em; }
.vj-bottom-manual { left: clamp(18px, 3vw, 34px); }
.vj-bottom-ai { right: clamp(18px, 3vw, 34px); text-align: right; }
.vj-bottom-ai b { color: #c4b8ff; }

.vj-divider {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  transform: translateX(-1px);
  pointer-events: none;
  background: linear-gradient(transparent, rgba(255,255,255,.95) 9% 91%, transparent);
  box-shadow: 0 0 22px rgba(166,145,255,.56);
}
.vj-handle {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: var(--position);
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%,-50%);
  pointer-events: none;
  color: #17131f;
  background: #b5a5ff;
  border: 5px solid rgba(16,13,22,.72);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 12px 34px rgba(0,0,0,.35), 0 0 34px rgba(162,140,255,.38);
  font-size: 14px;
  font-weight: 700;
}

.vj-range {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 100%;
  overflow: visible;
  opacity: 0;
  touch-action: pan-y;
  pointer-events: none;
}
.vj-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.vj-range::-moz-range-thumb {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
}
.vj-range:focus-visible + .vj-focus-ring {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: var(--position);
  width: 70px;
  height: 70px;
  transform: translate(-50%,-50%);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139,114,255,.55);
}

.vj-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  color: #747078;
  font-size: 10px;
  letter-spacing: .09em;
}
.vj-instruction i { width: 26px; height: 1px; background: #9d88ef; }

@media (max-width: 760px) {
  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 20px !important;
    padding-top: 14px !important;
  }

  .hero-proof span {
    min-width: 0;
    min-height: 46px;
    padding: 9px 10px;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-proof i {
    flex: 0 0 5px;
  }

  .visibility-journey {
    width: auto;
    max-width: none;
    margin: 42px 12px 0;
  }
  .vj-compare { min-height: 500px; aspect-ratio: 4 / 5; border-radius: 20px; }
  .vj-image-layer img { object-position: center; }
  .vj-label { top: 14px; padding: 9px 10px; }
  .vj-label-manual { left: 12px; }.vj-label-ai { right: 12px; }
  .vj-bottom-copy { bottom: 14px; max-width: 42%; font-size: 9px; }
  .vj-bottom-manual { left: 12px; }.vj-bottom-ai { right: 12px; }
  .vj-handle { width: 50px; height: 50px; }
}
@media (max-width: 560px) {
  .vj-label strong { font-size: 11px; }
  .vj-bottom-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vj-manual-layer { will-change: auto; }
}
