/* =======================================================
   SECTION 12 : HOW IT WORKS
======================================================= */
.workflow-section {
    position: relative;
    padding: 110px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(46, 196, 255, 0.075), transparent 27%),
        radial-gradient(circle at 88% 85%, rgba(46, 213, 115, 0.06), transparent 31%),
        linear-gradient(180deg, #07111d 0%, #091927 100%);
}
.workflow-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(96, 203, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 203, 248, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    pointer-events: none;
}
.workflow-section .section-header,
.workflow-timeline,
.engineering-pipeline,
.workflow-cta {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin-right: auto;
    margin-left: auto;
}
/* ---------- Workflow timeline ---------- */
.workflow-timeline {
    position: relative;
    display: grid;
    gap: 22px;
}
.workflow-timeline::before {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 30px;
    width: 1px;
    content: "";
    background: linear-gradient(
        to bottom,
        rgba(46, 196, 255, 0.05),
        rgba(46, 196, 255, 0.55),
        rgba(46, 213, 115, 0.42),
        rgba(46, 196, 255, 0.05)
    );
}
.workflow-step {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 21px;
    align-items: start;
}
.step-marker {
    position: relative;
    z-index: 1;
    display: grid;
    width: 62px;
    height: 56px;
    color: #70ddff;
    border: 1px solid rgba(46, 196, 255, 0.36);
    border-radius: 11px;
    background: #0b2638;
    font-family: "Courier New", monospace;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow:
        0 0 0 7px #091927,
        0 0 19px rgba(46, 196, 255, 0.12);
    place-items: center;
}
.workflow-step:nth-child(2) .step-marker {
    color: #bb9cff;
    border-color: rgba(180, 130, 255, 0.38);
}
.workflow-step:nth-child(3) .step-marker {
    color: #9beebe;
    border-color: rgba(46, 213, 115, 0.38);
}
.workflow-step:nth-child(4) .step-marker {
    color: #ffd18a;
    border-color: rgba(255, 177, 66, 0.38);
}
.step-content {
    min-height: 173px;
    padding: 23px 25px;
    border: 1px solid rgba(132, 211, 244, 0.17);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(18, 45, 66, 0.78), rgba(7, 23, 38, 0.86));
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}
.workflow-step:hover .step-content {
    transform: translateX(5px);
    border-color: rgba(46, 196, 255, 0.36);
    background:
        linear-gradient(145deg, rgba(22, 60, 84, 0.87), rgba(7, 29, 44, 0.92));
}
.step-icon {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    border: 1px solid rgba(46, 196, 255, 0.21);
    border-radius: 10px;
    background: rgba(46, 196, 255, 0.08);
    font-size: 1.13rem;
    place-items: center;
}
.workflow-step:nth-child(2) .step-icon {
    border-color: rgba(180, 130, 255, 0.25);
    background: rgba(180, 130, 255, 0.08);
}
.workflow-step:nth-child(3) .step-icon {
    border-color: rgba(46, 213, 115, 0.25);
    background: rgba(46, 213, 115, 0.08);
}
.workflow-step:nth-child(4) .step-icon {
    border-color: rgba(255, 177, 66, 0.25);
    background: rgba(255, 177, 66, 0.08);
}
.workflow-step h3 {
    margin: 0;
    color: #e8f9ff;
    font-size: 1rem;
    font-weight: 600;
}
.workflow-step p {
    max-width: 710px;
    margin: 10px 0 0;
    color: #9ab8c6;
    font-size: 0.77rem;
    line-height: 1.72;
}
.workflow-step ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 20px;
    margin: 14px 0 0;
    padding: 0;
    color: #a8c5d1;
    font-size: 0.73rem;
    list-style: none;
}
.workflow-step li {
    position: relative;
    padding-left: 16px;
}
.workflow-step li::before {
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--cyan);
    box-shadow: 0 0 9px rgba(46, 196, 255, 0.45);
}
/* ---------- Code sample ---------- */
.example-command {
    max-width: 500px;
    margin-top: 15px;
    padding: 12px 14px;
    overflow-x: auto;
    border: 1px solid rgba(46, 196, 255, 0.17);
    border-radius: 8px;
    background: rgba(2, 16, 27, 0.55);
}
.example-command code {
    color: #9cefc0;
    font-family: "Courier New", monospace;
    font-size: 0.69rem;
    line-height: 1.65;
    white-space: pre;
}
/* ---------- Process tags ---------- */
.process-tags,
.export-tags,
.report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.process-tags span,
.export-tags span {
    padding: 7px 10px;
    color: #8ee4ff;
    border: 1px solid rgba(46, 196, 255, 0.2);
    border-radius: 999px;
    background: rgba(46, 196, 255, 0.08);
    font-size: 0.66rem;
    font-weight: 500;
}
.process-tags span:nth-child(2),
.export-tags span:nth-child(2) {
    color: #a3efc0;
    border-color: rgba(46, 213, 115, 0.2);
    background: rgba(46, 213, 115, 0.07);
}
.process-tags span:nth-child(3),
.export-tags span:nth-child(3) {
    color: #ffd089;
    border-color: rgba(255, 177, 66, 0.2);
    background: rgba(255, 177, 66, 0.07);
}
.process-tags span:nth-child(4),
.export-tags span:nth-child(4) {
    color: #c5afff;
    border-color: rgba(180, 130, 255, 0.2);
    background: rgba(180, 130, 255, 0.08);
}
/* ---------- Diagram ---------- */
.mini-diagram {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.mini-diagram div {
    padding: 8px 10px;
    color: #c9e8f4;
    border: 1px solid rgba(132, 211, 244, 0.16);
    border-radius: 7px;
    background: rgba(3, 17, 29, 0.36);
    font-family: "Courier New", monospace;
    font-size: 0.67rem;
}
.mini-diagram span {
    color: var(--cyan);
    font-size: 1rem;
}
/* ---------- Complete engineering pipeline ---------- */
.engineering-pipeline {
    margin-top: 28px;
}
.engineering-pipeline .card-header {
    margin-bottom: 21px;
}
.engineering-pipeline .card-header h3 {
    margin: 0;
    color: #e8f9ff;
    font-size: 0.94rem;
    font-weight: 600;
}
.pipeline-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 9px;
}
.pipeline-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 87px;
    padding: 13px;
    border: 1px solid rgba(132, 211, 244, 0.13);
    border-radius: 9px;
    background: rgba(3, 17, 29, 0.28);
    text-align: center;
}
.pipeline-item strong {
    color: #e0f5fc;
    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.4;
}
.pipeline-item span {
    display: block;
    margin-top: 6px;
    color: #89aab9;
    font-size: 0.64rem;
    line-height: 1.35;
}
.pipeline-arrow {
    display: grid;
    flex: 0 0 20px;
    color: #6dddff;
    font-size: 1.05rem;
    place-items: center;
}
/* ---------- Workflow CTA ---------- */
.workflow-cta {
    margin-top: 28px;
    padding: 40px 25px;
    overflow: hidden;
    border: 1px solid rgba(46, 196, 255, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle at 80% 48%, rgba(46, 196, 255, 0.19), transparent 28%),
        linear-gradient(120deg, rgba(12, 48, 70, 0.9), rgba(8, 26, 42, 0.94));
    text-align: center;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.workflow-cta h3 {
    margin: 0;
    color: #edfcff;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}
.workflow-cta p {
    max-width: 630px;
    margin: 11px auto 22px;
    color: #a6c8d6;
    font-size: 0.8rem;
    line-height: 1.65;
}
/* ---------- Responsive workflow section ---------- */
@media (max-width: 900px) {
    .workflow-section {
        padding: 88px 4%;
    }
    .pipeline-flow {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .pipeline-arrow {
        display: none;
    }
}
@media (max-width: 680px) {
    .workflow-section {
        padding: 72px 22px;
    }
    .workflow-timeline {
        gap: 16px;
    }
    .workflow-timeline::before {
        left: 22px;
    }
    .workflow-step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }
    .step-marker {
        width: 44px;
        height: 44px;
        border-radius: 9px;
        font-size: 0.7rem;
        box-shadow:
            0 0 0 5px #091927,
            0 0 15px rgba(46, 196, 255, 0.1);
    }
    .step-content {
        min-height: auto;
        padding: 18px;
    }
    .workflow-step:hover .step-content {
        transform: none;
    }
    .workflow-step h3 {
        font-size: 0.88rem;
    }
    .workflow-step p {
        font-size: 0.73rem;
    }
    .workflow-step ul {
        grid-template-columns: 1fr;
        font-size: 0.7rem;
    }
    .mini-diagram {
        gap: 7px;
    }
    .mini-diagram div {
        font-size: 0.61rem;
    }
    .pipeline-flow {
        grid-template-columns: 1fr;
    }
    .pipeline-item {
        min-height: 72px;
    }
    .workflow-cta {
        padding: 31px 19px;
    }
    .workflow-cta .primary-btn {
        width: 100%;
    }
}
