:root {
    --box: #071738;
    --muted: #bcd7f3;
    --accent: #2f80ed;
    --radius: 12px;
    --gap: 24px;
  }

.foundation-section {
    color: #bcd7f3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow-x: hidden; /* prevent scrollbars on small devices */
    /*flex-direction: column;*/
    padding: 80px;
    /*padding-top: 100px;
    scroll-margin-top: 60px;*/
    /*background: radial-gradient(#ffffff, #b5b5b5);*/
    background-color: #000000;
}

.foundation-section  > .title-div {
    margin-left: 60px;
    text-align: center;
    display: flex;
    flex-direction:column;
    gap: 10px;
}

.foundation-section  > .title-div p {
    font-family: font-2, monospace;
    font-size: 30px;
    letter-spacing: 5px;
}

.pillar-img {
    width: 100%;
}

.foundation-section .process {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    align-items: stretch;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.foundation-section .process-row {
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.foundation-section .info-div {
    /*background: #ffffff80;*/
    /*border-radius: var(--radius);*/
    padding: 40px;
    flex: 1 1 240px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    border:1px solid rgb(34, 34, 34);
}

.foundation-section .info-div h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.foundation-section .info-div p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;

    max-width: 80ch;
    text-wrap: balance;
}

/* LIST FIX */
.foundation-section ul {
    padding: 0;
    margin: 0;
    margin-top: 10px;
    list-style: none;
}

.foundation-section li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #bcd7f3;
    line-height: 1.4;
}

.foundation-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9dcbfc;
    font-size: 1.2rem;
}

/* Desktop: horizontal layout */
@media (min-width: 769px) {
    .foundation-section .process-row {
        flex-direction: row;
    }
}

@media (max-width: 1630px) {

    .foundation-section .process-row {
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--gap) / 1.5);
        padding-right: 10px; /* add breathing space on right */
    }

    .foundation-section .process {
        max-width: 400px;
    }

    .foundation-section .arrow {
        margin: 8px auto;
    }

    .foundation-section .arrow img {
        transform: rotate(90deg);
    }

    .foundation-section .info-div {
        width: 100%;
        flex: 1 1 auto;
        min-height: initial;
    }

}

/* Mobile: stacked layout with proper margins */
@media (max-width: 768px) {

    .foundation-section {
        flex-direction: column-reverse;
        padding: 60px;
    }

    .foundation-section  > .title-div {
        margin-left: 0;
        margin-bottom: 40px;
    }

}
