#services {
  padding: 118px 0;
}

#services .services-header {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

#services .services-kicker {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(99, 102, 241, 0.08);
  color: #c9d2f2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#services .services-header h2 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.02;
}

#services .services-header p {
  margin: 0 auto;
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.6;
}

#services .services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "channels control"
    "channels integrations";
  gap: 22px;
  align-items: stretch;
}

#services .service-panel {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  min-height: 280px;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 21, 40, 0.84), rgba(9, 14, 28, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 54px rgba(8, 12, 26, 0.22);
  overflow: hidden;
}

#services .service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#services .service-panel--channels {
  grid-area: channels;
  min-height: 582px;
}

#services .service-panel--channels::before {
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 32%),
    radial-gradient(circle at 24% 82%, rgba(34, 211, 238, 0.1), transparent 24%);
}

#services .service-panel--control {
  grid-area: control;
}

#services .service-panel--control::before {
  background:
    radial-gradient(circle at 82% 24%, rgba(56, 189, 248, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.04), transparent 42%);
}

#services .service-panel--integrations {
  grid-area: integrations;
}

#services .service-panel--integrations::before {
  background:
    radial-gradient(circle at 78% 24%, rgba(45, 212, 191, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(129, 140, 248, 0.05), transparent 40%);
}

#services .service-panel__meta,
#services .service-panel__body {
  position: relative;
  z-index: 1;
}

#services .service-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

#services .service-panel__index {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 26, 48, 0.96), rgba(10, 15, 28, 0.98));
  border: 1px solid rgba(129, 140, 248, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 8px rgba(99, 102, 241, 0.04);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

#services .service-panel__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

#services .service-panel--channels .service-panel__icon {
  color: #7c83ff;
}

#services .service-panel--control .service-panel__icon {
  color: #38bdf8;
}

#services .service-panel--integrations .service-panel__icon {
  color: #2dd4bf;
}

#services .service-panel__body {
  display: flex;
  flex-direction: column;
}

#services .service-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: #8d9ac1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#services .service-panel h3 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

#services .service-panel p {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.62;
}

#services .service-panel__constellation {
  position: relative;
  flex: 1;
  min-height: 250px;
  margin: 22px 0 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08), transparent 28%),
    radial-gradient(circle at 22% 76%, rgba(34, 211, 238, 0.08), transparent 20%),
    radial-gradient(circle at 78% 24%, rgba(129, 140, 248, 0.1), transparent 22%);
  overflow: hidden;
}

#services .service-panel__constellation::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(129, 140, 248, 0.08);
  opacity: 0.65;
}

#services .service-panel__constellation::after {
  display: none;
}

#services .service-panel__constellation-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.12));
}

#services .service-panel__constellation-frame {
  stroke: rgba(129, 140, 248, 0.08);
}

#services .service-panel__constellation-orbit-ring {
  stroke: rgba(115, 56, 223, 0.425);
  stroke-dasharray: 4 6;
}

#services .service-panel__constellation-link {
  stroke: url(#servicesConstellationLink);
  stroke: rgba(129, 140, 248, 0.42);
  stroke-width: 1.5;
  stroke-linecap: round;
}

#services .service-panel__constellation-core-ring {
  fill: rgba(124, 130, 255, 0.2);
  stroke: rgba(129, 140, 248, 0.3);
}

#services .service-panel__constellation-core-fill {
  fill: rgba(124, 131, 255, 0.24);
  stroke: rgba(160, 166, 255, 0.46);
}

#services .service-panel__constellation-node-fill {
  fill: rgba(16, 21, 40, 0.95);
  stroke: rgba(129, 140, 248, 0.28);
}

#services .service-panel__constellation-node-ring {
  fill: rgba(124, 131, 255, 0.02);
  stroke: rgba(129, 140, 248, 0.14);
}

#services .service-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

#services .service-panel__tags span,
#services .service-panel__links span:nth-child(odd) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.42);
  border: 1px solid rgba(129, 140, 248, 0.14);
  color: #eef2ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#services .service-panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

#services .service-panel__metric {
  min-height: 112px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

#services .service-panel__metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

#services .service-panel__metric span {
  color: #9aa6c9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#services .service-panel__links {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

#services .service-panel__links span:nth-child(even) {
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.18), rgba(129, 140, 248, 0.7), rgba(45, 212, 191, 0.18));
}

@media (max-width: 1200px) {
  #services {
    padding: 96px 0;
  }

  #services .services-header {
    margin-bottom: 44px;
  }

  #services .services-header h2 {
    font-size: 42px;
    letter-spacing: -1.4px;
  }

  #services .services-header p {
    font-size: 18px;
  }

  #services .service-panel {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
  }

  #services .service-panel--channels {
    min-height: 540px;
  }

  #services .service-panel h3 {
    font-size: 34px;
  }

  #services .service-panel p {
    font-size: 16px;
  }

  #services .service-panel__constellation {
    min-height: 228px;
  }
}

@media (max-width: 1024px) {
  #services {
    padding: 88px 0;
  }

  #services .services-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "channels"
      "control"
      "integrations";
  }

  #services .service-panel,
  #services .service-panel--channels {
    min-height: unset;
  }

  #services .service-panel h3 {
    font-size: 30px;
  }

  #services .service-panel__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #services .service-panel__constellation {
    min-height: 220px;
    margin-top: 18px;
  }
}

@media (max-width: 576px) {
  #services {
    padding: 72px 0;
  }

  #services .services-header {
    margin-bottom: 34px;
  }

  #services .services-kicker {
    margin-bottom: 16px;
    padding: 8px 14px;
    font-size: 10px;
  }

  #services .services-header h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  #services .services-header p {
    font-size: 16px;
  }

  #services .services-grid {
    gap: 16px;
  }

  #services .service-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  #services .service-panel__meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  #services .service-panel__index {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 13px;
  }

  #services .service-panel__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  #services .service-panel__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
  }

  #services .service-panel h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  #services .service-panel p {
    font-size: 14px;
    line-height: 1.58;
  }

  #services .service-panel__constellation {
    min-height: 182px;
    margin: 16px 0 6px;
    border-radius: 22px;
  }

  #services .service-panel__tags,
  #services .service-panel__metrics,
  #services .service-panel__links {
    padding-top: 22px;
  }

  #services .service-panel__metric {
    min-height: 90px;
    padding: 14px;
    border-radius: 18px;
  }

  #services .service-panel__metric strong {
    font-size: 18px;
  }

  #services .service-panel__metric span,
  #services .service-panel__tags span,
  #services .service-panel__links span:nth-child(odd) {
    font-size: 10px;
  }

  #services .service-panel__links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #services .service-panel__links span:nth-child(even) {
    display: none;
  }
}