/* AI Services hub — .page-ai-services */

.page-ai-services {
  background: #fff;
}

.page-ai-services .nav__link.is-active {
  color: var(--h2-blue, #0066ff);
}

.page-ai-services .h2-footer {
  margin-top: 0;
}

/* Hero */
.svc-hero {
  position: relative;
  padding: calc(var(--header-h, 72px) + clamp(36px, 5vw, 56px)) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  background: linear-gradient(165deg, #eef4ff 0%, #f8fafc 45%, #fff 100%);
}

.svc-hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 92% 8%, rgba(0, 102, 255, .14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 8% 90%, rgba(14, 165, 233, .08), transparent 50%);
}

.svc-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.svc-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h2-blue, #0066ff);
  margin-bottom: 14px;
}

.svc-hero__kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--h2-blue, #0066ff);
}

.svc-hero__title {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--h2-ink, #0f172a);
}

.svc-hero__title-accent {
  display: block;
  margin-top: 4px;
  background: linear-gradient(100deg, #0066ff 0%, #2563eb 45%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-hero__lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.65vw, 18px);
  line-height: 1.65;
  color: #475569;
  max-width: 52ch;
}

.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.svc-hero__panel {
  padding: clamp(22px, 3vw, 28px);
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--h2-line, #e2e8f0);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.svc-hero__panel h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 16px;
}

.svc-hero__stat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.svc-hero__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.svc-hero__stat:first-of-type {
  padding-top: 0;
}

.svc-hero__stat-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--h2-blue, #0066ff);
  background: rgba(0, 102, 255, .08);
}

.svc-hero__stat-ico .ico {
  width: 20px;
  height: 20px;
}

.svc-hero__stat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--h2-ink, #0f172a);
  margin-bottom: 4px;
}

.svc-hero__stat p {
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

/* Trust strip */
.svc-trust {
  border-top: 1px solid var(--h2-line, #e2e8f0);
  border-bottom: 1px solid var(--h2-line, #e2e8f0);
  background: #fff;
  padding: 20px 0;
}

.svc-trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
}

.svc-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.svc-trust__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h2-blue, #0066ff);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .15);
}

/* Paths */
.svc-paths {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--h2-soft, #f8fafc);
}

.svc-paths__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 52px);
}

.svc-paths__head .h2-lead {
  margin-top: 12px;
}

.svc-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.svc-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--h2-line, #e2e8f0);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}

.svc-path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--path-accent, #0066ff);
}

.svc-path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 102, 255, .12);
  border-color: rgba(0, 102, 255, .25);
}

.svc-path-card--blue { --path-accent: #2563eb; }
.svc-path-card--purple { --path-accent: #7c3aed; }
.svc-path-card--green { --path-accent: #059669; }

.svc-path-card__step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--path-accent);
  margin-bottom: 14px;
}

.svc-path-card__ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--path-accent) 10%, #fff);
  color: var(--path-accent);
}

.svc-path-card__ico .ico {
  width: 26px;
  height: 26px;
}

.svc-path-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  color: var(--h2-ink, #0f172a);
}

.svc-path-card__lead {
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
}

.svc-path-card ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 13px;
  color: #475569;
}

.svc-path-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.svc-path-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--path-accent);
  opacity: .85;
}

.svc-path-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--path-accent);
  margin-top: auto;
}

.svc-path-card__go .ico {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}

.svc-path-card:hover .svc-path-card__go .ico {
  transform: translateX(3px);
}

/* Deliverables */
.svc-deliver {
  padding: clamp(56px, 8vw, 80px) 0;
}

.svc-deliver__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.svc-deliver__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.svc-deliver__item {
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--h2-soft, #f8fafc);
  border: 1px solid #e2e8f0;
}

.svc-deliver__item h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--h2-ink, #0f172a);
}

.svc-deliver__item p {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

/* Build / next steps */
.svc-build {
  padding: clamp(48px, 7vw, 72px) 0;
  background: #fff;
  border-top: 1px solid var(--h2-line, #e2e8f0);
}

.svc-build__head {
  margin-bottom: 28px;
}

.svc-build__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.svc-build-card {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--h2-line, #e2e8f0);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.svc-build-card:hover {
  border-color: rgba(0, 102, 255, .3);
  box-shadow: 0 10px 28px rgba(0, 102, 255, .08);
  transform: translateY(-2px);
}

.svc-build-card__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--h2-blue, #0066ff);
  background: rgba(0, 102, 255, .08);
  margin-bottom: 14px;
}

.svc-build-card__ico .ico {
  width: 22px;
  height: 22px;
  max-width: none;
}

.svc-build-card h3 {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}

.svc-build-card p {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  margin: 0 0 12px;
  flex-grow: 1;
}

.svc-build-card > span:not(.svc-build-card__ico) {
  font-size: 12px;
  font-weight: 700;
  color: var(--h2-blue, #0066ff);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* CTA */
.svc-cta {
  padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 9vw, 96px);
  background: var(--h2-soft, #f8fafc);
}

.svc-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 18px;
  background: linear-gradient(100deg, #0a2d6b 0%, #1e43c1 50%, #0066ff 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(30, 67, 193, .28);
}

.svc-cta__box h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 22ch;
}

.svc-cta__box p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 48ch;
}

.svc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.svc-cta__actions .btn--white {
  color: #1e43c1;
  font-weight: 700;
}

.svc-cta__ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}

.svc-cta__ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* Scroll-triggered section reveals */
.page-ai-services {
  --svc-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ai-services .svc-reveal:not(.is-inview) .svc-reveal__item {
  opacity: 0;
  transform: translateY(24px);
}
.page-ai-services .svc-reveal.is-inview .svc-reveal__item {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s var(--svc-reveal-ease),
    transform 0.78s var(--svc-reveal-ease);
  transition-delay: calc(0.04s + min(var(--reveal-index, 0), 14) * 0.055s);
}
.page-ai-services .svc-hero.svc-reveal:not(.is-inview) .svc-hero__panel.svc-reveal__item {
  transform: translate(20px, 16px);
}
.page-ai-services .svc-cta.svc-reveal:not(.is-inview) .svc-cta__box {
  transform: translateY(28px) scale(0.98);
  opacity: 0;
}
.page-ai-services .svc-cta.svc-reveal.is-inview .svc-cta__box {
  transform: none;
  opacity: 1;
  transition:
    opacity 0.7s var(--svc-reveal-ease),
    transform 0.85s var(--svc-reveal-ease);
}
@media (prefers-reduced-motion: reduce) {
  .page-ai-services .svc-reveal:not(.is-inview) .svc-reveal__item,
  .page-ai-services .svc-cta.svc-reveal:not(.is-inview) .svc-cta__box {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .svc-paths__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .svc-build__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc-deliver__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .svc-hero__layout {
    grid-template-columns: 1fr;
  }
  .svc-deliver__grid {
    grid-template-columns: 1fr;
  }
  .svc-build__grid {
    grid-template-columns: 1fr;
  }
  .svc-cta__box {
    flex-direction: column;
    align-items: flex-start;
  }
}
