/* ============================================
  0. GLOBAL PAGE UTILITIES (Scoped)
 */
body.service-page main {
  overflow-x: clip;
}

body.service-page section {
  overflow-x: clip;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: transparent;
}

/* ——— Hero (services page) ——— */
.services-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: min(88vh, 820px);
  padding: calc(100px + env(safe-area-inset-top, 0px)) 0 clamp(3.5rem, 8vw, 5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.services-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.services-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 75%, color-mix(in srgb, var(--secondary) 20%, transparent), transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, var(--bg) 100%);
}

html.light .services-hero__mesh {
  background:
    radial-gradient(ellipse 80% 60% at 12% 20%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 75%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent 52%),
    linear-gradient(180deg, #eef4ff 0%, var(--bg) 72%);
}

.services-hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 65%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 65%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.services-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.38;
  animation: servicesOrbFloat 10s ease-in-out infinite;
}

.services-hero__orb--1 {
  width: min(380px, 52vw);
  height: min(380px, 52vw);
  background: var(--primary);
  top: -18%;
  right: -6%;
}

.services-hero__orb--2 {
  width: min(300px, 44vw);
  height: min(300px, 44vw);
  background: var(--secondary);
  bottom: -22%;
  left: -8%;
  animation-delay: -3.5s;
}

.services-hero__orb--3 {
  width: min(200px, 32vw);
  height: min(200px, 32vw);
  background: color-mix(in srgb, var(--secondary) 55%, var(--primary));
  top: 42%;
  left: 38%;
  opacity: 0.22;
  animation-delay: -6s;
}

@keyframes servicesOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -16px) scale(1.05);
  }
  66% {
    transform: translate(-14px, 12px) scale(0.97);
  }
}

.services-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.services-hero__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid color-mix(in srgb, var(--secondary) 35%, var(--border));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--secondary) 8%, var(--surface));
}

.services-hero__title {
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.services-hero__subtitle {
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  max-width: 32rem;
  margin-bottom: 1.35rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.services-hero__text {
  max-width: 38rem;
}

.services-hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.services-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 5.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--text) 5%, transparent);
}

.services-hero__stat strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--text);
}

.services-hero__stat span {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.services-hero__cta {
  gap: 0.5rem;
}

.services-hero__cta svg {
  transition: transform 0.28s ease;
}

.services-hero__cta:hover svg {
  transform: translate(3px, 2px);
}

.services-hero__cta-secondary {
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  transition: var(--transition);
}

.services-hero__cta-secondary:hover {
  border-color: color-mix(in srgb, var(--secondary) 50%, var(--border));
  background: color-mix(in srgb, var(--secondary) 10%, var(--surface));
  color: var(--text);
}

.services-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-hero__showcase {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.services-hero__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.services-hero__ring {
  transform-origin: 140px 140px;
}

.services-hero__ring--outer {
  animation: servicesHeroRing 24s linear infinite;
}

.services-hero__ring--inner {
  animation: servicesHeroRing 18s linear infinite reverse;
}

.services-hero__ring--data {
  transform-origin: 140px 140px;
  animation: servicesHeroRing 30s linear infinite;
}

.services-hero__showcase-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(6.5rem, 28vw, 9rem);
  height: clamp(6.5rem, 28vw, 9rem);
  animation: servicesHeroIconFloat 5s ease-in-out infinite;
}

.services-hero__showcase-core::before,
.services-hero__showcase-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.services-hero__showcase-core::before {
  inset: -6%;
  border: 2px solid color-mix(in srgb, var(--secondary) 45%, transparent);
  animation: servicesHeroPulseRing 2.8s ease-out infinite;
}

.services-hero__showcase-core::after {
  inset: -18%;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  opacity: 0.6;
  animation: servicesHeroPulseRing 2.8s ease-out infinite 1.4s;
}

.services-hero__chip {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--secondary) 35%, transparent));
}

.services-hero__chip-body {
  animation: servicesHeroChipGlow 3s ease-in-out infinite;
}

.services-hero__chip-trace {
  transform-origin: 40px 40px;
  animation: servicesHeroTracePulse 2s ease-in-out infinite;
}

.services-hero__chip-node {
  animation: servicesHeroNodeBlink 2s ease-in-out infinite;
}

.services-hero__chip-pins line {
  animation: servicesHeroPinFade 2.4s ease-in-out infinite;
}

