/* =========================================================
   TRANSFORMATION TOOLBOX
   ========================================================= */


/* =========================================================
   1. SECTION FOUNDATION
   ========================================================= */

.transformation-toolbox {
    position: relative;

}


/* =========================================================
   2. INTRO
   ========================================================= */



.toolbox-intro .scope-title {
    margin-bottom: 16px;
}

.toolbox-intro .scope-title span {
    color: var(--scope-accent, #c33642);
}

.toolbox-intro .scope-lead {
    max-width: 700px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   3. NETWORK CONTAINER
   ========================================================= */

.toolbox-network {
    position: relative;

    padding:
        clamp(30px, 4vw, 46px) clamp(30px, 5vw, 55px);

    border:
        1px solid rgba(15, 23, 42, 0.08);

    background:
        rgba(255, 255, 255, 0.58);

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.055);

    overflow: hidden;
}


/* subtle technical background */

.toolbox-network::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(rgba(15, 23, 42, 0.025) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(15, 23, 42, 0.025) 1px,
            transparent 1px);

    background-size: 34px 34px;

    mask-image:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8),
            transparent 85%);

    pointer-events: none;
}


/* =========================================================
   4. NETWORK HEADING
   ========================================================= */

.toolbox-network-heading {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 40px;

    padding-bottom: 25px;

    border-bottom:
        1px solid rgba(15, 23, 42, 0.08);
}

