.services-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 0 7rem;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(116, 151, 181, 0.18), transparent 25rem),
    radial-gradient(circle at 90% 80%, rgba(0, 153, 255, 0.11), transparent 28rem),
    linear-gradient(160deg, #0d1d2b 0%, #06111b 58%, #020910 100%);
}

.services-section::before {
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  background-image:
    linear-gradient(rgba(97, 213, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 213, 232, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  transform: none;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.services-section::after {
  z-index: 0;
  right: -14rem;
  bottom: -16rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(126, 166, 198, 0.14);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.services-heading,
.services-grid,
.services-note {
  position: relative;
  z-index: 1;
}

.services-heading {
  max-width: 46rem;
  margin: 0 auto 3.5rem;
}

.services-eyebrow,
.service-number {
  color: #7bc8f5;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.services-eyebrow {
  margin-bottom: 0.8rem;
}

.services-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.services-heading > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  gap: 1.25rem;
  min-height: 11.5rem;
  padding: 1.7rem;
  border: 1px solid rgba(123, 200, 245, 0.25);
  border-radius: 0.8rem;
  background: rgba(4, 18, 30, 0.68);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: rgba(123, 200, 245, 0.75);
  box-shadow: 0 1rem 2rem rgba(0, 123, 196, 0.13);
  transform: translateY(-0.3rem);
}

.service-card-wide {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.5rem);
  margin: 0 auto;
  width: 100%;
}

.service-icon {
  display: grid;
  flex: 0 0 3.3rem;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border: 1px solid rgba(123, 200, 245, 0.7);
  border-radius: 0.65rem;
  color: #8dd4ff;
  background: rgba(123, 200, 245, 0.08);
  font-size: 1.35rem;
}

.service-number {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.62rem;
  letter-spacing: 0.14rem;
}

.service-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.6;
}

.services-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 50rem;
  margin: 3.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(123, 200, 245, 0.35);
  border-bottom: 1px solid rgba(123, 200, 245, 0.35);
}

.services-note > i {
  color: #8dd4ff;
  font-size: 1.5rem;
}

.services-note p {
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
  line-height: 1.5;
}

.services-note strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.services-note a {
  color: #8dd4ff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.services-note a:hover {
  color: #fff;
}

.services-note a span {
  margin-left: 0.35rem;
  font-size: 1.1rem;
}

@media (max-width: 767.98px) {
  .services-section {
    padding: 6rem 0 5rem;
  }

  .services-heading {
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .service-card {
    gap: 1rem;
    padding: 1.35rem;
  }

  .service-icon {
    flex-basis: 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.82rem;
  }

  .services-note {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1.2rem 0;
  }

  .services-note a {
    width: 100%;
    margin-left: 2.5rem;
  }
}