.services-hero__chip-pins line:nth-child(odd) {
  animation-delay: 0.3s;
}

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

@keyframes servicesHeroIconFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes servicesHeroPulseRing {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  70%,
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@keyframes servicesHeroChipGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

@keyframes servicesHeroTracePulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes servicesHeroNodeBlink {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes servicesHeroPinFade {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero__ring--outer,
  .services-hero__ring--inner,
  .services-hero__ring--data,
  .services-hero__showcase-core,
  .services-hero__showcase-core::before,
  .services-hero__showcase-core::after,
  .services-hero__chip-body,
  .services-hero__chip-trace,
  .services-hero__chip-node,
  .services-hero__chip-pins line {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .services-hero {
    min-height: auto;
  }

  .services-hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .services-hero__subtitle {
    margin-inline: auto;
  }

  .services-hero__stats {
    justify-content: center;
  }

  .services-hero__stat {
    align-items: center;
  }

  .services-hero__actions {
    justify-content: center;
  }

  .services-hero__text {
    padding-inline: 0;
    margin-inline: auto;
  }

  .services-hero__visual {
    order: -1;
  }

  .services-hero__showcase {
    width: min(260px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero__orb {
    animation: none;
  }
}

/* ——— Core services carousel ——— */
.core-services {
  padding: var(--section-pad-y) 0;
  overflow-x: clip;
}

.core-services__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.25rem);
}

.core-services__title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
}

.core-services__slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.core-services__viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.core-services__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

.core-services__card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 17.5rem;
  padding: var(--space-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .core-services__card {
    padding: var(--space-md);
  }
}

.core-services__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s ease;
}

.core-services__card:hover::before {
  transform: scaleX(1);
}

.core-services__card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  transition: var(--transition);
}

.core-services__card:hover .core-services__card-icon {
  border-color: transparent;
  background: var(--gradient);
}

.core-services__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.core-services__card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

.core-services__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.28s ease;
}

.core-services__card-link:hover {
  gap: 0.55rem;
}

.core-services__nav {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.core-services__nav:hover {
  transform: scale(1.06);
}

.core-services__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1024px) {
  .core-services__card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .core-services__card {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
  }

  .core-services__nav {
    display: none;
  }

  .core-services__slider-wrapper {
    gap: 0;
  }
}

/* ——— Services details ——— */
.services-details {
  padding: var(--section-pad-y) 0;
  overflow-x: clip;
}

.services-details__header {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.services-details__title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
}

.services-details__list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vw, 7rem);
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

.service-detail--right .service-detail__content {
  grid-column: 2;
  grid-row: 1;
}

.service-detail--right .service-detail__visual {
  grid-column: 1;
  grid-row: 1;
}

.service-detail__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-detail__icon-wrap {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.service-detail__icon-wrap i {
  font-size: 1.5rem;
}

.service-detail:nth-child(even) .service-detail__icon-wrap {
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  color: var(--secondary);
}

.service-detail__title {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
}

.service-detail__text {
  font-size: 0.98rem;
  line-height: 1.78;
}

.service-detail__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.service-detail__features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.service-detail__features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.service-detail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}

.service-detail__code-block {
  width: 100%;
  max-width: 25rem;
  overflow: hidden;
}

.service-detail__dev-preview {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow:
    0 18px 45px color-mix(in srgb, var(--secondary) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
}

.service-detail__dev-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(37, 99, 235, 0.22) 0%,
    rgba(124, 58, 237, 0.18) 45%,
    rgba(236, 72, 153, 0.14) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.service-detail__dev-preview > * {
  position: relative;
  z-index: 1;
}

.service-detail__code-header {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface) 70%, #1e293b),
    color-mix(in srgb, var(--surface) 85%, #312e81)
  );
}

.service-detail__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.service-detail__dot--red {
  background: #ff5f57;
}

.service-detail__dot--yellow {
  background: #febc2e;
}

.service-detail__dot--green {
  background: #28c840;
}

.service-detail__code-body {
  padding: 1.1rem 1.15rem 0.85rem;
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);
}

.service-detail__code-body code {
  display: block;
  white-space: pre;
}

.service-detail__code-body .tok-tag {
  color: #f472b6;
}

.service-detail__code-body .tok-attr {
  color: #38bdf8;
}

