:root {
    --bg: #000000;
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.6);
    --secondary: #e5e7eb; /* Chrome */
    --dark-surface: #0a0a0a;
    --text: #ffffff;
    --text-muted: #cbd5e1;
    --border-color: #333333;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .nes-btn, .brand {
    font-family: 'Press Start 2P', cursive;
}

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

.center-text {
    text-align: center;
    margin-bottom: 4rem;
}

/* --- Glow Text --- */
.nes-text.is-primary {
    color: var(--primary) !important;
    text-shadow: 0 0 15px var(--primary-glow);
}

h2.nes-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

/* --- Navigation --- */
.main-nav {
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--border-color);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
}

.logo .brand {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.8rem;
    font-family: 'Press Start 2P', cursive;
    transition: color 0.3s;
}

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

/* --- NES Button Overrides --- */
.nes-btn.is-primary {
    background-color: var(--primary) !important;
    color: #000 !important;
    box-shadow: 4px 4px 0 #064e3b !important;
}

.nes-btn.is-primary::after {
    box-shadow: inset -4px -4px 0 #064e3b !important;
}

.theme-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.theme-link:hover {
    color: #34d399;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- Hero --- */
.hero {
    padding: 8rem 0;
    background: radial-gradient(circle at 70% 30%, #064e3b 0%, #000000 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 400px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 600px;
    font-weight: 300;
}

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

.hero-image {
    flex: 1.2;
    min-width: 400px;
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid var(--border-color);
}

/* --- Features --- */
.features {
    padding: 8rem 0;
    background: var(--dark-surface);
}

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

.feature-card {
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #050505 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.nes-icon {
    margin-bottom: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px var(--primary-glow);
    border-color: var(--primary) !important;
}

.feature-card h3 {
    font-size: 1rem;
    margin: 1.5rem 0 1.25rem;
    color: var(--primary);
}

.feature-card p {
    font-size: 1rem;
    color: #94a3b8;
}

/* --- Deployment --- */
.deployment {
    padding: 8rem 0;
}

.deployment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .deployment-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Showcase --- */
.showcase {
    padding-bottom: 8rem;
}

/* --- Footer --- */
.footer {
    padding: 6rem 0;
    border-top: 4px solid var(--border-color);
    background: var(--bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-content p {
    font-size: 0.9rem;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Press Start 2P', cursive;
}

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

/* --- Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 4px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        min-width: 100%;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 650px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Lightbox --- */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.zoomable:hover {
    transform: scale(1.02);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
}

.close-lightbox:hover {
    color: var(--primary);
}
