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

:root {
    /* McKenna Psychedelic Palette */
    --deep-void: #0a0a0f;
    --purple-consciousness: #9d4edd;
    --teal-mycelium: #06ffa5;
    --electric-green: #39ff14;
    --cosmic-purple: #5a189a;
    --neural-cyan: #00fff7;
    --dimension-pink: #ff006e;
    --sacred-gold: #ffd60a;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Courier New', 'Courier', monospace;
    background: var(--deep-void);
    cursor: crosshair;
    color: #fff;
}

/* Canvas Layers */
#mycelial-canvas,
#fractal-canvas,
#consciousness-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#mycelial-canvas {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#fractal-canvas {
    z-index: 2;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 1s ease;
}

#consciousness-canvas {
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Content Container */
.content-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Main Text Container */
.main-text-container {
    position: relative;
    pointer-events: none;
    margin-bottom: 60px;
}

.main-text {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.4;
    text-align: center;
}

#typewriter-text {
    display: inline-block;
    min-height: 1.4em;
}

/* McKenna Quote */
.mckenna-quote {
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.mckenna-quote p {
    font-size: clamp(15px, 2.2vw, 22px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-style: normal;
    margin-bottom: 15px;
    font-family: 'Courier New', 'Courier', monospace !important;
    font-weight: 400;
    letter-spacing: 0.02em;
}

#glitch-quote {
    font-family: 'Courier New', 'Courier', monospace !important;
}

.attribution {
    display: block;
    font-size: clamp(11px, 1.4vw, 14px);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

/* Business Status */
.business-status {
    text-align: center;
    max-width: 700px;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.business-status p {
    font-size: clamp(14px, 1.9vw, 18px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Active State - Full Consciousness */
body.consciousness-active #mycelial-canvas {
    opacity: 0.6;
}

body.consciousness-active #fractal-canvas {
    opacity: 0.4;
}

body.consciousness-active #consciousness-canvas {
    opacity: 0.8;
}


/* Grain Texture Overlay - Very Subtle */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-text {
        font-size: clamp(24px, 8vw, 48px);
    }

    .mckenna-quote {
        max-width: 90%;
    }
}
