:root {
    --space-unit: 8px;
    --s-4: calc(var(--space-unit) * 0.5);
    --s-8: var(--space-unit);
    --s-12: calc(var(--space-unit) * 1.5);
    --s-16: calc(var(--space-unit) * 2);
    --s-24: calc(var(--space-unit) * 3);
    --s-32: calc(var(--space-unit) * 4);
    --s-48: calc(var(--space-unit) * 6);
    --s-80: calc(var(--space-unit) * 10);

    --bg: #05070f;
    --navbar-bg: rgba(5, 7, 15, 0.6);
    --surface: #0c0f1d;
    --surface-card: #111529;
    --border: rgba(255, 255, 255, 0.05);
    --text-main: #FFFFFF;
    --text-dim: #718096;
    --accent: #00a3ff;
    --btn-grad: linear-gradient(180deg, #00b0ff 0%, #0072ff 100%);
    --shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
    
    --c-discord: #5865F2;
    --c-telegram: #26A5E4;
    --c-github: #24292F;
    --c-youtube: #FF0000;
}

[data-theme="light"] {
    --bg: #f4f6fa;
    --navbar-bg: rgba(244, 246, 250, 0.75);
    --surface: #ffffff;
    --surface-card: #eaf0f6;
    --border: rgba(0, 15, 40, 0.08);
    --text-main: #0b1120;
    --text-dim: #62728d;
    --accent: #0072ff;
    --btn-grad: linear-gradient(180deg, #00a3ff 0%, #0062df 100%);
    --shadow: 0px 4px 16px rgba(0, 40, 100, 0.06);
    --c-github: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--s-24);
}

.bg-aura {
    position: fixed;
    top: 30%; left: 50%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -2;
    filter: blur(60px);
    animation: moveAura 12s infinite alternate ease-in-out;
}
@keyframes moveAura {
    0% { transform: translate(-45%, -55%); }
    100% { transform: translate(-55%, -45%); }
}

.bg-noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--s-24);
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color 0.4s, border-color 0.4s;
}

.menu-trigger {
    background: transparent;
    border: none;
    width: 32px; height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger {
    width: 16px; height: 1.5px;
    background: var(--text-main);
    position: relative;
    transition: background 0.2s;
}
.burger::before, .burger::after {
    content: ''; position: absolute;
    width: 16px; height: 1.5px;
    background: var(--text-main); left: 0;
    transition: transform 0.25s ease;
}
.burger::before { top: -5px; }
.burger::after { top: 5px; }

.active .burger { background: transparent; }
.active .burger::before { transform: translateY(5px) rotate(45deg); }
.active .burger::after { transform: translateY(-5px) rotate(-45deg); }

.theme-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }

.theme-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider-icon {
    width: 11px;
    height: 11px;
    z-index: 1;
    transition: color 0.3s;
}
.icon-moon { color: var(--accent); }
.icon-sun { color: var(--text-dim); }

.theme-slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: var(--text-main);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    z-index: 2;
}

input:checked + .theme-slider:before { transform: translateX(22px); }
input:checked + .theme-slider .icon-moon { color: var(--text-dim); }
input:checked + .theme-slider .icon-sun { color: var(--accent); }

.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg);
    opacity: 0; pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-overlay.open { opacity: 0.98; pointer-events: all; }

.nav-content { 
    display: flex; 
    flex-direction: column; 
    gap: var(--s-16); 
    width: auto; 
    align-items: center; 
}
.nav-links { 
    display: flex; 
    flex-direction: column; 
    gap: var(--s-4); 
    text-align: center; 
}
.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    padding: var(--s-6) var(--s-24);
    transition: color 0.2s, opacity 0.2s;
}
.nav-link:hover { 
    color: var(--accent); 
}

.section { padding: var(--s-80) 0; }
.border-top { border-top: 1px solid var(--border); }

.hero { padding-top: calc(48px + var(--s-80)); text-align: center; }

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: var(--s-16);
    margin-bottom: var(--s-4);
    display: block;
}

.main-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: var(--s-16);
}

