/* ===== AI AS A SERVICE — PREMIUM DARK ANIMATED THEME ===== */

:root {
    --ai-primary: #6366f1;
    --ai-secondary: #8b5cf6;
    --ai-accent: #06b6d4;
    --ai-glow: rgba(99, 102, 241, 0.4);
    --ai-dark: #0f172a;
    --ai-darker: #020617;
    --ai-border: rgba(99, 102, 241, 0.15);
    --ai-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
}

/* ==================== HERO ==================== */
.ai-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--ai-darker);
    overflow: hidden;
}

.ai-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.ai-hero-grid {
    position: absolute;
    inset: -60px;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 25s linear infinite;
}
@keyframes gridShift { 0% { transform: translate(0,0); } 100% { transform: translate(60px,60px); } }

.ai-neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Orbs */
.ai-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: orbFloat 10s ease-in-out infinite; }
.ai-orb-1 { width: 500px; height: 500px; background: rgba(99,102,241,0.14); top: -150px; right: -150px; }
.ai-orb-2 { width: 350px; height: 350px; background: rgba(6,182,212,0.1); bottom: -100px; left: -100px; animation-delay: -4s; }
.ai-orb-3 { width: 250px; height: 250px; background: rgba(139,92,246,0.12); top: 40%; left: 55%; animation-delay: -7s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-40px) scale(1.08); }
    66% { transform: translate(-30px,30px) scale(0.92); }
}

/* Particles */
.ai-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ai-particle { position: absolute; border-radius: 50%; animation: particleRise linear infinite; }
@keyframes particleRise {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Hero content */
.ai-hero-content { position: relative; z-index: 3; color: white; padding: 40px 0; }

.ai-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 24px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50px;
    font-size: 0.9rem; font-weight: 600; color: #a5b4fc;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}
.ai-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }

.ai-hero-title { font-size: clamp(2.8rem,6vw,5rem); font-weight: 900; line-height: 1.1; margin-bottom: 12px; animation: fadeInUp 1s ease-out; }
.ai-hero-title .gradient-text { background: var(--ai-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.ai-hero-tagline { font-size: clamp(1.15rem,2.5vw,1.5rem); color: #94a3b8; margin-bottom: 20px; font-weight: 300; animation: fadeInUp 1s ease-out 0.15s backwards; }
.ai-cursor { color: #a5b4fc; animation: blink 1s step-end infinite; font-weight: 100; }

.ai-hero-desc { font-size: 1.05rem; color: #cbd5e1; max-width: 620px; line-height: 1.8; margin-bottom: 24px; animation: fadeInUp 1s ease-out 0.3s backwards; }

.ai-hero-trust {
    display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}
.ai-trust-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 8px;
    font-size: 0.8rem; font-weight: 600; color: #94a3b8;
}
.ai-trust-item i { color: #22c55e; font-size: 0.75rem; }

.ai-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 1s ease-out 0.5s backwards; }

/* Scroll indicator */
.ai-scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: fadeInUp 1.5s ease-out 1s backwards;
}
.ai-scroll-indicator span { color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; }
.ai-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(99,102,241,0.4);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 6px;
}
.ai-mouse-wheel {
    width: 4px; height: 8px; border-radius: 2px;
    background: var(--ai-primary);
    animation: mouseScroll 2s ease-in-out infinite;
}
@keyframes mouseScroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Brain visual */
.ai-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; animation: fadeInRight 1s ease-out 0.3s backwards; }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }

.ai-brain-container { position: relative; width: 420px; height: 420px; }
.ai-brain-ring { position: absolute; border-radius: 50%; border: 1px dashed; animation: spinSlow linear infinite; }
.ai-brain-ring-1 { inset: 0; border-color: rgba(99,102,241,0.25); animation-duration: 20s; }
.ai-brain-ring-2 { inset: 30px; border-color: rgba(139,92,246,0.25); animation-duration: 15s; animation-direction: reverse; }
.ai-brain-ring-3 { inset: 60px; border-color: rgba(6,182,212,0.25); animation-duration: 10s; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ai-brain-ring::before {
    content: ''; position: absolute; top: -5px; left: 50%;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--ai-primary);
    box-shadow: 0 0 20px var(--ai-glow), 0 0 40px rgba(99,102,241,0.2);
}
.ai-brain-ring-2::before { background: var(--ai-secondary); box-shadow: 0 0 20px rgba(139,92,246,0.4); }
.ai-brain-ring-3::before { background: var(--ai-accent); box-shadow: 0 0 20px rgba(6,182,212,0.4); }

