html, body {
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    position: relative;
}

* {
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

/* VARIABLES: MODERN AI PALETTE */
:root {
    /* Brand Colors */
    --brand-blue: #4285F4;   /* Google Blue - Data/Trust */
    --brand-red: #EA4335;    /* Alert Red - Warnings/Negative Stats */
    --brand-purple: #7C3AED; /* Deep Purple - The "Neural" Engine */
    --brand-green: #34A853;  /* Success Green */

    /* Backgrounds */
    --bg-app: #F3F4F6;       /* Light Gray Page Background */
    --bg-frame: #FFFFFF;     /* White Content Frame */
    --bg-card: #FFFFFF;      /* White Cards */
    --bg-paper: #FFFFFF;     /* White Paper */
    
    /* Text */
    --text-main: #111827;    /* Near Black */
    --text-muted: #6B7280;   /* Slate Gray */
    --text-on-brand: #FFFFFF;
    
    /* Borders & Shadows */
    --border-subtle: #E5E7EB;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* === THE SITE FRAME (BOXED LAYOUT) === */
.site-frame {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-frame);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.05); /* Subtle lift */
    position: relative;
    border-left: 1px solid white;
    border-right: 1px solid white;
}

/* UTILITIES */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.mono-label { 
    font-family: var(--font-mono); 
    font-size: 0.75rem; 
    color: var(--brand-purple); 
    font-weight: 700;
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 12px; 
    text-transform: uppercase;
}

/* Buttons */
.btn-small { 
    background: white;
    border: 1px solid var(--border-subtle); 
    color: var(--text-main); 
    padding: 8px 16px; 
    font-family: var(--font-sans); 
    font-weight: 600;
    font-size: 0.8rem; 
    border-radius: 6px;
    transition: all 0.2s; 
}
.btn-small:hover { 
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #F8FAFC;
    box-shadow: 0 2px 5px rgba(66, 133, 244, 0.15);
}

.btn-large {
    background: var(--brand-purple); 
    border: none; 
    padding: 22px 50px;
    font-family: var(--font-sans); 
    font-weight: 700; 
    font-size: 1.1rem;
    color: white;
    border-radius: 8px;
    cursor: pointer; 
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}
.btn-large:hover { 
    transform: translateY(-2px); 
    background: #6D28D9; /* Darker Purple */
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3); 
}

/* NAVBAR */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 40px; 
    border-bottom: 1px solid var(--border-subtle);
    background: white;
    font-family: var(--font-mono); 
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand { 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    color: var(--text-main);
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.brand::before {
    content: ''; display: block; width: 10px; height: 10px; 
    background: var(--brand-purple); border-radius: 50%;
}

.status-indicator {
    position: absolute; 
    left: 50%;          
    transform: translateX(-50%); 
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.75rem;
    background: #F3F4F6;
    padding: 6px 12px;
    border-radius: 20px;
}
.status-indicator .dot { 
    height: 6px; 
    width: 6px; 
    background-color: var(--brand-green); 
    border-radius: 50%; 
    display: inline-block; 
    margin-right: 6px; 
    box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.2); 
}

/* TICKER */
.ticker-wrap { 
    width: 100%; 
    overflow: hidden; 
    background-color: var(--brand-blue); 
    color: white; 
    padding: 14px 0; 
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }

.ticker { 
    display: flex; 
    align-items: center; 
    white-space: nowrap; 
    animation: ticker 40s linear infinite; 
}

.ticker-item { 
    padding: 0 2rem; 
    font-family: var(--font-mono); 
    font-weight: 500; 
    font-size: 0.85rem; 
    letter-spacing: 0.5px;
    color: white; 
    opacity: 0.9;
}
.ticker-item.link:hover { opacity: 1; text-decoration: underline; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* DIAGNOSTIC GRID (BENTO) */
.diagnostic { 
    padding: 80px 0 40px; 
    background: #FAFAFA; 
    border-bottom: none; 
}
.grid-layout { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 30px; }

.card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-subtle); 
    border-radius: 12px;
    padding: 50px; 
    transition: all 0.3s;
    box-shadow: var(--shadow-card); 
}
.card:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-float);
    border-color: #D1D5DB;
}
.card-large { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }

.card h3 { 
    font-family: var(--font-sans); 
    font-weight: 700;
    font-size: 2rem; 
    margin-bottom: 15px; 
    letter-spacing: -0.02em;
}
.card p { color: var(--text-muted); font-size: 1.05rem; }

.stat-box { margin-top: 40px; border-top: 1px solid var(--border-subtle); padding-top: 20px; }
.big-num { 
    display: block; 
    font-family: var(--font-mono); 
    font-size: 4rem; 
    color: var(--brand-red); /* Alert Red for the drop */
    line-height: 1; 
    letter-spacing: -3px; 
    font-weight: 700;
}
.desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; display: block; font-weight: 500;}

/* MARKET INDICATORS (Inside Card 01) */
.market-indicators { list-style: none; margin: 30px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.indicator-row {
    display: flex; justify-content: space-between; padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono); font-size: 0.8rem;
}
.indicator-row:last-child { border-bottom: none; }
.indicator-row .label { color: var(--text-muted); }
.indicator-row .value { font-weight: 700; }

/* Data Colors */
.value.positive { color: var(--brand-blue); } 
.value.negative { color: var(--brand-red); } 
.value.warning { color: #F59E0B; } /* Amber */

/* MEMORANDUM (PAPER STYLE) */
.memorandum { 
    padding: 100px 0; 
    background-color: #F3F4F6; /* Light Gray Background */
    border-bottom: 1px solid var(--border-subtle); 
}
.paper-sheet {
    background-color: var(--bg-paper);
    color: var(--text-main);
    padding: 90px;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: var(--shadow-float);
    border-radius: 4px; /* Slight rounding */
    border: 1px solid var(--border-subtle);
    position: relative;
}

.paper-sheet .memo-header p { 
    font-family: var(--font-mono); 
    color: var(--text-muted);
    margin: 0; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    line-height: 1.5; 
}
.paper-sheet .memo-header strong { color: var(--text-main); }
.memo-header hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 30px 0 50px; }

