/* ============================================================
   Global System · AI Call — тематические дополнения к
   logistics-landing.css (фирменный дизайн системы звонков).
   Базовые компоненты берём 1-в-1 из логистики, здесь только
   AI-специфика: медиа услуг, сцена «Контур звонка», правки.
   ============================================================ */

:root {
    --ai-cyan: #7ee4ff;
    --ai-mint: #9dffcf;
    --ai-gold: #ffd24a;
    --ai-purple: #b38bff;
    --ai-ink: #eaf6ff;
}

/* Вход в приложение (кнопка в навигации hero) */
.gs-ai-call .hero-login {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #021019;
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-mint));
    border: 1px solid rgba(126, 228, 255, 0.6);
    box-shadow: 0 14px 30px rgba(0, 184, 232, 0.32), 0 0 22px rgba(157, 255, 207, 0.28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gs-ai-call .hero-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 184, 232, 0.45), 0 0 30px rgba(157, 255, 207, 0.4);
}
.gs-ai-call .hero-login i { font-size: 15px; }

/* ── Медиа-плитки услуг: градиент + иконка вместо фото ── */
.gs-ai-call .service-media {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(126, 228, 255, 0.14), transparent 60%),
        linear-gradient(160deg, rgba(8, 30, 52, 0.9), rgba(3, 14, 28, 0.92));
    filter: none;
}
.gs-ai-call .service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 228, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 228, 255, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
            mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
    opacity: .5;
}
.gs-ai-call .service-media i {
    position: relative;
    z-index: 1;
    font-size: 44px;
    color: #fff;
    filter: drop-shadow(0 0 18px rgba(126, 228, 255, 0.55));
    transition: transform .35s ease, filter .35s ease;
}
.gs-ai-call .service-tile:hover .service-media i {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 0 26px rgba(126, 228, 255, 0.85));
}
.gs-ai-call .service-media--in     { box-shadow: inset 0 -3px 0 rgba(126, 228, 255, .8); }
.gs-ai-call .service-media--in i   { color: var(--ai-cyan); }
.gs-ai-call .service-media--out    { box-shadow: inset 0 -3px 0 rgba(157, 255, 207, .8); }
.gs-ai-call .service-media--out i  { color: var(--ai-mint); }
.gs-ai-call .service-media--script { box-shadow: inset 0 -3px 0 rgba(255, 210, 74, .8); }
.gs-ai-call .service-media--script i { color: var(--ai-gold); }
.gs-ai-call .service-media--crm    { box-shadow: inset 0 -3px 0 rgba(179, 139, 255, .8); }
.gs-ai-call .service-media--crm i  { color: var(--ai-purple); }
.gs-ai-call .service-media--analytics   { box-shadow: inset 0 -3px 0 rgba(126, 228, 255, .8); }
.gs-ai-call .service-media--analytics i { color: var(--ai-cyan); }
.gs-ai-call .service-media--quality     { box-shadow: inset 0 -3px 0 rgba(157, 255, 207, .8); }
.gs-ai-call .service-media--quality i   { color: var(--ai-mint); }

/* ============================================================
   Сцена «Контур звонка» — фирменная анимация AI Call
   ============================================================ */
.ai-flow-board {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 8px auto 0;
    padding: 26px 30px 34px;
    border-radius: 20px;
    border: 1px solid rgba(126, 228, 255, 0.22);
    background:
        radial-gradient(60% 80% at 18% 0%, rgba(0, 184, 232, 0.12), transparent 60%),
        radial-gradient(60% 80% at 85% 100%, rgba(157, 255, 207, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(6, 24, 42, 0.92), rgba(3, 14, 28, 0.94));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.ai-flow-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126, 228, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 228, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

/* Live-строка статуса */
.ai-live {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.ai-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff9a9a;
    border: 1px solid rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.08);
}
.ai-live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 10px #ff6b6b;
    animation: aiBlink 1.2s ease-in-out infinite;
}
@keyframes aiBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.ai-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.ai-eq i {
    width: 4px; border-radius: 3px;
    background: linear-gradient(180deg, var(--ai-cyan), var(--ai-mint));
    animation: aiEq 1s ease-in-out infinite;
}
.ai-eq i:nth-child(1) { animation-delay: -.9s; }
.ai-eq i:nth-child(2) { animation-delay: -.2s; }
.ai-eq i:nth-child(3) { animation-delay: -.6s; }
.ai-eq i:nth-child(4) { animation-delay: -.1s; }
.ai-eq i:nth-child(5) { animation-delay: -.7s; }
.ai-eq i:nth-child(6) { animation-delay: -.35s; }
.ai-eq i:nth-child(7) { animation-delay: -.5s; }
.ai-eq i:nth-child(8) { animation-delay: -.15s; }
@keyframes aiEq { 0%, 100% { height: 6px; } 50% { height: 24px; } }

.ai-live-meta { color: var(--ai-cyan); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.ai-live-meta b { color: #fff; font-variant-numeric: tabular-nums; }

/* Конвейер этапов */
.ai-pipeline {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding-top: 14px;
}
.ai-pipeline-line {
    position: absolute;
    left: 4%; right: 4%;
    top: 42px;
    height: 2px;
    background: linear-gradient(90deg, rgba(126, 228, 255, 0.15), rgba(157, 255, 207, 0.3), rgba(126, 228, 255, 0.15));
    z-index: 0;
}
.ai-pipeline-pulse {
    position: absolute;
    top: 36px;
    left: 4%;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--ai-mint);
    box-shadow: 0 0 18px var(--ai-mint), 0 0 34px rgba(157, 255, 207, 0.6);
    z-index: 1;
    animation: aiRun 6s linear infinite;
}
@keyframes aiRun { 0% { left: 4%; } 100% { left: 96%; } }

.ai-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.ai-stage-node {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--ai-cyan);
    background: rgba(6, 26, 46, 0.9);
    border: 1px solid rgba(126, 228, 255, 0.28);
    transition: none;
    animation: aiStage 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1s);
}
@keyframes aiStage {
    0%, 8% { transform: translateY(0) scale(1); color: var(--ai-cyan); border-color: rgba(126,228,255,.28); box-shadow: none; }
    14% { transform: translateY(-4px) scale(1.12); color: #fff; border-color: var(--ai-mint); box-shadow: 0 0 26px rgba(157,255,207,.6); }
    24%, 100% { transform: translateY(0) scale(1); color: var(--ai-cyan); border-color: rgba(126,228,255,.28); box-shadow: none; }
}
.ai-stage b { font-size: 12.5px; font-weight: 700; color: var(--ai-ink); letter-spacing: 0.01em; }
.ai-stage span { font-size: 11px; color: rgba(182, 217, 238, 0.7); line-height: 1.35; }

@media (max-width: 880px) {
    .ai-pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
    .ai-pipeline-line, .ai-pipeline-pulse { display: none; }
}

/* Контакт/футер AI Call */
.gs-ai-call .contact-section .contact-actions a.cta-accent {
    color: #021019;
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-mint));
    border-color: transparent;
    font-weight: 700;
}
.gs-ai-call .ai-foot-note { color: rgba(182, 217, 238, 0.65); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .ai-live-dot, .ai-eq i, .ai-pipeline-pulse, .ai-stage-node { animation: none !important; }
}