.service-detail__code-body .tok-string {
  color: #4ade80;
}

.service-detail__code-body .tok-fn {
  color: #c084fc;
}

.service-detail__code-body .tok-text {
  color: #fde68a;
}

.service-detail__dev-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--primary) 8%, transparent)
  );
}

.service-detail__dev-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-pill);
  color: #fff;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-detail__dev-chip--html {
  background: linear-gradient(135deg, #e34f26, #f06529);
}

.service-detail__dev-chip--css {
  background: linear-gradient(135deg, #264de4, #2965f1);
}

.service-detail__dev-chip--js {
  background: linear-gradient(135deg, #f7df1e, #f0c800);
  color: #1e293b;
}

.service-detail__dev-chip--react {
  background: linear-gradient(135deg, #61dafb, #087ea4);
}

/* Unified service visual — 3-icon combo card */
.services-details__list > .service-detail {
  --visual-accent: var(--primary);
}

.services-details__list > .service-detail:nth-child(even) {
  --visual-accent: var(--secondary);
}

.service-detail__icon-feature--combo {
  position: relative;
  overflow: hidden;
  width: 11rem;
  height: 11rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--visual-accent) 10%, transparent);
  color: var(--visual-accent);
  border: 1px solid color-mix(in srgb, var(--visual-accent) 24%, var(--border));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--visual-accent) 14%, transparent);
}

.service-detail__icon-feature--combo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 28% 18%,
    color-mix(in srgb, var(--visual-accent) 24%, transparent),
    transparent 58%
  );
  pointer-events: none;
}

.icon-combo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.icon-combo__badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--visual-accent) 30%, var(--border));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--visual-accent) 16%, transparent);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-detail__icon-feature--combo:hover .icon-combo__badge {
  box-shadow: 0 8px 20px color-mix(in srgb, var(--visual-accent) 22%, transparent);
}

.icon-combo__badge svg {
  width: 1.85rem;
  height: 1.85rem;
}

.icon-combo__badge--shield {
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
}

.icon-combo__badge--team {
  bottom: 16%;
  left: 12%;
}

.icon-combo__badge--learn {
  bottom: 16%;
  right: 12%;
}

/* Shield visual (legacy; penetration-audit uses audit-radar) */
.service-detail__shield {
  position: relative;
  width: 9.25rem;
  height: 9.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__shield svg {
  z-index: 2;
  position: relative;
}

.service-detail__shield-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  animation: servicesRingPulse 3s ease-in-out infinite;
}

.service-detail__shield-ring--2 {
  animation-delay: -1.5s;
  inset: -1.15rem;
  opacity: 0.45;
}

@keyframes servicesRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.service-detail__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  height: 12rem;
  padding: 1.15rem;
  width: 100%;
  max-width: 21rem;
  border-radius: var(--radius-md);
}

.service-detail__chart-bar {
  flex: 1;
  height: var(--h);
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  position: relative;
  animation: servicesBarGrow 0.85s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
  opacity: 0.88;
  transition: opacity 0.28s ease;
}

.service-detail__chart-bar:hover {
  opacity: 1;
}

.service-detail__chart-bar span {
  position: absolute;
  bottom: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
}

@keyframes servicesBarGrow {
  from {
    height: 0;
  }
}

.service-detail__server-stack {
  width: 100%;
  max-width: 23rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-detail__server-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.service-detail__server-item:hover {
  transform: translateX(4px);
}

.service-detail__server-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  position: relative;
}

.service-detail__server-dot--active {
  background: color-mix(in srgb, var(--primary) 55%, var(--secondary));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}

.service-detail__server-dot--active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 45%, var(--secondary));
  animation: servicesDotPing 2s ease-in-out infinite;
}

@keyframes servicesDotPing {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.service-detail__color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 17rem;
}

.service-detail__color {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  transition: transform 0.28s ease;
}

.service-detail__color:hover {
  transform: scale(1.05);
}

.service-detail__audit-radar {
  width: 12rem;
  height: 12rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__audit-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 60%;
  height: 60%;
}

.service-detail__audit-ring--2 {
  width: 80%;
  height: 80%;
  opacity: 0.58;
}

.service-detail__audit-ring--3 {
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

.service-detail__audit-point {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--gradient);
  border-radius: 50%;
  transform: rotate(var(--angle)) translateX(var(--dist)) rotate(calc(-1 * var(--angle)));
  animation: servicesRadarPulse 2s ease-in-out infinite;
}