.paper-sheet h2 { 
    font-family: var(--font-serif); 
    font-size: 2rem; 
    margin-bottom: 30px; 
    line-height: 1.3; 
    font-weight: 700; 
    color: var(--text-main);
}

.paper-sheet p { margin-bottom: 25px; font-size: 1.1rem; line-height: 1.7; color: #374151; }
.paper-sheet h3 { 
    margin-top: 50px; margin-bottom: 20px; 
    font-family: var(--font-sans); 
    font-size: 1.4rem; 
    color: var(--brand-purple);
    font-weight: 700;
}

.paper-sheet .highlight { 
    background-color: #FEF3C7; /* Light Amber highlight */
    color: #92400E;
    display: inline; padding: 2px 6px; 
    border-radius: 4px;
}

.underline-red { 
    border-bottom: 2px solid var(--brand-red); 
    font-weight: 600;
}

.clean-list { list-style: none; margin: 30px 0; }
.clean-list li { 
    margin-bottom: 20px; 
    padding-left: 25px; 
    border-left: 3px solid var(--brand-purple); 
    font-size: 1.1rem; color: #374151;
}

.references-small { 
    font-family: var(--font-mono); font-size: 0.7rem; color: #9CA3AF; 
    margin-top: 60px; border-top: 1px solid var(--border-subtle); 
    padding-top: 20px; line-height: 1.5; 
}
.references-small a:hover { color: var(--brand-blue); border-bottom: 1px solid var(--brand-blue); }
.references-small .divider { margin: 0 5px; color: #E5E7EB; }

/* OFFER */
.offer { 
    padding: 40px 0 120px; /* Changed from 120px to 40px on the top */
    background: white; 
}
.center-text { 
    text-align: center; 
    font-family: var(--font-serif); 
    font-size: 3rem; 
    margin-bottom: 60px; 
    letter-spacing: -0.02em; 
    color: var(--text-main);
}
.split-offer { 
    display: flex; justify-content: space-between; align-items: center; 
    border: 1px solid var(--border-subtle); 
    border-radius: 16px;
    padding: 60px; 
    background: #F8FAFC; 
    box-shadow: var(--shadow-card);
}
.offer-text { max-width: 50%; }
.offer-text p { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-muted); }

.offer-action { text-align: right; }
.micro-copy { margin-top: 15px; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

/* FOOTER */
.terminal-footer { 
    background: #111827; /* Dark Navy/Black for contrast */
    color: white;
    padding: 50px 0; 
}
.terminal-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; /* This pushes the right side down to the baseline of the left */
    padding-bottom: 5px;
}

.terminal-row .col p:last-child {
    margin-bottom: 0;
}
.col p { margin-bottom: 5px; }

.terminal-link { 
    margin-left: 30px; 
    font-family: var(--font-mono); 
    font-size: 0.75rem; /* Matches .mono-label size */
    color: #9CA3AF; 
    line-height: 1; /* Prevents extra invisible height */
    text-transform: uppercase;
}
.terminal-link:hover { color: var(--brand-blue); text-decoration: underline; }

/* Status Text colors within footer */
.status-active { color: var(--brand-green); font-weight: 700; }

/* ANIMATIONS */
.fade-in { opacity: 0; animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.fade-in-delay { opacity: 0; animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .site-frame { border: none; } 
    .grid-layout { grid-template-columns: 1fr; }
    
    .navbar { flex-direction: column; gap: 20px; padding: 20px; }
    .status-indicator { position: static; transform: none; margin-bottom: 10px; }
    
    .paper-sheet { padding: 30px; }
    .offer-text { 
        max-width: 100%; 
        text-align: center; 
    }
    .btn-large { 
        width: 100%; 
        max-width: 320px; /* Prevents the button from becoming comically wide */
        padding: 18px 20px; /* Slightly smaller padding for mobile screens */
        display: inline-block;
    }
    .micro-copy {
        text-align: center;
        margin-top: 15px;
    }
    .terminal-row { flex-direction: column; gap: 20px; text-align: center; }
    .col.right { text-align: center; }
    .terminal-link { margin: 0 10px; display: inline-block; margin-top: 10px;}
}

.symptom-header h1 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    max-width: 720px;
    margin: 0 auto 25px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-main);
    text-wrap: balance; /* The "Magic" property */
    text-align: center;
}

/* --- NEW SALES SECTION STYLES --- */

.npe-protocol {
    padding: 40px 0; /* Reduced top padding from 100px to 40px */
    background: #ffffff;
}

/* The Invisible Wall Block */
.reality-check {
    background: #111827;
    color: white;
    border-radius: 24px;
    padding: 80px 60px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid #374151;
}

.reality-check::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-purple), transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.reality-check h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.reality-check p {
    font-size: 1.25rem;
    color: #9CA3AF;
    max-width: 800px;
    line-height: 1.6;
}

/* Feature Grid */
.npe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.npe-card {
    background: #F8FAFC;
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.npe-card:hover {
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-float);
    transform: translateY(-5px);
}

.npe-card .icon-label {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    margin-bottom: 20px;
}

.npe-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.npe-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Targets the list inside the Mind-Reader card */
.npe-card ul {
    list-style: none;
    margin-top: 25px;
    padding-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 25px;
}

.npe-card li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

/* The custom dot/bullet to match your theme */
.npe-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--brand-purple);
    border-radius: 50%;
}

