:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --glass-blur: 20px;
    --accent-primary: #a78bfa;
    --accent-secondary: #7dd3fc;
    --accent-glow: #c4b5fd;
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.7);
    --bg-dark: #0a0a1a;
    --bg-gradient-1: #0f0c29;
    --bg-gradient-2: #1a1040;
    --bg-gradient-3: #0d1b3e;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.page {
    opacity: 0;
    animation: pageIn 0.5s ease forwards;
}

.page.hidden {
    display: none;
    opacity: 0;
    animation: none;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(167, 139, 250, 0.15);
    border-radius: var(--radius-sm);
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(125, 211, 252, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(196, 181, 253, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    z-index: -2;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}

.bg-stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite alternate;
    opacity: 0;
}

@keyframes twinkle {
    0% { opacity: 0.1; transform: scale(0.8); }
    100% { opacity: var(--max-opacity, 0.8); transform: scale(1.2); }
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.glass-surface {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
        0 8px 32px var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(90%, 800px);
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(167, 139, 250, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.08),
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(167, 139, 250, 0.08);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3));
}

.logo-accent {
    color: var(--accent-primary);
    margin-left: 4px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.discord-link {
    color: #7289da !important;
}

.discord-link:hover {
    background: rgba(114, 137, 218, 0.15) !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    margin-left: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--accent-primary);
    background: rgba(167, 139, 250, 0.15);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.lang-btn svg {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    gap: 60px;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.glass-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    background: rgba(167, 139, 250, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-glow);
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-glow {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.4));
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.primary-btn {
    background: rgba(167, 139, 250, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: var(--text-primary);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        0 4px 24px rgba(167, 139, 250, 0.3),
        0 0 60px rgba(167, 139, 250, 0.1);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.primary-btn:hover {
    background: rgba(167, 139, 250, 0.35);
    border-color: rgba(167, 139, 250, 0.6);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
        0 8px 40px rgba(167, 139, 250, 0.4),
        0 0 80px rgba(167, 139, 250, 0.15);
}

.primary-btn:active {
    transform: translateY(0);
}

.download-btn {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(125, 211, 252, 0.2));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 20px 40px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
        0 8px 32px rgba(167, 139, 250, 0.3),
        0 0 80px rgba(167, 139, 250, 0.1);
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.45), rgba(125, 211, 252, 0.35));
    border-color: rgba(167, 139, 250, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
        0 12px 48px rgba(167, 139, 250, 0.5),
        0 0 120px rgba(167, 139, 250, 0.2);
}

.btn-icon {
    display: flex;
    align-items: center;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.skin-container {
    position: relative;
    width: 700px;
    height: 800px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    overflow: visible;
}

.skin-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    animation: moonPulse 4s ease-in-out infinite;
}

.skin-img {
    position: relative;
    max-width: 110%;
    max-height: 110%;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 0 40px rgba(167, 139, 250, 0.4)) drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    animation: skinFloat 5s ease-in-out infinite;
}

@keyframes skinFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes moonPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

.features {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.glass-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.03),
        0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(167, 139, 250, 0.08);
}

.glass-card:hover::after {
    opacity: 1;
}

.card-icon {
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.card-icon svg {
    stroke: var(--accent-primary);
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.3));
}

.glass-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.glass-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

.download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
}

.download-page-content {
    width: 100%;
    max-width: 800px;
}

.download-hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.download-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.download-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.glass-card-dl {
    padding: 32px 28px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.03),
        0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card-dl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card-dl:hover {
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(167, 139, 250, 0.05);
}

.dl-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dl-card-header svg {
    stroke: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3));
}

.dl-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.dl-version {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Requirements list */
.req-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.req-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.req-row:last-child {
    border-bottom: none;
}

.req-key {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.req-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-glow);
}

@media (max-width: 768px) {
    .download-page {
        padding: 120px 20px 60px;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

.audio-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        0 4px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.audio-player:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(167, 139, 250, 0.25);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-btn:hover {
    background: rgba(167, 139, 250, 0.45);
    transform: scale(1.1);
}

.audio-volume-icon {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.audio-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.audio-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.audio-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
    border: none;
    cursor: pointer;
}

.glass-footer {
    padding: 32px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 24px 60px;
        gap: 40px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .glass-nav {
        width: 92%;
        padding: 12px 20px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .lang-switcher {
        margin-left: 8px;
    }

    .skin-container {
        width: 420px;
        height: 520px;
    }

    .features {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download {
        padding: 60px 20px;
    }

    .glass-panel {
        padding: 32px 24px;
    }

    .download-info {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .glass-badge {
        font-size: 0.75rem;
    }
}
