/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* SECTION 1: HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Offset for navbar */
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    position: relative;
}

.hero-content {
    max-width: 1100px;
    /* Increased from 800px to fit headline */
    margin: 0 auto;
}

.hero-headline {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-headline.small {
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero-subline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Hero Diagram */
.hero-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto 4rem;
    flex-wrap: wrap;
}

.diagram-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.icon-valve {
    width: 100px;
    /* Valve is bigger */
    height: 100px;
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.step-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
}

.label-governance {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.diagram-arrow {
    color: var(--color-text-muted);
    opacity: 0.5;
    margin-bottom: 2rem;
    /* Align with icons */
}

/* Animations included in global/others */
@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-subtle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(-5px);
        opacity: 0.5;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateX(-5px);
        opacity: 0.5;
    }
}

/* Inference: Pulse the whole icon circle */
.diagram-step:first-child .icon-circle {
    animation: pulse-subtle 3s infinite ease-in-out;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Governance: Spin the inner valve wheel */
.icon-valve svg circle:nth-child(2),
/* Inner hub */
.icon-valve svg line:not(:last-child) {
    /* Spokes (excluding handle) */
    transform-origin: 12px 12px;
    animation: spin-slow 10s linear infinite;
}

/* Action: Pulse border */
.diagram-step:last-child .icon-circle {
    transition: all 0.3s;
}

.diagram-step:last-child .icon-circle:hover {
    border-color: #22c55e;
    /* Green on hover */
    color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

/* Arrows: Slide effect */
.diagram-arrow svg {
    animation: slide-right 2s infinite ease-in-out;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-headline {
        margin-bottom: 1rem;
    }

    .hero-subline {
        margin-bottom: 2rem;
    }

    .hero-diagram {
        gap: 0.5rem;
        margin: 2rem auto 3rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .icon-valve {
        width: 80px;
        height: 80px;
    }

    .icon-circle svg {
        width: 24px;
        height: 24px;
    }

    .icon-valve svg {
        width: 32px;
        height: 32px;
    }

    .diagram-arrow svg {
        width: 20px;
    }

    .step-label {
        font-size: 0.85rem;
    }

    .label-governance {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

.hero-secondary-link {
    margin-top: 2rem;
}

/* SECTION 2: THE PROBLEM */
.problem-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-headline {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-headline .text-white {
    color: var(--color-text);
}

.section-subtext {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.container-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SECTION 3: MECHANISM (DIAGRAM) */
.mechanism-section {
    padding: var(--spacing-xl) 0;
}

.tech-diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.tech-layer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-box {
    width: 100%;
    padding: 2rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    text-align: center;
    font-family: var(--font-mono);
    /* Updated to Mono */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    position: relative;
    transition: all 0.3s ease;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
        border-color: var(--color-primary);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
        border-color: white;
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
        border-color: var(--color-primary);
    }
}

.box-highlight {
    animation: pulse-glow 4s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

.audit-badge {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translate(100%, -50%);
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

@keyframes flow-down {
    0% {
        opacity: 0.3;
        transform: translateY(-5px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0.3;
        transform: translateY(5px);
    }
}

.tech-connector {
    font-size: 1.5rem;
    color: var(--color-border);
    margin-top: 10px;
    animation: flow-down 2s infinite ease-in-out;
}

.mechanism-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* SECTION 4: CAPABILITIES */
.capabilities-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cap-item {
    border-left: 1px solid var(--color-border);
    padding-left: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.cap-item:hover {
    border-left-color: var(--color-accent);
    padding-left: 2rem;
    /* Subtle slide */
}

.cap-item h3 {
    font-family: var(--font-mono);
    /* Updated to Mono */
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.cap-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* SECTION 5: PROOF */
.proof-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--color-bg-secondary), var(--color-bg));
}

.proof-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.proof-item {
    font-family: var(--font-mono);
    /* Updated to Mono */
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 1rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}

.proof-item:hover {
    border-color: var(--color-text-muted);
}

/* SECTION 6: OPEN */
.open-section {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
}

.visual-placeholder {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 1px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-family: monospace;
    background: var(--color-bg-secondary);
}

/* SECTION 7: CLOSING */
.closing-section {
    padding: var(--spacing-xl) 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closing-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Utilities override or additions */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* --- NEW NARRATIVE SECTIONS --- */

.narrative-section {
    padding: var(--spacing-xl) 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.narrative-section:nth-of-type(odd) {
    background: var(--color-bg);
}

.narrative-section:nth-of-type(even) {
    background: var(--color-bg-secondary);
}

/* Specific Section Tweaks */
#governance-section h2 {
    /* Ensure Governance stands out */
    text-shadow: 0 0 20px rgba(var(--color-primary-rgb, 255, 255, 255), 0.1);
}

/* THE BREAK */
.break-section {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.visual-pause-line {
    height: 1px;
    width: 100px;
    background: var(--color-border);
}

.break-content {
    margin: 0 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
}

.break-text {
    display: block;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #ff6b6b;
    /* Subtle red for "No Action" warning/stop */
}

/* QUIET SECTION */
.quiet-section {
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.5s ease;
    border-bottom: none;
    /* Flow into next */
}

.quiet-section:hover {
    opacity: 0.8;
    filter: grayscale(0.5);
}

.quiet-section .section-headline {
    font-size: 2rem;
    /* Smaller than usual */
    font-weight: 400;
}

/* CONTEXTUAL NOTE */
.context-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--color-bg);
}

.contextual-note {
    font-family: var(--font-heading);
    /* Or serif if available */
    font-style: italic;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 1.5;
}

/* CORNER BRANDING */
.corner-branding {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    opacity: 0.5;
    pointer-events: none;
    /* Let clicks pass through */
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* CORNER BRANDING */
.corner-branding {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text);
    /* Brighter color */
    pointer-events: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* --- PROCESS DIAGRAM --- */

.process-section .container-centered {
    max-width: 1200px;
    /* Allow more width for the diagram */
}

.process-diagram {
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0 3rem;
    flex-wrap: wrap;
}

.process-card {
    padding: 2rem;
    border-radius: 6px;
    width: 300px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Card Variants */
.card-inference {
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.card-governance {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    transform: scale(1.05);
    /* Slight emphasis */
    z-index: 5;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.card-execution {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px dashed var(--color-border);
    opacity: 0.8;
}

/* Internal Card Elements */
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;
}

.card-subtitle {
    font-weight: 400;
    font-size: 1rem;
    display: block;
    margin-top: 0.2rem;
}

.card-divider {
    height: 1px;
    background: currentColor;
    opacity: 0.3;
    margin: 1rem 0 1.5rem;
    width: 100%;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    opacity: 0.7;
}

/* Arrows */
.process-arrow {
    font-size: 2rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    display: flex;
    align-items: center;
}

/* Note */
.process-note {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 600px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .process-diagram {
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-arrow {
        transform: rotate(90deg);
        /* Point down */
    }

    .process-card {
        width: 100%;
        max-width: 350px;
    }
}

/* --- NO ACTION SECTION --- */

.no-action-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.no-action-section .section-headline {
    margin-bottom: 1rem;
    color: var(--color-text);
    /* White/Bright */
}

.no-action-section .section-subtext {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.alert-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-left: 4px solid #94a3b8;
    /* Muted blue/grey accent like screenshot */
    padding: 1.5rem 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- EXECUTION & RESTRAINT SECTION --- */

.execution-restraint-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--color-bg-secondary);
    /* Alternating background */
    flex-direction: column;
    /* Stack blocks vertically */
}

.eras-block {
    margin: 2rem 0;
}

.eras-block .section-headline {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.eras-block .section-subtext {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.eras-divider {
    width: 60%;
    height: 1px;
    background: var(--color-border);
    margin: 3rem auto;
    opacity: 0.5;
}

/* Global Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
    }

    .narrative-section,
    .process-section,
    .no-action-section,
    .execution-restraint-section,
    .capabilities-section,
    .proof-section,
    .open-section,
    .closing-section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cap-item {
        padding-left: 1rem;
    }

    .cap-item:hover {
        padding-left: 1.25rem;
    }

    .proof-item {
        max-width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .alert-box {
        padding: 1.25rem 1.5rem;
    }

    .visual-placeholder {
        height: 250px;
        font-size: 0.8rem;
    }

    .eras-divider {
        width: 80%;
        margin: 2rem auto;
    }
}