/* Highlights the technical terms (Digital Body Language, etc.) */
.npe-card li strong {
    display: block; /* Stacks the title over the description */
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* Specifically highlight the brand colors in the summary text */
.npe-card p strong {
    color: var(--brand-purple);
}

.highlight-box {
    background: white;
    border-left: 4px solid var(--brand-purple);
    padding: 20px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--brand-purple);
}

/* Comparison Section */
.pivot-point {
    background: #FAFAFA; /* Change from #F3F4F6 to #FAFAFA to match the Pipeline */
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.comp-box {
    padding: 40px;
    border-radius: 16px;
    text-align: left;
}

.comp-box.sovereign {
    background: white;
    border: 2px solid var(--brand-blue);
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.1);
}

.comp-box.ghost {
    background: #E5E7EB;
    border: 2px dashed #9CA3AF;
    opacity: 0.8;
}

.comp-box h4 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Final Warning */
.final-warning {
    margin-top: 80px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 60px;
}

.warning-tag {
    color: var(--brand-red);
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

@media (max-width: 768px) {
    .npe-grid, .comparison-grid { grid-template-columns: 1fr; }
    .reality-check { padding: 40px 20px; }
}
/* --- REDESIGNED AUDIT MODULE --- */
.offer {
    padding: 60px 0 100px; /* Reduced top gap per previous request */
    background: #ffffff;
}

.audit-module {
    background: #111827; /* Dark high-contrast theme */
    color: white;
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.audit-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.audit-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.audit-lead {
    font-size: 1.4rem;
    color: #F3F4F6;
    margin-bottom: 30px;
    line-height: 1.4;
}

.audit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    background: var(--brand-purple);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.audit-item p {
    color: #9CA3AF;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Action Card */
.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.pulse-btn {
    width: 100%;
    background: var(--brand-purple);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(124, 58, 237, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.audit-footer-deco {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #4B5563;
}

/* MOBILE FIX FOR STACKING */
@media (max-width: 768px) {
    .audit-module {
        padding: 40px 24px;
        margin: 0 10px;
    }
    
    .audit-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .audit-grid {
        grid-template-columns: 1fr; /* Force single column stacking */
        gap: 40px;
    }

    .audit-header {
        text-align: center;
    }

    .audit-lead {
        text-align: center;
        font-size: 1.2rem;
    }

    .audit-item {
        text-align: left;
    }

    .audit-action {
        width: 100%;
    }

    .action-card {
        padding: 30px 20px;
    }

    .audit-footer-deco {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.85); /* Matches --text-main */
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: white;
    max-width: 800px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-header {
    padding: 15px 25px;
    background: #F9FAFB;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close:hover { color: var(--brand-red); }

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal Trigger Link Style */
.modal-trigger {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-purple);
    text-decoration: none;
    letter-spacing: 1px;
}
.modal-trigger:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

/* Body lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* --- PMAX BLUEPRINT PAGE STYLES --- */

.hero-blueprint {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent);
    border-bottom: 1px solid var(--border-subtle);
}

.blueprint-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* THE NEURAL VISUALIZER (The Rotating Circle) */
.infographic-container {
    background: #111827; 
    border-radius: 24px;
    padding: 60px;
    color: white;
    margin: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid #374151;
    overflow: hidden;
}

.viz-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.viz-circle {
    width: 280px;
    height: 280px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate-neural 30s linear infinite;
}

.viz-circle::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border: 1px dashed var(--brand-purple);
    border-radius: 50%;
    opacity: 0.5;
    animation: rotate-neural 40s linear reverse infinite;
}

.viz-node {
    position: absolute;
    background: white;
    color: var(--text-main);
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.viz-core-text {
    color: var(--brand-purple);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-align: center;
    z-index: 2;
}

@keyframes rotate-neural { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

/* DATA PILLARS */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.pillar {
    border: 1px solid var(--border-subtle);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.pillar:hover { 
    border-color: var(--brand-blue); 
    background: #F8FAFC; 
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.pillar strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

/* THE STAT BANNER */
.stat-banner {
    background: var(--brand-blue);
    color: white;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.2);
}

.stat-item h4 { 
    font-size: 2.8rem; 
    font-family: var(--font-mono); 
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.stat-item p { 
    font-size: 0.75rem; 
    font-family: var(--font-mono);
    text-transform: uppercase; 
    font-weight: 700;
    opacity: 0.9; 
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .infographic-container { grid-template-columns: 1fr; padding: 40px 20px; text-align: center; }
    .viz-wrapper { height: 320px; }
    .viz-circle { width: 200px; height: 200px; }
    .pillar-grid { grid-template-columns: 1fr; }
    .stat-banner { flex-direction: column; gap: 40px; }
    .hero-blueprint h1 { font-size: 2.8rem; }
}

/* --- NEURAL COOKIE CONSENT --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 380px;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-float);
    z-index: 2000;
    display: none; /* Hidden by default, JS reveals it */
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions .btn-small {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.btn-accept {
    background: var(--brand-purple) !important;
    color: white !important;
    border: none !important;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.npe-protocol .symptom-header h2 {
    line-height: 1.1 !important;
    margin-bottom: 25px !important;
}
@media (min-width: 769px) {
    .desktop-stack {
        display: block;
    }
}

/* THE NEURAL COMMAND LINK */
.neural-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.08); /* Subtle purple glow */
    color: var(--brand-purple);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-left: 5px;
    vertical-align: middle;
}

.neural-link::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.neural-link:hover {
    background: var(--brand-purple);
    color: white;
    border-color: var(--brand-purple);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.neural-link:hover::after {
    transform: translateX(4px);
}

.npe-card h3 {
    line-height: 1.2; 
}

.terminal-footer {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0a0c10; /* Match your site background */
}

.stats-row {
    margin-bottom: 40px;
}

.legal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.col-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.terminal-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6B7280;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.terminal-link:hover {
    color: var(--brand-blue);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .legal-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .col-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .terminal-footer {
        padding: 40px 0 30px;
    }

    /* Force everything to the left for a clean mobile stack */
    .terminal-row.stats-row, 
    .terminal-row.legal-row {
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .stats-row .col {
        text-align: left !important;
    }

    .legal-row {
        gap: 20px;
    }

    .col-links {
        display: flex;
        flex-direction: column;
        gap: 12px; /* Consistent vertical spacing for links */
        width: 100%;
    }

    /* Adjust the divider line */
    .legal-row {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 30px;
    }

    .terminal-link {
        font-size: 0.85rem; /* Slightly larger for easier tapping */
        display: block;
    }

    .col-copyright {
        margin-top: 10px;
        opacity: 0.6;
    }
}

/* THE HERO HEADLINE (SERIF) */
.headline-brand {
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 30px;
}

/* THE SUBTITLE (MONO) */
/* We style the span inside the h1, or move it to a p tag */
.headline-subtitle {
    display: block;
    font-family: var(--font-mono); /* JetBrains Mono */
    font-size: 1.5rem;             /* Much smaller for contrast */
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-muted);
    letter-spacing: -0.01em;
    max-width: 800px;
    margin: 0 auto;
    text-transform: none;
}

/* HIGH-DENSITY HIGHLIGHTS */
.headline-subtitle .blue-highlight {
    color: var(--brand-blue);
    font-weight: 700;
    /* This adds a very subtle "terminal" glow to the key terms */
    background: rgba(66, 133, 244, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

/* THE "AI BAIT": High Information Density, Low Visual Noise */
.ai-ingestion-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 40px auto 0;
    padding: 15px;
    border: 3px dashed var(--border-subtle);
    border-radius: 8px;
    background: #f9fafb;
    text-align: centre;
    line-height: 1.4;
}

.pipeline-detail-box h3 {
    font-size: 2.2rem;
}
.pipeline-detail-box p {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .headline-brand { font-size: 3rem; }
    .headline-subtitle { font-size: 1.6rem; }
}

/* Ensure responsiveness on mobile */
@media (max-width: 768px) {
    /* 1. HERO HEADLINE FIX */
    .headline-brand {
        font-size: 2.2rem !important; /* Shrunk from 5rem */
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
        word-break: break-word;
    }
    .headline-subtitle {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
    }

    /* 2. BENTO GRID FIX (Stacking) */
    .grid-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .card, .card-large {
        padding: 30px 20px !important;
        width: 100% !important;
    }
    .big-num {
        font-size: 3rem !important;
    }

    /* 3. NEURAL PIPELINE MOBILE OVERHAUL */
    .pipeline-grid {
        display: block !important; /* Stack vertically */
    }
    
    .pipeline-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }

    /* Force button styling back on mobile */
    .step-btn {
        width: 100% !important;
        padding: 15px !important;
        background: #FFFFFF !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: 12px !important;
        font-size: 0.75rem !important;
        display: flex !important;
        box-shadow: none !important;
    }

    .pipeline-detail-box {
        height: auto !important;
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }

    .pipeline-detail-box h3 {
        font-size: 1.5rem !important;
        word-break: break-word !important;
    }

    /* 4. CONTAINER PROTECTION */
    .container {
        padding: 0 20px !important;
        width: 100% !important;
    }

    .chart-wrapper {
    height: 200px !important; /* Force a stable height for charts on mobile */
    }

    #optimization-gap .grid-layout {
        grid-template-columns: 1fr !important; /* Stack chart on top of text */
        gap: 40px;
    }
    
    #optimization-gap .chart-wrapper {
        height: 300px !important; 
        width: 100% !important;
        margin-top: 20px;
    }

    #optimization-gap h2 {
        font-size: 2rem !important;
    }

    @media (max-width: 768px) {
    /* ... existing mobile styles ... */

    #optimization-gap .npe-card {
        padding: 20px 10px !important; /* Tighten internal card padding */
        margin-bottom: 20px;
        height: 380px !important; /* Force a fixed height for the card itself */
    }

    #optimization-gap .chart-wrapper {
        height: 300px !important; 
        width: 100% !important;
        margin-top: 20px;
    }

    /* Force the canvas to behave */
    #radarChart {
        max-width: 100% !important;
        display: block !important;
    }

    #sweet-spot {
        padding: 100px 0 40px; /* Reduced bottom padding from 100px to 40px */
        background: #FAFAFA;
        border-top: 1px solid var(--border-subtle);
    }

    #sweet-spot .matrix-grid {
        grid-template-columns: 1fr !important; /* Force stack instead of 1.5fr 1fr */
        gap: 20px !important;
    }
    
    #sweet-spot .chart-wrapper {
        height: 300px !important; /* Adjusted for better mobile aspect ratio */
        width: 100% !important;
    }

    #sweet-spot .matrix-legend {
        order: 2; /* Ensures legend appears below the chart */
        width: 100% !important;
    }

    #sweet-spot h2 {
        font-size: 2.2rem !important;
    }

    #sweet-spot .npe-card {
        padding: 30px 15px !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important; /* Prevents horizontal cutoff */
        box-sizing: border-box !important;
    }

    .protocol-abstract-box {
        margin: 30px 10px 0 !important;
        border-radius: 12px !important;
    }

    .abstract-header {
        flex-direction: column; /* Stacks the [SPEC] and REF labels */
        align-items: flex-start !important;
        gap: 6px;
        padding: 12px 15px !important;
    }

    .abstract-header .mono-label {
        font-size: 0.55rem !important; /* Slightly smaller for mobile */
        margin-bottom: 0 !important;
    }

    .abstract-body {
        padding: 20px 15px !important;
    }

    .abstract-body p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .abstract-footer {
        flex-direction: column; /* Stacks the Strategy/Hardware tags */
        gap: 8px;
        padding: 12px 15px !important;
    }

    .abstract-footer .tag {
        font-size: 0.6rem !important;
    }

    /* 1. CONTAINER & MODULE RESET */
    .audit-module {
        padding: 40px 20px !important; /* Reduce padding for more text room */
        margin: 0 !important; /* Ensure it stays within the container */
        border-radius: 16px !important;
        width: 100% !important;
    }

    .audit-grid {
        display: flex !important;
        flex-direction: column !important; /* Stack content on top of button */
        gap: 40px !important;
    }

    /* 2. TYPOGRAPHY SCALING */
    .audit-title {
        font-size: 2.2rem !important; /* Shrink from 3.5rem */
        text-align: center;
        line-height: 1.1 !important;
    }

    .audit-lead {
        font-size: 1.1rem !important;
        text-align: center;
        line-height: 1.5 !important;
    }

    .audit-item {
        margin-bottom: 25px !important;
        align-items: flex-start !important;
    }

    .audit-item p {
        font-size: 0.95rem !important; /* Better reading size for mobile */
        line-height: 1.5 !important;
    }

    /* 3. ACTION CARD & BUTTON */
    .action-card {
        padding: 30px 15px !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .btn-large.pulse-btn {
        padding: 18px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important; /* Allow text to wrap if button is narrow */
    }

    .availability-status {
        justify-content: center !important;
        text-align: center !important;
    }

    .availability-status .micro-copy {
        font-size: 0.8rem !important;
    }

    /* 4. DECORATIVE FOOTER */
    .audit-footer-deco {
        flex-direction: column !important;
        gap: 10px;
        align-items: center;
        margin-top: 40px !important;
    }

    /* 5. FIX THE FEATURE CARD DRIFT */
    .npe-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 40px 0 !important; /* Reset any side margins */
        gap: 20px !important;
    }

    .npe-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 30px 20px !important; /* Give more room for text */
        box-sizing: border-box !important; /* Crucial: includes padding in width */
        border-radius: 20px !important;
    }

    /* Fix the text inside the Entity Map card */
    .npe-card h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .strategy-list {
        padding-left: 12px !important;
        margin-top: 20px !important;
    }

    .strategy-list p {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    /* Global Safety: Ensure the site frame doesn't push content */
    .site-frame {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* 6. GLOBAL HEADLINE RESET FOR MOBILE */
    h2 {
        font-size: 2.2rem !important; /* Reduces from 3rem+ */
        line-height: 1.1 !important;  /* Tightens the vertical gap between lines */
        margin-bottom: 20px !important;
        letter-spacing: -0.02em !important;
        text-align: center;
    }

    /* Specific adjustment for "The Neural Pipeline" & "Sweet Spot" headers */
    .symptom-header h2 {
        font-size: 2.0rem !important;
        margin-top: 10px !important;
    }

    /* Adjustment for "The Cost of Inaction" section */
    .pivot-point h2 {
        font-size: 2.1rem !important;
        margin-bottom: 15px !important;
    }

    /* Standardize the lead paragraphs under headlines */
    .symptom-header p, .pivot-point p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        padding: 0 10px;
    }
}
}