.ai-brain-center {
    position: absolute; inset: 90px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 50%;
    backdrop-filter: blur(20px);
}
.ai-brain-center i { font-size: 5rem; background: var(--ai-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: brainPulse 3s ease-in-out infinite; }
@keyframes brainPulse {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(99,102,241,0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 50px rgba(99,102,241,0.5)); }
}

.ai-node {
    position: absolute; padding: 8px 16px;
    background: rgba(15,23,42,0.85); border: 1px solid var(--ai-border);
    border-radius: 10px; backdrop-filter: blur(15px);
    color: #a5b4fc; font-size: 0.78rem; font-weight: 600; white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
    animation: nodeFloat 4s ease-in-out infinite;
}
.ai-node i { font-size: 0.7rem; }
.ai-node-1 { top: 5px; left: 50%; transform: translateX(-50%); }
.ai-node-2 { bottom: 5px; left: 50%; transform: translateX(-50%); animation-delay: -1s; }
.ai-node-3 { top: 50%; left: -20px; transform: translateY(-50%); animation-delay: -2s; }
.ai-node-4 { top: 50%; right: -20px; transform: translateY(-50%); animation-delay: -3s; }
@keyframes nodeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Buttons */
.btn-ai-primary {
    padding: 16px 36px; font-size: 1.05rem; font-weight: 600;
    border-radius: 50px; border: none;
    background: var(--ai-gradient); color: white; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px var(--ai-glow);
    position: relative; overflow: hidden;
}
.btn-ai-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
    opacity: 0; transition: opacity 0.4s;
}
.btn-ai-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 45px rgba(99,102,241,0.55); color: white; }
.btn-ai-primary:hover::before { opacity: 1; }

.btn-ai-outline {
    padding: 16px 36px; font-size: 1.05rem; font-weight: 600;
    border-radius: 50px; border: 2px solid rgba(99,102,241,0.35);
    background: rgba(99,102,241,0.06); color: #a5b4fc; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.4s ease; backdrop-filter: blur(10px);
}
.btn-ai-outline:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.6); transform: translateY(-3px); color: white; }

/* ==================== MARQUEE STRIP ==================== */
.ai-marquee-section {
    background: var(--ai-dark);
    border-top: 1px solid rgba(99,102,241,0.15);
    border-bottom: 1px solid rgba(99,102,241,0.15);
    padding: 18px 0;
    overflow: hidden;
}
.ai-marquee-track { overflow: hidden; white-space: nowrap; }
.ai-marquee-content {
    display: inline-block;
    animation: marqueeScroll 30s linear infinite;
}
.ai-marquee-item {
    display: inline-block; padding: 0 20px;
    font-size: 0.9rem; font-weight: 700; color: #a5b4fc;
    text-transform: uppercase; letter-spacing: 2px;
}
.ai-marquee-dot {
    display: inline-block; width: 6px; height: 6px;
    background: var(--ai-primary); border-radius: 50%; vertical-align: middle;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==================== SECTIONS COMMON ==================== */
.ai-section { padding: 100px 0; position: relative; overflow: hidden; }
.ai-section-dark { background: var(--ai-darker); color: white; }
.ai-section-dark .ai-section-subtitle { color: #94a3b8; }

/* ---- White sections ---- */
.ai-section-white { background: #ffffff; color: var(--ai-dark); }
.ai-section-white .ai-section-title { color: var(--ai-dark); }
.ai-section-white .ai-section-subtitle { color: #64748b; }
.ai-section-white .ai-section-badge { background: rgba(99,102,241,0.08); color: var(--ai-primary); border-color: rgba(99,102,241,0.2); }

/* Alternate white bg with subtle pattern */
.ai-section-white::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(6,182,212,0.03) 0%, transparent 50%);
}

.ai-section-bg-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ai-section-header { text-align: center; margin-bottom: 60px; }
.ai-section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 22px; background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25); border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; color: #a5b4fc; margin-bottom: 16px;
}
.ai-section-title { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: white; margin-bottom: 16px; line-height: 1.2; }
.ai-section-subtitle { font-size: 1.1rem; color: #94a3b8; max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* ==================== CAPABILITY CARDS ==================== */
.ai-cap-card {
    background: rgba(255,255,255,0.03);
    border-radius: 20px; padding: 36px 28px;
    border: 1px solid rgba(99,102,241,0.12);
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    height: 100%; position: relative; overflow: hidden;
}
.ai-cap-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--ai-gradient); transform: scaleX(0);
    transition: transform 0.5s ease; transform-origin: left;
}
.ai-cap-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.5s;
}
.ai-cap-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3); }
.ai-cap-card:hover::before { transform: scaleX(1); }
.ai-cap-card:hover::after { opacity: 1; }

