
/* AIIO2 / GAIN STABILIZER */

.gain-page {
    --gain-accent: #db873b;
}

.gain-heading {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 30px 0 18px;
}

.gain-explorer,
.gain-protection-section,
.gain-manual-section,
.gain-architecture {
    padding-bottom: 80px;
}

.gain-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gain-tabs button {
    padding: 18px 15px;
}

.gain-tabs button strong {
    font-size: clamp(11px, 1.3vw, 17px);
    letter-spacing: .8px;
}

.gain-module-panel {
    --module: #db873b;
}

.gain-instrument {
    --module: #db873b;
    background: #090c0e;
}

.gain-instrument .knob-core {
    background:
        repeating-conic-gradient(
            #0006 0deg 2deg,
            #ffffff10 2deg 3deg,
            transparent 3deg 5deg
        ),
        #50565a;
}

.gain-instrument .knob-core::before {
    background:
        radial-gradient(
            circle at 35% 20%,
            #ffffff30,
            transparent 75%
        ),
        #51575b;
}

.gain-instrument .instrument-value label {
    text-align: center;
}

#gain-demo-progress {
    width: 0;
    height: 100%;
    background: var(--gain-accent);
}

.gain-original::before {
    background: #7c8991;
}

.gain-base::before {
    background: #dfa063;
}

.gain-curve::before {
    background: #a4bdc8;
}

.gain-category-list {
    display: grid;
    gap: 7px;
    margin-top: 25px;
}

.gain-category-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #303439;
    padding: 11px 0 11px 13px;
    border-left: 2px solid var(--category);
}

.gain-category-list strong {
    color: var(--category);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
}

.gain-category-list span {
    font-size: 12px;
    color: #a1a7ad;
}

.gain-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin: 40px 0 30px;
}

.gain-feature-grid article {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.gain-feature-grid h3 {
    font-size: 23px;
    font-weight: 500;
    line-height: 1.3;
}

.gain-feature-grid p {
    font-size: 14px;
    line-height: 1.8;
}

.gain-manual-section .button {
    margin-top: 15px;
}

.gain-engineering-figure {
    margin: 25px auto;
    max-width: 850px;
}

.gain-engineering-figure svg {
    display: block;
    width: 100%;
    height: auto;
}

.gain-bottom {
    padding-bottom: 65px;
}

@media (max-width: 900px) {

    .gain-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gain-feature-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .gain-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gain-explorer,
    .gain-protection-section,
    .gain-manual-section,
    .gain-architecture {
        padding-bottom: 45px;
    }

    .gain-category-list span {
        font-size: 10px;
    }

}


/* V0.02 — LONG-TERM LEVEL DRIFT */

.drift-section {
    padding-bottom: 65px;
}

.drift-intro {
    max-width: 860px;
    margin-bottom: 30px;
}

.drift-intro p {
    font-size: 15px;
    line-height: 1.8;
}

.drift-instrument {
    background: #090c0e;
    border: 1px solid #363e44;
    border-radius: 4px;
    padding: 22px;
}

#drift-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.drift-demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 4px 10px;
    margin-top: 15px;
    border-top: 1px solid #30383e;
}

.drift-stage {
    flex: 1;
    max-width: 850px;
}

.drift-stage h3 {
    font-size: 22px;
    font-weight: 500;
    margin: 12px 0 8px;
}

.drift-stage p {
    color: #a4afb6;
    font-size: 14px;
    line-height: 1.7;
    min-height: 55px;
}

.drift-stage .auto-demo-progress {
    height: 2px;
    background: #30383e;
}

#drift-progress {
    width: 0;
    height: 100%;
    background: #db873b;
}

.drift-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.drift-controls button {
    background: #151a1e;
    color: #909da5;
    border: 1px solid #39434a;
    border-radius: 3px;
    padding: 10px 12px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    cursor: pointer;
}

.drift-controls button:hover {
    color: #db873b;
    border-color: #db873b;
}

/* Parameter descriptions without animated controls */

.gain-module-panel {
    display: block;
    padding: 30px;
}

.gain-module-panel .are-module-copy {
    max-width: 900px;
}

.gain-module-panel .are-module-copy h3 {
    font-size: clamp(28px, 3vw, 40px);
}

.gain-module-panel .are-listen {
    margin-top: 20px;
}

.gain-module-panel .are-limit {
    margin-top: 18px;
}

@media (max-width: 700px) {

    .drift-instrument {
        padding: 12px;
    }

    .drift-demo-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .drift-stage p {
        font-size: 12px;
        min-height: 0;
    }

    .drift-controls {
        justify-content: flex-end;
    }

    .gain-module-panel {
        padding: 20px;
    }

}


/* V0.03 — STATIC ENGINEERING DEMONSTRATIONS */

.drift-static-summary {
    margin-top: 15px;
    padding: 22px 4px 8px;
    border-top: 1px solid #30383e;
}

.drift-static-summary h3 {
    font-size: 23px;
    font-weight: 500;
    margin: 12px 0 10px;
}

.drift-static-summary p {
    max-width: 850px;
    font-size: 14px;
    line-height: 1.8;
    color: #a4afb6;
    margin-bottom: 0;
}

/* Parameter text and static diagram */

.gain-module-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.gain-parameter-graphic {
    min-width: 0;
}

.parameter-graphic-shell {
    background: #090c0e;
    border: 1px solid #363e44;
    border-radius: 3px;
    padding: 17px;
}

.parameter-graphic-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .5px;
    color: #db873b;
    margin-bottom: 12px;
}

.parameter-graphic-header small {
    color: #78868e;
    font-size: 8px;
}

.parameter-graphic-shell svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: var(--mono);
}

.parameter-graphic-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #293238;
    font-family: var(--mono);
    font-size: 9px;
    color: #89969e;
}

.parameter-graphic-legend span::before {
    content: "";
    width: 15px;
    height: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 7px;
}

.parameter-reference::before {
    background: #89969e;
}

.parameter-result::before {
    background: #db873b;
}

.parameter-result {
    color: #db873b;
}

.parameter-graphic-shell > p {
    color: #a1adb4;
    font-size: 13px;
    line-height: 1.7;
    margin: 17px 0;
}

.parameter-graphic-note {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .5px;
    line-height: 1.6;
    color: #738088;
}

@media (max-width: 1000px) {

    .gain-module-panel {
        grid-template-columns: 1fr;
    }

    .gain-parameter-graphic {
        width: 100%;
        max-width: 650px;
    }

}

@media (max-width: 600px) {

    .parameter-graphic-shell {
        padding: 12px;
    }

    .drift-static-summary h3 {
        font-size: 19px;
    }

}

