/* ==========================================================================
   PAGE AI — ШІ Рішення для бізнесу
   ========================================================================== */

/* --- HERO AI --- */

.hero--ai {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero inner split layout: text left + visual right */

.hero-inner--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.browser-mockup:hover {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

/* --- BUI INTERNAL COMPONENTS --- */

.bui-ai-header-row {
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bui-line--faded { opacity: 0.4; margin-top: 4px; }

.bui-stat-num { font-size: 14px; font-weight: 800; }

.bui-stat-num--orange { color: var(--primary); }

.bui-stat-num--green { color: #4ade80; }

.bui-charts-row { display: flex; gap: 10px; margin-bottom: 12px; }

/* Neural Network Card */

.ai-neural-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    padding: 12px;
    height: 90px;
}

.bui-chart-label { font-size: 7px; color: rgba(255, 255, 255, 0.3); margin-bottom: 8px; }

.neural-nodes-mini { position: relative; height: 100%; }

.n-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
}

.n-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.15; }

.ai-scan-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 96, 17, 0.1), transparent);
    animation: aiScan 3s infinite linear;
}

@keyframes aiScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Performance Chart */

.ai-chart-card {
    flex: 1.2;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    position: relative;
}

.perf-svg { width: 100%; height: 50px; overflow: visible; }

.bui-perf-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #4ade80;
}

.bui-badge-sm {
    width: 40px;
    height: 14px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    font-size: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 800;
}

/* --- BUSINESS VALUE LAYOUT --- */

.ai-bv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.ai-bv-sidebar { position: sticky; top: 120px; }

.ai-promo-card {
    margin-top: 40px;
    border-left: 4px solid var(--primary);
    background: rgba(252, 96, 17, 0.03);
    font-style: italic;
    font-size: 16px;
}

/* ii- styles shared with ai-rag */

.investment-item { margin-bottom: 60px; }

.ii-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 16px; }

.ii-num { font-size: 32px; font-weight: 800; color: var(--primary); opacity: 0.3; font-family: var(--font-heading); }

.ii-title { font-size: 24px; color: white; font-weight: 700; }

.ii-text { margin-left: 55px; color: var(--text-muted); line-height: 1.7; font-size: 16px; }

/* --- TRANSFORMATION --- */

.ai-section-desc { max-width: 700px; margin-top: 20px; }

.ai-transformation-list { display: flex; flex-direction: column; gap: 16px; margin-top: 50px; }

.ai-trans-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.ai-trans-row:hover { border-color: rgba(252, 96, 17, 0.2); }

