.home-services {
  padding: clamp(16px, 2vw, 32px) 0 14px;
}

.home-services-heading {
  margin-bottom: clamp(16px, 2vw, 20px);
  text-align: center;
}

.home-services-heading h2 {
  scroll-margin-top: 110px;
  margin: 0 0 8px;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.home-services-heading p {
  margin: 0;
  color: #5c657a;
}

.home-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 2vw, 24px);
  border: 1px solid #e3e9f6;
  border-radius: 24px;
}

.service-card-dedicated,
.service-card-gaming {
  background:
    repeating-linear-gradient(135deg, transparent 0 19px, var(--service-line) 20px, transparent 21px 36px) right bottom / 46% 75% no-repeat,
    linear-gradient(115deg, #fff 42%, var(--service-tint));
}

.service-card-dedicated {
  --service-line: #526ee612;
  --service-tint: #ebf0fe;
}

.service-card-gaming {
  --service-line: #745be41a;
  --service-tint: #f2edff;
}

.service-card-cloud {
  grid-row: span 2;
  justify-content: flex-start;
  border-color: #233574;
  background:
    repeating-radial-gradient(circle at 94% 95%, transparent 0 35px, #a8bbff1c 36px 37px, transparent 38px 66px),
    radial-gradient(ellipse at 95% 100%, #405cf0 0, transparent 65%),
    linear-gradient(135deg, #121c41, #203477);
  color: #fff;
}

.service-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  margin-bottom: 12px;
}

.service-card-specs {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  align-items: center;
  align-self: stretch;
  margin: auto 0;
  padding: 16px 0;
  border-block: 1px solid #c8d6ff38;
  background: linear-gradient(110deg, #bdd0ff0a, #bdd0ff14);
  list-style: none;
}

.service-card-specs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: clamp(10px, 1.4vw, 20px);
}

.service-card-specs li + li {
  border-inline-start: 1px solid #c8d6ff38;
}

.service-card-specs strong {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
}

.service-card-specs .service-card-cpu strong {
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -.065em;
}

.service-card-specs span {
  color: #dbe4ff;
  font-size: 12px;
}

.service-card-cpu span {
  letter-spacing: .06em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.service-card-cloud h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.service-card p {
  margin: 0;
  max-width: 47ch;
  color: #5c657a;
  font-size: 15px;
}

.service-card-cloud p {
  align-self: stretch;
  max-width: none;
  margin-bottom: 16px;
  color: #dbe4ff;
}

.service-card .service-card-link,
.service-card-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.service-card .service-card-link {
  margin-top: 16px;
  min-height: 44px;
  background: #fff;
  color: #283eac;
}

.service-card .service-card-link:hover {
  background: #e8eeff;
  color: #243aa8;
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

[dir="rtl"] .service-card-link svg {
  transform: scaleX(-1);
}

.service-card-soon {
  border: 1px solid #dce4f6;
  background: #ffffffb3;
  color: #485673;
  white-space: nowrap;
}

.service-card-soon::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8796b4;
  content: "";
}

@media (prefers-reduced-motion: no-preference) {
  .service-card {
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  .service-card:hover {
    border-color: #bacbfa;
    box-shadow: 0 10px 26px rgba(50, 72, 151, .09);
  }

  .service-card-cloud:hover {
    border-color: #5972f3;
  }

  .service-card-link {
    transition: background-color .2s ease;
  }
}

@media (min-width: 1100px) {
  .home-services {
    padding-top: clamp(16px, 1vw, 24px);
  }

  .service-card {
    padding-block: 16px;
  }

  .service-card-heading {
    margin-bottom: 8px;
  }

  .service-card-cloud h3 {
    font-size: 32px;
  }

  .service-card-cloud p {
    margin-bottom: 12px;
  }

  .service-card-specs {
    padding-block: 12px;
  }

  .service-card-specs .service-card-cpu strong {
    font-size: 44px;
  }

  .service-card .service-card-link {
    margin-top: 12px;
  }
}

@media (max-width: 860px) {
  .home-services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .service-card-cloud {
    grid-row: auto;
  }
}
