.site-nav a.active {
  color: #5b43ff;
}

.works-hero {
  padding-top: 74px;
  padding-bottom: 28px;
  text-align: center;
}

.works-hero .eyebrow {
  margin-inline: auto;
}

.works-hero h1 {
  max-width: 1040px;
  margin: 22px auto 16px;
  color: #080d25;
  font-size: clamp(44px, 6.2vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 720;
}

.works-hero .lead {
  max-width: 720px;
  margin: 0 auto;
  color: #56607f;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.works-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 34px;
}

.work-step {
  position: relative;
  text-align: center;
}

.work-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 72px;
  right: -34px;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 76, 255, 0.18), rgba(96, 76, 255, 0.72));
}

.work-step:not(:last-child)::before {
  content: "→";
  position: absolute;
  top: 61px;
  right: -43px;
  color: #8a7dff;
  font-size: 22px;
  z-index: 2;
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #5a45ff, #884fff);
  box-shadow: 0 16px 36px rgba(93, 69, 255, 0.25);
  font-weight: 720;
}

.work-step h2 {
  margin: 0 0 10px;
  color: #0b1028;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 680;
}

.work-step p {
  max-width: 350px;
  min-height: 76px;
  margin: 0 auto 28px;
  color: #4f5877;
  font-size: 15.5px;
  line-height: 1.55;
}

.step-image-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 28, 61, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(31, 26, 92, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 86px rgba(31, 26, 92, 0.12);
}

.step-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.26 / 1;
  object-fit: cover;
}


.how-final-cta {
  margin-top: 54px;
  margin-bottom: 72px;
}

.how-final-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px 44px;
  border-radius: 34px;
  border: 1px solid rgba(101, 76, 255, 0.12);
  background:
    radial-gradient(circle at 12% 50%, rgba(111, 84, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 45%, rgba(237, 77, 184, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 243, 255, 0.88));
  box-shadow: 0 28px 80px rgba(39, 28, 103, 0.1);
}

.how-final-logo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px rgba(56, 45, 120, 0.12);
}

.how-final-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.how-final-copy h2 {
  margin: 0 0 8px;
  color: #080d25;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.how-final-copy p {
  margin: 0;
  color: #66708d;
  font-size: 17px;
  line-height: 1.5;
}

.how-final-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 240px;
}

.how-final-actions .btn {
  min-width: 220px;
}

.how-final-actions span {
  color: #66708d;
  font-size: 14px;
  font-weight: 560;
}

@media (max-width: 980px) {
  .works-flow {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .work-step:not(:last-child)::before,
  .work-step:not(:last-child)::after {
    display: none;
  }

  .work-step p {
    min-height: auto;
  }

  .how-final-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 34px 26px;
  }

  .how-final-actions {
    width: 100%;
  }

  .how-final-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .works-hero {
    padding-top: 52px;
  }

  .works-hero h1 {
    font-size: 44px;
    letter-spacing: -0.055em;
  }

  .works-flow {
    width: min(100% - 28px, 620px);
    gap: 36px;
  }

  .step-image-card {
    border-radius: 22px;
  }

  .how-final-cta {
    margin-top: 42px;
    margin-bottom: 56px;
  }

  .how-final-card {
    border-radius: 26px;
  }
}
