/* logic.day — Y2K-futurist pastoral dreamscape */

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

:root {
    --deep-burgundy: #1e0a14;
    --burgundy-mid: #3a0f1e;
    --frost-lavender: #c4b8e8;
    --wine-dark: #6b1d3a;
    --blush-cream: #e8d5cc;
    --rose-cream: #f0e0d6;
    --crystalline-rose: #d4728a;
    --plum-shadow: #5c1a2a;
    --rose-blush: #f5d0c5;
    --amber-firefly: #e8a54b;
}

html, body {
    overflow-x: hidden;
    background: var(--deep-burgundy);
    color: var(--rose-cream);
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
}

/* Bokeh Background */
#bokeh-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    animation: bokeh-drift 20s infinite ease-in-out alternate;
}

@keyframes bokeh-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.1); }
    66% { transform: translate(-15px, 20px) scale(0.9); }
    100% { transform: translate(10px, -10px) scale(1.05); }
}

/* Scenes */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 4rem 2rem;
}

.scene-content {
    text-align: center;
    max-width: 900px;
}

.gradient-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
}

/* Scene 1: The Gate */
.scene-gate {
    background: radial-gradient(ellipse at center bottom, var(--burgundy-mid) 0%, var(--deep-burgundy) 70%);
}

.scene-gate .gradient-transition {
    background: linear-gradient(to bottom, transparent, var(--burgundy-mid));
}

.logotype {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    color: var(--rose-blush);
    -webkit-text-stroke: 1px var(--plum-shadow);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    animation: logotype-glow 4s ease-in-out infinite alternate;
}

@keyframes logotype-glow {
    0% { text-shadow: 0 0 30px rgba(212, 114, 138, 0.3); }
    100% { text-shadow: 0 0 60px rgba(196, 184, 232, 0.4), 0 0 100px rgba(212, 114, 138, 0.2); }
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--frost-lavender);
    opacity: 0.85;
    margin-bottom: 3rem;
}

.truth-gate {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.gate-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--crystalline-rose);
    opacity: 0.7;
    animation: symbol-float 3s ease-in-out infinite;
    transition: opacity 0.3s, transform 0.3s;
}

.gate-symbol:nth-child(2) { animation-delay: 0.5s; }
.gate-symbol:nth-child(3) { animation-delay: 1s; }
.gate-symbol:nth-child(4) { animation-delay: 1.5s; }

.gate-symbol:hover {
    opacity: 1;
    transform: scale(1.3);
}

@keyframes symbol-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scene 2: Meadow */
.scene-meadow {
    background: radial-gradient(ellipse at center, var(--burgundy-mid) 0%, var(--deep-burgundy) 80%);
}

.scene-meadow .gradient-transition {
    background: linear-gradient(to bottom, transparent, var(--deep-burgundy));
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--blush-cream);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.proposition-flowers {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.flower {
    background: rgba(107, 29, 58, 0.3);
    border: 1px solid rgba(196, 184, 232, 0.2);
    border-radius: 50% 50% 5px 5px;
    padding: 2rem 1.5rem;
    min-width: 200px;
    backdrop-filter: blur(5px);
    transition: transform 0.4s, border-color 0.4s;
}

.flower:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--crystalline-rose);
}

.flower-bloom {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--crystalline-rose), var(--wine-dark));
    box-shadow: 0 0 20px rgba(212, 114, 138, 0.4);
}

.flower-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: var(--rose-cream);
    margin-bottom: 0.5rem;
}

.truth-value {
    font-size: 1.2rem;
    color: var(--frost-lavender);
    letter-spacing: 0.1em;
}

.vt323 {
    font-family: 'VT323', monospace;
}

.pastoral-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--blush-cream);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.pastoral-text.large {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    opacity: 1;
}

/* Scene 3: Stream */
.scene-stream {
    background: linear-gradient(180deg, var(--deep-burgundy) 0%, var(--burgundy-mid) 50%, var(--deep-burgundy) 100%);
}

.scene-stream .gradient-transition {
    background: linear-gradient(to bottom, transparent, var(--deep-burgundy));
}

.syllogism-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stream-particle {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--frost-lavender);
    padding: 0.8rem 2rem;
    border: 1px solid rgba(196, 184, 232, 0.3);
    border-radius: 30px;
    background: rgba(196, 184, 232, 0.05);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s, transform 0.6s;
}

.stream-particle.visible {
    opacity: 1;
    transform: translateX(0);
}

.capsule {
    margin-top: 2rem;
    padding: 2rem 3rem;
    border-radius: 40px;
    background: rgba(245, 208, 197, 0.06);
    border: 1px solid rgba(212, 114, 138, 0.3);
    backdrop-filter: blur(8px);
}

.capsule-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--rose-cream);
    margin-bottom: 0.5rem;
}

.capsule-attr {
    font-size: 1rem;
    color: var(--crystalline-rose);
    opacity: 0.7;
}

/* Scene 4: Garden */
.scene-garden {
    background: radial-gradient(ellipse at top, var(--burgundy-mid) 0%, var(--deep-burgundy) 70%);
}

.scene-garden .gradient-transition {
    background: linear-gradient(to bottom, transparent, var(--deep-burgundy));
}

.truth-table {
    display: inline-block;
    margin-bottom: 3rem;
    border: 1px solid rgba(196, 184, 232, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(30, 10, 20, 0.6);
    backdrop-filter: blur(5px);
}

.tt-header, .tt-row {
    display: grid;
    grid-template-columns: 80px 80px 100px;
    text-align: center;
}

.tt-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--frost-lavender);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(196, 184, 232, 0.2);
    background: rgba(107, 29, 58, 0.3);
}

.tt-row {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(196, 184, 232, 0.08);
    transition: background 0.3s;
}

.tt-row:last-child {
    border-bottom: none;
}

.tt-row:hover {
    background: rgba(212, 114, 138, 0.1);
}

.tt-row[data-result="true"] {
    color: var(--frost-lavender);
}

.tt-row[data-result="false"] span:last-child {
    color: rgba(240, 224, 214, 0.4);
}

/* Scene 5: Horizon */
.scene-horizon {
    background: radial-gradient(ellipse at center bottom, var(--wine-dark) 0%, var(--deep-burgundy) 60%);
}

.horizon-symbols {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin: 3rem 0;
}

.horizon-sym {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--frost-lavender);
    opacity: 0.6;
    animation: horizon-pulse 5s ease-in-out infinite;
}

.horizon-sym:nth-child(2) { animation-delay: 1s; }
.horizon-sym:nth-child(3) { animation-delay: 2s; }
.horizon-sym:nth-child(4) { animation-delay: 3s; }
.horizon-sym:nth-child(5) { animation-delay: 4s; }

@keyframes horizon-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

.closing-text {
    font-size: 1.5rem;
    color: var(--crystalline-rose);
    opacity: 0.6;
    margin-top: 2rem;
}

/* Scroll reveal */
.scene-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scene-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .proposition-flowers {
        flex-direction: column;
        align-items: center;
    }
    .truth-gate {
        gap: 1rem;
    }
    .gate-symbol {
        font-size: 2rem;
    }
    .horizon-symbols {
        gap: 1.5rem;
    }
}
