/* 05 — WORKING PROCESS */

.proc-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.proc-card:nth-child(1) {
    grid-column: span 3;
}

.proc-card:nth-child(2) {
    grid-column: span 3;
}

.proc-card:nth-child(3) {
    grid-column: span 2;
}

.proc-card:nth-child(4) {
    grid-column: span 2;
}

.proc-card:nth-child(5) {
    grid-column: span 2;
}

.proc-card {
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    overflow: hidden;
    transition:
        transform 280ms ease,
        box-shadow 280ms ease,
        border-color 280ms ease;
}

.proc-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 24px 40px -28px rgba(93, 46, 222, 0.3);
}

.proc-visual {
    position: relative;
    height: 260px;
    background:
        radial-gradient(
            circle at center,

            rgba(93, 46, 222, 0.06) 0%,

            transparent 60%
        ),
        linear-gradient(180deg, #faf7ff 0%, #f3edff 100%);
    overflow: hidden;
}

.proc-body {
    padding: 26px 28px 30px;
}

.proc-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.proc-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.proc-card p {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
}

.pv-node {
    position: absolute;
    padding: 8px 14px 8px 10px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    box-shadow: 0 4px 12px -6px rgba(11, 11, 20, 0.1);
}

.pv-node i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
}

.pv-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pv-svg path {
    stroke: rgba(93, 46, 222, 0.3);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 4 4;
    animation: dashFlow 1.6s linear infinite;
}

.pv1 .n1 {
    top: 18%;
    left: 8%;
}

.pv1 .n2 {
    top: 14%;
    left: 48%;
}

.pv1 .n3 {
    top: 52%;
    left: 56%;
}

.pv1 .n4 {
    top: 70%;
    left: 12%;
}

.pv2 .center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, #b89bfb 100%);
    display: grid;
    place-items: center;
    color: #fff;
    z-index: 3;
    box-shadow:
        0 0 0 10px rgba(93, 46, 222, 0.1),
        0 0 0 22px rgba(93, 46, 222, 0.06),
        0 16px 30px -10px rgba(93, 46, 222, 0.45);
}

.pv2 .orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(93, 46, 222, 0.2);
    pointer-events: none;
}

.proc-visual.pv2 {
    height: 280px;
    background:
        radial-gradient(
            circle at center,

            rgba(93, 46, 222, 0.06) 0%,

            transparent 60%
        ),
        linear-gradient(180deg, #faf7ff 0%, #f3edff 100%);
}

.pv2 .orbit-outer {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
}

.pv2 .orbit-inner {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-color: rgba(93, 46, 222, 0.12);
}

/* orbit arm: positioned at center, rotates — pill sits at tip */

.pv2 .orbit-arm {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 0;
    transform-origin: 0 0;
}

.pv2 .orbit-arm .orb-pill {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink);
    box-shadow: 0 4px 10px -4px rgba(11, 11, 20, 0.1);
}

.pv2 .orbit-arm .orb-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--brand);
}

/* arms start at 0°, 90°, 180°, 270° — all rotate, pill counter-rotates */

.pv2 .oa1 {
    animation: armSpin 12s linear infinite;
}

.pv2 .oa1 .orb-pill {
    animation: pillCounter 12s linear infinite;
}

.pv2 .oa2 {
    animation: armSpin 12s linear infinite;
    animation-delay: -3s;
}

.pv2 .oa2 .orb-pill {
    animation: pillCounter 12s linear infinite;
    animation-delay: -3s;
}

.pv2 .oa3 {
    animation: armSpin 12s linear infinite;
    animation-delay: -6s;
}

.pv2 .oa3 .orb-pill {
    animation: pillCounter 12s linear infinite;
    animation-delay: -6s;
}

.pv2 .oa4 {
    animation: armSpin 12s linear infinite;
    animation-delay: -9s;
}

.pv2 .oa4 .orb-pill {
    animation: pillCounter 12s linear infinite;
    animation-delay: -9s;
}

@keyframes armSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pillCounter {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(-360deg);
    }
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.pv3 .editor {
    position: absolute;
    inset: 18px;
    background: #0e0a22;
    border-radius: 14px;
    box-shadow: 0 20px 40px -20px rgba(11, 11, 20, 0.4);
    overflow: hidden;
}

.pv3 .editor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pv3 .editor::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 10px;
    width: 38px;
    height: 8px;
    background:
        radial-gradient(circle at 4px 4px, #ff5f57 3px, transparent 4px),
        radial-gradient(circle at 18px 4px, #febc2e 3px, transparent 4px),
        radial-gradient(circle at 32px 4px, #28c840 3px, transparent 4px);
}

.pv3 .code-lines {
    position: absolute;
    top: 38px;
    left: 14px;
    right: 14px;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 11px;
    line-height: 1.7;
}

.pv3 .code-lines > span {
    display: block;
}

.pv3 .l-kw {
    color: #b89bfb;
}

.pv3 .l-str {
    color: #93e68a;
}

.pv3 .l-fn {
    color: #fbbf77;
}

.pv3 .l-cm {
    color: #6b6f7b;
}

.pv3 .l-tx {
    color: #ddd;
}

.pv3 .caret {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: var(--brand-3);
    vertical-align: middle;
    animation: caret 1s steps(2, end) infinite;
    margin-left: 1px;
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

.pv4 {
    display: grid;
    place-items: center;
}

.pv4 .ico-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--brand);
    box-shadow: 0 8px 18px -8px rgba(93, 46, 222, 0.18);
    animation: bobUp 3s ease-in-out infinite;
}

.pv4 .ico-box:nth-child(3) {
    animation-delay: -1s;
}

.pv4 .ico-box:nth-child(5) {
    animation-delay: -2s;
}

.pv4 .conn-h {
    width: 28px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--brand) 0 4px,

        transparent 4px 8px
    );
}

@keyframes bobUp {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.pv5 {
    padding: 30px 24px;
    height: 260px;
    box-sizing: border-box;
}

.pv5 .bar {
    width: 32px;
    background: linear-gradient(180deg, var(--brand) 0%, #8b5bfa 100%);
    border-radius: 8px 8px 4px 4px;
    box-shadow: 0 6px 14px -6px rgba(93, 46, 222, 0.45);
    transform-origin: bottom;
    animation: barGrow 2.4s ease-out infinite;
}

.pv5 .bar:nth-child(2) {
    height: 56px;
    animation-delay: 0s;
}

.pv5 .bar:nth-child(3) {
    height: 88px;
    animation-delay: 0.2s;
}

.pv5 .bar:nth-child(4) {
    height: 72px;
    animation-delay: 0.4s;
    background: linear-gradient(180deg, #b89bfb 0%, var(--brand) 100%);
}

.pv5 .bar:nth-child(5) {
    height: 124px;
    animation-delay: 0.6s;
}

.pv5 .bar:nth-child(6) {
    height: 156px;
    animation-delay: 0.8s;
}

.pv5 .bar:nth-child(7) {
    height: 184px;
    animation-delay: 1s;
}

@keyframes barGrow {
    0%,
    100% {
        transform: scaleY(0.85);
        opacity: 0.75;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.pv5 .arrow-up {
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--brand);
}

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

    .proc-card:nth-child(n) {
        grid-column: span 1;
    }

    .proc-card:nth-child(5) {
        grid-column: span 2;
    }
}

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

    .proc-card:nth-child(n) {
        grid-column: span 1;
    }
}
