/* Workflow Section — Retro terminal step boxes */
.workflow-section {
    padding: 6rem 0;
}

.workflow-section h2 {
    font-size: 2rem;
    text-align: center;
}

.workflow-section > .workflow-header > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Steps container — horizontal flow */
.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 3rem 0 1rem;
}

/* Individual step box */
.workflow-step {
    flex: 1;
    max-width: 240px;
    border: 2px solid var(--color-foreground);
    box-shadow: 4px 4px 0 var(--color-foreground);
    background: var(--color-background);
    position: relative;
}

/* Step number — colored band header */
.workflow-step-number {
    display: block;
    padding: 0.5rem 1.25rem;
    font-family: "Roboto Mono", monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    border-bottom: 2px solid var(--color-foreground);
}

/* ANSI color gradient across steps */
.workflow-step:nth-child(1) .workflow-step-number { background: var(--ansi-green); }
.workflow-step:nth-child(3) .workflow-step-number { background: var(--ansi-yellow); }
.workflow-step:nth-child(5) .workflow-step-number { background: var(--ansi-red); }
.workflow-step:nth-child(7) .workflow-step-number { background: var(--ansi-magenta); }
.workflow-step:nth-child(9) .workflow-step-number { background: var(--ansi-blue); }

.workflow-step h3 {
    margin: 0;
    padding: 0.75rem 1.25rem 0;
    font-family: "Roboto Mono", monospace;
    font-size: 1.1rem;
    font-weight: 600;
}

.workflow-step p {
    margin: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Connector arrow between steps */
.workflow-connector {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    min-width: 2rem;
    align-self: center;
}

.workflow-connector::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-foreground);
    position: relative;
}

/* Arrow head on connector */
.workflow-connector::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--color-foreground);
    position: absolute;
    right: 0.25rem;
}

.workflow-connector {
    position: relative;
}

/* Note text */
.workflow-note {
    text-align: center;
    font-style: italic;
    color: var(--neutral-500);
    margin-top: 2rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .workflow-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .workflow-step {
        max-width: 400px;
        width: 100%;
    }

    .workflow-connector {
        padding: 0.5rem 0;
        min-height: 2rem;
        min-width: auto;
        width: 2px;
    }

    .workflow-connector::after {
        width: 2px;
        height: 100%;
        min-height: 1.5rem;
    }

    .workflow-connector::before {
        border-top: none;
        border-bottom: none;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid var(--color-foreground);
        right: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}
