/* process.css */

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 56px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--a1), var(--a2), transparent);
    opacity: 0.3;
}

.pt-step {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 40px;
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    position: relative;
}

.pt-step:last-child {
    border-bottom: none;
}

.pt-step::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 60px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--a1);
    box-shadow: 0 0 12px var(--a1);
    border: 2px solid var(--bg-2);
    z-index: 1;
}

.pt-num {
    font-family: 'Space Mono', monospace;
    font-size: 54px;
    font-weight: 700;
    color: rgba(13, 242, 196, 0.1);
    line-height: 1;
    transition: color 0.3s;
}

.pt-step:hover .pt-num {
    color: rgba(13, 242, 196, 0.25);
}

.pt-body h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: 12px;
}

.pt-body>p {
    font-size: 15px;
    color: var(--t2);
    max-width: 480px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.pt-visual {
    background: var(--bg-4);
    border: 1px solid var(--border);
    border-radius: var(--r-s);
    padding: 18px;
    max-width: 560px;
}

/* Analyze bars */
.av-title {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--t3);
    margin-bottom: 12px;
    letter-spacing: .08em;
}

.av-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.av-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--t2);
}

.avb {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
}

.avf {
    height: 100%;
    width: var(--w);
    background: var(--c);
    border-radius: 99px;
}

.avf-anim {
    animation: barPulse 2s ease-in-out infinite;
}

.av-ok {
    color: var(--a1);
}

.av-run {
    color: var(--a2);
}

.av-warn {
    color: var(--a3);
}

/* Code window */
.code-win {
    background: #050510;
    border-radius: var(--radius-s);
    overflow: hidden;
    font-family: 'Space Mono', monospace;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.cb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cb-r {
    background: #ff5f57;
}

.cb-y {
    background: #febc2e;
}

.cb-g {
    background: #28c840;
}

.cb-file {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--t3);
    margin-left: 8px;
}

.code-body {
    padding: 16px;
    font-size: 11.5px;
    line-height: 1.8;
    white-space: pre;
    overflow-x: auto;
}

.ck {
    color: #c792ea;
}

.cc {
    color: #82aaff;
}

.cf {
    color: #82aaff;
}

.cs {
    color: #c3e88d;
}

.cursor-line {
    animation: blink 1s step-end infinite;
    color: var(--a1);
}

/* Integration flow */
.iv-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.iv-box {
    flex: 1;
    padding: 14px;
    border-radius: var(--r-xs);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
}

.iv-ours {
    border-color: rgba(13, 242, 196, 0.2);
    background: rgba(13, 242, 196, 0.04);
}

.iv-yours {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.04);
}

.iv-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.iv-conn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px;
}

.iv-line {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--a1), var(--a2));
    border-radius: 99px;
    position: relative;
    overflow: hidden;
}

.iv-particle {
    position: absolute;
    width: 10px;
    height: 2px;
    background: #fff;
    opacity: 0.7;
    top: 0;
    animation: particleMove 2s linear infinite;
}

@keyframes particleMove {
    0% {
        left: -10px;
        opacity: 0
    }

    10% {
        opacity: 0.7
    }

    90% {
        opacity: 0.7
    }

    100% {
        left: 100%;
        opacity: 0
    }
}

.iv-sync {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    color: var(--t3);
}

.iv-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.iv-tags span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--t3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 4px;
}

/* Optimize items */
.ov-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ov-i {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.02);
}

.ov-ico {
    font-size: 18px;
}

.ov-info {
    flex: 1;
}

.ov-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--t1);
}

.ov-val {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    margin-top: 2px;
}

.val-up {
    color: var(--a1);
}

.val-warn {
    color: var(--gold);
}

.val-ok {
    color: var(--t3);
}

.ov-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.b-up {
    background: rgba(13, 242, 196, 0.1);
    color: var(--a1);
}

.b-warn {
    background: rgba(245, 166, 35, 0.1);
    color: var(--gold);
}

.b-ok {
    background: rgba(255, 255, 255, 0.06);
    color: var(--t2);
}

@media(max-width:768px) {
    .pt-step {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pt-num {
        font-size: 32px;
    }

    .process-timeline::before {
        display: none;
    }

    .pt-step::before {
        display: none;
    }
}