/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --foxfire-green: #39ff14;
    --fae-violet: #bf5af2;
    --midnight-canopy: #0b0f1a;
    --thorn-pink: #ff2d78;
    --petal-cream: #f0e6d3;
    --spore-gold: #e8b931;
    --deep-moss: #1a3a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--midnight-canopy);
    color: var(--petal-cream);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* === Typography === */
.headline {
    font-family: 'Dela Gothic One', cursive;
    font-size: clamp(2.5rem, 7vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--petal-cream);
    margin-bottom: 1.5rem;
}

.subline {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--petal-cream);
    opacity: 0.85;
    margin-bottom: 2rem;
}

.body-text {
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.annotation {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--spore-gold);
    margin-top: 1rem;
}

.annotation-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--spore-gold);
    opacity: 0.5;
}

/* === Navigation === */
.nav-glyph {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    cursor: pointer;
}

.leaf-icon {
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.3));
    transition: filter 0.3s ease;
}

.nav-glyph:hover .leaf-icon {
    animation: shake 0.4s ease-in-out;
    filter: drop-shadow(0 0 20px rgba(255, 45, 120, 0.6));
}

.nav-overlay {
    position: absolute;
    top: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-glyph.open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-link {
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.2rem;
    color: var(--petal-cream);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-link:hover {
    color: var(--foxfire-green);
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

/* === Shake Animation === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake-active {
    animation: shake 0.4s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.3);
}

/* === Sections === */
.section {
    position: relative;
    min-height: 100vh;
    padding: 120px 5vw;
    overflow: hidden;
}

.section-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero */
.section-hero {
    background-color: var(--midnight-canopy);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    display: flex;
    align-items: center;
    z-index: 5;
}

.bg-venation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Philosophy - right lean */
.section-right {
    background-color: var(--deep-moss);
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    margin-top: -80px;
    z-index: 6;
}

/* Showcase - left lean */
.section-left {
    background-color: var(--midnight-canopy);
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
    margin-top: -80px;
    z-index: 7;
}

/* Manifesto - no diagonal */
.section-manifesto {
    background-color: var(--deep-moss);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: -80px;
    z-index: 8;
}

/* Coda - steep diagonal */
.section-coda {
    background-color: var(--midnight-canopy);
    clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
    margin-top: -80px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Content Grid === */
.content-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 3rem;
    align-items: center;
}

.content-grid.reverse {
    grid-template-columns: 40% 60%;
}

.content-narrow {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.content-margin {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Botanical Illustrations === */
.botanical-illustration {
    display: block;
}

.draw-path {
    opacity: 0;
    transition: opacity 0.3s;
}

.draw-path.revealed {
    opacity: 1;
}

.showcase-botanical {
    margin-top: 3rem;
}

/* === Vine Bridge === */
.vine-bridge {
    position: absolute;
    top: -20px;
    left: 10%;
    width: 80%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

/* === Floating Leaves === */
.floating-leaf {
    position: absolute;
    pointer-events: none;
}

.leaf-1 {
    top: 15%;
    left: 5%;
    animation: floatLeaf 8s ease-in-out infinite;
}

.leaf-2 {
    top: 40%;
    right: 8%;
    animation: floatLeaf 10s ease-in-out infinite 2s;
}

.leaf-3 {
    bottom: 20%;
    left: 12%;
    animation: floatLeaf 9s ease-in-out infinite 4s;
}

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* === Manifesto === */
.manifesto-content {
    text-align: center;
    padding: 2rem;
}

.manifesto-words {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.manifesto-word {
    font-family: 'Dela Gothic One', cursive;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--petal-cream);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.manifesto-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-words.glow .manifesto-word {
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

/* === Coda === */
.coda-content {
    text-align: center;
}

.coda-statement {
    font-family: 'Dela Gothic One', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--petal-cream);
    margin-bottom: 2rem;
}

.coda-leaf {
    display: block;
    margin: 2rem auto 0;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Section Entry Animations === */
.section-entry {
    opacity: 0;
}

.section-hero .section-inner {
    opacity: 0;
    transform: translate(-60px, -30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-hero.entered .section-inner {
    opacity: 1;
    transform: translate(0, 0);
}

.section-right .section-inner {
    opacity: 0;
    transform: translate(60px, -30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-right.entered .section-inner {
    opacity: 1;
    transform: translate(0, 0);
}

.section-left .section-inner {
    opacity: 0;
    transform: translate(-60px, -30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-left.entered .section-inner {
    opacity: 1;
    transform: translate(0, 0);
}

.section-coda .section-inner {
    opacity: 0;
    transform: translate(-60px, -30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-coda.entered .section-inner {
    opacity: 1;
    transform: translate(0, 0);
}

/* === Neon Glow Utilities === */
.glow-green {
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.glow-pink {
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.4);
}

/* === Responsive === */
@media (max-width: 768px) {
    .section-hero {
        clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    }

    .section-right {
        clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    }

    .section-left {
        clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
    }

    .section-coda {
        clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
    }

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-margin {
        order: -1;
    }

    .content-grid.reverse .content-margin {
        order: -1;
    }

    .headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .manifesto-word {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .section {
        padding: 80px 5vw;
    }

    .nav-glyph {
        top: 1rem;
        left: 1rem;
    }

    .shake-active {
        animation-name: shake-mobile;
    }

    @keyframes shake-mobile {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
        20%, 40%, 60%, 80% { transform: translateX(2px); }
    }
}
