*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #060a10;
    --surface: #0c1018;
    --surface2: #111827;
    --border: #1a2234;
    --border2: #243044;
    /* Restored Enterprise Green */
    --accent: #10a37f;
    --accent2: #34d399;
    --accent-dim: rgba(16, 163, 127, 0.12);
    --accent-glow: rgba(16, 163, 127, 0.18);
    --red: #f87171;
    --red-dim: rgba(248,113,113,0.1);
    --green: #10b981;
    --green-dim: rgba(16,185,129,0.1);
    --amber: #f59e0b;
    --text: #e2e8f0;
    --muted: #64748b;
    --muted2: #94a3b8;
    --dash: #1e293b;
}
/* ═══ LIGHT THEME OVERRIDES ═══ */
body.light-theme {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface2: #f1f5f9;
    --border: #e2e8f0;
    --border2: #cbd5e1;
    --accent: #0d9470;
    --accent2: #10a37f;
    --accent-dim: rgba(16, 163, 127, 0.1);
    --accent-glow: rgba(16, 163, 127, 0.15);
    --red: #dc2626;
    --red-dim: rgba(220, 38, 38, 0.08);
    --green: #059669;
    --green-dim: rgba(5, 150, 105, 0.1);
    --amber: #d97706;
    --text: #0f172a;
    --muted: #64748b;
    --muted2: #475569;
    --dash: #cbd5e1;
}

    /* Fix hardcoded dark-only colors in light mode */
    body.light-theme nav {
        background: rgba(255, 255, 255, 0.92);
    }

    body.light-theme .modal-overlay {
        background: rgba(15, 23, 42, 0.55);
    }

    body.light-theme .persona-wins li {
        color: var(--muted2);
    }

    body.light-theme .st-loop-step {
        color: #92400e;
        background: rgba(217, 119, 6, 0.1);
    }

    body.light-theme .mcp-alert-box p {
        color: #9a3412;
    }

    body.light-theme .mcp-alert-box strong {
        color: #7c2d12;
    }

/* Theme toggle button in navbar */
.theme-toggle-btn {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-left: 6px;
    transition: border-color 0.2s, background 0.2s;
}

    .theme-toggle-btn:hover {
        border-color: var(--accent);
    }

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* ═══ NAV ═══ */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 56px;
    border-bottom: 1px solid var(--border);
    background: rgba(6,10,16,0.94);
    backdrop-filter: blur(14px);
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

    .logo-name span {
        color: var(--accent);
    }

.logo-powered {
    font-size: 0.6rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

    .logo-powered strong {
        color: var(--muted2);
        font-weight: 600;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav-links a {
        color: var(--muted2);
        text-decoration: none;
        font-size: 0.84rem;
        padding: 7px 14px;
        border-radius: 6px;
        transition: color .2s, background .2s;
    }

        .nav-links a:hover {
            color: var(--text);
            background: var(--surface2);
        }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 7px;
    padding: 8px 20px !important;
}

    .nav-cta:hover {
        background: var(--accent2) !important;
    }

/* ═══ SHARED LAYOUT ═══ */
.section {
    padding: 96px 56px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(16,163,127,.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.eyebrow-red {
    color: var(--red);
    background: var(--red-dim);
    border-color: rgba(248,113,113,.25);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

h2.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 18px;
}

h2 em {
    font-style: normal;
    color: var(--accent);
}

.section-body {
    font-size: 1.05rem;
    color: var(--muted2);
    max-width: 620px;
    line-height: 1.75;
}

.divider {
    height: 1px;
    background: var(--border);
}

/* ═══ HERO ═══ */
#hero {
    padding: 110px 56px 96px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 700px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(16, 163, 127, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    max-width: 860px;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.hero-models {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.model-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .05em;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--muted2);
    padding: 4px 12px;
    border-radius: 6px;
}

    .model-tag.active {
        color: var(--accent);
        border-color: rgba(16, 163, 127, 0.4);
        background: var(--accent-dim);
    }

.hero-connector {
    color: var(--muted);
    font-size: 0.72rem;
}

#hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin-bottom: 24px;
}

    #hero h1 em {
        font-style: normal;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    #hero h1 .strike {
        text-decoration: line-through;
        color: var(--muted);
        -webkit-text-fill-color: var(--muted);
        background: none;
    }

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted2);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 36px;
}

    .hero-sub strong {
        color: var(--text);
        font-weight: 600;
    }

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 56px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(16, 163, 127, 0.3);
    transition: opacity .2s, box-shadow .2s;
    letter-spacing: .01em;
}

    .btn-primary:hover {
        opacity: .9;
        box-shadow: 0 6px 32px rgba(16, 163, 127, 0.4);
    }

