/* =================================================================
   AI service pages — promo video + small additions.
   Everything else reuses the existing service-page components.
   ================================================================= */

/* Promo video: same frame as .erp-demo-video, plus language badge + cross-fade */
.ai-promo-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0B1220;
}
.ai-promo-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .26s ease, transform .26s ease, filter .26s ease;
}
.ai-promo-video.is-switching video {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(6px);
}
.ai-video-lang {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    color: #5eead4;
    background: rgba(11, 18, 32, .72);
    border: 1px solid rgba(94, 234, 212, .4);
    pointer-events: none;
    transition: opacity .26s ease;
}
.ai-promo-video.is-switching .ai-video-lang { opacity: 0; }

.ai-video-note {
    max-width: 960px;
    margin: .875rem auto 0;
    text-align: center;
    font-size: .875rem;
    color: var(--vt-graphite, #4A5568);
}

/* Anchor target clears the fixed header */
#video, #why, #services { scroll-margin-top: 88px; }

/* Hub: six services in a balanced 3 × 2 grid on desktop */
@media (min-width: 900px) {
    body.services-page main .feature-grid.ai-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* "Learn more" link inside a feature card */
.ai-feature-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--vt-blue, #2563EB);
    text-decoration: none;
}
.ai-feature-link:hover,
.ai-feature-link:focus-visible { text-decoration: underline; }
.ai-feature-link i {
    font-size: .75rem !important;
    margin: 0 !important;
    color: inherit !important;
    transition: transform .2s ease;
}
.ai-feature-link:hover i { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    .ai-promo-video video,
    .ai-video-lang,
    .ai-feature-link i { transition: none; }
}
