/* =====================================================
   layer-2.id Stylesheet
   ===================================================== */

/* Color Palette */
:root {
    --cream: #FAF4EC;
    --sage-green: #7B9E6B;
    --warm-taupe: #8A7E72;
    --light-sage: #D5E4CC;
    --burnt-orange: #C4956A;
    --light-taupe: #D4C5A9;
    --dark-brown: #6B5B4E;
    --charcoal: #2C2C2C;
    --warm-umber: #3D3530;
    --visor-border: #B8A88A;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warm-taupe);
    margin-bottom: 1.5rem;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sage-green);
    margin-bottom: 0.75rem;
}

p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-umber);
}

/* HUD Visor (Fixed Overlay) */
.hud-visor {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 60px;
    border: 1px solid rgba(184, 168, 138, 0.4);
    border-radius: 12px;
    background-color: rgba(250, 244, 236, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-family: 'IBM Plex Mono', monospace;
}

.visor-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-diamond {
    width: 12px;
    height: 12px;
    background-color: var(--sage-green);
    transform: rotate(45deg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.l2-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-green);
    letter-spacing: 1px;
}

.visor-counter {
    display: flex;
    gap: 30px;
    align-items: center;
}

.block-height {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.counter-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--warm-taupe);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sage-green);
    letter-spacing: 0.5px;
}

/* Main Content Scroll */
#scroll-container {
    margin-top: 120px;
    padding: 0;
}

/* Zone Base Styles */
.zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Zone 1: Hero with Foliage Field */
.zone-hero {
    background-color: var(--cream);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
}

.foliage-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--warm-taupe);
    font-weight: 400;
    font-style: italic;
}

/* Zone 2: Concept */
.zone-concept {
    background-color: var(--light-sage);
    padding: 80px 60px;
}

.concept-card {
    max-width: 700px;
    background-color: rgba(250, 244, 236, 0.9);
    padding: 40px;
    border: 1px solid var(--visor-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.concept-card h2 {
    color: var(--sage-green);
    margin-bottom: 1.5rem;
}

.concept-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-umber);
}

/* Zone 3: Manifesto */
.zone-manifesto {
    background-color: var(--cream);
    padding: 80px 60px;
}

.manifesto-wrapper {
    max-width: 1000px;
}

.manifesto-wrapper h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--warm-taupe);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.manifesto-item {
    background-color: rgba(213, 228, 204, 0.3);
    padding: 30px;
    border-left: 3px solid var(--sage-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manifesto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(123, 158, 107, 0.15);
}

.manifesto-item h3 {
    color: var(--sage-green);
    margin-bottom: 1rem;
}

.manifesto-item p {
    color: var(--warm-umber);
    font-size: 1rem;
}

/* Zone 4: Leaf Detail */
.zone-leaf-detail {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-sage) 100%);
    padding: 80px 60px;
}

.leaf-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
}

.leaf-detail {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.leaf-outline {
    stroke: var(--sage-green);
    animation: leafReveal 3s ease-in-out forwards;
}

.leaf-vein-center,
.leaf-vein {
    stroke: var(--sage-green);
    animation: veinDraw 2.5s ease-in-out forwards;
}

@keyframes leafReveal {
    from {
        stroke-dasharray: 400;
        stroke-dashoffset: 400;
        opacity: 0;
    }
    to {
        stroke-dasharray: 400;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes veinDraw {
    from {
        stroke-dasharray: 200;
        stroke-dashoffset: 200;
        opacity: 0;
    }
    to {
        stroke-dasharray: 200;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.leaf-text h2 {
    color: var(--warm-taupe);
    margin-bottom: 1.5rem;
}

.leaf-text p {
    font-size: 1.1rem;
    color: var(--warm-umber);
    line-height: 1.8;
}

/* Zone 5: Identity Document */
.zone-identity {
    background-color: var(--light-taupe);
    padding: 80px 60px;
}

.identity-card {
    display: flex;
    justify-content: center;
    width: 100%;
}

.document-frame {
    width: 100%;
    max-width: 500px;
    background-color: var(--cream);
    border: 2px solid var(--visor-border);
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.document-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--visor-border);
}

.doc-seal {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sage-green);
    color: var(--cream);
    border-radius: 50%;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.document-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--warm-taupe);
}

.document-body {
    margin-bottom: 30px;
}

.document-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 12px;
    line-height: 1.6;
}

.document-body strong {
    color: var(--sage-green);
    font-weight: 600;
}

.document-footer {
    padding-top: 20px;
    border-top: 1px solid var(--visor-border);
    text-align: center;
}

.document-footer p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--warm-umber);
}

/* Zone 6: Call to Action */
.zone-cta {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--warm-taupe) 100%);
    padding: 80px 60px;
}

.cta-container {
    text-align: center;
    max-width: 600px;
}

.cta-container h2 {
    color: var(--cream);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--cream);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 16px 40px;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sage-green);
    background-color: var(--cream);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--light-sage);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hud-visor {
        flex-direction: column;
        height: auto;
        gap: 12px;
        padding: 12px 16px;
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .visor-counter {
        width: 100%;
        justify-content: space-between;
    }

    #scroll-container {
        margin-top: 140px;
    }

    .zone {
        padding: 40px 20px;
        min-height: 80vh;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .leaf-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .cta-container h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .zone {
        padding: 30px 15px;
        min-height: auto;
    }

    .document-frame {
        padding: 25px;
    }

    .cta-container h2 {
        font-size: 1.4rem;
    }
}
