/* AI microchip splash — neon motherboard glow (pink / orange / cyan / purple) */

.splash-logo-zone {
    --splash-neon-cyan: #22d3ee;
    --splash-neon-blue: #3b82f6;
    --splash-neon-purple: #a855f7;
    --splash-neon-pink: #ec4899;
    --splash-neon-orange: #f97316;
    --splash-neon-magenta: #e879f9;
    --splash-chip-bg: #0c0c14;
}

.splash-ai-bokeh {
    position: absolute;
    inset: -15%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.splash-ai-bokeh span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.85) 0%, transparent 70%);
    filter: blur(1px);
    animation: splashAiBokehFloat 4.5s ease-in-out infinite;
}

.splash-ai-bokeh span:nth-child(1) { width: 8px; height: 8px; top: 12%; left: 18%; animation-delay: 0s; background: radial-gradient(circle, rgba(249, 115, 22, 0.9), transparent 70%); }
.splash-ai-bokeh span:nth-child(2) { width: 6px; height: 6px; top: 22%; right: 14%; animation-delay: -0.8s; }
.splash-ai-bokeh span:nth-child(3) { width: 10px; height: 10px; bottom: 20%; left: 10%; animation-delay: -1.6s; background: radial-gradient(circle, rgba(34, 211, 238, 0.8), transparent 70%); }
.splash-ai-bokeh span:nth-child(4) { width: 5px; height: 5px; bottom: 14%; right: 22%; animation-delay: -2.2s; }
.splash-ai-bokeh span:nth-child(5) { width: 7px; height: 7px; top: 48%; left: 4%; animation-delay: -1.1s; background: radial-gradient(circle, rgba(168, 85, 247, 0.85), transparent 70%); }
.splash-ai-bokeh span:nth-child(6) { width: 9px; height: 9px; top: 8%; left: 52%; animation-delay: -2.8s; background: radial-gradient(circle, rgba(249, 115, 22, 0.75), transparent 70%); }
.splash-ai-bokeh span:nth-child(7) { width: 6px; height: 6px; bottom: 8%; left: 44%; animation-delay: -0.4s; }
.splash-ai-bokeh span:nth-child(8) { width: 8px; height: 8px; top: 38%; right: 6%; animation-delay: -1.9s; background: radial-gradient(circle, rgba(34, 211, 238, 0.75), transparent 70%); }

