@font-face {
    font-family: 'Ruigslay';
    src: url('fonts/Ruigslay.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    /* Accent Lime Green */
    --accent: #76ff03;
    /* --sale-banner: #ff4757; Red */
    --sale-banner: #76ff03;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .banner, .btn, th, .price, .nav-brand, .btn-steam, .btn-steam-dropdown-trigger {
    font-family: 'Share Tech Mono', monospace;
}

/* --- Banner Styles --- */
.banner {
    background-color: var(--sale-banner);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* HIDE BANNER */
#global-banner {
    display: none !important;
}

/* --- Header & Nav Styles --- */
header {
    background-color: rgba(13, 13, 13, 0.95);
    padding: 10px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
}
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-logo { height: 35px; width: auto; margin-right: 25px; transition: opacity 0.3s ease; }
.nav-logo:hover { opacity: 0.8; }
.nav-links a {
    color: var(--text-main);
    margin-right: 25px;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative; /* Added for ::after pseudo-element */
}
.nav-links a.active { color: var(--accent); }
.nav-links a:hover { color: var(--accent); }
/* Animated Nav Underline (from ai_support.html) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px; /* Consistent with ai_support.html */
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Steam Dropdown */
.steam-dropdown { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

header .steam-dropdown {
    height: 100%;
}

.btn-steam-dropdown-trigger {
    background-color: var(--accent);
    color: #000;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-steam-dropdown-trigger:hover { box-shadow: 0 0 15px var(--accent); transform: translateY(-2px); }
.steam-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #1a1a1a;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 1001;
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 10px;
}
.steam-dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
    height: auto;
}
.steam-dropdown-content a:last-child { border-bottom: none; }
.steam-dropdown-content a:hover { background-color: #333; color: var(--accent); }
.show { display: block; animation: fadeIn 0.2s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu */
.hamburger { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 2000; padding: 5px; }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--text-main); transition: 0.3s; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--accent); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--accent); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; max-width: 85vw; height: 100vh; background: rgba(13, 13, 13, 0.98); backdrop-filter: blur(15px); z-index: 1500; display: flex; flex-direction: column; padding: 80px 30px 40px; box-shadow: -5px 0 25px rgba(0,0,0,0.8); transition: right 0.4s; border-left: 1px solid #333; overflow-y: auto; }
.mobile-menu.open { right: 0; }
.mobile-menu a { color: var(--text-main); text-decoration: none; font-family: 'Share Tech Mono', monospace; font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; border-bottom: 1px solid #222; padding-bottom: 10px; }
.mobile-menu a.active { color: var(--accent); }

.header-right-group { display: flex; align-items: center; gap: 15px; }

/* --- PARALLAX HERO SECTION --- */
.parallax-hero {
    position: relative;
    min-height: 80vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--accent);
    background-color: #000;
    padding: 40px 0;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    width: 60%;
    height: 100%;
    background-image: url('https://mxr-labs.com/images/mxr_ui_001.png');
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; 
    z-index: 1;
}
.parallax-overlay { display: none; }
.parallax-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    pointer-events: none;
}
.hero-logo-img {
    max-width: 180px;
    width: 40%;
    height: auto;
    animation: fadeIn 1.5s ease-out;
    margin-bottom: 20px;
    position: relative;
    pointer-events: auto;
}
#hero-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
}

/* --- Hero Sections --- */
.hero-slide {
    flex: 0 0 50%;
    min-width: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px 60px;
    box-sizing: border-box;
}
.hero-slide--split {
    gap: 28px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    align-items: center;
}
.hero-slide--center {
    flex-direction: column;
    text-align: center;
}
.hero-slide--border-top {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-slide-copy {
    flex: none;
    max-width: 400px;
}
.hero-slide-media {
    flex: none;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(118, 255, 3, 0.2);
    box-shadow: 0 0 40px rgba(118, 255, 3, 0.08);
}
.hero-demo-video {
    width: 100%;
    height: auto;
    display: block;
}
.hero-badge {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.hero-badge--live {
    background: rgba(118, 255, 3, 0.15);
    color: var(--accent);
    border: 1px solid rgba(118, 255, 3, 0.4);
}
.hero-badge--soon {
    background: rgba(255, 165, 0, 0.12);
    color: #ffaa00;
    border: 1px solid rgba(255, 165, 0, 0.35);
}
.hero-slide-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    margin: 0 0 16px;
    line-height: 1.15;
    color: #fff;
}
.hero-slide--split .hero-slide-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-slide-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}
.hero-slide-founders-note {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #ffaa00;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.hero-slide-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-slide--center .hero-slide-ctas {
    justify-content: center;
}
.hero-btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-size: 0.85rem;
    padding: 10px 22px;
}
.hero-btn-primary:hover {
    background: #5dcc00;
    border-color: #5dcc00;
}
.hero-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #444;
    font-size: 0.85rem;
    padding: 10px 22px;
}
.hero-btn-ghost:hover {
    color: #fff;
    border-color: #888;
}

