:root {
    --primary: #bef264;
    --primary-dark: #a3e635;
    --secondary: #064e3b;
    --accent: #22c55e;
    --bg-dark: #0f172a;
    --bg-light: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
}

.highlight {
    color: var(--primary);
}

/* NAVBAR */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* BUTTONS */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(190, 242, 100, 0.2);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: var(--glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('eco_refinery_hero_1773617723666.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-dark), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* PROCESS MOCKUP */
.process-section {
    background: radial-gradient(circle at center, #111827, #0b1120);
    overflow: hidden;
}

.simulation-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-sim {
    background: var(--glass);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-sim:hover {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0 20px rgba(190, 242, 100, 0.4);
}

.btn-sim.playing {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-sim.playing:hover {
    background: #ef4444;
    color: white;
}

/* ISOMETRIC PLANT STYLES */
.plant-container {
    width: 100%;
    height: 600px;
    background: rgba(0,0,0,0.2);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    position: relative;
    perspective: 1000px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.isometric-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateX(55deg) rotateZ(45deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tank-wrapper {
    position: absolute;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    cursor: pointer;
}

.tank-wrapper.back { z-index: 1; }
.tank-wrapper.mid { z-index: 2; }
.tank-wrapper.front { z-index: 3; }

.tank-3d {
    position: relative;
    width: 60px;
    height: 80px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tank-3d.tall { height: 120px; }
.tank-3d.wide { width: 120px; }

.tank-3d .face {
    position: absolute;
    background: linear-gradient(to right, #9ca3af, #f3f4f6 20%, #ffffff 50%, #f3f4f6 80%, #9ca3af); /* Premium Silver Metallic cylinder */
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.tank-3d .face.front {
    width: 100%;
    height: 100%;
    transform: rotateY(0deg) translateZ(30px);
    border-radius: 30px / 5px; /* Simulates a round side in 2.5D */
}

.tank-3d .face.side {
    width: 60px;
    height: 100%;
    left: 50%;
    margin-left: -30px;
    transform: rotateY(90deg) translateZ(30px);
    opacity: 0.1; /* Almost invisible side for cylinder effect */
}

/* Wide tanks (Almacen) */
.tank-3d.wide .face.front { 
    transform: rotateY(0deg) translateZ(60px); 
    width: 100%; 
    border-radius: 60px / 8px;
}
.tank-3d.wide .face.side { width: 120px; margin-left: -60px; }

.tank-3d .face.top {
    width: 100%;
    height: 60px;
    top: 0;
    transform: rotateX(90deg) translateZ(30px);
    background: radial-gradient(circle at center, #ffffff, #94a3b8);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tank-3d.wide .face.top { height: 60px; transform: rotateX(90deg) translateZ(60px); }


.tank-3d.wide .face.top { height: 60px; transform: rotateX(90deg) translateZ(60px); }

/* Reactor Domes for R1 and R2 */
#tank-R1 .face.top, #tank-R2 .face.top {
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #4ade80, #064e3b);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.tank-3d .label {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) rotateZ(-45deg) rotateX(-55deg);
    background: var(--primary);
    color: var(--secondary);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 100;
}

.tank-3d:hover {
    transform: translateZ(10px);
}

.tank-3d:hover .face {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(190, 242, 100, 0.2);
}

/* LIQUID SIMULATION */
.liquid-sim {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--primary), transparent);
    opacity: 0.4;
    transition: height 1s ease;
    pointer-events: none;
    transform: translateZ(31px); /* Just in front of the face */
}

/* DETAILS PANEL */
.details-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-top: -100px;
    position: relative;
    z-index: 10;
    max-width: 400px;
    margin-left: auto;
    margin-right: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.details-panel h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.details-panel p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PIPE SYSTEM */
.pipe-system {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
}

/* Pseudo-pipes connecting tanks based on positions */
.pipe-system::before {
    content: '';
    position: absolute;
    top: 15%; left: 20%; width: 60%; height: 2px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(190, 242, 100, 0.1);
}

.pipe-system::after {
    content: '';
    position: absolute;
    top: 45%; left: 15%; width: 70%; height: 2px;
    background: rgba(255,255,255,0.1);
}

/* FLOW ARROWS */
.flow-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    opacity: 0;
    z-index: 50;
    pointer-events: none;
}

.flow-arrow.active {
    animation: flow-move 2s infinite linear;
    opacity: 1;
}

@keyframes flow-move {
    0% { transform: translateX(0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(50px) scale(0.8); opacity: 0; }
}


/* More specific pipe visuals could be added here if needed */

/* SHADOWS & FINISHING */
.tank-3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: rgba(0,0,0,0.5);
    filter: blur(10px);
    transform: rotateX(90deg);
}

/* REVEAL ON SCROLL OVERRIDES OR TWEAKS */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mockup-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    background: var(--glass);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.tank, .reactor, .tower {
    width: 120px;
    height: 160px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tank span, .reactor span, .tower span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
}

.liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: #4d4d4d;
    opacity: 0.6;
    animation: flow 4s infinite ease-in-out;
}

.liquid.bio {
    background: var(--primary);
    box-shadow: 0 -10px 30px rgba(190, 242, 100, 0.3);
}

.pipe {
    flex-grow: 1;
    height: 8px;
    background: #334155;
    position: relative;
}

.pipe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--primary);
    animation: pipe-flow 2s infinite linear;
}

/* ABOUT SECTION */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    padding: 2rem;
    background: var(--glass);
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.glass-img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* BENEFITS CARDS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    padding: 3rem 2rem;
    background: var(--glass);
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* FOOTER */
.footer {
    background: #0b1120;
    padding: 10rem 0 3rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary), #065f46);
    padding: 5rem;
    border-radius: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.8);
}

.contact-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.contact-form input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    color: white;
    outline: none;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

/* ANIMATIONS */
@keyframes pipe-flow {
    0% { left: -30%; }
    100% { left: 100%; }
}

@keyframes flow {
    0%, 100% { height: 55%; }
    50% { height: 65%; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 968px) {
    .grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .mockup-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pipe {
        width: 4px;
        height: 40px;
    }
    
    .pipe::after {
        width: 100%;
        height: 30%;
        animation: pipe-flow-v 1s infinite linear;
    }
}

@keyframes pipe-flow-v {
    0% { top: -30%; }
    100% { top: 100%; }
}

/* INVESTOR SECTION */
.investor-section {
    background: #0f172a;
    border-top: 1px solid var(--glass-border);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(190, 242, 100, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.pitch-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pitch-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.pitch-card::before {
    content: attr(data-step);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(190, 242, 100, 0.05);
    line-height: 1;
}

.pitch-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.pitch-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pitch-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nda-box {
    padding: 4rem;
    text-align: center;
    border-radius: 2rem;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(190, 242, 100, 0.1);
}

.nda-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nda-box p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}



/* Floating labels for simulation v2 */
.sim-label {
    position: absolute;
    background: var(--bg-dark);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 100;
    transform: translateZ(50px) rotateX(-55deg) rotateZ(-45deg);
    opacity: 0;
    transition: all 0.5s ease;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.sim-label.active {
    opacity: 1;
    transform: translateZ(80px) rotateX(-55deg) rotateZ(-45deg) translateY(-20px);
}

/* Responsive Investor Grid */
@media (max-width: 968px) {
    .pitch-grid {
        grid-template-columns: 1fr;
    }
}

/* IMPACT SECTION (Flyer inspired) */
.impact-section {
    background: linear-gradient(to bottom, #0f172a, #064e3b);
}

.flyer-container {
    padding: 4rem;
    border-radius: 3rem;
    border: 1px solid rgba(190, 242, 100, 0.2);
    overflow: hidden;
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(15px);
}

.flyer-text h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.flyer-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.f-point {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.f-icon {
    font-size: 2rem;
    background: rgba(190, 242, 100, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--primary);
    flex-shrink: 0;
}

.f-point h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.f-point p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.flyer-full-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(190, 242, 100, 0.3);
}

/* TRUCK LOGISTICS */
.truck-container {
    position: absolute;
    width: 60px;
    height: 40px;
    bottom: 10%;
    right: 15%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(20px) rotateX(-55deg) rotateZ(-45deg);
}

.truck {
    width: 100%;
    height: 100%;
    background: url('https://img.icons8.com/color/96/truck.png') center/contain no-repeat;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.truck-container.active {
    opacity: 1;
    animation: truck-deliver 4s linear forwards;
}

@keyframes truck-deliver {
    0% { transform: translateZ(20px) rotateX(-55deg) rotateZ(-45deg) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; scale: 1; }
    90% { opacity: 1; }
    100% { transform: translateZ(20px) rotateX(-55deg) rotateZ(-45deg) translateX(400px); opacity: 0; }
}
