/* economics.day - Terminal Aesthetic + Dreamy Ethereal */
/* Colors: #f2ead8, #3a2e20, #c4b08a, #8a7a62, #7a8a5c, #ffffff, #000000, #d4c4a8, #2d2418, #e8dcc8, #1a1408, #5c4a32 */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #1a1408;
    color: #f2ead8;
    overflow-x: hidden;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ===== ZONES ===== */
.zone {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.zone-dark {
    background-color: #1a1408;
    color: #c4b08a;
}

.zone-light {
    background-color: #f2ead8;
    color: #3a2e20;
}

/* ===== PAPER TEXTURE OVERLAY ===== */
.paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#paper-noise);
    opacity: 0.06;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* ===== TERMINAL ELEMENTS ===== */
.terminal-prefix {
    font-family: 'Space Mono', monospace;
    color: #7a8a5c;
    margin-right: 0.5em;
    user-select: none;
}

.terminal-line {
    font-family: 'Space Mono', monospace;
    font-size: 1.125rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.terminal-command {
    font-family: 'Space Mono', monospace;
    color: #c4b08a;
}

/* ===== CURSOR ===== */
.cursor {
    font-family: 'Space Mono', monospace;
    color: #7a8a5c;
    animation: blink 1s step-end infinite;
}

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

/* ===== ZONE 1: THE PROMPT ===== */
#zone-prompt {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.terminal-container {
    max-width: 720px;
    width: 100%;
}

.terminal-path {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.terminal-output {
    padding-left: 0;
}

.output-line {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    line-height: 2;
    opacity: 0;
    transform: translateY(8px);
    color: #8a7a62;
}

.output-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.output-ready .output-text {
    color: #7a8a5c;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-arrow {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: #5c4a32;
    animation: float 2s ease-in-out infinite;
}

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

/* ===== ZONE 2: THE DEFINITIONS ===== */
#zone-definitions {
    padding: 8rem 2rem;
}

.definitions-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.definition-block {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.definition-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.definition-title {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.06em;
    line-height: 1.0;
    color: #3a2e20;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.definition-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #5c4a32;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.definition-annotation {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #d4c4a8;
}

.annotation-symbol {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: #c4b08a;
    line-height: 1.5;
}

.annotation-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #8a7a62;
}

/* ===== ZONE 3: THE MOUNTAIN ===== */
#zone-mountain {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2d2418;
}

.mountain-landscape {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.equilibrium-pulse {
    animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { r: 16; opacity: 0.3; }
    50% { r: 28; opacity: 0; }
    100% { r: 16; opacity: 0.3; }
}

.mountain-caption {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.caption-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1rem;
    color: #c4b08a;
    opacity: 0.6;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ===== ZONE 4: THE MEDITATION ===== */
#zone-meditation {
    padding: 8rem 2rem;
}

.meditation-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.meditation-block {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.meditation-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.meditation-heading {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.06em;
    line-height: 1.0;
    color: #3a2e20;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.meditation-text {
    margin-bottom: 2rem;
}

.meditation-text p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #5c4a32;
    margin-bottom: 1.25rem;
}

.terminal-insert {
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    line-height: 2;
    color: #8a7a62;
    background-color: rgba(26, 20, 8, 0.06);
    border: 1px solid #d4c4a8;
    border-radius: 2px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.terminal-insert .terminal-prefix {
    color: #7a8a5c;
}

/* ===== ZONE 5: THE LOGOUT ===== */
#zone-logout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.logout-container {
    max-width: 720px;
    width: 100%;
}

.logout-text {
    font-family: 'Space Mono', monospace;
    color: #c4b08a;
}

.logout-output {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.logout-output .output-line {
    opacity: 0;
    transform: translateY(8px);
}

.logout-output .output-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logout-farewell {
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #3a2e20;
    border-bottom: 1px solid #3a2e20;
}

.farewell-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 2;
    color: #8a7a62;
    text-align: center;
}

.logout-final {
    margin-top: 2rem;
}

.cursor-final {
    animation: blink 1.5s step-end infinite;
}

.logout-domain {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.06em;
    color: #3a2e20;
    text-align: center;
    margin-top: 4rem;
    opacity: 0.3;
    text-transform: uppercase;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .definition-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .meditation-heading {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .terminal-path {
        font-size: 1.125rem;
    }
    
    #zone-definitions,
    #zone-meditation {
        padding: 4rem 1.5rem;
    }
    
    .definition-block {
        margin-bottom: 4rem;
    }
    
    .meditation-block {
        margin-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .terminal-line {
        font-size: 0.875rem;
    }
    
    .output-line {
        font-size: 0.75rem;
    }
    
    .terminal-insert {
        font-size: 0.6875rem;
        padding: 1rem;
    }
}