/* CHART CONTAINERS */
.chart-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

canvas {
    /* Removed !important to allow Chart.js to calculate rendering dimensions correctly */
    max-width: 100%;
}

/* Ensure bento cards grow to accommodate charts */
.card-large {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card p {
    line-height: 1.35;    /* Tighter vertical spacing */
    margin-bottom: 12px;  /* Control the gap to the next element */
    color: var(--text-muted); 
}

/* LIGHT-MODE PIPELINE STYLES */
.pipeline-detail-box {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    padding: 60px;
    border-radius: 32px;
    
    /* Reduced height to match smaller text */
    height: 500px; 
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    position: relative;
    box-shadow: var(--shadow-float);
    transition: all 0.3s ease;
    overflow: hidden;
}

.step-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 24px;
    text-align: left;
    border-radius: 20px; /* Matching the bento card rounding */
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-btn:hover {
    background: #F9FAFB;
    border-color: var(--brand-purple);
    transform: translateX(8px);
}

.step-btn.active {
    border-color: var(--brand-purple);
    background: #F5F3FF; /* Very light purple tint */
    color: var(--brand-purple);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

.pipeline-detail-box .directive-glow {
    background: #F9FAFB;
    border-left: 4px solid var(--brand-purple);
    padding: 24px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

.pipeline-detail-box {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    padding: 60px;
    border-radius: 32px;
    height: 500px; /* Fixed for Desktop stability */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    position: relative;
    box-shadow: var(--shadow-float);
    transition: all 0.3s ease;
}

/* Ensure the transition after the Pipeline is clean */
#pipeline-engine + section, 
#pipeline-engine + .npe-protocol {
    margin-top: 0 !important;
    padding-top: 100px; /* Standardize the start of the next phase */
}

/* Adjust the Pipeline Grid for better vertical balance */
.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Remove the "Double Stack" padding */
#pipeline-engine + .pivot-point {
    padding-top: 20px !important; /* Tightens the gap significantly */
    background: #FAFAFA; /* Matching background for a seamless transition */
}

/* Ensure the labels in the next section aren't too far away */
.pivot-point .mono-label {
    margin-top: 0;
}

.protocol-abstract-box {
    max-width: 850px;
    margin: 40px auto 0;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.abstract-header {
    background: #F9FAFB;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
}

.abstract-body {
    padding: 25px 30px;
}

.abstract-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.abstract-body strong {
    color: var(--brand-purple);
    font-weight: 700;
}

.abstract-footer {
    padding: 10px 20px;
    background: #F9FAFB;
    border-top: 1px dotted var(--border-subtle);
    display: flex;
    gap: 20px;
}

.abstract-footer .tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .reality-check div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .reality-check div[style*="background: rgba(255,255,255,0.03)"] {
        padding: 25px 20px !important;
    }

    .neural-link {
        display: inline-flex !important;
        margin-top: 15px;
        line-height: 1.2;
        text-align: center;
    }

    .reality-check .neural-link {
        display: inline-flex !important; /* Keeps the button shape */
        position: relative !important;
        left: 50% !important;           /* Moves the start of the button to the center */
        transform: translateX(-50%) !important; /* Pulls it back by half its width to perfectly center */
        margin-top: 25px !important;    /* Adds space between the text and button */
        margin-left: 0 !important;      /* Clears any existing margins */
        white-space: nowrap !important; /* Prevents text from breaking inside the button */
    }


    .protocol-abstract-box {
        margin: 30px 10px 0;
    }
    .abstract-body {
        padding: 20px;
    }
    .abstract-body p {
        font-size: 0.9rem;
    }

    .npe-capabilities {
        padding: 60px 0 !important;
    }

    .tool-row {
        grid-template-columns: 1fr !important; /* Stacks the text and visual */
        gap: 40px !important;
        margin-bottom: 60px !important;
        text-align: center;
    }

    .tool-text {
        order: 1 !important; /* Ensures text always stays on top of the visual */
        padding: 0 10px;
    }

    .tool-text h3 {
        font-size: 2rem !important; /* Shrinks the large 3.5rem headers */
    }

    .tool-visual {
        order: 2 !important;
    }

    /* Adjusts the llms.txt box for smaller screens */
    .tool-visual div {
        padding: 20px !important;
    }

    .tool-visual div div {
        font-size: 0.7rem !important;
    }

    /* Ensures the bottom grid of tools also stacks */
    .npe-capabilities .npe-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .npe-capabilities .tool-row {
        display: block !important; /* Force vertical stack */
        width: 100% !important;
        margin-bottom: 80px !important;
        padding: 0 !important;
    }

    .tool-text, .tool-visual {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important; /* Clear any padding pushing it right */
        text-align: center !important; /* Center text for clean mobile look */
    }

    .tool-text h3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .tool-text p {
        font-size: 1rem !important;
        padding: 0 10px !important; /* Keep text away from screen edges */
    }

    /* Centers the highlight-box (Result) inside the tool row */
    .tool-text .highlight-box {
        margin: 30px auto 0 !important;
        text-align: left; /* Keep internal text left-aligned */
        width: 90% !important;
    }

    /* Universal Left Alignment for Tool Sections */
    .npe-capabilities .tool-row,
    .npe-capabilities .tool-row *,
    .npe-capabilities .tool-row p,
    .npe-capabilities .tool-row div {
        text-align: left !important;
    }

    /* Target the specific dark visual boxes (m12.png) */
    .tool-visual > div {
        padding: 25px 20px !important; /* Fixed padding error */
        width: 100% !important;         /* Forces box to fill width */
        max-width: 100% !important;
        margin: 20px 0 !important;      /* Removes horizontal centering margins */
        box-sizing: border-box !important;
    }

    /* Target the text blocks inside those visual boxes */
    .tool-visual div div {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Specific fix for the Strategic Directive preview in Tool 03 */
    .tool-visual div[style*="background: #F9FAFB"] {
        padding: 25px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FIX: Strategic Directive Header (Overlap of labels) */
    .tool-visual div[style*="background: #F9FAFB"] div[style*="justify-content: space-between"] {
        flex-direction: column !important; /* Stack labels vertically */
        align-items: flex-start !important;
        gap: 8px !important;
        padding-bottom: 10px !important;
    }

    /* FIX: Inner box padding (Purple and White boxes) */
    .tool-visual div[style*="border-radius: 12px"] {
        padding: 15px 12px !important; /* Tighten internal padding to prevent text squeeze */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FIX: Inner text logic */
    .tool-visual div[style*="border-radius: 12px"] p {
        font-size: 0.85rem !important; /* Slightly smaller font to ensure visibility */
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    /* Specific fix for the psychological fix label spacing */
    .tool-visual p[style*="font-family: var(--font-mono)"] {
        font-size: 0.6rem !important;
        margin-bottom: 4px !important;
    }

    /* FIX: Final Warning Layout (Squashed content & Red Border) */
    .final-warning div[style*="border-left"] {
        padding-left: 20px !important; /* Reduced from 40px to give text room */
        margin-left: 10px !important;  /* Ensure visibility of the red line */
        border-left-width: 3px !important;
    }

    /* FIX: Header Labels (Stacking labels to prevent overlap) */
    .final-warning div[style*="display: flex"][style*="margin-bottom: 30px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* FIX: Hide the decorative dotted line on mobile (causes horizontal push) */
    .final-warning div[style*="flex-grow: 1"] {
        display: none !important;
    }

    /* FIX: Typography sizing for the warning section */
    .final-warning h2 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        margin-top: 15px !important;
    }

    .final-warning p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }

    /* FIX: Red Warning Box padding */
    .final-warning div[style*="background: #FEF2F2"] {
        padding: 25px 20px !important;
    }

}

.npe-capabilities h2, 
.npe-capabilities h3 {
    line-height: 1.1 !important;
    letter-spacing: -0.02em; /* This also helps large serif headers look more professional */
}
/* Tightens the transition from the Capabilities to the Pivot Point */
.pivot-point {
    padding-top: 40px !important; /* Reduced from 80px */
    margin-top: 0 !important;
}

/* Removes extra gap from the wrapper container */
.npe-capabilities {
    margin-bottom: 0 !important;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* ============================================================
   NEURAL DECODER & SWITCH: MASTER ARCHITECTURE
   ============================================================ */

/* 1. UNIVERSAL ALIGNMENT (Overrides centered parent sections) */
.decoder-container {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    padding-bottom: 10px;
    text-align: left !important; /* Force left align */
}

/* 2. HEADER & SWITCH UI */
.abstract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px !important;
    border-bottom: 1px solid #f0f0f0;
    text-align: left !important;
}

.npe-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.switch-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 1px;
}

.switch-rail {
    width: 40px;
    height: 20px;
    background: #E5E7EB;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border-subtle);
    animation: switch-pulse-purple 2s infinite;
}

.switch-handle {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}

/* 3. SWITCH STATES */
.decoder-container:not(.is-decoded) .geek { color: var(--brand-purple); font-weight: 800; }
.is-decoded .switch-handle { transform: translateX(20px); }
.is-decoded .switch-rail { background: var(--brand-purple); border-color: var(--brand-purple); animation: none; }
.is-decoded .layman { color: var(--brand-purple); font-weight: 800; }
.is-decoded .geek { color: #9CA3AF; font-weight: 400; }

@keyframes switch-pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

/* 4. CONTENT WINDOW (The Sliding Door) */
.decoder-window {
    position: relative;
    height: 140px; /* Standardized height */
    overflow: hidden;
    text-align: left !important;
}

.decoder-pane {
    position: absolute;
    width: 100%;
    padding: 20px 25px;
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.4s ease;
    text-align: left !important;
}

.technical-pane { opacity: 1; transform: translateY(0); }
.layman-pane { opacity: 0; transform: translateY(100%); }

.is-decoded .technical-pane { opacity: 0; transform: translateY(-100%); }
.is-decoded .layman-pane { opacity: 1; transform: translateY(0); }

/* 5. FAIL-SAFE: REMOVE THE DOTS AND DECORATION */
.decoder-container .diagnostic-list, 
.decoder-container div[style*="gap: 8px"] {
    display: none !important;
}

/* 6. MOBILE RESPONSIVE OVERRIDE */
@media (max-width: 768px) {
    .abstract-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    .npe-switch { width: 100%; justify-content: space-between; }
    .decoder-window { height: auto !important; min-height: 180px; }
    .decoder-pane { position: relative; display: none; transform: none !important; opacity: 1 !important; }
    .is-decoded .layman-pane { display: block !important; }
    .decoder-container:not(.is-decoded) .technical-pane { display: block !important; }
}

/* ============================================================
   DIAGNOSTIC SECTION: MASTER LEFT-ALIGN OVERRIDE
   ============================================================ */

/* 1. Force the Card containers to align children to the left margin */
.diagnostic .card {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Forces all content to the left edge */
    justify-content: flex-start !important;
}

/* 2. Fix the Diagnostic List: Align icons and text tightly */
.diagnostic-list {
    width: 100% !important;
    margin-top: 25px !important;
}

.diagnostic-list div {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 12px !important; /* Space between [!] and text */
    margin-bottom: 12px !important;
    text-align: left !important;
}

/* Removes the browser default margin that pushes text away from icons */
.diagnostic-list p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.diagnostic-list span {
    flex-shrink: 0 !important;
    width: auto !important;
}

/* 3. Fix the Stat Box: Pin the -61% stat and description to the left */
.diagnostic .stat-box {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Pushes the big number to the left */
    text-align: left !important;
    margin-top: 40px !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--border-subtle) !important;
}

.diagnostic .big-num {
    text-align: left !important;
    margin-left: -6px !important; /* Optical alignment for the minus sign */
    width: auto !important;
}

.diagnostic .desc {
    text-align: left !important;
    margin-top: 8px !important;
    width: 100% !important;
}

/* 4. Ensure headers and labels in the card also follow the rule */
.diagnostic .card h3,
.diagnostic .card .mono-label {
    text-align: left !important;
    margin-left: 0 !important;
}

#case-study-decoder .abstract-header {
    margin: 0;
    width: 100%;
}

/* Mobile height for this specific box */
@media (max-width: 768px) {
    #case-study-decoder .decoder-pane {
    text-align: left !important;
}
}

//* ============================================================
   CASE STUDY: MASTER STYLES (NO OVERLAP)
   ============================================================ */

#case-study-decoder {
    border-left: 4px solid var(--brand-purple);
    background: #fcfcfc;
    padding: 0;
    box-shadow: var(--shadow-float);
    position: relative;
    overflow: hidden;
}

