/* ==========================================================================
   KEYBOARD SYMPHONY STYLE DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    --bg-base: #06060a;
    --bg-darker: #030305;
    --bg-glass: rgba(10, 10, 18, 0.65);
    --bg-glass-heavy: rgba(8, 8, 14, 0.85);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active-cyan: rgba(0, 240, 255, 0.5);
    --border-active-magenta: rgba(255, 0, 127, 0.5);
    
    /* Neon Curated Color Palettes */
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --neon-yellow: #ffb900;
    --text-main: #e2e2ec;
    --text-muted: #8e8e9f;
    
    /* Premium Box Shadows & Glows */
    --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.35), 0 0 24px rgba(0, 240, 255, 0.15);
    --glow-magenta: 0 0 12px rgba(255, 0, 127, 0.35), 0 0 24px rgba(255, 0, 127, 0.15);
    --glow-yellow: 0 0 12px rgba(255, 185, 0, 0.35);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Layout & Animation Specs */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-snappy: all 0.15s ease-out;
    --max-width-content: 1200px;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Custom Selection style */
::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #ffffff;
}

/* Scrollbar Design */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #1b1b2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Background Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0d0e19 0%, #040407 100%);
}

/* ==========================================================================
   COMPONENTS: Premium Glassmorphic Cards & Buttons
   ========================================================================== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

/* Neon Glow Button - Cyan */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    border: 1.5px solid var(--neon-cyan);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: inset 0 0 0 rgba(0, 240, 255, 0);
}

.btn-primary.glow-cyan {
    box-shadow: var(--glow-cyan);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.btn-primary.glow-cyan:hover {
    background: var(--neon-cyan);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.7), 0 0 40px rgba(0, 240, 255, 0.3);
    text-shadow: none;
    transform: translateY(-2px);
}

/* Neon Glow Button - Magenta */
.btn-primary.glow-magenta {
    border-color: var(--neon-magenta);
    box-shadow: var(--glow-magenta);
}

.btn-primary.glow-magenta:hover {
    background: var(--neon-magenta);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.7), 0 0 40px rgba(255, 0, 127, 0.3);
    text-shadow: none;
    transform: translateY(-2px);
}

/* Secondary Button - Subtle Grey Glass */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-full {
    width: 100%;
}

.margin-top-auto {
    margin-top: auto;
}

/* Utility Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 30px;
    background: rgba(255, 0, 127, 0.12);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: var(--neon-magenta);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.1);
}

/* Neon Text Accents */
.text-neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.text-white { color: #ffffff; }

/* Micro-animations Keyframes */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 0.99;
        filter: drop-shadow(0 0 4px rgba(255,0,127,0.4));
    }
    20%, 24%, 55% {
        opacity: 0.4;
        filter: none;
    }
}
.neon-flicker {
    animation: neon-flicker 5s infinite alternate;
}

/* ==========================================================================
   LAYOUT: Header & Navigation Menu
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 6, 10, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.header-container {
    max-width: var(--max-width-content);
    height: 70px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.logo span {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.logo-icon {
    color: var(--neon-magenta);
    filter: drop-shadow(0 0 6px var(--neon-magenta));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    box-shadow: var(--glow-cyan);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   PAGES / ROUTER STYLING
   ========================================================================== */