.ai-cap-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(99,102,241,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: all 0.5s ease; position: relative; z-index: 1;
}
.ai-cap-icon i { font-size: 1.6rem; color: #a5b4fc; transition: all 0.5s ease; }
.ai-cap-card:hover .ai-cap-icon { background: var(--ai-gradient); transform: scale(1.15) rotate(-5deg); box-shadow: 0 10px 30px var(--ai-glow); }
.ai-cap-card:hover .ai-cap-icon i { color: white; }
.ai-cap-card h4 { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 12px; position: relative; z-index: 1; }
.ai-cap-card p { font-size: 0.92rem; color: #94a3b8; line-height: 1.7; margin-bottom: 16px; position: relative; z-index: 1; }

.ai-card-tags { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ai-card-tags span {
    padding: 4px 12px; border-radius: 20px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
    font-size: 0.7rem; font-weight: 600; color: #818cf8; text-transform: uppercase; letter-spacing: 0.5px;
}

/* White-mode capability cards */
.ai-section-white .ai-cap-card {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.ai-section-white .ai-cap-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 25px 60px rgba(99,102,241,0.12);
}
.ai-section-white .ai-cap-card h4 { color: var(--ai-dark); }
.ai-section-white .ai-cap-card p { color: #64748b; }
.ai-section-white .ai-cap-icon { background: rgba(99,102,241,0.08); }
.ai-section-white .ai-cap-icon i { color: var(--ai-primary); }
.ai-section-white .ai-card-tags span { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.15); color: var(--ai-primary); }

/* ==================== COMPARE TABLE ==================== */
.ai-compare-table {
    max-width: 800px; margin: 0 auto;
    border: 1px solid rgba(99,102,241,0.15); border-radius: 20px;
    overflow: hidden;
}
.ai-compare-row {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr;
    border-bottom: 1px solid rgba(99,102,241,0.08);
    transition: background 0.3s;
}
.ai-compare-row:last-child { border-bottom: none; }
.ai-compare-row:not(.ai-compare-header):hover { background: rgba(99,102,241,0.04); }
.ai-compare-header { background: rgba(99,102,241,0.08); font-weight: 700; }
.ai-compare-feature, .ai-compare-col { padding: 18px 24px; font-size: 0.92rem; display: flex; align-items: center; }
.ai-compare-feature { color: white; font-weight: 600; }
.ai-compare-bad { color: #f87171; }
.ai-compare-good { color: #34d399; }
.ai-compare-good i { margin-right: 8px; font-size: 0.8rem; }

/* White-mode compare table */
.ai-section-white .ai-compare-table { border-color: #e2e8f0; background: white; box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.ai-section-white .ai-compare-row { border-bottom-color: #f1f5f9; }
.ai-section-white .ai-compare-row:not(.ai-compare-header):hover { background: #f8fafc; }
.ai-section-white .ai-compare-header { background: rgba(99,102,241,0.05); }
.ai-section-white .ai-compare-feature { color: var(--ai-dark); }
.ai-section-white .ai-compare-bad { color: #ef4444; }
.ai-section-white .ai-compare-good { color: #059669; }

/* ==================== PRODUCT CARDS ==================== */
.ai-product-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(99,102,241,0.1);
    border-radius: 20px; padding: 36px 28px;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    height: 100%; position: relative; overflow: hidden;
}
.ai-product-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, transparent 40%);
    opacity: 0; transition: opacity 0.5s;
}
.ai-product-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-8px); box-shadow: 0 25px 50px rgba(99,102,241,0.12); }
.ai-product-card:hover::after { opacity: 1; }

.ai-product-icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: rgba(99,102,241,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; position: relative; z-index: 1;
    transition: all 0.4s;
}
.ai-product-icon i { font-size: 1.3rem; color: #a5b4fc; }
.ai-product-card:hover .ai-product-icon { background: var(--ai-gradient); }
.ai-product-card:hover .ai-product-icon i { color: white; }

.ai-product-badge {
    display: inline-block; padding: 4px 14px;
    background: rgba(99,102,241,0.12); color: #a5b4fc;
    border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; position: relative; z-index: 1;
}
.ai-product-card h4 { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 10px; position: relative; z-index: 1; }
.ai-product-card p { font-size: 0.9rem; color: #94a3b8; line-height: 1.7; margin-bottom: 16px; position: relative; z-index: 1; }

.ai-product-live {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; color: #34d399; position: relative; z-index: 1;
}
.ai-product-live i { font-size: 0.5rem; animation: dotPulse 2s ease-in-out infinite; }

/* White-mode product cards */
.ai-section-white .ai-product-card {
    background: white; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.ai-section-white .ai-product-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 25px 50px rgba(99,102,241,0.1);
}
.ai-section-white .ai-product-card::after {
    background: linear-gradient(180deg, rgba(99,102,241,0.04) 0%, transparent 40%);
}
.ai-section-white .ai-product-card h4 { color: var(--ai-dark); }
.ai-section-white .ai-product-card p { color: #64748b; }
.ai-section-white .ai-product-badge { background: rgba(99,102,241,0.08); color: var(--ai-primary); }
.ai-section-white .ai-product-icon { background: rgba(99,102,241,0.08); }
.ai-section-white .ai-product-icon i { color: var(--ai-primary); }
.ai-section-white .ai-product-live { color: #059669; }

/* ==================== STATS ==================== */
.ai-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.ai-stat-card {
    text-align: center; padding: 40px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 20px; transition: all 0.4s; position: relative; overflow: hidden;
}
.ai-stat-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--ai-gradient); transform: scaleX(0); transition: transform 0.5s;
}
.ai-stat-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-5px); }
.ai-stat-card:hover::before { transform: scaleX(1); }
.ai-stat-icon { font-size: 1.5rem; color: #818cf8; margin-bottom: 12px; }
.ai-stat-number { font-size: 3rem; font-weight: 900; background: var(--ai-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; line-height: 1; }
.ai-stat-label { font-size: 0.88rem; color: #94a3b8; font-weight: 500; }

/* White-mode stats */
.ai-section-white .ai-stat-card {
    background: white; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.ai-section-white .ai-stat-card:hover { border-color: rgba(99,102,241,0.3); box-shadow: 0 15px 30px rgba(99,102,241,0.08); }
.ai-section-white .ai-stat-icon { color: var(--ai-primary); }
.ai-section-white .ai-stat-label { color: #64748b; }

/* ==================== HORIZONTAL STEPS ==================== */
.ai-steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.ai-step {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.ai-step-number {
    width: 64px; height: 64px; border-radius: 50%;
    background: white; border: 2px solid var(--ai-primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    position: relative; z-index: 2;
    transition: all 0.4s ease;
}
.ai-step-number span {
    font-size: 1.1rem; font-weight: 900;
    background: var(--ai-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ai-step:hover .ai-step-number {
    background: var(--ai-gradient); border-color: transparent;
    box-shadow: 0 0 30px var(--ai-glow);
    transform: scale(1.1);
}
.ai-step:hover .ai-step-number span {
    background: white; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Horizontal connector line */
.ai-step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, var(--ai-primary), var(--ai-accent));
    opacity: 0.25;
    z-index: 1;
}
.ai-step:last-child .ai-step-connector { display: none; }

/* Animated dash on connector */
.ai-step-connector::after {
    content: '';
    position: absolute; top: -3px; left: 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ai-primary);
    box-shadow: 0 0 10px var(--ai-glow);
    animation: connectorDot 3s ease-in-out infinite;
}
@keyframes connectorDot {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.ai-step:nth-child(2) .ai-step-connector::after { animation-delay: 0.5s; }
.ai-step:nth-child(3) .ai-step-connector::after { animation-delay: 1s; }

.ai-step h4 {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.ai-step p {
    font-size: 0.9rem; line-height: 1.7;
}

/* White-mode steps */
.ai-section-white .ai-step h4 { color: var(--ai-dark); }
.ai-section-white .ai-step p { color: #64748b; }
.ai-section-white .ai-step-number { background: white; }

/* Dark-mode steps */
.ai-section-dark .ai-step h4 { color: white; }
.ai-section-dark .ai-step p { color: #94a3b8; }
.ai-section-dark .ai-step-number { background: var(--ai-darker); }

/* Responsive */
@media (max-width: 991px) {
    .ai-steps-row { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .ai-step-connector { display: none; }
}
@media (max-width: 575px) {
    .ai-steps-row { grid-template-columns: 1fr; gap: 36px; }
}

/* ==================== CLIENTS ROW ==================== */
.ai-clients-row {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.ai-client-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99,102,241,0.1);
    border-radius: 16px; transition: all 0.4s;
    min-width: 180px;
}
.ai-client-item:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(99,102,241,0.1); }
.ai-client-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 10px; filter: grayscale(0.3); transition: filter 0.4s; }
.ai-client-item:hover img { filter: grayscale(0); }
.ai-client-item span { color: white; font-size: 0.9rem; font-weight: 700; }
.ai-client-item small { color: #64748b; font-size: 0.78rem; }

/* White-mode clients */
.ai-section-white .ai-client-item {
    background: white; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.ai-section-white .ai-client-item:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 15px 30px rgba(99,102,241,0.08);
}
.ai-section-white .ai-client-item span { color: var(--ai-dark); }
.ai-section-white .ai-client-item small { color: #94a3b8; }
.ai-section-white .ai-client-item img { filter: grayscale(0); }

/* ==================== CTA ==================== */
.ai-cta-section {
    padding: 120px 0; background: var(--ai-dark); position: relative; overflow: hidden;
}
.ai-cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.15) 0%, transparent 60%);
}
.ai-cta-content { text-align: center; position: relative; z-index: 2; }
.ai-cta-icon {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
    background: var(--ai-gradient);
    display: flex; align-items: center; justify-content: center;
    animation: brainPulse 3s ease-in-out infinite;
}
.ai-cta-icon i { font-size: 2rem; color: white; }
.ai-cta-title { font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: white; margin-bottom: 16px; }
.ai-cta-desc { font-size: 1.1rem; color: #94a3b8; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.ai-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* White-mode CTA */
.ai-cta-white {
    background: #f8fafc;
}
.ai-cta-white::before {
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.06) 0%, transparent 60%);
}
.ai-cta-white .ai-cta-title { color: var(--ai-dark); }
.ai-cta-white .ai-cta-desc { color: #64748b; }
.ai-cta-white .ai-cta-icon {
    box-shadow: 0 10px 30px rgba(99,102,241,0.2);
}

/* ==================== ANIMATIONS ==================== */
.ai-fade-in { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.ai-fade-in.visible { opacity: 1; transform: translateY(0); }
.ai-slide-left { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.ai-slide-left.visible { opacity: 1; transform: translateX(0); }
.ai-slide-right { opacity: 0; transform: translateX(40px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.ai-slide-right.visible { opacity: 1; transform: translateX(0); }
.ai-scale-in { opacity: 0; transform: scale(0.9); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
.ai-scale-in.visible { opacity: 1; transform: scale(1); }
.ai-delay-1 { transition-delay: 0.1s; }
.ai-delay-2 { transition-delay: 0.2s; }
.ai-delay-3 { transition-delay: 0.3s; }
.ai-delay-4 { transition-delay: 0.4s; }
.ai-delay-5 { transition-delay: 0.5s; }
.ai-delay-6 { transition-delay: 0.6s; }

/* ==================== AI-DRIVEN SDLC — HORIZONTAL STEPS ==================== */
.ai-sdlc-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
}

.ai-sdlc-step {
    text-align: center;
    padding: 0 14px;
    position: relative;
}

/* Circle */
.ai-sdlc-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 2px solid var(--sdlc-color, #6366f1);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.ai-sdlc-circle span {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--sdlc-color, #6366f1);
    transition: color 0.4s;
}

.ai-sdlc-step:hover .ai-sdlc-circle {
    background: var(--sdlc-color, #6366f1);
    box-shadow: 0 0 40px rgba(99,102,241,0.5);
    transform: scale(1.15);
}

.ai-sdlc-step:hover .ai-sdlc-circle span {
    color: white;
}

/* Connector line */
.ai-sdlc-connector {
    position: absolute;
    top: 36px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: linear-gradient(90deg, var(--sdlc-color, rgba(99,102,241,0.3)), rgba(99,102,241,0.15));
    z-index: 1;
}

.ai-sdlc-connector::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sdlc-color, #6366f1);
    box-shadow: 0 0 12px var(--sdlc-color, rgba(99,102,241,0.5));
    animation: sdlcDotMove 3s ease-in-out infinite;
}

@keyframes sdlcDotMove {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.ai-sdlc-step:nth-child(2) .ai-sdlc-connector::after { animation-delay: 0.3s; }
.ai-sdlc-step:nth-child(3) .ai-sdlc-connector::after { animation-delay: 0.6s; }
.ai-sdlc-step:nth-child(4) .ai-sdlc-connector::after { animation-delay: 0.9s; }
.ai-sdlc-step:nth-child(5) .ai-sdlc-connector::after { animation-delay: 1.2s; }
.ai-sdlc-step:last-child .ai-sdlc-connector { display: none; }

/* Title */
.ai-sdlc-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

/* Description */
.ai-sdlc-step p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Tools */
.ai-sdlc-tools {
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* White section override */
.ai-section-white .ai-sdlc-circle { background: white; }
.ai-section-white .ai-sdlc-step:hover .ai-sdlc-circle { background: var(--sdlc-color, #6366f1); }
.ai-section-white .ai-sdlc-step h4 { color: var(--ai-dark); }
.ai-section-white .ai-sdlc-step p { color: #64748b; }
.ai-section-white .ai-sdlc-tools { border-top-color: #f1f5f9; color: #059669; }

/* Responsive */
@media (max-width: 1199px) {
    .ai-sdlc-steps { grid-template-columns: repeat(3, 1fr); gap: 40px 0; }
    .ai-sdlc-connector { display: none; }
}
@media (max-width: 767px) {
    .ai-sdlc-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
}
@media (max-width: 480px) {
    .ai-sdlc-steps { grid-template-columns: 1fr; gap: 28px; }
}

@keyframes fadeInUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .ai-brain-container { width: 300px; height: 300px; }
    .ai-brain-center { inset: 60px; }
    .ai-brain-center i { font-size: 3.5rem; }
    .ai-stats-row { grid-template-columns: repeat(2,1fr); }
    .ai-hero-visual { margin-top: 50px; }
    .ai-node { display: none; }
    .ai-compare-row { grid-template-columns: 1.5fr 1fr 1fr; }
    .ai-compare-feature, .ai-compare-col { padding: 14px 16px; font-size: 0.82rem; }
}

@media (max-width: 767px) {
    .ai-hero { min-height: auto; padding: 120px 0 80px; }
    .ai-brain-container { width: 240px; height: 240px; }
    .ai-brain-center { inset: 40px; }
    .ai-brain-center i { font-size: 2.5rem; }
    .ai-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ai-stat-card { padding: 24px 12px; }
    .ai-stat-number { font-size: 2.2rem; }
    .ai-section { padding: 60px 0; }
    .ai-hero-cta { flex-direction: column; align-items: flex-start; }
    .ai-scroll-indicator { display: none; }
    .ai-hero-trust { gap: 10px; }
    .ai-trust-item { padding: 6px 10px; font-size: 0.7rem; }
    .ai-compare-row { grid-template-columns: 1fr; gap: 0; }
    .ai-compare-header { display: none; }
    .ai-compare-feature { border-bottom: none; padding-bottom: 4px; }
    .ai-compare-col { padding-top: 4px; }
    .ai-clients-row { gap: 16px; }
    .ai-client-item { min-width: 140px; padding: 16px; }
    .ai-cta-buttons { flex-direction: column; align-items: center; }
}
