.features-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(720px 360px at 12% 18%, rgba(11,31,58,.10), transparent 62%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 52%, #f8fbff 100%);
}
.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,31,58,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  pointer-events: none;
}
.features-section > .container {
  position: relative;
  z-index: 1;
}
.features-head {
  margin: 0 0 1.45rem;
  max-width: 820px;
  text-align: left;
}
.features-head h1 {
  margin: .35rem 0 .45rem;
}
.features-head p {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  max-width: 68ch;
}
.features-kicker {
  color: #0b789f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}
.features-tabs-shell {
  position: relative;
  display: grid;
  gap: 1rem;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: .75rem;
}
.feature-item {
  border: 1px solid rgba(148,163,184,.34);
  background: rgba(255,255,255,.82);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 58px;
  padding: .7rem .75rem;
  text-align: left;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,.11);
}
.feature-item.is-active {
  border-color: rgba(212,166,58,.58);
  background: #fff;
  box-shadow: 0 16px 30px rgba(11,31,58,.13);
}
.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,165,233,.12);
  color: #0369a1;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item.is-active .feature-icon {
  background: rgba(212,166,58,.18);
  color: #8a6418;
}
.feature-copy {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.feature-copy strong {
  font-size: .94rem;
  color: #0f172a;
  line-height: 1.15;
}
.feature-progress {
  height: 3px;
  background: linear-gradient(90deg,#0ea5e9,#d4a63a);
  border-radius: 999px;
  width: 0;
  transition: width .2s linear;
}
.feature-item.is-active .feature-progress {
  width: 100%;
}

.features-panel {
  border: 1px solid rgba(148,163,184,.32);
  border-radius: 20px;
  padding: 1.1rem;
  background: rgba(229,238,250,.78);
  box-shadow: 0 16px 34px rgba(15,23,42,.12);
}
.service-detail[hidden] {
  display: none;
}
.service-detail {
  display: grid;
  gap: 1.2rem;
  padding: 1.05rem;
  border-radius: 16px;
  background: #fff;
  animation: service-detail-in .22s ease;
}
.service-detail-head {
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg,#0b1f3a,#12385b);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.service-detail-head h2 {
  margin: 0 0 .7rem;
  color: #fff;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.06;
}
.service-detail-head p {
  margin: 0;
  color: #e5edf8;
  font-size: 1.05rem;
  line-height: 1.68;
  max-width: 98ch;
}
.service-detail-body {
  min-width: 0;
}
.detail-divider {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .1rem 0 .85rem;
  color: #0f172a;
  font-weight: 800;
}
.detail-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(148,163,184,.42);
}
.subservice-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(148,163,184,.36);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.subservice-chip {
  border: 0;
  border-right: 1px solid rgba(148,163,184,.28);
  border-bottom: 1px solid rgba(148,163,184,.28);
  border-radius: 0;
  background: #fff;
  padding: 1rem;
  box-shadow: none;
}
.subservice-chip:nth-child(3n) {
  border-right: 0;
}
.subservice-title {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.subservice-title .material-symbols-rounded {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(14,165,233,.1);
  color: #0369a1;
  font-size: 1rem;
  margin-top: -.1rem;
}
.subservice-chip strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
}
.subservice-chip p {
  margin: .35rem 0 0;
  color: #475569;
  font-size: .93rem;
  line-height: 1.45;
}
.subservice-title + p {
  margin-left: 2.1rem;
}
@keyframes service-detail-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .features-tabs-shell {
    overflow: hidden;
  }
  .features-tabs-shell::before,
  .features-tabs-shell::after {
    content: "";
    position: absolute;
    top: 0;
    width: 64px;
    height: 70px;
    z-index: 2;
    pointer-events: none;
  }
  .features-tabs-shell::before {
    left: -.2rem;
    background: linear-gradient(90deg, rgba(247,250,255,.98), rgba(247,250,255,.55), rgba(247,250,255,0));
  }
  .features-tabs-shell::after {
    right: -.2rem;
    background:
      radial-gradient(circle at 66% 50%, rgba(212,166,58,.36) 0 3px, transparent 4px),
      linear-gradient(90deg, rgba(247,250,255,0), rgba(247,250,255,.58), rgba(247,250,255,.98));
    animation: horizontal-scroll-cue 1.8s ease-in-out infinite;
  }
  .features-list {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: .05rem .7rem .45rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .features-list::-webkit-scrollbar {
    display: none;
  }
  .feature-item {
    flex: 0 0 min(270px, 78vw);
    scroll-snap-align: start;
  }
  .subservice-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subservice-chip:nth-child(3n) {
    border-right: 1px solid rgba(148,163,184,.28);
  }
  .subservice-chip:nth-child(2n) {
    border-right: 0;
  }
}

@keyframes horizontal-scroll-cue {
  0%, 100% {
    opacity: .55;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

@media (max-width: 720px) {
  .features-head {
    text-align: left;
  }
  .features-list {
    margin-inline: -.2rem;
  }
  .feature-item {
    padding: .65rem .75rem;
  }
  .feature-copy strong {
    max-width: 180px;
    white-space: normal;
  }
  .subservice-chips {
    grid-template-columns: 1fr;
  }
  .subservice-chip,
  .subservice-chip:nth-child(2n),
  .subservice-chip:nth-child(3n) {
    border-right: 0;
  }
  .subservice-chip:last-child {
    border-bottom: 0;
  }
  .subservice-title + p {
    margin-left: 0;
  }
  .features-panel {
    padding: .7rem;
    border-radius: 16px;
  }
  .service-detail {
    padding: .7rem;
  }
  .service-detail-head {
    padding: .95rem;
  }
}
