/* ========== SERVICES HUB — /services/ ========== */
.page-services-hub {
  --svch-accent: #6e91c8;
  --svch-accent-soft: rgba(110, 145, 200, 0.14);
  --svch-glass: rgba(255, 255, 255, 0.04);
  --svch-border: rgba(255, 255, 255, 0.1);
  --svch-radius: 18px;
  --svch-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-services-hub .service-main {
  padding-top: 0;
}

.page-services-hub .page-bg--services-hub {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #060708;
}

.svch-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.svch-bg-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 12% 16%, rgba(62, 82, 118, 0.42), transparent 58%),
    radial-gradient(70% 55% at 90% 78%, rgba(22, 30, 46, 0.52), transparent 54%),
    radial-gradient(50% 42% at 50% 100%, rgba(10, 12, 16, 0.85), transparent 62%);
}

.svch-bg-mesh::before,
.svch-bg-mesh::after {
  content: "";
  position: absolute;
  inset: -28%;
  pointer-events: none;
}

.svch-bg-mesh::before {
  background:
    radial-gradient(ellipse 46% 38% at 22% 30%, rgba(110, 145, 200, 0.18), transparent 62%),
    radial-gradient(ellipse 40% 34% at 78% 66%, rgba(18, 24, 38, 0.48), transparent 60%);
  animation: svchInkPulse 16s ease-in-out infinite;
}

.svch-bg-mesh::after {
  background:
    radial-gradient(ellipse 36% 30% at 58% 16%, rgba(110, 145, 200, 0.1), transparent 58%),
    radial-gradient(ellipse 42% 34% at 20% 80%, rgba(12, 14, 20, 0.42), transparent 64%);
  animation: svchInkPulse 22s ease-in-out infinite reverse;
}

@keyframes svchInkPulse {
  0%, 100% { opacity: 1; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.72; transform: scale(1.04) translate(1%, -1%); }
}

.svch-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 680ms var(--svch-ease),
    transform 680ms var(--svch-ease);
}

.svch-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.svch-accent {
  display: inline;
  background: linear-gradient(120deg, #8aa8d4 0%, #6e91c8 42%, #c8d8ef 78%, #6e91c8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: svchShimmer 8s ease-in-out infinite;
}

@keyframes svchShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.svch-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h, 72px) + 48px) 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.svch-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.svch-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.svch-hero-orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -12%;
  right: 8%;
  background: rgba(110, 145, 200, 0.22);
}

.svch-hero-orb--b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: -18%;
  left: 4%;
  background: rgba(40, 56, 88, 0.35);
}

.svch-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.svch-hero-glow {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 8, 0.85));
}

.svch-hero-inner {
  position: relative;
  z-index: 1;
}

.svch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 11px 5px 8px;
  border: 1px solid rgba(110, 145, 200, 0.28);
  border-radius: 999px;
  background: rgba(110, 145, 200, 0.08);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.88);
}

.svch-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--svch-accent);
  box-shadow: 0 0 10px rgba(110, 145, 200, 0.85);
  animation: svchDotPulse 2.4s ease-in-out infinite;
}

@keyframes svchDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.svch-h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f0f1f2;
}

.svch-lead {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: #8b919a;
}

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

.svch-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #e8eaed;
  text-decoration: none;
  font-size: 14px;
  transition:
    border-color 280ms var(--svch-ease),
    background 280ms var(--svch-ease),
    color 280ms var(--svch-ease);
}

.svch-chip:hover {
  border-color: rgba(110, 145, 200, 0.45);
  background: rgba(110, 145, 200, 0.1);
  color: #fff;
}

.svch-catalog {
  padding: clamp(56px, 8vw, 96px) 0;
}

.svch-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139, 144, 152, 0.95);
}

.svch-section-num {
  color: var(--svch-accent);
  font-variant-numeric: tabular-nums;
}

.svch-h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #f2f2f0;
}

.svch-section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.svch-section-lead {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(139, 144, 152, 0.95);
}

.svch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.svch-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border-radius: var(--svch-radius);
  border: 1px solid var(--svch-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 360ms var(--svch-ease),
    border-color 360ms var(--svch-ease),
    box-shadow 360ms var(--svch-ease);
}

.svch-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 145, 200, 0.4);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

.svch-card-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.svch-card-visual img {
  position: absolute;
  right: -8%;
  bottom: -6%;
  width: 68%;
  height: 78%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  filter: saturate(0.85) brightness(0.7);
  transition: opacity 360ms var(--svch-ease), transform 500ms var(--svch-ease);
}

.svch-card:hover .svch-card-visual img {
  opacity: 0.58;
  transform: scale(1.04);
}

.svch-card-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 7, 8, 0.96) 0%, rgba(6, 7, 8, 0.78) 42%, rgba(6, 7, 8, 0.35) 100%),
    linear-gradient(0deg, rgba(6, 7, 8, 0.9), transparent 55%);
}

.svch-card-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(110, 145, 200, 0.08), transparent 48%);
  backdrop-filter: blur(0.5px);
  pointer-events: none;
}

.svch-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
  max-width: 78%;
}

.svch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.svch-card-num {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(242, 242, 240, 0.9);
}

.svch-card-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(110, 145, 200, 0.9);
}

.svch-card-name {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f1f2f3;
}

.svch-card-text {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #858a93;
  max-width: 34ch;
}

.svch-card-go {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  color: #8aa8d4;
  transition: color 240ms ease, transform 240ms ease;
}

.svch-card:hover .svch-card-go {
  color: #c8d8ef;
}

.svch-cta {
  padding: 0 0 clamp(72px, 10vw, 120px);
}

.svch-cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.svch-cta-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.svch-cta-glow {
  position: absolute;
  width: 55%;
  height: 120%;
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(110, 145, 200, 0.22), transparent 68%);
}

.svch-cta-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(110, 145, 200, 0.08), transparent 45%),
    linear-gradient(0deg, rgba(6, 7, 8, 0.35), transparent);
}

.svch-cta-copy,
.svch-cta-action {
  position: relative;
  z-index: 1;
}

.svch-cta-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f2f2f0;
}

.svch-cta-copy p:last-child {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(139, 144, 152, 0.95);
}

.svch-cta-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.svch-cta-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: rgba(228, 229, 227, 0.9);
}

.svch-cta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--svch-accent);
}

.svch-cta-alt {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #8b919a;
  text-decoration: none;
  transition: color 200ms ease;
}

.svch-cta-alt:hover {
  color: #c8d8ef;
}

@media (max-width: 1100px) {
  .svch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .svch-hero {
    padding: calc(var(--header-h, 64px) + 28px) 0 40px;
  }

  .svch-h1 {
    max-width: none;
    font-size: clamp(30px, 9vw, 40px);
  }

  .svch-lead {
    font-size: 15px;
  }

  .svch-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .svch-card {
    min-height: 240px;
  }

  .svch-card-body {
    max-width: 72%;
  }

  .svch-cta-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 1024px), (pointer: coarse), (hover: none) {
  .svch-bg-mesh::before,
  .svch-bg-mesh::after,
  .svch-accent,
  .svch-kicker-dot {
    animation: none !important;
  }

  .svch-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .svch-card:hover {
    transform: none;
    box-shadow: none;
  }

  .svch-card:hover .svch-card-visual img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svch-bg-mesh::before,
  .svch-bg-mesh::after,
  .svch-accent,
  .svch-kicker-dot,
  .svch-reveal,
  .svch-card,
  .svch-card-visual img {
    animation: none !important;
    transition: none !important;
  }

  .svch-reveal {
    opacity: 1;
    transform: none;
  }
}
