/* Ecosystem Light Spatial Theme */
.eco-light {
    background-color: var(--bg-color); /* #f7f7f8 */
    color: var(--text-main);
    overflow: hidden;
    margin: 0; padding: 0; height: 100vh; width: 100vw;
}

#eco-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none;
}

/* Nav */
.eco-nav { position: fixed; z-index: 100; mix-blend-mode: difference; padding: 2.5rem 4rem; display: flex; justify-content: space-between; align-items: center; width: 100vw; }
.eco-nav .back-link { color: #fff; display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-heading); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.center-brand { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.center-brand .logo { margin: 0; color: #fff; font-size: 1.2rem; }

/* Layout Wrappers */
.eco-wrapper {
    position: relative; width: 100vw; height: 100vh; z-index: 10;
    overflow: hidden; /* Hide scroll on desktop */
}

.eco-layout {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 100%; padding: 0 5vw; padding-top: 5vh;
}

/* Typography & Sidebar */
.eco-sidebar { width: 450px; pointer-events: auto; z-index: 20; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.text-dark { color: var(--text-main); }
.tag-accent { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.25em; color: var(--accent); margin-bottom: 1.5rem; text-transform: uppercase; }
.display-title.sm { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.description { font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; color: var(--text-muted); font-weight: 400; }
.side-microcopy { font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(17,17,21,0.5); line-height: 1.6; padding-left: 1rem; border-left: 1px solid rgba(17,17,21,0.1); }

/* Industry Selector */
.industry-selector { margin-bottom: 2rem; }
.selector-label { display: block; font-family: var(--font-heading); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; font-weight: 700; }
.industry-pills { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.ind-pill {
    background: rgba(255,255,255,0.5); border: 1px solid rgba(17,17,21,0.1); border-radius: 30px;
    padding: 0.6rem 1.2rem; font-family: var(--font-heading); font-size: 0.6rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); cursor: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ind-pill:hover { border-color: rgba(17,17,21,0.3); color: var(--text-main); }
.ind-pill.active { background: var(--text-main); color: var(--bg-color); border-color: var(--text-main); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Engine Visualization */
.eco-engine {
    flex: 1; height: 100%; position: relative; pointer-events: none;
    display: flex; justify-content: center; align-items: center;
}

/* Brain Core Container */
.brain-core-container {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 25; display: flex; flex-direction: column; align-items: center;
    width: 300px; height: 350px; justify-content: center;
}

.holographic-brain {
    width: 250px; height: 250px; overflow: visible;
    filter: drop-shadow(0 0 20px rgba(94, 53, 177, 0.2));
    animation: brainFloat 6s ease-in-out infinite alternate;
}
@keyframes brainFloat { 0% { transform: translateY(-5px); } 100% { transform: translateY(5px); } }

.brain-outline { animation: pulseBrainOutline 4s infinite alternate; }
@keyframes pulseBrainOutline { 0% { stroke: rgba(94, 53, 177, 0.3); } 100% { stroke: rgba(94, 53, 177, 0.7); } }

.core-label { 
    margin-top: 15px; 
    font-family: var(--font-heading); 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: var(--text-main); 
    text-align: center; 
    letter-spacing: 0.25em; 
    text-transform: uppercase; 
    background: transparent; 
    padding: 0; 
    border: none; 
    box-shadow: none; 
    backdrop-filter: none; 
    -webkit-backdrop-filter: none; 
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}
.core-label span {
    display: block;
    font-size: 0.55rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-top: 5px;
    font-weight: 600;
}

/* Desktop Orbit */
.desktop-orbit { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.svg-container { position: absolute; width: 1000px; height: 1000px; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.engine-lines { width: 100%; height: 100%; overflow: visible; }
.orbit-nodes { position: absolute; width: 1000px; height: 1000px; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; pointer-events: none; }

.eco-node {
    position: absolute; transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(17,17,21,0.08); border-radius: 12px;
    padding: 0.8rem 1.2rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5; filter: grayscale(1);
}
.eco-node.active { opacity: 1; filter: grayscale(0); border-color: var(--accent); box-shadow: 0 15px 30px rgba(94, 53, 177, 0.15); transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.eco-node span { font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; color: var(--text-main); text-transform: uppercase; }
.eco-node.active span { color: var(--accent); }

/* SVG Lines */
.svg-line { fill: none; stroke: rgba(17,17,21,0.05); stroke-width: 1.5; transition: all 0.4s; stroke-dasharray: 4; }
.svg-line.active { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 10; animation: dashMove 1s linear infinite; filter: drop-shadow(0 0 5px rgba(94,53,177,0.4)); }
@keyframes dashMove { to { stroke-dashoffset: -20; } }

/* Workflow Status Panel (Desktop) */
.workflow-status {
    position: absolute; bottom: 5vh; right: 5vw; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(17,17,21,0.05); border-radius: 16px;
    padding: 2rem; width: 320px; box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.ws-tag { font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1.5rem; text-transform: uppercase; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ws-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulseTag 1.5s infinite; }
@keyframes pulseTag { 0% { box-shadow: 0 0 0 0 rgba(94,53,177,0.6); } 70% { box-shadow: 0 0 0 8px rgba(94,53,177,0); } 100% { box-shadow: 0 0 0 0 rgba(94,53,177,0); } }

.ws-steps { display: flex; flex-direction: column; gap: 1rem; }
.ws-step { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 10px; opacity: 0; transform: translateY(10px); line-height: 1.4; }
.ws-step::before { content: '→'; font-family: monospace; color: var(--text-main); opacity: 0.5; font-size: 1rem; line-height: 1.1; }
.ws-step.visible { opacity: 1; transform: translateY(0); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ws-step.highlight { color: var(--text-main); font-weight: 600; }
.ws-step.highlight::before { color: var(--accent); opacity: 1; }

/* Buttons */
.pill-btn { border-radius: 50px; padding: 1rem 2rem; background: transparent; border: 1px solid var(--text-main); color: var(--text-main); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 600; text-decoration: none; cursor: none; transition: all 0.3s; display: inline-block; text-align: center; }
.pill-btn:hover { background: var(--text-main); color: var(--bg-color); }
.sm-pill { padding: 0.8rem 1.2rem; font-size: 0.65rem; }

/* Mobile Only Elements */
.mobile-brain-container { display: none; }
.mobile-workflow-timeline { display: none; }

/* ==========================================================================
   MOBILE FIRST FIX (Max Width 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Header Fixes */
    .eco-nav { padding: 1rem 1.5rem; justify-content: space-between; }
    .desktop-only { display: none !important; }
    .center-brand { align-items: flex-end; }
    .center-brand .logo { font-size: 1rem; }

    /* Root Wrapper / Scroll Fix */
    .eco-light { overflow-y: auto; height: auto; }
    .eco-wrapper { height: auto; overflow: visible; padding-bottom: 50px; }
    
    /* Layout Flow */
    .eco-layout { 
        flex-direction: column; 
        padding: 15vh 5vw 0 5vw; 
        height: auto; 
    }
    .eco-sidebar { width: 100%; height: auto; display: flex; flex-direction: column; }
    
    /* Typography Alignment */
    .eco-intro { text-align: center; margin-bottom: 2rem; }
    .display-title.sm { font-size: 2.2rem; }
    
    /* Reveal Mobile Brain Container */
    .mobile-brain-container { 
        display: flex; justify-content: center; margin: 2rem 0; width: 100%;
        min-height: 250px;
    }
    
    /* Selectors Stacked below brain */
    .eco-selectors { text-align: center; }
    .selector-label { margin-bottom: 1rem; }
    .industry-pills { justify-content: center; gap: 0.5rem; }
    .ind-pill { padding: 0.5rem 0.8rem; font-size: 0.55rem; }
    
    /* Mobile Workflow */
    .mobile-workflow-timeline {
        display: flex; flex-direction: column; gap: 1rem; 
        margin-top: 2rem; padding: 1.5rem;
        background: rgba(255,255,255,0.7); backdrop-filter: blur(10px);
        border-radius: 16px; border: 1px solid rgba(17,17,21,0.05);
    }
    .mobile-workflow-timeline .ws-step {
        opacity: 1; transform: none; font-size: 0.75rem; transition: color 0.3s;
    }

    /* Destroy Desktop Elements */
    .eco-engine { display: none; }
    .side-microcopy { display: none; }
}
