.services-modern-page {
  background:
    radial-gradient(circle at 14% 8%, rgba(183, 63, 252, 0.24), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(72, 205, 255, 0.1), transparent 28%),
    var(--color-bg);
}

.services-modern-page main {
  overflow: hidden;
}

.services-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.62fr);
  gap: 42px;
  align-items: center;
  width: min(1320px, calc(100% - 80px));
  min-height: 62vh;
  margin: 0 auto;
  padding: 148px 0 54px;
}

.services-page-hero::before {
  content: "";
  position: absolute;
  inset: 116px -20px 24px;
  z-index: -1;
  border: 1px solid rgba(183, 63, 252, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 22% 38%, rgba(183, 63, 252, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(183, 63, 252, 0.08));
  background-size: 68px 68px, 68px 68px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 110px rgba(0, 0, 0, 0.24);
}

.services-hero-copy {
  padding-left: clamp(18px, 3.4vw, 54px);
}

.services-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(183, 63, 252, 0.38);
  border-radius: 999px;
  background: rgba(183, 63, 252, 0.13);
  color: var(--color-accent-light);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.services-page-hero-title {
  max-width: 790px;
  margin: 20px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--color-text);
}

.services-page-hero-text {
  max-width: 700px;
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.services-hero-primary,
.services-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.services-hero-primary {
  background: linear-gradient(135deg, var(--color-accent), #8d25d4);
  color: var(--color-text-on-accent);
  box-shadow: 0 18px 46px rgba(183, 63, 252, 0.36);
}

.services-hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.services-hero-system {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(183, 63, 252, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 26px 86px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.services-hero-system::before,
.services-hero-system::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(183, 63, 252, 0.22);
  border-radius: 50%;
}

.services-hero-system::before {
  width: 236px;
  height: 236px;
  box-shadow: 0 0 34px rgba(183, 63, 252, 0.12);
}

.services-hero-system::after {
  width: 344px;
  height: 344px;
  border-style: dashed;
  opacity: 0.86;
  animation: servicesSpin 30s linear infinite;
}

.services-system-core {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(183, 63, 252, 0.42);
  border-radius: 50%;
  background: rgba(15, 12, 18, 0.9);
  box-shadow: 0 0 60px rgba(183, 63, 252, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.services-system-core picture,
.services-system-core img {
  display: block;
}

.services-system-core img {
  width: 94px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}

.services-orbit {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  animation: servicesOrbit 20s linear infinite;
}

.orbit-one {
  animation-duration: 22s;
}

.orbit-two {
  animation-duration: 30s;
  animation-direction: reverse;
}

.orbit-three {
  animation-duration: 38s;
}

.services-system-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(183, 63, 252, 0.36);
  border-radius: 999px;
  background: rgba(20, 16, 24, 0.9);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-heading);
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
  transform-origin: center;
}

.node-web { transform: translate(126px, -19px); }
.node-ai { transform: translate(-194px, -19px); }
.node-seo { transform: translate(178px, -19px); }
.node-shopify { transform: translate(-258px, -19px); }
.node-lead { transform: translate(88px, -19px); }
.node-app { transform: translate(-148px, -19px); }

.orbit-one .services-system-node { animation: servicesCounterOrbit 22s linear infinite; }
.orbit-two .services-system-node { animation: servicesCounterOrbitReverse 30s linear infinite; }
.orbit-three .services-system-node { animation: servicesCounterOrbit 38s linear infinite; }

@keyframes servicesSpin {
  to { transform: rotate(360deg); }
}

@keyframes servicesOrbit {
  to { transform: rotate(360deg); }
}

@keyframes servicesCounterOrbit {
  to { rotate: -360deg; }
}

@keyframes servicesCounterOrbitReverse {
  to { rotate: 360deg; }
}

@media (max-width: 980px) {
  .services-page-hero {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    min-height: auto;
    gap: 26px;
    padding: 132px 0 52px;
  }

  .services-page-hero::before {
    inset: 102px -10px 22px;
    border-radius: 26px;
  }

  .services-hero-copy {
    padding: 0 14px;
  }

  .services-page-hero-title {
    font-size: clamp(40px, 10vw, 64px);
  }

  .services-hero-system {
    min-height: 340px;
    border-radius: 24px;
  }

  .services-hero-system::before { width: 210px; height: 210px; }
  .services-hero-system::after { width: 300px; height: 300px; }

  .node-web { transform: translate(108px, -19px); }
  .node-ai { transform: translate(-176px, -19px); }
  .node-seo { transform: translate(150px, -19px); }
  .node-shopify { transform: translate(-228px, -19px); }
  .node-lead { transform: translate(72px, -19px); }
  .node-app { transform: translate(-132px, -19px); }
}

@media (max-width: 600px) {
  .services-page-hero {
    width: calc(100% - 28px);
    padding: 122px 0 38px;
  }

  .services-page-hero::before {
    inset: 96px 0 16px;
    border-radius: 24px;
  }

  .services-hero-copy {
    padding: 0 18px;
  }

  .services-hero-tag {
    min-height: 34px;
    padding: 0 13px;
    font-size: 10px;
  }

  .services-page-hero-title {
    margin-top: 16px;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  .services-page-hero-text {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.58;
  }

  .services-hero-actions {
    margin-top: 22px;
  }

  .services-hero-primary,
  .services-hero-secondary {
    width: 100%;
    min-height: 50px;
  }

  .services-hero-system {
    min-height: 252px;
    border-radius: 20px;
  }

  .services-hero-system::before { width: 158px; height: 158px; }
  .services-hero-system::after { width: 220px; height: 220px; }

  .services-system-core {
    width: 104px;
    height: 104px;
  }

  .services-system-core img {
    width: 72px;
  }

  .services-system-node {
    min-height: 30px;
    padding: 0 9px;
    font-size: 9px;
  }

  .node-web { transform: translate(72px, -15px); }
  .node-ai { transform: translate(-126px, -15px); }
  .node-seo { transform: translate(106px, -15px); }
  .node-shopify { transform: translate(-164px, -15px); }
  .node-lead { transform: translate(50px, -15px); }
  .node-app { transform: translate(-96px, -15px); }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero-system::after,
  .services-orbit,
  .orbit-one .services-system-node,
  .orbit-two .services-system-node,
  .orbit-three .services-system-node {
    animation: none;
  }
}
