.animated-gradient-bg {
    --pointer-x: 50%;
    --pointer-y: 28%;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(37, 99, 235, 0.28), rgba(20, 184, 166, 0.18) 20%, transparent 42%),
        linear-gradient(115deg, #f8fafc 0%, #dbeafe 22%, #ccfbf1 44%, #e0e7ff 68%, #f8fafc 100%);
    background-size: 320% 320%;
    animation: gradient-drift 9s ease-in-out infinite;
}

.animated-gradient-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(14, 165, 233, 0.26), rgba(45, 212, 191, 0.16) 18%, transparent 38%),
        linear-gradient(105deg, transparent 0%, rgba(37, 99, 235, 0.22) 18%, transparent 36%),
        linear-gradient(255deg, transparent 6%, rgba(20, 184, 166, 0.2) 34%, transparent 60%);
    background-size: 230% 230%, 250% 250%, 190% 190%;
    animation: gradient-sweep 11s ease-in-out infinite alternate;
}

.animated-gradient-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
}

.gradient-surface {
    position: relative;
    overflow: hidden;
}

.gradient-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, transparent 0%, rgba(59, 130, 246, 0.12) 28%, transparent 48%),
        linear-gradient(250deg, transparent 20%, rgba(16, 185, 129, 0.1) 54%, transparent 78%);
    background-size: 220% 220%, 180% 180%;
    opacity: 0.9;
    animation: surface-shine 8s ease-in-out infinite alternate;
}

.gradient-surface > * {
    position: relative;
}

.sync-illustration-clean {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 2rem;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.9), rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.92));
    background-size: 260% 260%;
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.26);
    animation: clean-panel-drift 10s ease-in-out infinite;
}

.sync-clean-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.07) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
}

.sync-clean-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.3), transparent 32%, rgba(20, 184, 166, 0.34), transparent 72%, rgba(59, 130, 246, 0.3));
    mask-image: radial-gradient(circle, transparent 0 58%, #000 59% 72%, transparent 73%);
    animation: clean-spin 9s linear infinite;
}

.sync-clean-orbit::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 7%;
    width: 12px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.62);
}

.orbit-one {
    right: 44px;
    top: 30px;
    width: 168px;
    height: 168px;
}

.orbit-two {
    right: 138px;
    bottom: -46px;
    width: 142px;
    height: 142px;
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit-three {
    left: -42px;
    top: -38px;
    width: 176px;
    height: 176px;
    opacity: 0.68;
    animation-duration: 14s;
}

.sync-clean-main {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 32px;
}

.sync-clean-icon {
    position: relative;
    display: grid;
    width: 86px;
    height: 86px;
    flex: none;
    place-items: center;
    border: 1px solid rgba(147, 197, 253, 0.9);
    border-radius: 1.5rem;
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.96), rgba(240, 253, 250, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 32px rgba(59, 130, 246, 0.16);
}

.sync-clean-icon::before {
    content: '';
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 8px solid rgba(37, 99, 235, 0.16);
    border-top-color: #2563eb;
    animation: clean-spin 1.7s linear infinite;
}

.sync-clean-icon span {
    position: absolute;
    width: 8px;
    height: 28px;
    border-radius: 999px;
    background: #14b8a6;
    animation: clean-bars 1.4s ease-in-out infinite;
}

.sync-clean-icon span:nth-child(1) {
    transform: translateX(-16px);
    animation-delay: -0.25s;
}

.sync-clean-icon span:nth-child(2) {
    height: 38px;
}

.sync-clean-icon span:nth-child(3) {
    transform: translateX(16px);
    animation-delay: 0.25s;
}

.sync-clean-pipeline {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 80px 1fr 80px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px 32px 32px;
}

.sync-clean-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    font-size: 0.875rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.16);
}

.sync-clean-step.active {
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(239, 246, 255, 0.92);
    color: #1d4ed8;
}

.sync-clean-step span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #14b8a6;
    box-shadow: 0 0 0 7px rgba(20, 184, 166, 0.12), 0 0 18px rgba(20, 184, 166, 0.6);
    animation: clean-pulse 1.9s ease-in-out infinite;
}

.sync-clean-line {
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(191, 219, 254, 0.72);
}

.sync-clean-line::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 55%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
    animation: clean-line 2s ease-in-out infinite;
}

@keyframes gradient-drift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradient-sweep {
    0% { background-position: 0% 30%, 100% 45%, 50% 0%; opacity: 0.75; }
    100% { background-position: 100% 70%, 0% 55%, 50% 100%; opacity: 1; }
}

@keyframes surface-shine {
    0% { background-position: 0% 50%, 100% 0%; }
    100% { background-position: 100% 50%, 0% 100%; }
}

@keyframes clean-panel-drift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes clean-spin {
    to { transform: rotate(360deg); }
}

@keyframes clean-bars {
    50% { height: 18px; opacity: 0.62; }
}

@keyframes clean-pulse {
    50% {
        transform: scale(1.22);
        box-shadow: 0 0 0 10px rgba(20, 184, 166, 0.08), 0 0 24px rgba(20, 184, 166, 0.75);
    }
}

@keyframes clean-line {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(210%); }
}

@media (max-width: 640px) {
    .animated-gradient-bg {
        background:
            radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 38%),
            linear-gradient(160deg, #f8fafc 0%, #eff6ff 48%, #f0fdfa 100%);
    }

    .sync-illustration-clean {
        min-height: 360px;
        border-radius: 1.5rem;
    }

    .sync-clean-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .sync-clean-icon {
        width: 64px;
        height: 64px;
    }

    .sync-clean-pipeline {
        grid-template-columns: 1fr;
        padding: 0 20px 20px;
    }

    .sync-clean-step {
        min-height: 42px;
        font-size: 0.8125rem;
    }

    .sync-clean-line {
        display: none;
    }

    .orbit-one {
        right: -48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animated-gradient-bg,
    .animated-gradient-bg::before,
    .gradient-surface::before,
    .sync-illustration-clean,
    .sync-clean-orbit,
    .sync-clean-icon::before,
    .sync-clean-icon span,
    .sync-clean-step span,
    .sync-clean-line::before {
        animation: none;
    }
}
