.cx-process {
  position: relative;
  overflow: hidden;
  padding: 110px 0 72px;
  background: black;
}

.cx-process__head {
  text-align: center;
  margin: 0 auto 38px;
  max-width: 980px;
}

.cx-process__title {
  margin: 10px 0 16px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #fff;
}

.cx-process__lead {
    background-image: linear-gradient(90deg, var(--acc1, #ff2d8d), var(--acc2, #00e5ff));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.12);
    text-shadow: 0 0 10px rgb(255 255 255 / 61%);
    /* box-shadow: 0 0 8px 0 rgb(255 255 255 / 61%); */
    /* border-radius: 2rem; */
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(15px, 1.7vw, 21px);
    line-height: 1.58;
    font-weight: revert-layer;
}

.cx-process__pin {
  position: relative;
}

.cx-process__viewport {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 8px 0 18px;
}

.cx-process__viewport::-webkit-scrollbar {
  display: none;
}

.cx-process__track {
  display: flex;
  gap: 18px;
  padding: 26px max(20px, 7vw);
  align-items: stretch;
  min-width: max-content;
}

.cx-step {
  flex: 0 0 min(84vw, 430px);
  scroll-snap-align: center;
  cursor: pointer;
  outline: none;
}

.flip-card {
  position: relative;
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.flip-card-front {
    border: 1px solid #ffffff2e;
    backdrop-filter: blur(18px);
    background: #ffffff1c;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(158deg, #ffffff30, #00000036);
  border: 1px solid #ffffff57;
}

.flip-card-front::before,
.flip-card-back::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.035), transparent 34%);
}

.flip-card:not(.is-active) {
  opacity: 0.62;
  transform: translateY(6px) scale(0.985);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flip-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cx-step__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.cx-step__num {
  min-width: 46px;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.14);
  color: #00e5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cx-step__tag {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

.cx-step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cx-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.58;
}

.cx-step__footer {
  margin-top: auto;
  padding-top: 18px;
}

.cx-step__hint {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  line-height: 1.4;
}

.cx-step__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cx-step__list li {
  position: relative;
  padding: 12px 12px 12px 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.46;
}

.cx-step__list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--acc1), var(--acc2));
}

.cx-process__progress {
  margin: 22px auto 0;
  width: min(760px, calc(100% - 40px));
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.cx-process__progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0.08);
  background: linear-gradient(90deg, #00e5ff, #ff2d8d);
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover {
    opacity: 0.9;
    transform: translateY(0) scale(0.992);
  }

  .flip-card.is-active:hover {
    transform: translateY(-2px) scale(1.003);
  }
}

@media (max-width: 980px) {
  .cx-process {
    padding: 88px 0 58px;
  }

  .cx-process__head {
    margin-bottom: 26px;
  }

  .cx-process__title {
    font-size: clamp(30px, 8vw, 52px);
  }

  .cx-process__lead {
    font-size: 15px;
  }

  .cx-step {
    flex-basis: min(88vw, 400px);
  }

  .flip-card,
  .flip-card-inner {
    min-height: 400px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 20px;
    border-radius: 22px;
  }

  .cx-step h3 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .cx-step p {
    font-size: 14px;
  }

  .cx-step__list li {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .cx-process {
    padding: 72px 0 48px;
  }

  .cx-process__head {
    margin-bottom: 20px;
  }

  .cx-process__title {
    font-size: clamp(27px, 9.2vw, 40px);
    line-height: 1;
  }

  .cx-process__lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .cx-process__viewport {
    padding-top: 20px;
  }

  .cx-process__track {
    gap: 14px;
    padding: 0 14px;
    padding-top: 14px;
  }

  .cx-step {
    flex-basis: calc(100vw - 28px);
  }

  .flip-card,
  .flip-card-inner {
    min-height: 400px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .cx-step__top {
    margin-bottom: 14px;
  }

  .cx-step__num {
    min-width: 42px;
    height: 30px;
    font-size: 10px;
  }

  .cx-step__tag {
    font-size: 10px;
  }

  .cx-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .cx-step p {
    font-size: 13px;
    line-height: 1.48;
  }

  .cx-step__hint {
    font-size: 11px;
  }

  .cx-step__list {
    gap: 8px;
  }

  .cx-step__list li {
    padding: 10px 10px 10px 28px;
    font-size: 12px;
    border-radius: 12px;
  }

  .cx-step__list li::before {
    left: 11px;
    top: 15px;
    width: 6px;
    height: 6px;
  }

  .cx-process__progress {
    width: calc(100% - 28px);
    margin-top: 16px;
    height: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip-card,
  .flip-card-inner,
  .cx-process__progress-bar {
    transition: none !important;
    animation: none !important;
  }
}