/*
 * Homepage service spectrum.
 * A compact 12-service overview placed directly below the hero.
 */

.service-spectrum {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(ellipse 34% 34% at 12% 0%, rgba(185, 228, 255, 0.26), transparent 72%),
    radial-gradient(ellipse 40% 36% at 86% 0%, rgba(232, 209, 255, 0.28), transparent 72%),
    #fff;
  color: #1b1c23;
}

.service-spectrum::before {
  content: "";
  position: absolute;
  top: -116px;
  right: -8%;
  left: -8%;
  height: 190px;
  border-radius: 0 0 48% 52% / 0 0 54% 46%;
  background: linear-gradient(
    90deg,
    rgba(178, 226, 255, 0.28),
    rgba(229, 207, 255, 0.25),
    rgba(255, 207, 238, 0.22)
  );
  filter: blur(34px);
  pointer-events: none;
}

.service-spectrum-inner {
  width: min(1280px, calc(100% - 72px));
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.service-spectrum-heading {
  max-width: 670px;
  margin: 0 auto 62px;
  text-align: center;
}

.service-spectrum-heading > p {
  margin: 0 0 14px;
  color: #7657e8;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-spectrum-heading h2 {
  margin: 0;
  color: #1b1c23;
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 3.2vw, 50px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.service-spectrum-heading > span {
  display: block;
  margin-top: 15px;
  color: #737581;
  font-size: 15px;
  line-height: 1.5;
}

.service-spectrum-grid {
  --honey-x: 50%;
  --honey-y: 50%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(29, 30, 39, 0.1);
  border-left: 1px solid rgba(29, 30, 39, 0.1);
  list-style: none;
  isolation: isolate;
}

.service-spectrum-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../images/honeycomb-svgrepo-com.svg");
  background-position:
    calc(var(--honey-x) - 170px)
    calc(var(--honey-y) - 126px);
  background-repeat: no-repeat;
  background-size: 340px auto;
  opacity: 0;
  transform: translateZ(0);
  -webkit-mask-image: radial-gradient(
    ellipse 164px 146px at var(--honey-x) var(--honey-y),
    #000 0,
    rgba(0, 0, 0, 0.92) 30%,
    rgba(0, 0, 0, 0.65) 54%,
    rgba(0, 0, 0, 0.24) 78%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 164px 146px at var(--honey-x) var(--honey-y),
    #000 0,
    rgba(0, 0, 0, 0.92) 30%,
    rgba(0, 0, 0, 0.65) 54%,
    rgba(0, 0, 0, 0.24) 78%,
    transparent 100%
  );
  filter:
    drop-shadow(0 4px 8px rgba(11, 107, 82, 0.3))
    drop-shadow(0 0 18px rgba(70, 190, 154, 0.18));
  pointer-events: none;
  transition: opacity 240ms ease;
}

.service-spectrum-grid:hover::after {
  opacity: 0.9;
}

.service-spectrum-grid li {
  min-width: 0;
  min-height: 124px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 22px 20px;
  border-right: 1px solid rgba(29, 30, 39, 0.1);
  border-bottom: 1px solid rgba(29, 30, 39, 0.1);
  background: #fff;
}

.service-spectrum-grid li > * {
  position: relative;
  z-index: 2;
}

.service-spectrum-grid li > span {
  min-width: 34px;
  display: inline-grid;
  place-items: center;
  padding: 5px 6px;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: #9496a0;
  font: 700 8px/1 "DM Sans", sans-serif;
  letter-spacing: 0.09em;
}

.service-spectrum-grid li:nth-child(3n + 2) > span {
  color: #7657e8;
}

.service-spectrum-grid li:nth-child(3n) > span {
  color: #3488b9;
}

.service-spectrum-grid li strong {
  max-width: 150px;
  color: inherit;
  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 1.08vw, 17px);
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

@media (max-width: 1060px) {
  .service-spectrum-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-spectrum-grid li strong {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .service-spectrum {
    padding: 76px 0 82px;
  }

  .service-spectrum-inner {
    width: calc(100% - 32px);
  }

  .service-spectrum-heading {
    margin-bottom: 42px;
  }

  .service-spectrum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-spectrum-grid li {
    min-height: 112px;
    padding: 18px 16px;
  }

}

@media (max-width: 390px) {
  .service-spectrum-grid {
    grid-template-columns: 1fr;
  }

  .service-spectrum-grid li {
    min-height: 88px;
    flex-direction: row;
    align-items: center;
  }
}
