:root {
    --bg-base: #0a0b10;
    --bg-surface: #12141d;
    --bg-surface-elevated: #1a1d29;
    --bg-card: rgba(18, 20, 29, 0.75);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow-red: rgba(255, 42, 68, 0.35);
    --border-glow-blue: rgba(0, 212, 255, 0.35);
    
    --switch-red: #ff2a44;
    --switch-red-glow: rgba(255, 42, 68, 0.45);
    --switch-blue: #00d4ff;
    --switch-blue-glow: rgba(0, 212, 255, 0.45);
    --switch-green: #10b981;
    --switch-purple: #8b5cf6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255, 42, 68, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(0, 212, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.joycon-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.joycon-left {
    width: 12px;
    height: 24px;
    background: var(--switch-blue);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 0 10px var(--switch-blue-glow);
}

.joycon-right {
    width: 12px;
    height: 24px;
    background: var(--switch-red);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 0 10px var(--switch-red-glow);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.brand-title span {
    background: linear-gradient(135deg, var(--switch-blue), #fff, var(--switch-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #ff2a44, #e60012);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 42, 68, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 42, 68, 0.6);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: #252a3b;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-cyan {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: #051424;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.55);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 4rem auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--switch-green);
    box-shadow: 0 0 8px var(--switch-green);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #00d4ff, #ffffff 50%, #ff2a44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* Hero Showcase Image */
.hero-image-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(255, 42, 68, 0.4));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 42, 68, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    background: var(--bg-surface);
}

/* Feature Grid */
.section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--switch-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card:hover {
    border-color: rgba(255, 42, 68, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 42, 68, 0.15);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 42, 68, 0.1);
    color: var(--switch-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-box.cyan {
    background: rgba(0, 212, 255, 0.1);
    color: var(--switch-blue);
}

.feature-icon-box.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--switch-green);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Gallery Showcase */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-subtle);
}

.gallery-info {
    padding: 1.25rem;
}

.gallery-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Download Card */
.download-card {
    background: linear-gradient(135deg, rgba(18, 20, 29, 0.95), rgba(26, 29, 41, 0.95));
    border: 1px solid rgba(255, 42, 68, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 42, 68, 0.15);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.download-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.download-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.checksum-box {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-all;
    display: inline-block;
    max-width: 90%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--switch-blue);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .navbar { padding: 1rem; }
    .nav-links { display: none; }
}

