/* ══════════════════════════════════════════════════════════════════
   Frameworks Page — extends home.css
   ══════════════════════════════════════════════════════════════════ */

/* ── Framework Headers ───────────────────────────────────────────── */
.fw-header {
    margin-bottom: 3rem;
}

.fw-tagline {
    color: var(--warm-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin-top: 0.5rem;
}

/* ── Problem / Solution Blocks ───────────────────────────────────── */
.fw-problem,
.fw-solution,
.fw-perpetual,
.fw-scale {
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.fw-problem h3,
.fw-solution h3,
.fw-architecture h3,
.fw-automation h3,
.fw-outcomes h3,
.fw-perpetual h3,
.fw-scale h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.fw-problem p,
.fw-solution p,
.fw-perpetual p,
.fw-scale p {
    color: var(--warm-dim);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ── Layer Architecture ──────────────────────────────────────────── */
.fw-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.fw-layer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
}

.fw-layer-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.fw-layer-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fw-component {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.fw-component strong {
    color: var(--warm);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 180px;
    flex-shrink: 0;
}

.fw-component span {
    color: var(--warm-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ── OI Framework Layers ─────────────────────────────────────────── */
.oi-layers {
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.oi-layer {
    border-radius: 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.oi-layer:last-child {
    border-bottom: 1px solid var(--border);
}

.oi-layer:first-child {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.12);
}

.oi-layer:nth-child(2) {
    background: rgba(14, 212, 168, 0.05);
    border-color: rgba(14, 212, 168, 0.1);
}

.oi-label {
    margin-bottom: 0.5rem;
}

.oi-desc {
    color: var(--warm-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Protocol Grid ───────────────────────────────────────────────── */
.fw-protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.fw-protocol {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.fw-protocol strong {
    color: var(--warm);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.fw-protocol p {
    color: var(--warm-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Outcome Grid ────────────────────────────────────────────────── */
.fw-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.fw-outcome {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.fw-outcome p {
    color: var(--warm-dim);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Divider ─────────────────────────────────────────────────────── */
.section-divider {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* ── Active nav link ─────────────────────────────────────────────── */
.nav-links a.active {
    color: var(--warm) !important;
}

/* ── Scroll Reveal ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .fw-layer,
    .fw-component,
    .fw-protocol,
    .fw-outcome,
    .fw-problem,
    .fw-solution,
    .fw-perpetual,
    .fw-scale {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .fw-layer.in,
    .fw-component.in,
    .fw-protocol.in,
    .fw-outcome.in,
    .fw-problem.in,
    .fw-solution.in,
    .fw-perpetual.in,
    .fw-scale.in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .fw-protocol-grid {
        grid-template-columns: 1fr;
    }
    .fw-outcome-grid {
        grid-template-columns: 1fr;
    }
    .fw-component {
        flex-direction: column;
        gap: 0.25rem;
    }
    .fw-component strong {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .fw-layer {
        padding: 1.25rem 1.25rem;
    }
    .fw-protocol {
        padding: 1.25rem;
    }
}