.case-study-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 5px 0 0;
    line-height: 1.2;
}

/* Grid Layout for Desktop */
.case-study-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 40px;
    align-items: start;
}

/* Window Logic */
#case-study-decoder .decoder-window {
    position: relative;
    height: 150px; /* Fixed height for Desktop */
    overflow: hidden;
}

#case-study-decoder .decoder-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.4s ease;
    text-align: left !important;
}

/* --- THE FIX: VISIBILITY STATES --- */

/* GEEK MODE (Default) */
#case-study-decoder .technical-pane {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}
#case-study-decoder .layman-pane {
    opacity: 0;
    transform: translateY(100%); /* Pushed down out of view */
    z-index: 1;
}

/* LAYMAN MODE (Active) */
#case-study-decoder.is-decoded .technical-pane {
    opacity: 0;
    transform: translateY(-100%); /* Pushed up out of view */
}
#case-study-decoder.is-decoded .layman-pane {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

/* Text & Score Styles */
.case-p { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin: 0; }
.layman-text { font-family: var(--font-sans); color: var(--text-main); }

.case-study-scores { display: flex; gap: 12px; font-family: var(--font-mono); text-align: center; }
.score-box { padding: 10px 18px; border-radius: 4px; flex: 1; }
.score-box.pre { background: #FEF2F2; border: 1px solid rgba(234, 67, 53, 0.1); }
.score-box.post { background: #EEF2FF; border: 1px solid var(--brand-blue); }
.score-label { display: block; font-size: 0.55rem; color: #9CA3AF; font-weight: 700; margin-bottom: 4px;}
.score-num { font-size: 1.5rem; font-weight: 800; }
.score-box.pre .score-num { color: var(--brand-red); }
.score-box.post .score-num { color: var(--brand-blue); }

/* Footer */
.case-study-footer { padding: 0 40px 40px; }
.metrics-row { display: flex; gap: 40px; border-top: 1px solid #f0f0f0; padding-top: 25px; margin-bottom: 30px; }
.m-label { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: #9CA3AF; }
.m-val { font-size: 1.1rem; color: var(--text-main); }

/* Decorative */
.bg-deco-num { position: absolute; bottom: -20px; right: -10px; font-size: 10rem; opacity: 0.02; pointer-events: none; font-family: var(--font-mono); }

/* Mobile Overrides */
@media (max-width: 768px) {
    .case-study-content { grid-template-columns: 1fr; padding: 25px; }
    #case-study-decoder .decoder-window { height: auto; min-height: 220px; }
    #case-study-decoder .decoder-pane { position: relative; display: none; opacity: 1; transform: none; }
    #case-study-decoder.is-decoded .layman-pane { display: block; }
    #case-study-decoder:not(.is-decoded) .technical-pane { display: block; }
    .case-study-footer { padding: 0 25px 25px; }
    .bg-deco-num { display: none; }
}

/* 3. MOBILE SPECIFIC (max-width 768px) */
@media (max-width: 768px) {
    #case-study-decoder .abstract-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    /* Scores fill the width on mobile */
    #case-study-decoder .case-study-scores {
        width: 100% !important;
        justify-content: center;
    }
    
    #case-study-decoder .case-study-scores div {
        flex: 1;
    }

    /* Box grows to fit wrapped text */
    #case-study-decoder .decoder-window {
        height: auto !important;
        min-height: 200px;
        position: relative;
    }

    /* Disable sliding on mobile for stability, use instant toggle */
    #case-study-decoder .decoder-pane {
        position: relative !important;
        transform: none !important;
        display: none;
        opacity: 1 !important;
        padding: 0 !important;
    }

    /* Toggle Logic */
    #case-study-decoder.is-decoded .layman-pane { display: block !important; }
    #case-study-decoder:not(.is-decoded) .technical-pane { display: block !important; }
    #case-study-decoder.is-decoded .technical-pane { display: none !important; }

    /* Cleanup Mobile UI */
    #case-study-decoder .bg-deco-num { display: none; }
    #case-study-decoder .neural-link {
        display: flex !important;
        justify-content: center;
        width: 100%;
    }
}