@keyframes servicesRadarPulse {
  0%,
  100% {
    transform: rotate(var(--angle)) translateX(var(--dist)) rotate(calc(-1 * var(--angle))) scale(1);
  }
  50% {
    transform: rotate(var(--angle)) translateX(var(--dist)) rotate(calc(-1 * var(--angle))) scale(1.28);
  }
}

@media (max-width: 1024px) {
  .service-detail,
  .service-detail--right .service-detail__content,
  .service-detail--right .service-detail__visual {
    grid-column: auto;
    grid-row: auto;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .service-detail__content {
    order: 1;
  }

  .service-detail__visual {
    order: 2;
  }

  .services-details__list {
    gap: 0;
  }

  .service-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .services-details__header {
    margin-bottom: 2.25rem;
  }

  .service-detail__icon-feature--combo {
    width: 10rem;
    height: 10rem;
    max-width: 100%;
  }

  .icon-combo__badge {
    width: 3rem;
    height: 3rem;
  }

  .icon-combo__badge svg {
    width: 1.65rem;
    height: 1.65rem;
  }

}

/* ——— How we work ——— */
.how-we-work {
  padding: var(--section-pad-y) 0;
  overflow: hidden;
}

.how-we-work__header {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.how-we-work__title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
}

.how-we-work__timeline {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
}

.how-we-work__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border);
}

.how-we-work__line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient);
  transition: height 0.28s ease;
}

.how-we-work__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 6vw, 4rem);
  position: relative;
  z-index: 1;
}

.how-we-work__step {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--sd, 0s);
}

.how-we-work__step:nth-child(odd) {
  flex-direction: row;
}

.how-we-work__step:nth-child(even) {
  flex-direction: row-reverse;
}

.how-we-work__node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.how-we-work__step--active .how-we-work__node {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 14%, transparent);
}

.how-we-work__step--active {
  opacity: 1;
  transform: translateY(0);
}

.how-we-work__number {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.28s ease;
}

.how-we-work__step--active .how-we-work__number {
  color: var(--primary);
}

.how-we-work__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: servicesNodePulse 2s ease-in-out infinite;
}

.how-we-work__step--active .how-we-work__pulse {
  opacity: 1;
}

@keyframes servicesNodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.24);
    opacity: 0;
  }
}

.how-we-work__card {
  width: calc(50% - 3rem);
  position: relative;
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.how-we-work__card::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transform: rotate(45deg);
}

.how-we-work__step:nth-child(odd) .how-we-work__card::before {
  right: -6px;
  border-left: none;
  border-bottom: none;
}

.how-we-work__step:nth-child(even) .how-we-work__card::before {
  left: -6px;
  border-right: none;
  border-top: none;
}

.how-we-work__step-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.how-we-work__step-text {
  font-size: 0.92rem;
  line-height: 1.68;
  margin-bottom: 0.85rem;
}

.how-we-work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.how-we-work__tags span {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

@media (max-width: 768px) {
  .how-we-work__line {
    left: 1.5rem;
  }

  .how-we-work__step,
  .how-we-work__step:nth-child(odd),
  .how-we-work__step:nth-child(even) {
    flex-direction: row;
    padding-left: 3.75rem;
  }

  .how-we-work__node {
    left: 1.5rem;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
  }

  .how-we-work__card {
    width: 100%;
  }

  .how-we-work__card::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .how-we-work__steps {
    gap: 2.25rem;
  }
}

/* ——— Pricing ——— */
.pricing-model {
  padding: var(--section-pad-y) 0;
  overflow-x: clip;
}

.pricing-model__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.pricing-model__title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-model__desc {
  font-size: 1.02rem;
  max-width: 32rem;
  margin-inline: auto;
  line-height: 1.65;
}

.pricing-model__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.25rem;
}

.pricing-model__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2.25rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.35rem);
  min-height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 100%, transparent);
  background: var(--surface);
  box-shadow:
    0 6px 22px color-mix(in srgb, var(--text) 7%, transparent),
    0 2px 8px color-mix(in srgb, var(--text) 4%, transparent);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease;
}

.pricing-model__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.45;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pricing-model__card > * {
  position: relative;
  z-index: 1;
}

