.services-section {
  position: relative;
  overflow: hidden;
  background: #0a0c10;
  color: #fff;
}

.services-section::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #252a30;
  content: "";
  transform: translateX(50%);
  pointer-events: none;
}

.services-section__inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 74px 88px;
}

.services-section__intro {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 90px);
  margin-bottom: 42px;
}

.services-section__label {
  margin: 5px 0 0;
  color: #9aa3b5;
  font: 500 12px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.services-section__label span {
  padding-inline: 5px;
  color: #22e07a;
}

.services-section__heading h2 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.services-section__heading p {
  margin: 16px 0 0;
  color: #9aa3b5;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #252a30;
  border-left: 1px solid #252a30;
}

.service-card {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 38px);
  border-right: 1px solid #252a30;
  border-bottom: 1px solid #252a30;
  background:
    radial-gradient(ellipse at 100% 0, rgb(182 243 106 / 4%), transparent 48%),
    #0a0c10;
  color: inherit;
  text-decoration: none;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.service-card__top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.service-card__index {
  color: #9aa3b5;
  font: 500 12px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
}

.service-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #353b3e;
  border-radius: 50%;
  color: #22e07a;
  font-size: 19px;
  line-height: 1;
}

.service-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.service-card > p {
  max-width: 430px;
  margin: 12px 0 26px;
  color: #9aa3b5;
  font-size: 15px;
  line-height: 1.65;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: color 200ms ease;
}

.service-card__link span:last-child {
  color: #22e07a;
  transition: transform 200ms ease;
}

.service-card:focus-visible {
  outline: 2px solid #22e07a;
  outline-offset: -5px;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .service-card:hover {
    z-index: 1;
    background:
      radial-gradient(ellipse 180px 150px at var(--pointer-x, 50%) var(--pointer-y, 50%), rgb(182 243 106 / 16%), transparent 72%),
      radial-gradient(ellipse at 100% 0, rgb(182 243 106 / 8%), transparent 52%),
      #101318;
    box-shadow: inset 0 0 0 1px rgb(182 243 106 / 22%);
  }

  .service-card:hover .service-card__link {
    color: #22e07a;
  }

  .service-card:hover .service-card__link span:last-child {
    transform: translate(2px, -2px);
  }
}

@media (max-width: 700px) {
  .services-section__inner {
    width: calc(100% - 40px);
    padding-block: 54px 64px;
  }

  .services-section__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }

  .services-section__heading h2 {
    font-size: clamp(32px, 8vw, 46px);
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    min-height: 250px;
    padding: 24px;
  }

  .service-card__top {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card__link,
  .service-card__link span:last-child {
    transition: none;
  }

  .service-card:hover {
    box-shadow: none;
  }
}
