.process {
  --process-line: rgba(255, 255, 255, 0.16);
  --process-circle: 64px;
  --process-pop: 2.1;
  --process-glass-border: rgba(255, 255, 255, 0.22);
  position: relative;
  padding: 24px 0 72px;
  background: var(--black, #000000);
  color: var(--white, #ffffff);
  overflow: hidden;
}

.process__inner {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
}

.process__head {
  text-align: center;
  margin-bottom: 64px;
}

.process__title {
  margin: 0 0 12px;
  font-family: var(--font-heading, 'Fredoka', sans-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white, #ffffff);
}

.process__subtitle {
  margin: 0 auto;
  max-width: 34em;
  font-family: var(--font-body, 'Fredoka', sans-serif);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  color: var(--muted, #bbbbbb);
}

.process__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 480;
  margin-bottom: 90px;
}

.process__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.process__path--mobile {
  display: none;
}

.process__track,
.process__progress {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process__track {
  stroke: var(--process-line);
  stroke-dasharray: 2 10;
  vector-effect: non-scaling-stroke;
}

.process__progress {
  stroke: var(--white, #ffffff);
  stroke-dasharray: 0 1;
  stroke-dashoffset: 0;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

.process__chevron {
  fill: none;
  stroke: var(--white, #ffffff);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
  transition: stroke 450ms ease, filter 450ms ease, opacity 450ms ease;
}

.process__chevron.is-lit {
  stroke: var(--white, #ffffff);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.75));
}

.process__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--blue, #4318ff);
  color: var(--white, #ffffff);
  font-size: 0;
  box-shadow: 0 0 0 5px rgba(67, 24, 255, 0.25), 0 0 20px 4px rgba(67, 24, 255, 0.75);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  z-index: 4;
  transition: opacity 300ms ease, width 450ms cubic-bezier(0.34, 1.56, 0.64, 1), height 450ms cubic-bezier(0.34, 1.56, 0.64, 1), margin 450ms cubic-bezier(0.34, 1.56, 0.64, 1), font-size 450ms ease;
}

.process__dot.is-visible {
  opacity: 1;
}

.process__dot.is-done {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  font-size: 1rem;
}

.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process__step {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 360px;
  transform: translate(-50%, calc(var(--process-circle) / -2));
  z-index: 3;
}

.process__step--1 {
  left: 20%;
  top: 12.5%;
}

.process__step--2 {
  left: 60%;
  top: 12.5%;
}

.process__step--3 {
  left: 50%;
  top: 50%;
}

.process__step--4 {
  left: 70%;
  top: 87.5%;
}

.process__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--process-circle);
  height: var(--process-circle);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white, #ffffff);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transform: scale(1);
  transform-origin: center;
  overflow: hidden;
  transition: box-shadow 700ms ease, transform 900ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.process__img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 500ms ease 150ms, transform 900ms cubic-bezier(0.34, 1.4, 0.64, 1) 150ms;
}

.process__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  text-align: center;
  transform: translateY(0);
  transition: transform 900ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.process__label {
  margin: 0;
  font-family: var(--font-heading, 'Fredoka', sans-serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--muted, #bbbbbb);
  transition: color 500ms ease;
}

.process__pills {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms ease, transform 550ms ease;
  transition-delay: 120ms;
}

.process__pill {
  position: relative;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--process-glass-border);
  background: linear-gradient(135deg, rgba(255, 214, 120, 0.26) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 214, 120, 0.14) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 16px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body, 'Fredoka', sans-serif);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--white, #ffffff);
  white-space: nowrap;
}

.process__pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255, 224, 140, 0) 0%, rgba(255, 224, 140, 0.55) 50%, rgba(255, 224, 140, 0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.process__step.is-active .process__pill {
  border-color: rgba(255, 214, 120, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 14px rgba(255, 214, 120, 0.22), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.process__step.is-active .process__pill::before {
  animation: process-shine 2.6s ease-in-out infinite;
}

.process__step.is-active .process__pill:nth-child(2)::before {
  animation-delay: 0.4s;
}

.process__step.is-active .process__pill:nth-child(3)::before {
  animation-delay: 0.8s;
}

@keyframes process-shine {
  0% {
    left: -80%;
  }

  45% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

.process__step.is-active .process__circle {
  transform: scale(var(--process-pop));
  box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.6), 0 0 22px rgba(67, 24, 255, 0.55);
}

.process__step.is-active .process__img {
  opacity: 1;
  transform: scale(1);
}

.process__step.is-active .process__body {
  transform: translateY(calc(var(--process-circle) * (var(--process-pop) - 1) / 2));
}

.process__step.is-active .process__label {
  color: var(--white, #ffffff);
}

.process__step.is-active .process__pills {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .process {
    --process-circle: 58px;
  }

  .process__step {
    width: 320px;
  }

  .process__pill {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
}

@media (max-width: 1024px) {
  .process {
    --process-circle: 50px;
    --process-pop: 1.9;
  }

  .process__step {
    width: 280px;
  }

  .process__label {
    font-size: 1.05rem;
  }

  .process__pill {
    font-size: 0.66rem;
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .process {
    --process-circle: 96px;
    --process-pop: 1.35;
    padding: 56px 0 56px;
  }

  .process__inner {
    width: min(560px, calc(100% - 40px));
  }

  .process__head {
    text-align: left;
    margin-bottom: 36px;
  }

  .process__subtitle {
    margin: 0;
  }

  .process__stage {
    aspect-ratio: auto;
    margin-bottom: 64px;
  }

  .process__path--desktop {
    display: none;
  }

  .process__path--mobile {
    display: block;
    inset: auto;
    top: 0;
    left: 50%;
    width: 64px;
    height: 100%;
    transform: translateX(-50%);
  }

  .process__steps {
    display: flex;
    flex-direction: column;
    gap: 72px;
  }

  .process__step {
    position: static;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: none;
  }

  .process__circle {
    margin: 0;
  }

  .process__body {
    position: relative;
    z-index: 5;
    align-items: center;
    margin: 16px 0 0;
    padding: 8px 18px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .process__pills {
    display: none;
  }

  .process__path--mobile .process__chevron {
    display: none;
  }

  .process__dot.is-done {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .process {
    --process-circle: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process__circle,
  .process__img,
  .process__body,
  .process__label,
  .process__pills,
  .process__dot,
  .process__chevron {
    transition-duration: 1ms;
    transition-delay: 0ms;
  }

  .process__pill::before {
    animation: none;
  }
}