/* ==================================================================
   ericbranch.dev -- Landing Page + Architecture Page
   Operational Intelligence Model
   #050A12 bg | #C9A84C gold | #0ED4A8 teal | #E8E0D0 warm white
   ================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #050A12;
    --surface: #0A1120;
    --surface-2: #0F1830;
    --surface-3: #141E38;
    --gold: #C9A84C;
    --gold-dim: #A68A3A;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --gold-soft: rgba(201, 168, 76, 0.08);
    --teal: #0ED4A8;
    --teal-dim: #0AAE8A;
    --teal-glow: rgba(14, 212, 168, 0.1);
    --warm: #E8E0D0;
    --warm-dim: rgba(232, 224, 208, 0.72);
    --warm-muted: rgba(232, 224, 208, 0.45);
    --border: rgba(232, 224, 208, 0.08);
    --border-hover: rgba(232, 224, 208, 0.15);
    --radius: 6px;
    --radius-lg: 10px;
    --max-w: 1100px;
    --max-w-narrow: 760px;
    --aoif-ingestion: #E8C547;
    --aoif-storage: #47B5E8;
    --aoif-intelligence: #E85C47;
    --aoif-synthesis: #9B59E8;
    --aoif-feedback: #9B7FDD;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    background: var(--bg);
    color: var(--warm);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -- NAV ---------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(5, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    color: var(--warm-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-brand:hover {
    color: var(--warm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--warm-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--warm); }

.nav-active {
    color: var(--warm) !important;
}

.nav-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 20px;
    position: relative;
}

.nav-mobile span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--warm);
    position: absolute;
    left: 0;
    transition: all 0.2s;
}

.nav-mobile span:nth-child(1) { top: 0; }
.nav-mobile span:nth-child(2) { top: 9px; }
.nav-mobile span:nth-child(3) { top: 18px; }

.nav-mobile.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-mobile.open span:nth-child(2) { opacity: 0; }
.nav-mobile.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* -- HERO --------------------------------------------------------- */
.section.hero {
    padding-top: 10rem;
    padding-bottom: 4rem;
}

.hero-headline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--warm);
    margin-bottom: 1.75rem;
    max-width: 740px;
}

.hero-sub {
    color: var(--warm-dim);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 1.25rem;
}

/* -- SECTIONS (shared) -------------------------------------------- */
.section {
    padding: 7rem 2rem;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-narrow {
    max-width: var(--max-w-narrow);
}

.section-eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-headline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--warm);
    margin-bottom: 1.75rem;
    max-width: 700px;
}

.section-body {
    color: var(--warm-dim);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 640px;
    margin-bottom: 1.25rem;
}

/* -- SECTION 2: OIM ----------------------------------------------- */
.oim {
    border-top: 1px solid var(--border);
}

/* Layer cards */
.oim-layers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2rem;
}

.oim-layer {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-bottom: none;
    position: relative;
    min-height: 280px;
}

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

.oim-layer-copy {
    min-width: 0;
}

.oim-layer-number {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-muted);
    margin-bottom: 0.75rem;
}

.oim-layer-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--warm);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.oim-layer-name .tm {
    font-size: 0.55em;
    vertical-align: super;
    line-height: 0;
    color: var(--warm-muted);
}

.oim-layer-body {
    color: var(--warm-dim);
    font-size: 0.95rem;
    line-height: 1.85;
    max-width: 580px;
}

/* Layer accent borders */
.oim-layer--1 { border-left: 2px solid var(--gold-dim); }
.oim-layer--2 { border-left: 2px solid var(--teal-dim); }
.oim-layer--3 { border-left: 2px solid rgba(232, 224, 208, 0.25); }

/* Per-layer bar visualization */
.oim-layer-viz {
    height: 260px;
    width: 100%;
}

.oim-layer-viz canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.6;
}

/* -- SECTION 3: WHAT THE MODEL PRODUCES --------------------------- */
.produces {
    border-top: 1px solid var(--border);
}

.produces .section-body {
    max-width: none;
}

/* -- SECTION 4: TWO CARDS ----------------------------------------- */
.cards-section {
    padding-top: 0;
    padding-bottom: 7rem;
}

.cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    text-decoration: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.card-label {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-muted);
    margin-bottom: 1rem;
}

.card-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.35rem;
    color: var(--warm);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--warm-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

.card-arrow {
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}

.card:hover .card-arrow {
    gap: 0.7rem;
}

/* -- SECTION 5: WHY THE MODEL EXISTS ------------------------------ */
.why {
    border-top: 1px solid var(--border);
}

.why .section-body {
    max-width: none;
}

/* -- SECTION 6: OPEN DOOR ----------------------------------------- */
.open-door {
    border-top: 1px solid var(--border);
    padding-bottom: 3rem;
}