.gradient-text {
    background: var(--btn-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 440px;
    margin: 0 auto var(--s-32);
    line-height: 1.5;
}

.actions { 
    display: flex;
    justify-content: center;
    gap: var(--s-12);
    flex-wrap: wrap;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 260px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: var(--s-12) var(--s-24);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn i { width: 14px; height: 14px; }

.btn-primary { background: var(--btn-grad); color: white; box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--text-main); border: 1px solid var(--border); }

.btn:hover { transform: translateY(-3px) scale(1.015); }
.btn-primary:hover { box-shadow: 0px 12px 24px rgba(0, 163, 255, 0.25); }
.btn-secondary:hover { background-color: var(--surface-card); }
.btn:active { transform: translateY(-1px) scale(0.985); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: var(--s-24); }
.stat-num { display: block; font-size: 32px; font-weight: 700; letter-spacing: -1px; color: var(--text-main); margin-bottom: var(--s-4); }
.stat-label { font-size: 11px; color: var(--text-dim); font-weight: 500; }

.section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: var(--s-32); text-align: center; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-16); }
.bento-item { background: var(--surface); border: 1px solid var(--border); padding: var(--s-24); border-radius: 6px; transition: background-color 0.3s; }
.bento-icon { color: var(--accent); margin-bottom: var(--s-12); }
.bento-icon i { width: 18px; height: 18px; }
.bento-item h3 { font-size: 15px; font-weight: 600; margin-bottom: var(--s-8); }
.bento-item p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.specs-table { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.table-row { display: flex; justify-content: space-between; padding: var(--s-16) var(--s-24); border-bottom: 1px solid var(--border); font-size: 13px; }
.table-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-dim); }
.spec-value { font-weight: 500; color: var(--text-main); }

.faq-list { display: flex; flex-direction: column; gap: var(--s-8); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.faq-question { padding: var(--s-16) var(--s-24); display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; user-select: none; }
.faq-chevron { width: 16px; height: 16px; color: var(--text-dim); transition: transform 0.2s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease-out; }
.faq-answer p { padding: 0 var(--s-24) var(--s-16); font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.social-grid {
    display: flex;
    justify-content: center;
    gap: var(--s-12);
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-btn .social-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-dim);
    transition: fill 0.3s ease;
}

.btn-discord:hover { background-color: var(--c-discord); border-color: var(--c-discord); box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3); }
.btn-telegram:hover { background-color: var(--c-telegram); border-color: var(--c-telegram); box-shadow: 0 4px 12px rgba(38, 165, 228, 0.3); }
.btn-github:hover { background-color: var(--c-github); border-color: var(--c-github); box-shadow: 0 4px 12px rgba(36, 41, 47, 0.3); }
.btn-youtube:hover { background-color: var(--c-youtube); border-color: var(--c-youtube); box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3); }

.social-btn:hover .social-icon { fill: #FFFFFF; }
.social-btn:hover { transform: translateY(-3px); }
.social-btn:active { transform: translateY(-1px); }

.btn.btn-disabled {
    background: var(--surface-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
    opacity: 0.6;
}
.btn.btn-disabled svg {
    fill: var(--text-dim) !important;
    color: var(--text-dim) !important;
}
.btn.btn-disabled i { color: var(--text-dim) !important; }

.download-alert {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: var(--s-8);
    background-color: rgba(255, 163, 0, 0.06);
    border: 1px solid rgba(255, 163, 0, 0.2);
    padding: var(--s-12);
    border-radius: 6px;
    text-align: left;
    font-size: 11px;
    line-height: 1.4;
    color: #ffb000;
    margin-bottom: var(--s-8);
    box-sizing: border-box;
    animation: fadeInAlert 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-alert .alert-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #ffb000;
}

@keyframes fadeInAlert {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.footer { padding: var(--s-48) 0 var(--s-32); text-align: center; border-top: 1px solid var(--border); }

.legal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: var(--s-24);
    border-radius: 6px;
    margin-bottom: var(--s-24);
    text-align: left;
}

.disclaimer { 
    font-size: 11px; 
    color: var(--text-dim); 
    line-height: 1.6; 
    margin-bottom: var(--s-12);
}
.disclaimer:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text-main); font-weight: 600; }

.copyright { font-size: 12px; color: var(--text-dim); font-weight: 500; }

@media (max-width: 768px) {
    .bento-grid, .stats-grid { grid-template-columns: 1fr; }
    .section { padding: var(--s-48) 0; }
    .navbar { padding: 0 var(--s-16); }
    .social-grid { gap: var(--s-8); }
}

.reveal { 
    opacity: 0 !important; 
    transform: translateY(12px) !important; 
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important; 
}

.reveal.visible { 
    opacity: 1 !important; 
    transform: translateY(0) !important; 
}
