/* goxlar.app — base layout & components (load before php-app.css; fonts linked in header) */
:root {
    /* Mixer-inspired accents: cyan + magenta */
    --color-gold-dark: #008888;
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-surface: #111111;
    --color-surface-light: #1a1a1a;
    --color-surface-hover: #222222;
    --color-gold: #00e5e5;
    --color-gold-light: #66ffff;
    --color-accent-magenta: #ff00ff;
    --color-red: #E62125;
    --color-white: #FFFFFF;
    --color-text: #E5E5E5;
    --color-text-muted: #888888;
    --color-text-dim: #555555;
    --color-meter-green: #00D26A;
    --color-meter-yellow: #FFD93D;
    --color-meter-red: #FF6B6B;
    --font-primary: 'Montserrat', sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-pill: 50px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-y: scroll;
    scroll-padding-top: 5.5rem;
}
body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: clip;
    overflow-y: auto;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: 0.05em; }

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}
.section-header { text-align: center; margin-bottom: var(--space-4xl); }

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 0, 255, 0.05);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 900;
    font-size: 1.1rem;
}
.logo-text { font-weight: 600; font-size: 0.85rem; color: var(--color-text-muted); }
.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}
.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.nav-links a:hover { color: var(--color-white); }
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-base);
}

@media (max-width: 960px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: var(--space-md) 0;
    }
    .nav-links.active { display: flex; }
}

/* Hero — no forced viewport height so the page scrolls normally below */
.hero {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: var(--space-2xl);
    padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-3xl);
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-glow {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 10%;
    left: 10%;
    background: radial-gradient(ellipse, rgba(0, 255, 255, 0.12), transparent 70%);
    filter: blur(60px);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    min-width: 0;
}
.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    line-height: 1.05;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #7eeeee;
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
}
.hero-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
    line-height: 1.7;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, #00e5e5 0%, #00a8c4 45%, #b020b0 100%);
    color: var(--color-white);
    box-shadow: 0 4px 24px rgba(0, 255, 255, 0.28), 0 2px 16px rgba(255, 0, 255, 0.15);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.btn-icon { width: 20px; height: 20px; }

/* Mixer shell (non-goxlr fallback) */
.mixer-interface {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}
.mixer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mixer-logo { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.1em; }
.mixer-controls { display: flex; gap: 6px; }
.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-dim);
}
.mixer-channels {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    flex-wrap: nowrap;
    overflow-x: auto;
}
.mixer-channels .channel,
.goxlr-channels .channel {
    flex: 0 0 auto;
    text-align: center;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: var(--color-surface-light);
    min-width: 56px;
}
.mixer-channels .channel-name,
.goxlr-channels .channel-name {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}
.mixer-channels .channel-meter,
.goxlr-channels .channel-meter {
    width: 100%;
    height: 64px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    padding: 4px;
    margin-bottom: var(--space-sm);
}
.meter-bar {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-meter-red), var(--color-meter-yellow), var(--color-meter-green));
    transform-origin: bottom;
    transform: scaleY(calc(var(--level, 50%) / 100%));
}
.mixer-channels .channel.master,
.goxlr-channels .channel.master {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.12), var(--color-surface-light));
}

/* Features */
.features { padding: var(--space-4xl) 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}
.feature-card {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-base);
}
.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--color-gold-light);
    margin-bottom: var(--space-md);
}
.feature-title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
}
.feature-description { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.6; text-transform: none; letter-spacing: 0; }

/* Specs */
.specifications { padding: var(--space-4xl) 0; background: var(--color-dark); }
.specs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}
@media (max-width: 900px) { .specs-content { grid-template-columns: 1fr; } }
.specs-list { margin-top: var(--space-xl); }
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}
.spec-label { color: var(--color-text-muted); }
.spec-value { color: var(--color-white); font-weight: 600; }
.waveform-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.waveform {
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: var(--space-md);
}
.waveform-label { font-size: 0.75rem; color: var(--color-text-dim); margin-top: var(--space-md); }

/* Download — cyan / magenta neon cards */
.download { padding: var(--space-4xl) 0; }
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}
.download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
        linear-gradient(135deg, rgba(0, 255, 255, 0.45), rgba(255, 0, 255, 0.4)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 0 32px rgba(0, 255, 255, 0.06), 0 0 48px rgba(255, 0, 255, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.download-card--active:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.1), 0 8px 32px rgba(255, 0, 255, 0.08);
}
.download-card.coming-soon {
    opacity: 0.88;
    background: linear-gradient(rgba(17, 17, 17, 0.95), rgba(17, 17, 17, 0.95)) padding-box,
        linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.18)) border-box;
    border: 1px solid transparent;
    box-shadow: none;
}
.download-card.coming-soon .platform-icon {
    color: rgba(0, 255, 255, 0.35);
}
.download-card.coming-soon .platform-name {
    color: var(--color-text-muted);
}
.download-card.coming-soon .platform-version {
    color: rgba(255, 0, 255, 0.55);
    font-weight: 700;
}
.platform-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-md);
    color: #00ffff;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.35));
}
.download-card--active .platform-icon {
    color: #00ffff;
}
.platform-name { font-size: 1.25rem; margin-bottom: var(--space-sm); color: var(--color-white); }
.platform-version { color: #66ffff; font-weight: 600; margin-bottom: var(--space-sm); }
.platform-info {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    flex: 1;
    line-height: 1.55;
}
.platform-info code {
    font-size: 0.82em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.08);
    color: rgba(0, 255, 255, 0.85);
}
.download-card .btn-primary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}
.btn.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 280px;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
    user-select: none;
}
.download-note { text-align: center; margin-top: var(--space-2xl); color: var(--color-text-dim); font-size: 0.9rem; }

/* Support */
.support { padding: var(--space-4xl) 0; background: var(--color-dark); }
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}
.support-link {
    color: var(--color-gold-light);
    font-weight: 600;
    font-size: 0.9rem;
}
.support-link:hover { text-decoration: underline; }

/* Main content offset for fixed nav */
.main-content {
    padding-top: 0;
    padding-bottom: var(--space-2xl);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Legacy footer class from static site (unused by PHP footer) */
.footer { display: none; }