.main-content {
    margin-top: 70px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-section {
    display: none;
    width: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 60px 24px;
    animation: fade-in 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.page-section.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PAGE: HOME / HERO STYLING
   ========================================================================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1.1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 20px 0;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

/* Web Synth Container */
.synth-container {
    width: 100%;
    max-width: 440px;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.08);
}

.synth-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.synth-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.synth-dot.red { background: #ff453a; }
.synth-dot.yellow { background: #ffcc00; }
.synth-dot.green { background: #32d74b; }

.synth-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-left: auto;
}

.synth-screen {
    height: 110px;
    background: #030306;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.screen-instructions {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    text-align: center;
    line-height: 1.5;
}

/* virtual 10 lanes display */
.synth-lanes {
    display: flex;
    gap: 4px;
    height: 140px;
}

.key-slot {
    flex: 1;
    background: linear-gradient(180deg, #0e0e16 0%, #08080c 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-snappy);
}

.key-lbl {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    z-index: 2;
    pointer-events: none;
}

.key-glow {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: var(--transition-snappy);
    opacity: 0;
    pointer-events: none;
}
.key-glow.bg-cyan {
    background: linear-gradient(0deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 240, 255, 0) 100%);
}
.key-glow.bg-magenta {
    background: linear-gradient(0deg, rgba(255, 0, 127, 0.3) 0%, rgba(255, 0, 127, 0) 100%);
}

.key-slot:hover, .key-slot.active {
    border-color: var(--neon-cyan);
    transform: translateY(2px);
}

.key-slot.active-magenta {
    border-color: var(--neon-magenta);
}

.key-slot:hover .key-glow, .key-slot.active .key-glow {
    bottom: 0;
    opacity: 1;
}

.key-slot:hover .key-lbl, .key-slot.active .key-lbl {
    color: #ffffff;
}

/* Features grid display */
.features-section {
    padding-top: 40px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    border-color: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.glow-hover-cyan:hover {
    border-color: var(--border-active-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.08);
    transform: translateY(-4px);
}

.glow-hover-magenta:hover {
    border-color: var(--border-active-magenta);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.08);
    transform: translateY(-4px);
}

/* ==========================================================================
   PAGE: COMMUNITY TAB
   ========================================================================== */
.community-layout {
    display: flex;
    gap: 32px;
}

.community-main {
    flex: 2;
}

.community-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-bar-container {
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.search-bar-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    color: #ffffff;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.search-bar-container input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.search-bar-container select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.search-bar-container select:focus {
    border-color: var(--neon-cyan);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.chart-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-color: rgba(255, 255, 255, 0.05);
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.chart-stars {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-yellow);
    text-shadow: var(--glow-yellow);
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.chart-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.chart-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-creator {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.chart-creator span {
    color: #ffffff;
    font-weight: 600;
}

.chart-btn {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neon-cyan);
    transition: var(--transition-smooth);
}
.chart-btn:hover {
    color: #ffffff;
    text-shadow: var(--glow-cyan);
}

/* Leaderboards styling */
.leaderboard-card {
    padding: 24px;
}

.leaderboard-card h3, .stats-summary-card h3 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 20px;
}

.rank-lbl.gold { color: #ffd700; }
.rank-lbl.silver { color: #c0c0c0; }
.rank-lbl.bronze { color: #cd7f32; }

.creator-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.creator-pid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.creator-stars {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* Engine stats box */
.stats-summary-card {
    padding: 24px;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row span {
    color: var(--text-muted);
}

/* ==========================================================================
   PAGE: DOWNLOAD STAGE
   ========================================================================== */
.download-container {
    max-width: 900px;
    margin: 0 auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.download-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.platform-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    padding: 4px 30px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: var(--neon-cyan);
    color: var(--bg-base);
    box-shadow: var(--glow-cyan);
}

.platform-badge.zip {
    background: var(--neon-magenta);
    color: #ffffff;
    box-shadow: var(--glow-magenta);
}

.dl-icon {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 24px;
}

.download-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.download-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.file-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Spec requirements container */
.requirements-box {
    padding: 40px;
    border-color: rgba(255, 255, 255, 0.05);
}

.requirements-box h3 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 30px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.specs-grid {
    display: flex;
    gap: 40px;
}

.spec-col {
    flex: 1;
}

.spec-col h4 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
    margin-bottom: 16px;
}

.spec-col ul {
    list-style: none;
}

.spec-col li {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 6px 0;
}

.spec-col li strong {
    color: #ffffff;
}

/* ==========================================================================
   PAGE: DOCUMENTATION (DOCS)
   ========================================================================== */
.docs-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.docs-sidebar {
    flex: 0.8;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.docs-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-nav-link {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.docs-nav-link:hover, .docs-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.docs-nav-link.active {
    border-left: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: inset 4px 0 8px rgba(0, 240, 255, 0.03);
}

.docs-main {
    flex: 2.2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.doc-article {
    display: none;
    animation: fade-in 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.doc-article.active {
    display: block;
}

.doc-article h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 20px;
}

.doc-article p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.doc-article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 16px;
}

.doc-article ul, .doc-article ol {
    margin-left: 20px;
    margin-bottom: 24px;
}

.doc-article li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.doc-article li strong {
    color: #ffffff;
}

.doc-article code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: #030306;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    margin: 16px 0;
    color: var(--neon-cyan);
    overflow-x: auto;
}

/* Alert dialog boxes */
.alert-box {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert-box.note {
    background: rgba(0, 240, 255, 0.05);
    border: 1.5px solid rgba(0, 240, 255, 0.2);
    color: var(--text-main);
}

.alert-box.note strong {
    color: var(--neon-cyan);
    margin-right: 6px;
}

/* Inline keyboard visualizer key */
.kb-visualizer-container {
    background: #030306;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.kb-row {
    display: flex;
    gap: 8px;
}

.kb-key {
    width: 44px;
    height: 44px;
    background: #0c0d15;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
}

.kb-key.cyan {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.kb-key.magenta {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 8px rgba(255, 0, 127, 0.15);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glass);
    padding: 30px 24px;
    margin-top: 80px;
    z-index: 10;
}

.footer-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 960px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .community-layout {
        flex-direction: column;
    }
    
    .docs-layout {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    
    .docs-nav-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .docs-nav-link {
        white-space: nowrap;
    }
    
    .specs-grid {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Mobile menu toggled via classes */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: var(--bg-glass-heavy);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        z-index: 99;
        animation: fade-in 0.3s ease-out forwards;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-actions .btn-primary {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