/* --- Content Sections --- */
.container { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #000;
    border: 1px solid #333;
}
.video-container iframe, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

h2 {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 60px;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Bento Product Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

/* Product Cards */
.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #333;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card h3, .card .price, .card p { position: relative; z-index: 5; text-shadow: none; }
.card-canvas {
    position: relative; width: 100%; height: 250px; z-index: 1; margin-bottom: 20px; display: block;
}
.card h3 { margin-top: 0; color: var(--accent); font-size: 1.5em; }
.price { font-size: 1.3em; font-weight: bold; margin-bottom: 15px; color: #fff; }

/* Bento Card Positioning */
.card-seq {
    grid-column: 1 / span 2;
    grid-row: 1;
}
.card-pro {
    grid-column: 1 / span 2;
    grid-row: 2;
}
.card-demo {
    grid-column: 3 / span 2;
    grid-row: 1;
}
.card-xr {
    grid-column: 3 / span 2;
    grid-row: 2;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .card-demo, .card-xr, .card-seq, .card-pro {
        grid-column: auto;
        grid-row: auto;
    }
    .parallax-content { flex-direction: column; }
    .hero-slide { flex: 0 0 100%; min-height: auto; padding: 40px 20px 56px; }
    .hero-slide--border-top { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .hero-slide--split .hero-slide-ctas { justify-content: center; }
    .hero-slide-media { max-width: 100%; }
    .hero-btn-primary, .hero-btn-ghost { font-size: 0.78rem; padding: 9px 16px; }
}

.newsletter-section { text-align: center; background: var(--card-bg); padding: 60px 20px; margin-top: 80px; border-top: 1px solid #333; }
.newsletter-form { display: flex; justify-content: center; gap: 10px; max-width: 500px; margin: 20px auto 0; flex-wrap: wrap; }
.newsletter-input { flex: 1; padding: 12px; border: 1px solid #333; background: #000; color: #fff; border-radius: 2px; font-family: 'Roboto', sans-serif; min-width: 250px; }
.newsletter-input:focus { outline: none; border-color: var(--accent); }

.section-text { margin-bottom: 40px; }
.poster-section { margin: 80px 0; }
.poster-section h2 { font-size: 5rem; line-height: 1; margin-bottom: 30px; border-bottom: none; }
.poster-subheader { font-family: 'Share Tech Mono', monospace; font-size: 2rem; line-height: 1.3; max-width: 100%; margin-bottom: 40px; color: #fff; }

/* Bento Grid (Feature Section) */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.bento-card { background: #111; padding: 25px; border-radius: 16px; border: 1px solid #333; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.bento-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.bento-card h3 { color: var(--accent); margin-top: 0; font-size: 1.5em; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.bento-card p { font-size: 0.95em; color: #ccc; margin: 0 0 10px 0; }
.bento-col-2 { grid-column: span 2; }
.bento-row-2 { grid-row: span 2; }

/* Dynamic Image Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 60px 0;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #333;
    height: 250px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
@media (min-width: 768px) {
    .gallery-item.large { grid-column: span 2; }
}

/* Feature Comparison Table Styles (Commented) */
.tech-box { background: #111; padding: 20px; border-radius: 4px; border-left: 4px solid var(--accent); margin-bottom: 20px; }
div[style="overflow-x:auto;"] { margin-bottom: 40px; border-radius: 8px; border: 1px solid #333; }
table { width: 100%; border-collapse: collapse; margin-top: 0; background: var(--card-bg); }
th, td { padding: 15px; border: 1px solid #333; text-align: center; }
th { background: #222; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.text-left { text-align: left; }

/* Footer */
footer { background: #050505; text-align: center; padding: 40px 20px; border-top: 1px solid #222; color: #555; font-size: 0.9em; }
footer a { color: #555; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent); }
.social-icons a { margin: 0 15px; font-size: 1.5rem; color: #555; transition: color 0.3s; }
.social-icons a:hover { color: var(--accent); }

.btn { 
    display: inline-block; background: var(--accent); color: #000; padding: 10px 20px; text-decoration: none; border-radius: 2px; font-weight: bold; margin-top: 10px; text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn:hover { 
    background: #64dd17; 
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
    .poster-section h2 { font-size: 3rem; }
    .poster-subheader { font-size: 1.5rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .parallax-bg {
        background-attachment: scroll;
        left: 0;
        right: 0;
        width: 100%;
        top: 5%;
        height: 90%;
    }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-col-2 { grid-column: auto; }
    .bento-row-2 { grid-row: auto; }
    .gallery-item.large { grid-column: auto; }
}