.ai-pain-col {
    padding: 30px;
    background: rgba(255, 77, 77, 0.03);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ai-solution-col {
    padding: 30px;
    background: rgba(74, 222, 128, 0.03);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ai-arrow-col { display: flex; justify-content: center; }

.ai-arrow-circle {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.ai-sol-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-sol-icon--green { background: rgba(74, 222, 128, 0.1); }

.ai-sol-icon--red { background: rgba(255, 77, 77, 0.1); }

.ai-pain-label, .ai-sol-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-pain-label { color: #ff4d4d; }

.ai-sol-label { color: #4ade80; }

.ai-trans-text { font-size: 18px; font-weight: 600; color: white; }

/* --- SECTORS ACCORDION --- */

.sectors-interactive { margin-top: 40px; }

.sectors-nav .accordion-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
    border-right: 1px solid var(--card-border);
}

.sectors-nav .accordion-item:hover {
    background: rgba(252, 96, 17, 0.05);
    padding-left: 32px;
}

.sectors-nav .accordion-item.active {
    background: var(--primary-glow);
    border-left: 4px solid var(--primary);
    color: white;
}

#sector-details-panel {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sector-features-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sector-feature-card { padding: 16px; min-height: auto; border: 1px solid rgba(252, 96, 17, 0.1); }

.sector-feat-title { display: block; color: var(--primary); font-weight: 700; margin-bottom: 4px; }

.sector-feat-desc { font-size: 14px; opacity: 0.8; }

/* --- BUILD GRID / PERSONALIZATION --- */

.ai-build-grid { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }

.ai-build-col { display: flex; flex-direction: column; gap: 20px; }

.ai-build-title { color: var(--primary); margin-bottom: 12px; }

.ai-build-card { padding: 40px; background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent); }

/* --- SCALABILITY --- */

.scalability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
    align-items: stretch;
}

.scale-card {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scale-card:hover {
    transform: translateY(-10px);
    background: rgba(252, 96, 17, 0.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.scale-card--featured { border-color: var(--primary); background: rgba(252, 96, 17, 0.03); }

.scale-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(252, 96, 17, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.scale-card-icon--primary {
    background: var(--primary);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.scale-tier {
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.scale-title { font-size: 24px; margin-bottom: 16px; }

.scale-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 24px;
    flex: 1;
}

.scale-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.scale-time { font-size: 13px; color: var(--primary); font-weight: 600; }

/* --- VECTORS GRID --- */

.ai-vectors-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }

.ai-vector-card { padding: 32px; }

.ai-vector-label {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.tech-icon-wrap { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }

.tech-icon-wrap img { max-width: 48px; max-height: 40px; object-fit: contain; }

.tech-name-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }

/* --- SECTION TITLE LG, INTRO, DESC --- */

.section-title--lg { font-size: 48px; line-height: 1.1; }

.section-intro { font-size: 18px; margin-top: 24px; opacity: 0.8; color: var(--text-muted); line-height: 1.6; }

.section-desc { font-size: 18px; margin-top: 20px; opacity: 0.8; color: var(--text-muted); line-height: 1.6; }

/* === FADE IN ANIMATION === */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.4s ease-in-out; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1200px) {
    .ai-bv-layout { grid-template-columns: 1fr; }
    .tech-tabs-container { grid-template-columns: 280px 1fr; }
}

.browser-mockup:hover {
                transform: rotateY(0) rotateX(0) translateY(-10px);
            }

.bui-badge-sm {
                width: 40px;
                height: 12px;
                background: rgba(252, 96, 17, 0.2);
                border-radius: 4px;
            }

.ai-scan-bar {
                position: absolute;
                top: 0;
                left: -100%;
                width: 40%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(252, 96, 17, 0.1), transparent);
                animation: aiScan 3s infinite linear;
            }

@keyframes aiScan {
                0% {
                    left: -100%;
                }

                100% {
                    left: 100%;
                }
            }

.n-node {
                position: absolute;
                width: 4px;
                height: 4px;
                background: white;
                border-radius: 50%;
                opacity: 0.4;
            }

.sectors-nav .accordion-item {
                cursor: pointer;
                transition: all 0.3s ease;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
                padding: 20px 24px;
            }

.sectors-nav .accordion-item:hover {
                background: rgba(252, 96, 17, 0.05);
                padding-left: 32px;
            }

.sectors-nav .accordion-item.active {
                background: var(--primary-glow);
                border-left: 4px solid var(--primary);
                color: white;
            }

#sector-details-panel {
                transition: all 0.5s ease;
                position: relative;
                overflow: hidden;
            }

.sectors-nav .accordion-item {
                cursor: pointer;
                transition: all 0.3s ease;
                border-bottom: 1px solid rgba(255, 255, 255, 0.05);
                padding: 20px 24px;
            }

.sectors-nav .accordion-item:hover {
                background: rgba(252, 96, 17, 0.05);
                padding-left: 32px;
            }

.sectors-nav .accordion-item.active {
                background: var(--primary-glow);
                border-left: 4px solid var(--primary);
                color: white;
            }

#sector-details-panel {
                transition: all 0.5s ease;
                position: relative;
                overflow: hidden;
            }

.scalability-grid {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    gap: 30px;
                    margin-top: 50px;
                    margin-bottom: 60px;
                    align-items: stretch;
                }

.scale-card {
                    background: var(--bg-color);
                    border: 1px solid rgba(255, 255, 255, 0.05);
                    border-radius: 24px;
                    padding: 40px;
                    position: relative;
                    transition: all 0.3s ease;
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                }

.scale-card:hover {
                    transform: translateY(-10px);
                    background: rgba(252, 96, 17, 0.02);
                    border-color: var(--primary);
                    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
                }

@media (max-width: 991px) {
                    .scalability-grid {
                        grid-template-columns: 1fr;
                    }

                    .scale-card {
                        margin-bottom: 20px;
                    }
                }