.open-door .section-headline {
    max-width: 560px;
    margin-bottom: 3rem;
}

.chatbot-frame {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chatbot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: chatbot-pulse 2.5s ease-in-out infinite;
}

@keyframes chatbot-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.chatbot-header-text {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--warm-muted);
    letter-spacing: 0.06em;
}

.chatbot-body {
    flex: 1;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.chatbot-placeholder {
    color: var(--warm-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    max-width: 380px;
}

.chatbot-input-row {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

.chatbot-input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    color: var(--warm);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input::placeholder {
    color: var(--warm-muted);
}

.chatbot-input:focus {
    border-color: var(--border-hover);
}

.chatbot-send {
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    padding: 0 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot-send:hover {
    background: #D4B45A;
}

.chatbot-send:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* -- CHATBOT: ACTIVE CONVERSATION STATE --------------------------- */
.chatbot-active {
    max-height: 70vh;
}

.chatbot-active .chatbot-body {
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.chatbot-active .chatbot-body::-webkit-scrollbar {
    width: 4px;
}

.chatbot-active .chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-active .chatbot-body::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 2px;
}

/* -- CHATBOT: MESSAGES -------------------------------------------- */
.chatbot-msg {
    padding: 0.6rem 0;
    animation: chatbot-msg-in 0.25s ease;
}

@keyframes chatbot-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chatbot-msg-user {
    border-left: 2px solid var(--gold-dim);
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

.chatbot-msg-user .chatbot-msg-text {
    color: var(--warm);
    font-size: 0.9rem;
    line-height: 1.7;
}

.chatbot-msg-assistant {
    margin-bottom: 0.25rem;
}

.chatbot-msg-assistant .chatbot-msg-text {
    color: var(--warm-dim);
    font-size: 0.9rem;
    line-height: 1.85;
}

.chatbot-msg-assistant .chatbot-msg-text p {
    margin-bottom: 0.65rem;
}

.chatbot-msg-assistant .chatbot-msg-text p:last-child {
    margin-bottom: 0;
}

.chatbot-msg-assistant .chatbot-msg-text strong {
    color: var(--warm);
    font-weight: 600;
}

.chatbot-msg-assistant .chatbot-msg-text code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82em;
    background: var(--surface-2);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--warm);
}

.chatbot-msg-assistant .chatbot-msg-text a.chatbot-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    transition: border-color 0.2s;
}

.chatbot-msg-assistant .chatbot-msg-text a.chatbot-link:hover {
    border-color: var(--gold);
}

.chatbot-msg-system {
    text-align: center;
    padding: 0.5rem 0;
}

.chatbot-msg-system .chatbot-msg-text {
    color: var(--warm-muted);
    font-size: 0.82rem;
    font-style: italic;
}

/* -- CHATBOT: TYPING INDICATOR ------------------------------------ */
.chatbot-typing {
    display: flex;
    gap: 5px;
    padding: 0.75rem 0;
    align-items: center;
}

.chatbot-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-dim);
    animation: chatbot-bounce 1.4s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.25; }
    30% { transform: translateY(-5px); opacity: 0.9; }
}

/* -- CHATBOT: TEXTAREA -------------------------------------------- */
.chatbot-input {
    resize: none;
    overflow: hidden;
    min-height: 38px;
    max-height: 120px;
    line-height: 1.4;
}

/* -- FOOTER ------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.footer-nav a {
    color: var(--warm-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-trademarks {
    font-size: 0.68rem;
    color: var(--warm-muted);
    opacity: 0.5;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--warm-muted);
    opacity: 0.6;
    letter-spacing: 0.03em;
}

.footer-quote {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--warm-muted);
    opacity: 0.5;
    margin-top: 1rem;
}

/* -- SCROLL REVEAL ------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* -- RESPONSIVE --------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        padding-top: 8rem;
    }

    .oim-layer {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .oim-layer-viz {
        height: 200px;
    }

    .cards-row {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .nav-links { display: none; }
    .nav-mobile { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 18, 0.97);
        backdrop-filter: blur(12px);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .oim-layer {
        padding: 2rem 1.75rem;
    }

}

@media (max-width: 600px) {
    .hero { padding: 7rem 1.5rem 3rem; }
    .section { padding: 5rem 1.5rem; }

    .hero-headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .oim-layer {
        padding: 1.75rem 1.25rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}


/* ==================================================================
   ARCHITECTURE PAGE
   ================================================================== */

/* -- SECTION 1: AOIF LAYER EXPLORER ------------------------------ */
.arch-layers-section {
    padding: 8rem 2rem;
    padding-top: 10rem;
}

.arch-layers-inner {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
}

.arch-layers-headline {
    font-size: clamp(2.25rem, 4.2vw, 3.5rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--warm);
    margin-bottom: 1.75rem;
}

.arch-layers-intro {
    color: var(--warm-dim);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 3.5rem;
    max-width: 640px;
}