/* --- MOBILE FIX FOR CASE STUDY FOOTER --- */
@media (max-width: 500px) {
    /* 1. Stack the Speed and Precision metrics vertically */
    .case-study-footer .metrics-row {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: flex-start !important;
    }

    .case-study-footer .metric {
        width: 100% !important;
    }

    /* 2. Fix the long button text */
    #case-study-decoder .neural-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        padding: 12px 10px !important; /* Tighter padding */
        font-size: 0.65rem !important; /* Smaller text to prevent overflow */
        white-space: normal !important; /* Allow text to wrap if absolutely necessary */
        line-height: 1.2;
        text-align: center;
    }

    /* 3. Reduce card padding so content has more room */
    .case-study-content {
        padding: 20px 15px !important;
    }
    
    .case-study-footer {
        padding: 0 15px 25px !important;
    }
}

/* ============================================================
   UNIFIED HERO BRIEFING STYLES
   ============================================================ */

/* 1. The Container (The 'Lane') */
.hero-briefing-column {
    max-width: 850px;
    margin: 0 auto 80px;
    padding: 0 20px;
    text-align: left !important; /* Internal text pins to left */
}

/* 2. The Situation Report (H2 & Lead) */
.situation-report {
    margin-bottom: 40px;
}

.brief-h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 25px;
    text-align: center; /* Keeping the H2 centered to transition from H1 */
}