html.dark .pricing-model__card {
  background: color-mix(in srgb, var(--surface) 96%, #fff);
  border-color: color-mix(in srgb, var(--border) 100%, rgba(255, 255, 255, 0.06));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--border) 90%, transparent);
}

html.light .pricing-model__card {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--primary) 12%, var(--border));
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--primary) 10%, transparent),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.pricing-model__card--highlight {
  transform: scale(1.02);
  border-color: color-mix(in srgb, var(--secondary) 50%, var(--border));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface) 55%, transparent),
    color-mix(in srgb, var(--secondary) 8%, transparent)
  );
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--secondary) 16%, transparent),
    0 4px 14px color-mix(in srgb, var(--text) 6%, transparent);
}

.pricing-model__card--highlight::before {
  opacity: 0.85;
  height: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .pricing-model__card:hover {
    transform: translateY(-10px);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow:
      0 18px 44px color-mix(in srgb, var(--primary) 14%, transparent),
      0 10px 28px color-mix(in srgb, var(--secondary) 10%, transparent);
    background: linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 85%, transparent),
      color-mix(in srgb, var(--primary) 5%, transparent)
    );
  }

  .pricing-model__card:hover::before {
    opacity: 1;
  }

  .pricing-model__card--highlight:hover {
    transform: translateY(-10px) scale(1.04);
    border-color: color-mix(in srgb, var(--secondary) 55%, var(--border));
    box-shadow:
      0 22px 52px color-mix(in srgb, var(--secondary) 24%, transparent),
      0 14px 36px color-mix(in srgb, var(--primary) 12%, transparent);
    background: linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 60%, transparent),
      color-mix(in srgb, var(--secondary) 10%, transparent)
    );
  }

  .pricing-model__card:hover .pricing-model__icon {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-model__card,
  .pricing-model__card--highlight {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .pricing-model__card:hover,
  .pricing-model__card--highlight:hover {
    transform: none;
  }

  .pricing-model__card--highlight:not(:hover) {
    transform: none;
  }
}

.pricing-model__icon {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-model__name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pricing-model__text {
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  flex: 1;
}

.pricing-model__features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.pricing-model__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  padding-left: 0.15rem;
}

.pricing-model__feature::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.pricing-model__btn {
  width: 100%;
  margin-top: auto;
  text-decoration: none;
  gap: 0.35rem;
}

.pricing-model__btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: none;
}

.pricing-model__btn--outline:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent);
}

.pricing-model__card--highlight .pricing-model__btn:hover {
  box-shadow: 0 10px 30px color-mix(in srgb, var(--secondary) 45%, transparent);
}

.pricing-model__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.pricing-model__badge--purple {
  border-color: color-mix(in srgb, var(--secondary) 35%, var(--border));
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  color: var(--secondary);
}

.pricing-model__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.55;
}

.pricing-model__note svg {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .pricing-model__grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin-inline: auto;
  }

  .pricing-model__card--highlight {
    transform: none;
  }
}

@media (max-width: 640px) {
  .pricing-model__card {
    padding: 1.85rem 1.35rem;
  }
}

/* ——— Mini CTA ——— */
.mini-cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.mini-cta__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2rem);
  padding: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
}

.mini-cta__box:hover {
  transform: translateY(-2px);
}

.mini-cta__content {
  flex: 1;
}