.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    color: var(--muted2);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

    .btn-secondary:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted2);
}

.trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ═══ PROBLEM ═══ */
#problem {
    border-bottom: 1px solid var(--border);
}

.problem-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 56px;
}

.problem-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--red);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted2);
    line-height: 1.5;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.pain-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: block;
}

.pain-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.pain-card p {
    font-size: 0.82rem;
    color: var(--muted2);
    line-height: 1.6;
}

/* ═══ SOLUTION BRIDGE ═══ */
#solution {
    border-bottom: 1px solid var(--border);
}

.solution-headline {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}

.bridge-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 64px;
}

.bridge-side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

    .bridge-side.danger {
        border-color: rgba(248,113,113,.3);
        background: rgba(248,113,113,.04);
    }

    .bridge-side.safe {
        border-color: rgba(16,163,127,.3);
        background: var(--accent-dim);
    }

.bridge-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

    .bridge-label.red {
        color: var(--red);
    }

    .bridge-label.blue {
        color: var(--accent);
    }

.bridge-side ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .bridge-side ul li {
        font-size: 0.82rem;
        color: var(--muted2);
        padding-left: 16px;
        position: relative;
    }

        .bridge-side ul li::before {
            content: '✕';
            position: absolute;
            left: 0;
            font-size: .7rem;
        }

.bridge-side.danger ul li::before {
    color: var(--red);
}

.bridge-side.safe ul li::before {
    content: '✓';
    color: var(--green);
}

.bridge-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bridge-logo {
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 14px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(16, 163, 127, 0.35);
    white-space: nowrap;
}

.bridge-arrow {
    color: var(--muted);
    font-size: 1.2rem;
}

/* ═══ MODELS STRIP ═══ */
#models {
    padding: 48px 56px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.models-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.models-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.model-card {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .2s;
}

    .model-card:hover {
        border-color: var(--accent);
    }

.model-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.model-card-maker {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: .03em;
}

.model-card-desc {
    font-size: 0.8rem;
    color: var(--muted2);
    line-height: 1.55;
}

.model-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(16,163,127,.25);
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 4px;
}

/* ═══ PILLARS ═══ */
#pillars {
    border-bottom: 1px solid var(--border);
}

.pillars-header {
    margin-bottom: 56px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .25s, box-shadow .25s;
}

    .pillar-card:hover {
        border-color: var(--border2);
        box-shadow: 0 4px 24px rgba(0,0,0,.3);
    }

.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(16,163,127,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pillar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.pillar-card p {
    font-size: 0.8rem;
    color: var(--muted2);
    line-height: 1.6;
    flex: 1;
}

/* ═══ HOW IT WORKS ═══ */
#how {
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        left: 52px;
        right: -32px;
        border-top: 2px dashed var(--border2);
        z-index: 0;
    }

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.step p {
    font-size: 0.85rem;
    color: var(--muted2);
    line-height: 1.65;
}

.step-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.source-chip {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: .03em;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--muted2);
    padding: 3px 10px;
    border-radius: 4px;
}

/* ═══ PERSONAS ═══ */
#personas {
    border-bottom: 1px solid var(--border);
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.persona-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    transition: border-color .25s;
}

    .persona-card:hover {
        border-color: var(--border2);
    }