.splash-ai-board {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.splash-ai-traces-base path {
    stroke: rgba(88, 28, 135, 0.28);
    stroke-width: 1.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.splash-ai-traces-flow path {
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6 16;
    opacity: 0.95;
}

.splash-ai-flow--1 { animation: splashAiTracePulse 2.1s linear infinite; }
.splash-ai-flow--2 { animation: splashAiTracePulse 2.4s linear infinite -0.3s; }
.splash-ai-flow--3 { animation: splashAiTracePulse 1.9s linear infinite -0.65s; }
.splash-ai-flow--4 { animation: splashAiTracePulse 2.5s linear infinite -1s; }
.splash-ai-flow--5 { animation: splashAiTracePulse 2.2s linear infinite -1.35s; }
.splash-ai-flow--6 { animation: splashAiTracePulse 2.3s linear infinite -1.7s; }
.splash-ai-flow--7 { animation: splashAiTracePulse 2s linear infinite -2.05s; }
.splash-ai-flow--8 { animation: splashAiTracePulse 2.6s linear infinite -2.4s; }
.splash-ai-flow--9 { animation: splashAiTracePulse 1.8s linear infinite -0.5s; }
.splash-ai-flow--10 { animation: splashAiTracePulse 2.1s linear infinite -0.85s; }
.splash-ai-flow--11 { animation: splashAiTracePulse 2.3s linear infinite -1.2s; }
.splash-ai-flow--12 { animation: splashAiTracePulse 1.95s linear infinite -1.55s; }
.splash-ai-flow--13 { animation: splashAiTracePulse 2.15s linear infinite -1.9s; }
.splash-ai-flow--14 { animation: splashAiTracePulse 2.35s linear infinite -2.25s; }
.splash-ai-flow--15 { animation: splashAiTracePulse 2.05s linear infinite -0.15s; }
.splash-ai-flow--16 { animation: splashAiTracePulse 2.45s linear infinite -0.95s; }

.splash-ai-node {
    fill: var(--splash-neon-cyan);
    filter: url(#splashAiNodeGlow);
    animation: splashAiNodePulse 2.2s ease-in-out infinite;
}

.splash-ai-node--p { fill: var(--splash-neon-pink); }
.splash-ai-node--o { fill: var(--splash-neon-orange); }
.splash-ai-node--u { fill: var(--splash-neon-purple); }

.splash-ai-chip-plate {
    fill: rgba(12, 12, 20, 0.55);
    stroke: url(#splashAiChipBorder);
    stroke-width: 1.5;
    filter: url(#splashAiPlateGlow);
}

.splash-logo-wrap.splash-ai-chip {
    z-index: 4;
    width: 132px;
    height: 132px;
    border-radius: 18px;
    background: linear-gradient(145deg, #14141f 0%, #0a0a12 45%, #12121c 100%);
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow:
        0 0 0 1px rgba(236, 72, 153, 0.25),
        0 0 28px rgba(236, 72, 153, 0.55),
        0 0 56px rgba(249, 115, 22, 0.35),
        0 0 80px rgba(168, 85, 247, 0.22),
        inset 0 0 24px rgba(236, 72, 153, 0.12),
        inset 0 -8px 20px rgba(249, 115, 22, 0.15);
    animation: splashAiChipPulse 3s ease-in-out infinite;
    overflow: visible;
}

.splash-ai-chip-underglow {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 120%;
    height: 55%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(236, 72, 153, 0.55) 0%,
        rgba(249, 115, 22, 0.35) 35%,
        rgba(168, 85, 247, 0.15) 55%,
        transparent 72%
    );
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    animation: splashAiUnderglow 3s ease-in-out infinite;
}

.splash-logo-wrap.splash-ai-chip .splash-logo {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.45))
        drop-shadow(0 0 18px rgba(34, 211, 238, 0.35));
}

.splash-logo-zone::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(236, 72, 153, 0.2) 0%,
        rgba(168, 85, 247, 0.08) 45%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
    animation: splashAiCoreGlow 3.2s ease-in-out infinite;
}

@keyframes splashAiTracePulse {
    0% { stroke-dashoffset: 44; opacity: 0.35; }
    45% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.4; }
}

@keyframes splashAiNodePulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes splashAiChipPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(236, 72, 153, 0.25),
            0 0 24px rgba(236, 72, 153, 0.45),
            0 0 48px rgba(249, 115, 22, 0.28),
            0 0 72px rgba(168, 85, 247, 0.18),
            inset 0 0 20px rgba(236, 72, 153, 0.1);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(236, 72, 153, 0.4),
            0 0 36px rgba(236, 72, 153, 0.7),
            0 0 64px rgba(249, 115, 22, 0.45),
            0 0 96px rgba(168, 85, 247, 0.3),
            inset 0 0 28px rgba(236, 72, 153, 0.18);
    }
}

@keyframes splashAiUnderglow {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.96); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes splashAiBokehFloat {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(-4px); }
}

@keyframes splashAiCoreGlow {
    0%, 100% { opacity: 0.55; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 768px) {
    .splash-logo-wrap.splash-ai-chip {
        width: 108px;
        height: 108px;
        border-radius: 14px;
    }

    .splash-logo-wrap.splash-ai-chip .splash-logo {
        width: 72px;
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-ai-flow,
    .splash-ai-node,
    .splash-ai-chip-plate,
    .splash-ai-bokeh span,
    .splash-ai-chip-underglow,
    .splash-logo-wrap.splash-ai-chip,
    .splash-logo-zone::after {
        animation: none !important;
    }

    .splash-ai-traces-flow path {
        stroke-dasharray: none;
        opacity: 0.8;
    }
}