.mini-cta__title {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.mini-cta__text {
  font-size: 0.92rem;
  max-width: 32rem;
  line-height: 1.65;
}

.mini-cta__btn {
  flex-shrink: 0;
  gap: 0.45rem;
}

.mini-cta__btn svg {
  transition: transform 0.28s ease;
}

.mini-cta__btn:hover svg {
  transform: translateX(4px);
}

.mini-cta__glow {
  position: absolute;
  top: -50%;
  right: -12%;
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  background: var(--gradient);
  filter: blur(100px);
  opacity: 0.07;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.mini-cta__box:hover .mini-cta__glow {
  opacity: 0.12;
}

@media (max-width: 768px) {
  .mini-cta__box {
    flex-direction: column;
    text-align: center;
  }

  .mini-cta__btn {
    width: 100%;
  }
}

/* ——— Final CTA ——— */
.final-cta {
  padding: var(--section-pad-y) 0;
  overflow-x: clip;
}

.final-cta__wrapper {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  overflow: hidden;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.final-cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.final-cta__orb--1 {
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  background: var(--primary);
  top: -45%;
  left: -8%;
}

.final-cta__orb--2 {
  width: min(320px, 60vw);
  height: min(320px, 60vw);
  background: var(--secondary);
  bottom: -48%;
  right: -8%;
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin-inline: auto;
}

.final-cta__title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.18;
}

.final-cta__text {
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.final-cta__btn {
  gap: 0.45rem;
}

.final-cta__btn svg {
  transition: transform 0.28s ease;
}

.final-cta__btn:hover svg {
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .final-cta__btn {
    width: 100%;
  }
}

/* ——— Service page responsive (aligned with home.css gutters) ——— */
@media (max-width: 1024px) {
  .pricing-model__card--highlight {
    transform: none;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: calc(88px + env(safe-area-inset-top, 0px)) 0 36px;
    min-height: auto;
  }

  .services-hero__title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  }

  .services-hero__subtitle {
    font-size: 15px;
    max-width: 100%;
  }

  .services-hero__stats {
    gap: 0.5rem;
  }

  .services-hero__stat {
    min-width: 0;
    flex: 1 1 calc(33.333% - 0.5rem);
    padding: 0.55rem 0.65rem;
  }

  .services-hero__stat strong {
    font-size: 0.95rem;
  }

  .services-hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }

  .services-hero__cta-secondary {
    width: 100%;
    text-align: center;
  }

  .core-services,
  .services-details,
  .how-we-work,
  .pricing-model,
  .final-cta {
    padding: var(--section-pad-y-md) 0;
  }

  .core-services__header,
  .services-details__header,
  .how-we-work__header,
  .pricing-model__header {
    margin-bottom: 2rem;
    padding-inline: 0;
  }

  .core-services__title,
  .services-details__title,
  .how-we-work__title,
  .pricing-model__title,
  .final-cta__title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  }

  .pricing-model__desc,
  .final-cta__text {
    font-size: 15px;
  }

  .service-detail__title {
    font-size: 1.35rem;
  }

  .service-detail__text,
  .service-detail__features li {
    font-size: 0.9rem;
  }

  .service-detail__content {
    text-align: center;
    align-items: center;
  }

  .service-detail__features {
    align-items: flex-start;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }

  .service-detail__visual {
    width: 100%;
  }

  .service-detail__icon-feature--combo {
    margin-inline: auto;
  }

  .service-detail {
    padding: 2rem 0;
  }

  .pricing-model__grid {
    max-width: 100%;
    margin-inline: auto;
  }

  .pricing-model__card {
    padding: 1.85rem 1.25rem;
  }

  .pricing-model__btn,
  .services-hero__cta {
    width: 100%;
    max-width: 100%;
  }

  .final-cta__wrapper {
    padding: 2.25rem 1.25rem;
  }

  .final-cta__orb--1 {
    left: -20%;
  }

  .final-cta__orb--2 {
    right: -20%;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: calc(80px + env(safe-area-inset-top, 0px)) 0 28px;
  }

  .services-hero__stats {
    flex-direction: column;
    align-items: stretch;
  }

  .services-hero__stat {
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .services-hero__stat span {
    margin-top: 0;
  }

  .services-hero__showcase {
    width: min(240px, 68vw);
  }

  .core-services,
  .services-details,
  .how-we-work,
  .pricing-model,
  .final-cta {
    padding: var(--section-pad-y-sm) 0;
  }

  .service-detail {
    gap: 1.5rem;
    padding: 1.75rem 0;
  }

  .core-services__card {
    padding: var(--space-md);
  }

  .core-services__card-title {
    font-size: 1.05rem;
  }

  .core-services__card-desc {
    font-size: 0.85rem;
  }

  .service-detail__icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
  }

  .service-detail__icon-feature--combo {
    width: 9.25rem;
    height: 9.25rem;
  }

  .icon-combo__badge {
    width: 2.75rem;
    height: 2.75rem;
  }

  .icon-combo__badge svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .pricing-model__note {
    flex-direction: column;
    padding: 1rem;
    font-size: 0.82rem;
  }

  .how-we-work__step {
    padding-left: 3.25rem;
  }

  .how-we-work__node {
    left: 1.25rem;
  }

  .how-we-work__line {
    left: 1.25rem;
  }
}