.persona-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid rgba(16,163,127,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.persona-role {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.persona-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.persona-card p {
    font-size: 0.84rem;
    color: var(--muted2);
    line-height: 1.65;
    margin-bottom: 14px;
}

.persona-wins {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .persona-wins li {
        font-size: 0.79rem;
        color: #94a3b8;
        padding-left: 16px;
        position: relative;
    }

        .persona-wins li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-size: .7rem;
        }

/* ═══ USE CASES ═══ */
#usecases {
    border-bottom: 1px solid var(--border);
}

.usecases-tabs {
    display: flex;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid var(--border2);
    color: var(--muted2);
    cursor: pointer;
    background: transparent;
    transition: all .2s;
}

    .tab-btn.active, .tab-btn:hover {
        background: var(--accent-dim);
        border-color: rgba(16,163,127,.35);
        color: var(--accent);
    }

.usecase-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.uc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uc-category {
    font-size: 1.4rem;
}

.uc-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.uc-card p {
    font-size: 0.8rem;
    color: var(--muted2);
    line-height: 1.6;
    flex: 1;
}

.uc-outcome {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid rgba(16,185,129,.2);
    padding: 4px 10px;
    border-radius: 5px;
    align-self: flex-start;
}

/* ═══ COMPARISON ═══ */
#compare {
    border-bottom: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 48px;
}

    .compare-table th {
        padding: 14px 20px;
        text-align: left;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

        .compare-table th:first-child {
            color: var(--muted);
        }

        .compare-table th.col-bad {
            color: var(--red);
            background: rgba(248,113,113,.05);
            border-radius: 8px 8px 0 0;
        }

        .compare-table th.col-good {
            color: var(--accent);
            background: var(--accent-dim);
            border-radius: 8px 8px 0 0;
        }

    .compare-table td {
        padding: 14px 20px;
        font-size: 0.84rem;
        color: var(--muted2);
        border-top: 1px solid var(--border);
    }

        .compare-table td:first-child {
            font-weight: 600;
            color: var(--text);
        }

        .compare-table td.bad {
            background: rgba(248,113,113,.04);
        }

        .compare-table td.good {
            background: var(--accent-dim);
            color: var(--text);
            font-weight: 500;
        }

    .compare-table tr:hover td {
        background: var(--surface);
    }

        .compare-table tr:hover td.good {
            background: rgba(16,163,127,.15);
        }

/* ═══ TECH TRUST ═══ */
#tech {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tech-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

    .tech-card h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 8px;
    }

    .tech-card p {
        font-size: 0.82rem;
        color: var(--muted2);
        line-height: 1.65;
    }

.tech-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: block;
}

/* ═══ STRATEGIC GRID (Replaces the messy flowchart) ═══ */
#strategic {
    border-bottom: 1px solid var(--border);
}

.st-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.st-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.st-barrier {
    border-left: 3px solid var(--muted);
    padding-left: 16px;
}

.st-barrier-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.st-barrier-text {
    font-size: 1rem;
    color: var(--muted2);
    font-weight: 600;
}

.st-arrow {
    color: var(--border2);
    font-size: 1.5rem;
    padding-left: 16px;
}

.st-outcome {
    background: var(--accent-dim);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: 10px;
    padding: 24px;
}

.st-outcome-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.st-outcome-title {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.st-outcome-desc {
    font-size: 0.9rem;
    color: var(--muted2);
    line-height: 1.65;
}

/* Updated Loop Layout */
.st-loop {
    border: 1px solid rgba(245,158,11,.22);
    background: rgba(245,158,11,.04);
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.st-loop-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
    text-align: center;
}

.st-loop-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.st-loop-step {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.22);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fcd34d;
    text-align: center;
}

.st-loop-arrow {
    font-size: 1.2rem;
    color: rgba(245,158,11,.5);
}