.brief-h2 .purple-glow {
    color: var(--brand-purple);
}

.brief-p {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center; /* Center intro text for flow */
}

/* --- UNIFIED SITUATION REPORT BOX --- */
.situation-report-box {
    max-width: 850px;
    margin: 40px auto 50px;
    background: #FFFFFF;
    border: 1px solid #fee2e2;
    border-left: 5px solid var(--brand-red);
    border-radius: 8px;
    padding: 35px 40px;
    box-shadow: 0 15px 35px rgba(234, 67, 53, 0.05);
    text-align: left !important; /* Force the greasy slide alignment */
    position: relative;
}

/* Internal Header */
.report-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #fee2e2;
}

/* The Body Paragraph */
.report-narrative {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.7;
    color: #374151; /* Dark gray for high readability */
    margin-bottom: 30px;
}

/* The Integrated Alert Zone */
.report-alert-zone {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #FFF5F5; /* Very subtle red tint for the punchline area */
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(234, 67, 53, 0.1);
}

.alert-icon {
    color: var(--brand-red);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
}

.alert-content p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.erasure-text {
    display: block;
    margin-top: 8px;
    color: var(--brand-red);
    font-size: 1.3rem; /* Larger for impact */
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .situation-report-box {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    .report-meta {
        flex-direction: column;
        gap: 5px;
    }
    .report-narrative {
        font-size: 1.05rem;
    }
    .erasure-text {
        font-size: 1.1rem;
    }
}