.arch-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-layer {
    border: 1px solid var(--border);
    border-bottom: none;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.arch-layer[data-color="ingestion"] { border-left: 2px solid rgba(232, 197, 71, 0.3); }
.arch-layer[data-color="storage"] { border-left: 2px solid rgba(71, 181, 232, 0.3); }
.arch-layer[data-color="intelligence"] { border-left: 2px solid rgba(232, 92, 71, 0.3); }
.arch-layer[data-color="synthesis"] { border-left: 2px solid rgba(155, 89, 232, 0.3); }

.arch-layer.open[data-color="ingestion"] { border-left-color: var(--aoif-ingestion); background: rgba(232, 197, 71, 0.02); }
.arch-layer.open[data-color="storage"] { border-left-color: var(--aoif-storage); background: rgba(71, 181, 232, 0.02); }
.arch-layer.open[data-color="intelligence"] { border-left-color: var(--aoif-intelligence); background: rgba(232, 92, 71, 0.02); }
.arch-layer.open[data-color="synthesis"] { border-left-color: var(--aoif-synthesis); background: rgba(155, 89, 232, 0.02); }

.arch-layer-header {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    text-align: left;
    transition: all 0.2s;
    color: inherit;
    font: inherit;
}

.arch-layer-header:hover {
    background: rgba(232, 224, 208, 0.02);
}

.arch-layer-num {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--warm-muted);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 2rem;
}

.arch-layer-titles { flex: 1; }

.arch-layer-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--warm);
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.arch-layer-sub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--warm-muted);
}

.arch-layer-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.arch-layer-toggle::before,
.arch-layer-toggle::after {
    content: '';
    position: absolute;
    background: var(--warm-muted);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.arch-layer-toggle::before {
    width: 12px; height: 1px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.arch-layer-toggle::after {
    width: 1px; height: 12px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.arch-layer.open .arch-layer-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.arch-layer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem 0 5.5rem;
}

.arch-layer.open .arch-layer-content {
    max-height: 600px;
    padding: 0 2rem 2.5rem 5.5rem;
}

.arch-layer-desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--warm-dim);
    margin-bottom: 1.5rem;
}

.arch-layer-example {
    background: rgba(232, 224, 208, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.arch-layer-example-label {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-muted);
    display: block;
    margin-bottom: 0.6rem;
}

.arch-layer-example p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--warm-dim);
}

.arch-layer-insight {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--warm);
    line-height: 1.6;
    opacity: 0.7;
}

.arch-accordion:has(.arch-layer.open) .arch-layer:not(.open) { opacity: 0.5; }
.arch-accordion:has(.arch-layer.open) .arch-layer:not(.open):hover { opacity: 0.8; }

/* -- SECTION 4: THE VALUE ----------------------------------------- */
.arch-value-section {
    border-top: 1px solid var(--border);
    padding: 8rem 2rem;
}

.arch-value-thesis {
    margin-top: 2.5rem;
    color: var(--warm);
    font-weight: 400;
}


/* -- ARCHITECTURE RESPONSIVE -------------------------------------- */
@media (max-width: 900px) {
    .arch-layers-section { padding: 7rem 2rem; padding-top: 8rem; }
    .arch-layer-content { padding: 0 1.5rem 0 3.5rem; }
    .arch-layer.open .arch-layer-content { padding: 0 1.5rem 2rem 3.5rem; }
}

@media (max-width: 600px) {
    .arch-layers-section { padding: 5rem 1.5rem; padding-top: 7rem; }
    .arch-layer-header { padding: 1.25rem 1.25rem; gap: 1rem; }
    .arch-layer-name { font-size: 1.05rem; }
    .arch-layer-content { padding: 0 1.25rem 0 2.75rem; }
    .arch-layer.open .arch-layer-content { padding: 0 1.25rem 2rem 2.75rem; }
    .arch-value-section { padding: 5rem 1.5rem; }
    .arch-foundation-section { padding: 5rem 1.5rem 4rem; }
}


/* ==================================================================
   RESOURCE PAGES (copilot-analysis, enterprise-evaluation)
   Standalone landing pages — not in main nav
   ================================================================== */

.resource-hero {
    max-width: 640px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem;
    text-align: center;
}

.resource-eyebrow {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.resource-headline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--warm);
    margin-bottom: 1.75rem;
}

.resource-body {
    color: var(--warm-dim);
    font-size: 1rem;
    line-height: 1.85;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.resource-download-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: var(--radius);
    background: none;
    color: rgba(201, 168, 76, 0.8);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.resource-download-btn:hover {
    border-color: rgba(201, 168, 76, 0.7);
    color: var(--gold);
}

@media (max-width: 600px) {
    .resource-hero {
        padding: 8rem 1.5rem 4rem;
    }
}