.toolbox-network-heading h3 {
    margin: 7px 0 0;

    color:
        var(--text-dark, #0f172a);

    font-size:
        clamp(1.55rem, 2.6vw, 2.15rem);

    line-height: 1.1;

    letter-spacing: -0.035em;
}

.toolbox-network-heading h3 span {
    color:
        var(--scope-accent, #c33642);
}

.toolbox-network-heading>p {
    max-width: 450px;

    margin: 0;

    color:
        rgba(15, 23, 42, 0.58);

    font-size: 0.9rem;

    line-height: 1.65;
}


/* =========================================================
   5. NETWORK LAYOUT
   ========================================================= */

.toolbox-network-layout {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr) 100px minmax(350px, 1.25fr);

    gap: 24px;

    min-height: 500px;

    padding-top: 32px;
}


/* =========================================================
   6. COLUMN LABELS
   ========================================================= */

.toolbox-column-label {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 14px;

    color:
        rgba(15, 23, 42, 0.42);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.toolbox-column-label span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    color:
        var(--scope-accent, #c33642);

    font-size: 9px;
}


/* =========================================================
   7. PROBLEM LIST
   ========================================================= */

.toolbox-problems {
    position: relative;
}


/* connecting spine */

.toolbox-problems::after {
    content: "";

    position: absolute;

    top: 40px;
    right: -38px;

    width: 38px;
    height: calc(100% - 80px);

    border-top:
        1px solid rgba(15, 23, 42, 0.10);

    border-bottom:
        1px solid rgba(15, 23, 42, 0.10);

    pointer-events: none;
}


/* =========================================================
   8. PROBLEM BUTTON
   ========================================================= */

.toolbox-problem {
    position: relative;

    display: grid;

    grid-template-columns:
        42px minmax(0, 1fr) 20px;

    align-items: center;

    width: 100%;

    min-height: 64px;

    margin-bottom: 9px;

    padding: 9px 12px;

    border:
        1px solid rgba(15, 23, 42, 0.08);


    background:
        rgba(255, 255, 255, 0.7);

    color:
        var(--text-dark, #0f172a);

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.toolbox-problem:hover {
    transform: translateX(3px);

    border-color:
        rgba(195, 54, 66, 0.25);

    background:
        rgba(255, 255, 255, 0.95);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.055);
}


.toolbox-problem.is-active {


    border-color:
        var(--scope-accent, #c33642);

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.08);
}


.toolbox-problem-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(15, 23, 42, 0.11);

    border-radius: 11px;

    color:
        var(--scope-accent, #c33642);

    background:
        rgba(15, 23, 42, 0.025);
}

.toolbox-problem-icon ion-icon {
    font-size: 17px;
}


.toolbox-problem-copy {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.toolbox-problem-copy strong {
    overflow: hidden;

    color:
        var(--text-dark, #0f172a);

    font-size: 12px;

    font-weight: 650;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.toolbox-problem-copy small {
    overflow: hidden;

    color:
        rgba(15, 23, 42, 0.48);

    font-size: 9px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.toolbox-problem-arrow {
    color:
        rgba(15, 23, 42, 0.28);

    font-size: 15px;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.toolbox-problem.is-active .toolbox-problem-arrow {
    color:
        var(--scope-accent, #c33642);

    transform: translateX(3px);
}


/* =========================================================
   9. CENTRAL KORE NODE
   ========================================================= */

.toolbox-core {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}


/* horizontal connection */

.toolbox-core::before {
    content: "";

    position: absolute;

    top: 50%;
    left: -24px;

    width: calc(100% + 48px);

    height: 1px;

    background:
        rgba(15, 23, 42, 0.12);

    transform: translateY(-50%);
}


/* vertical line */

.toolbox-core::after {
    content: "";

    position: absolute;

    top: 15%;
    bottom: 15%;

    left: 50%;

    width: 1px;

    background:
        rgba(15, 23, 42, 0.10);

    transform: translateX(-50%);
}


.toolbox-core-node {
    position: relative;

    z-index: 3;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 86px;
    height: 86px;

    border:
        1px solid var(--scope-accent, #c33642);

    border-radius: 50%;

    background:
        var(--text-dark, #0f172a);

    color: #fff;

    text-align: center;

    box-shadow:
        0 0 0 8px rgba(195, 54, 66, 0.06),
        0 14px 35px rgba(15, 23, 42, 0.15);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.toolbox-core-node.is-changing {
    transform: scale(0.94);

    box-shadow:
        0 0 0 12px rgba(195, 54, 66, 0.10),
        0 18px 40px rgba(15, 23, 42, 0.18);
}

.toolbox-core-kicker {
    margin-bottom: 3px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.12em;
}

.toolbox-core-node strong {
    font-size: 13px;

    letter-spacing: 0.04em;
}

.toolbox-core-node small {
    max-width: 65px;

    margin-top: 3px;

    color:
        rgba(255, 255, 255, 0.52);

    font-size: 7px;

    line-height: 1.3;
}


/* =========================================================
   10. RESULTS
   ========================================================= */

.toolbox-results {
    position: relative;
}


/* connecting line from core */

.toolbox-results::before {
    content: "";

    position: absolute;

    top: 50%;

    left: -52px;

    width: 52px;

    height: 1px;

    background:
        rgba(15, 23, 42, 0.12);
}


/* =========================================================
   11. RESULT INTRO
   ========================================================= */

.toolbox-result-intro {
    min-height: 42px;

    margin-bottom: 12px;

    color:
        rgba(15, 23, 42, 0.54);

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   12. TOOL GRID
   ========================================================= */

.toolbox-tool-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}


/* =========================================================
   13. TOOL NODE
   ========================================================= */

.toolbox-tool {
    position: relative;

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 62px;

    padding: 10px 12px;

    border:
        1px solid rgba(15, 23, 42, 0.08);

    background:
        rgba(255, 255, 255, 0.76);

    animation:
        toolboxToolIn 0.35s ease both;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.toolbox-tool::before {
    content: "";

    position: absolute;

    left: -17px;

    top: 50%;

    width: 17px;
    height: 1px;

    background:
        rgba(15, 23, 42, 0.11);
}


.toolbox-tool:hover {
    transform: translateY(-2px);

    border-color:
        rgba(195, 54, 66, 0.22);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.06);
}


.toolbox-tool-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(15, 23, 42, 0.10);

    border-radius: 10px;

    background:
        rgba(15, 23, 42, 0.025);

    color:
        var(--scope-accent, #c33642);

    font-size: 15px;
}


.toolbox-tool-copy {
    display: flex;

    flex-direction: column;

    min-width: 0;

    gap: 2px;
}

.toolbox-tool-copy strong {
    color:
        var(--text-dark, #0f172a);

    font-size: 11px;

    font-weight: 650;
}

.toolbox-tool-copy small {
    color:
        rgba(15, 23, 42, 0.43);

    font-size: 8px;
}


/* stagger animation */

.toolbox-tool:nth-child(1) {
    animation-delay: .03s;
}

.toolbox-tool:nth-child(2) {
    animation-delay: .07s;
}

.toolbox-tool:nth-child(3) {
    animation-delay: .11s;
}

.toolbox-tool:nth-child(4) {
    animation-delay: .15s;
}

.toolbox-tool:nth-child(5) {
    animation-delay: .19s;
}

.toolbox-tool:nth-child(6) {
    animation-delay: .23s;
}

.toolbox-tool:nth-child(7) {
    animation-delay: .27s;
}

.toolbox-tool:nth-child(8) {
    animation-delay: .31s;
}


@keyframes toolboxToolIn {

    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =========================================================
   14. RESULT FOOTER
   ========================================================= */

.toolbox-result-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 13px;

    padding-top: 11px;

    border-top:
        1px solid rgba(15, 23, 42, 0.07);

    color:
        rgba(15, 23, 42, 0.35);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.toolbox-result-status {
    display: flex;

    align-items: center;

    gap: 7px;
}

.toolbox-status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--scope-accent, #c33642);

    box-shadow:
        0 0 0 4px rgba(195, 54, 66, 0.08);
}


/* =========================================================
   15. EXPLANATION PANEL
   ========================================================= */

.toolbox-explanation {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        48px minmax(0, 1fr) 150px;

    align-items: center;

    gap: 22px;

    margin-top: 30px;

    padding:
        22px 24px;

    border:
        1px solid rgba(15, 23, 42, 0.08);

    border-radius: 17px;

    background:
        rgba(15, 23, 42, 0.035);
}


.toolbox-explanation-marker {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border:
        1px solid rgba(15, 23, 42, 0.14);

    border-radius: 50%;

    color:
        var(--scope-accent, #c33642);

    font-size: 10px;

    font-weight: 700;
}


.toolbox-explanation-copy .toolbox-label {
    margin-bottom: 4px;
}

.toolbox-explanation-copy h4 {
    margin: 0 0 5px;

    color:
        var(--text-dark, #0f172a);

    letter-spacing: -0.015em;

    font-size: var(--fs-h3);
    font-weight: var(--fw-l);
}

.toolbox-explanation-copy p {
    max-width: 760px;

    margin: 0;

    color:
        rgba(15, 23, 42, 0.55);

    font-size: 0.83rem;

    line-height: 1.6;
}


.toolbox-explanation-discipline {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;
}

.toolbox-explanation-discipline span {
    color:
        rgba(15, 23, 42, 0.36);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.12em;
}

.toolbox-explanation-discipline strong {
    color:
        var(--scope-accent, #c33642);

    font-size: 12px;

    letter-spacing: 0.08em;
}


/* =========================================================
   16. NOTE
   ========================================================= */

.toolbox-note {
    display: flex;

    align-items: center;

    gap: 18px;

    max-width: 760px;

    margin:
        clamp(35px, 5vw, 55px) auto 0;

    padding-top: 22px;

    border-top:
        1px solid rgba(15, 23, 42, 0.08);
}

.toolbox-note-line {
    flex: 0 0 34px;

    width: 34px;
    height: 2px;

    background:
        var(--scope-accent, #c33642);
}

.toolbox-note p {
    margin: 0;

    color:
        rgba(15, 23, 42, 0.52);

    font-size: 0.86rem;

    line-height: 1.6;
}

.toolbox-note strong {
    color:
        var(--text-dark, #0f172a);
}


/* =========================================================
   17. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .toolbox-network-layout {
        grid-template-columns:
            minmax(220px, 1fr) 70px minmax(300px, 1.15fr);

        gap: 14px;
    }

    .toolbox-tool-grid {
        grid-template-columns: 1fr;
    }

    .toolbox-tool::before {
        left: -15px;
        width: 15px;
    }

    .toolbox-core-node {
        width: 76px;
        height: 76px;
    }

}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .toolbox-network {
        padding:
            28px 20px;
    }

    .toolbox-network-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .toolbox-network-layout {
        display: block;

        min-height: auto;
    }

    .toolbox-problems::after,
    .toolbox-results::before,
    .toolbox-tool::before,
    .toolbox-core::before {
        display: none;
    }

    .toolbox-problem {
        min-height: 60px;
    }

    .toolbox-core {
        padding: 25px 0;
    }

    .toolbox-core::after {
        top: 0;
        bottom: 0;
    }

    .toolbox-core-node {
        width: 82px;
        height: 82px;
    }

    .toolbox-results {
        margin-top: 5px;
    }

    .toolbox-tool-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .toolbox-explanation {
        grid-template-columns:
            42px minmax(0, 1fr);

        gap: 15px;
    }

    .toolbox-explanation-discipline {
        grid-column: 2;

        align-items: flex-start;

        padding-top: 5px;
    }

}


@media (max-width: 480px) {

    .toolbox-tool-grid {
        grid-template-columns: 1fr;
    }

    .toolbox-problem-copy strong {
        font-size: 11px;
    }

    .toolbox-problem-copy small {
        font-size: 8px;
    }

    .toolbox-explanation {
        padding: 18px;
    }

}


/* =========================================================
   19. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .toolbox-problem,
    .toolbox-tool,
    .toolbox-core-node {

        transition: none !important;
    }

    .toolbox-tool {
        animation: none !important;
    }

}