.st-loop-note {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    max-width: 600px;
}

/* ═══ FRAMEWORKS SECTION ═══ */
#frameworks {
    border-bottom: 1px solid var(--border);
}

.fw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 48px;
}

.fw-btn {
    background: var(--surface);
    border: none;
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    cursor: pointer;
    text-align: left;
    border-top: 3px solid transparent;
    transition: background .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .fw-btn:last-child {
        border-right: none;
    }

    .fw-btn:hover {
        background: var(--surface2);
    }

    .fw-btn.fb-1 {
        border-top-color: #3b82f6;
    }

    .fw-btn.fb-2 {
        border-top-color: #f59e0b;
    }

    .fw-btn.fb-3 {
        border-top-color: var(--accent);
    }

    .fw-btn.fb-4 {
        border-top-color: #f87171;
    }

.fw-num {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.fw-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.fw-desc {
    font-size: 0.78rem;
    color: var(--muted2);
    line-height: 1.55;
}

.fw-arrow {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ═══ MODAL OVERLAY ═══ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(6,10,16,0.88);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 40px 24px;
}

    .modal-overlay.open {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    padding: 48px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--muted2);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s, border-color .2s;
}

    .modal-close:hover {
        color: var(--text);
        border-color: var(--muted);
    }

.modal-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(16,163,127,.25);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 10px;
}

.modal-lead {
    font-size: 0.9rem;
    color: var(--muted2);
    line-height: 1.7;
    margin-bottom: 32px;
}

.modal-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.modal-section-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.modal-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

/* phase grid */
.phase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.phase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 16px;
}

    .phase-card.updated {
        border-color: rgba(251,146,60,.35);
    }

.phase-num {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.phase-card h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.phase-card p {
    font-size: 0.75rem;
    color: var(--muted2);
    line-height: 1.5;
}

.phase-mcp {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #fb923c;
    font-weight: 600;
    border-top: 1px solid rgba(251,146,60,.2);
    padding-top: 7px;
}

/* pillar/level rows */
.m-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.m-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
}

.m-row-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.m-row-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.m-row p {
    font-size: 0.8rem;
    color: var(--muted2);
    line-height: 1.55;
}

/* 4-layer grid */
.m-layers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.m-layer {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.m-layer-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.m-layer.l1 .m-layer-tag {
    color: #3b82f6;
}

.m-layer.l2 .m-layer-tag {
    color: #10b981;
}

.m-layer.l3 .m-layer-tag {
    color: #f59e0b;
}

.m-layer.l4 .m-layer-tag {
    color: #f87171;
}

.m-layer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.m-layer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .m-layer ul li {
        font-size: 0.78rem;
        color: var(--muted2);
        padding-left: 14px;
        position: relative;
    }

        .m-layer ul li::before {
            content: '·';
            position: absolute;
            left: 0;
            color: var(--muted);
        }

        .m-layer ul li.mcp-item {
            color: #fb923c;
            font-weight: 600;
        }

            .m-layer ul li.mcp-item::before {
                content: '⚠';
                color: #fb923c;
            }

/* use box */
.m-use-box {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 24px;
    margin-top: 32px;
}

.m-use-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.m-use-box p {
    font-size: 0.84rem;
    color: var(--muted2);
    line-height: 1.7;
}

/* MCP alert box */
.mcp-alert-box {
    background: rgba(251,146,60,.07);
    border: 1px solid rgba(251,146,60,.3);
    border-left: 3px solid #fb923c;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 16px;
}

.mcp-alert-label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fb923c;
    margin-bottom: 7px;
}

.mcp-alert-box p {
    font-size: 0.8rem;
    color: #d4956a;
    line-height: 1.65;
}

.mcp-alert-box strong {
    color: #fbd0a8;
}

