/* ================= CSS VARIABLES ================= */
:root {
    --bg-color: #FBFBF9; /* Warm, academic paper off-white */
    --text-primary: #0F172A; /* Slate 900 - Softer than black */
    --text-secondary: #475569; /* Slate 600 */
    --accent-blue: #2563EB; /* Vibrant Electric Blue */
    --accent-blue-hover: #1D4ED8;
    --accent-amber: #D97706; /* Warm academic amber/gold */
    --border-light: #E2E8F0;
    
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    
    --radius: 8px;
    --max-width: 1100px;
    --reading-width: 760px;
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 4rem 0;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, .manifesto-title {
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; margin-top: 2rem;}
h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }

p { margin-bottom: 1.5rem; color: var(--text-secondary); }
ul, ol { margin-bottom: 1.5rem; padding-left: 2rem; color: var(--text-secondary); }
li { margin-bottom: 0.5rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-section { margin-bottom: 4rem; }
.mt-section { margin-top: 4rem; }

/* ================= BUTTONS & LINKS ================= */
.btn-primary, .btn-secondary, .nav-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary { background-color: var(--accent-blue); color: white; }
.btn-primary:hover { background-color: var(--accent-blue-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }

.btn-secondary { background-color: transparent; color: var(--text-primary); border: 2px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--text-primary); }

.text-link { color: var(--accent-blue); font-weight: 600; text-decoration: none; font-size: 1.125rem; }
.text-link:hover { text-decoration: underline; }

/* ================= NAVIGATION ================= */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(251, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span { color: var(--accent-blue); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-blue); }

.nav-btn { padding: 0.5rem 1.25rem; background-color: var(--text-primary); color: white; font-size: 0.9rem; }
.nav-btn:hover { background-color: var(--accent-blue); transform: none; box-shadow: none; }

/* ================= PAGE 1: HOME COMPONENTS ================= */
.hero { padding: 4rem 0 6rem; text-align: center; }
.hero-content { max-width: 800px; }
.sub-headline { font-size: 1.25rem; margin-bottom: 2.5rem; color: var(--text-secondary); }
.hero-ctas { display: flex; justify-content: center; gap: 1rem; }

.social-proof { text-align: center; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 2rem 0; margin-bottom: 6rem; background-color: white; }
.social-proof p { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 1rem; }
.logos-placeholder span { font-family: monospace; color: #94A3B8; background: #F1F5F9; padding: 0.5rem 1rem; border-radius: 4px; }

.two-col-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 6rem; }
.card { background: white; padding: 3rem; border-radius: var(--radius); border: 1px solid var(--border-light); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.card-header { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: #94A3B8; }
.card-header.highlight { color: var(--accent-blue); }
.solution-card { border-top: 4px solid var(--accent-blue); }
.problem-card { border-top: 4px solid var(--accent-amber); }

.core-insight { background-color: var(--text-primary); color: white; padding: 6rem 0; margin-bottom: 6rem; }
.core-insight h2 { color: white; font-size: 3rem; max-width: 800px; margin: 0 auto 2rem; }
.signature-line { color: #94A3B8; font-size: 1.25rem; font-style: italic; font-family: var(--font-serif); }

.proof-teaser { max-width: 700px; margin-bottom: 6rem; }
.cta-banner { background-color: #EFF6FF; padding: 5rem 0; border-top: 1px solid #BFDBFE; border-bottom: 1px solid #BFDBFE; }

/* ================= PAGE 2: MANIFESTO COMPONENTS ================= */
.reading-layout { max-width: var(--reading-width); margin: 0 auto; }
.kicker { text-transform: uppercase; font-weight: 700; letter-spacing: 1px; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; }
.manifesto-title { font-size: 4rem; margin-bottom: 4rem; border-bottom: 2px solid var(--text-primary); padding-bottom: 1rem; }
.manifesto-block { margin-bottom: 3rem; }
.statement { font-size: 1.5rem; font-weight: 600; color: var(--accent-blue); font-family: var(--font-serif); }
.lucid-steps { list-style-type: decimal; background: white; padding: 2rem 2rem 2rem 3rem; border-radius: var(--radius); border: 1px solid var(--border-light); }
.lucid-steps li { margin-bottom: 1rem; font-size: 1.1rem; }

/* ================= PAGE 3 & 4 COMPONENTS ================= */
.clean-list { list-style-type: none; padding-left: 0; }
.clean-list li { padding-left: 1.5rem; position: relative; margin-bottom: 1rem; }
.clean-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-blue); font-weight: bold; }

.divider { border: 0; height: 1px; background: var(--border-light); margin: 4rem 0; }
.trap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.trap-card { background: white; padding: 1.5rem; border: 1px solid var(--border-light); border-radius: var(--radius); }
.trap-card h4 { color: var(--accent-amber); }

.split-results { margin-top: 2rem; margin-bottom: 0; }
.result-block { padding: 2rem; border-radius: var(--radius); }
.result-block.bad { background: #FFF7ED; border: 1px solid #FFEDD5; }
.result-block.good { background: #F0FDF4; border: 1px solid #DCFCE7; }

.comparison-box { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.comp-item { background: white; padding: 1.5rem; border: 1px solid var(--border-light); border-radius: var(--radius); display: flex; align-items: center; gap: 2rem; }
.comp-item p { margin: 0; font-family: var(--font-serif); font-size: 1.1rem;}
.highlight-box { border-color: var(--accent-blue); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.badge.gray { background: #F1F5F9; color: #475569; }
.badge.blue { background: var(--accent-blue); color: white; }

.guarantee-list { margin-top: 2rem; }
.guarantee-item { margin-bottom: 2rem; padding-left: 2rem; border-left: 3px solid var(--accent-blue); }
.guarantee-item h4 { margin-bottom: 0.25rem; }
.rounded-card { border-radius: var(--radius); padding: 4rem; }

/* ================= FOOTER ================= */
footer { background-color: white; border-top: 1px solid var(--border-light); padding: 4rem 0 2rem; margin-top: auto; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent-blue); }
.footer-credit { font-size: 0.875rem; color: var(--text-secondary); max-width: 600px; line-height: 1.8; }
.idealab-link { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--text-primary); transition: color 0.2s; }
.idealab-link:hover { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.footer-address { font-size: 0.8rem; margin-top: 0.5rem; color: #94A3B8; }
.hidden-diagnostic { font-size: 0.7rem; color: #CBD5E1; text-decoration: none; align-self: flex-end; }
.hidden-diagnostic:hover { color: var(--text-secondary); }

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-links { display: none; }
    .two-col-section, .trap-cards { grid-template-columns: 1fr; gap: 1.5rem; }
    .comp-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .hero-ctas { flex-direction: column; }
}