/* ═══ FINAL CTA ═══ */
#cta {
    padding: 96px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    #cta::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 700px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(16,163,127,.07) 0%, transparent 65%);
        pointer-events: none;
    }

    #cta h2 {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    #cta p {
        font-size: 1rem;
        color: var(--muted2);
        max-width: 520px;
        margin: 0 auto 36px;
        line-height: 1.75;
    }

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ FOOTER ═══ */
footer {
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 32px 56px;
}

    footer p {
        font-size: 0.78rem;
        color: var(--muted);
    }

    footer a {
        color: var(--muted);
        text-decoration: none;
    }

        footer a:hover {
            color: var(--muted2);
        }

.fw-btn {
    --fw-color: var(--accent);
    background: var(--surface);
    border: none;
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    cursor: pointer;
    text-align: left;
    border-top: 3px solid var(--fw-color);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .fw-btn:last-child {
        border-right: none;
    }

    .fw-btn:hover {
        background: var(--surface2);
    }

    .fw-btn.fb-1 {
        --fw-color: #3b82f6;
    }

    .fw-btn.fb-2 {
        --fw-color: #f59e0b;
    }

    .fw-btn.fb-3 {
        --fw-color: var(--accent);
    }

    .fw-btn.fb-4 {
        --fw-color: #f87171;
    }

.fw-desc {
    font-size: 0.82rem;
    color: var(--muted2);
    line-height: 1.6;
    flex: 1; /* Pushes all 4 "Open" buttons to align evenly at the bottom */
}

.fw-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fw-color);
    background: color-mix(in srgb, var(--fw-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--fw-color) 35%, transparent);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Fill the button with its accent color when hovering the card */
.fw-btn:hover .fw-arrow {
    background: var(--fw-color);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ═══ NAV MOBILE CONTROLS (Hidden on Desktop) ═══ */
.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3; /* Keeps theme toggle on the far right on desktop */
}

.mobile-menu-btn {
    display: none;
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 7px;
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    nav {
        padding: 14px 24px;
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* Switch to Hamburger Menu */
    nav {
        flex-wrap: wrap;
        padding: 14px 20px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding-top: 16px;
        margin-top: 14px;
        border-top: 1px solid var(--border);
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 10px 14px;
            font-size: 0.92rem;
        }

    .nav-cta {
        text-align: center;
        margin-top: 6px;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .section {
        padding: 56px 20px;
    }

    #hero {
        padding: 56px 20px 48px;
    }

    #models {
        padding: 40px 20px;
    }

    #cta {
        padding: 64px 20px;
    }

    .hero-ctas,
    .cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-ctas a,
        .cta-btns a {
            text-align: center;
        }

    .hero-trust {
        gap: 12px 20px;
    }

    /* Stack all multi-column grids to 1 column */
    .problem-intro,
    .pain-grid,
    .bridge-diagram,
    .pillars-grid,
    .steps,
    .personas-grid,
    .usecase-panels,
    .tech-grid,
    .models-grid,
    .st-grid,
    .fw-grid,
    .phase-grid,
    .m-layers,
    .m-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bridge-arrow,
    .step::after {
        display: none;
    }

    .persona-card {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .st-card {
        padding: 22px 18px;
    }

    .st-loop-steps {
        flex-direction: column;
    }

    .st-loop-arrow {
        transform: rotate(90deg);
    }

        .st-loop-arrow:last-child {
            transform: none;
        }

    /* Fix Framework card borders when stacked vertically */
    .fw-btn {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 24px 20px;
    }

        .fw-btn:last-child {
            border-bottom: none;
        }

    /* Keep Comparison Table scrollable instead of breaking page width */
    .compare-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .compare-table th,
        .compare-table td {
            padding: 12px 14px;
            font-size: 0.8rem;
            min-width: 150px;
        }

    /* Modals on mobile */
    .modal-overlay {
        padding: 16px 12px;
    }

    .modal-box {
        padding: 24px 18px;
    }

    .modal-title {
        font-size: 1.3rem;
        padding-right: 36px;
    }

    footer {
        padding: 28px 20px;
        flex-direction: column;
        text-align: center;
    }
}