:root {
    --bg: #0b0b0f;
    --primary: #6c42f5;
    --cyan: #89b4fa;
    --pink: #f5c2e7;
    --text: #ffffff;
    --text-muted: #a6adc8;
    --glass: rgba(20, 24, 35, 0.6);
    --border: rgba(255,255,255,0.08);
}

body {
    margin: 0; font-family: 'Montserrat', sans-serif;
    background: var(--bg); color: var(--text);
    overflow-x: hidden; min-height: 100vh;
}

#bg-canvas, .noise-overlay { position: fixed; inset: 0; pointer-events: none; }
#bg-canvas { z-index: 0; }
.noise-overlay { z-index: 1; opacity: 0.05; background: url('https://grainy-gradients.vercel.app/noise.svg'); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid rgba(255, 255, 255, 0.05); }
::-webkit-scrollbar-thumb { background: rgba(108, 66, 245, 0.3); border-radius: 10px; border: 2px solid var(--bg); transition: all 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); box-shadow: 0 0 15px var(--primary); }
html { scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg); }

#sidebar-container { position: relative; z-index: 9999; }
.sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    width: 70px; background: rgba(15,15,20,0.6); backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 9999; transition: width 0.4s;
    display: flex; flex-direction: column; overflow: hidden;
}
.sidebar.expanded { width: 260px; background: #13131a; }
.toggle-btn { height: 70px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: white; flex-shrink: 0;}
.nav-list { flex: 1; padding-top: 10px; display: flex; flex-direction: column; }
.nav-item { height: 55px; display: flex; align-items: center; text-decoration: none; color: #a6adc8; position: relative; transition: 0.2s; white-space: nowrap; }
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item .icon { min-width: 70px; display: flex; justify-content: center; font-size: 24px; }
.nav-item .label { opacity: 0; transform: translateX(10px); transition: 0.3s; font-weight: 600; }
.sidebar.expanded .nav-item .label { opacity: 1; transform: translateX(0); }
.sidebar-footer { margin-top: auto; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: #1e1e28; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 30px; width: 90%; max-width: 320px; text-align: center; transform: translateY(20px); transition: 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close-btn { background: rgba(255,255,255,0.1); border:none; padding: 12px 0; width: 100%; color: white; border-radius: 12px; cursor: pointer; margin-top: 20px; font-weight: 600; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.lang-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; display: flex; flex-direction: column; gap: 5px; }
.lang-card:hover { border-color: var(--primary); background: rgba(108,66,245,0.15); }
.flag { font-size: 1.5rem; }

@media (max-width: 1024px) {
    .sidebar { top: auto; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90% !important; max-width: 400px; height: 65px; flex-direction: row; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: rgba(20, 20, 25, 0.85); overflow: visible; justify-content: space-around; padding: 0 10px; }
    .toggle-btn { display: none; }
    .nav-list { flex-direction: row; padding: 0; justify-content: space-between; width: 100%; align-items: center; }
    .nav-item { height: 100%; flex: 1; justify-content: center; flex-direction: column; gap: 0; }
    .nav-item .label { display: none; }
    .nav-item .icon { min-width: auto; font-size: 26px; margin-bottom: 0; }
    .sidebar > div:last-child { margin: 0 !important; display: flex; align-items: center; }
}

.faq-container {
    position: relative; z-index: 10;
    max-width: 1000px; margin: 0 auto;
    padding: 100px 20px 60px 20px;
    padding-left: 90px;
}

.back-btn {
    position: fixed; top: 30px; left: 100px; z-index: 20;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-muted);
    font-weight: 600; transition: 0.3s;
    background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 50px;
    border: 1px solid var(--border);
}
.back-btn:hover { color: white; background: rgba(255,255,255,0.1); transform: translateX(-5px); }

.header-content { text-align: center; margin-bottom: 40px; }
.page-title { font-size: 3.5rem; font-weight: 900; margin: 0; line-height: 1.1; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-updated { font-size: 1.1rem; color: var(--text-muted); margin-top: 10px; }

.manifesto-box {
    background: linear-gradient(135deg, rgba(108, 66, 245, 0.1), rgba(137, 180, 250, 0.05));
    border: 1px solid rgba(108, 66, 245, 0.3);
    border-radius: 20px; padding: 25px; text-align: center;
    margin-bottom: 60px; position: relative; overflow: hidden;
}
.manifesto-box p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #e0e0e0; font-style: italic; }
.heart-icon { font-size: 2rem; display: block; margin-bottom: 10px; animation: pulse 2s infinite; }

.toc-container {
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 24px; padding: 30px; margin-bottom: 100px;
    backdrop-filter: blur(20px);
}
.toc-container h3 { margin: 0 0 20px 0; color: var(--primary); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-item {
    text-decoration: none; color: var(--text-muted);
    padding: 12px 20px; border-radius: 12px; font-size: 1rem; font-weight: 500;
    transition: 0.2s; background: rgba(255,255,255,0.02); display: flex; align-items: center;
}
.toc-item::before { content: '•'; margin-right: 10px; color: var(--primary); opacity: 0; transition: 0.3s; }
.toc-item:hover { background: rgba(255,255,255,0.08); color: #fff; padding-left: 25px; }
.toc-item:hover::before { opacity: 1; }

.faq-section {
    display: flex; align-items: center; justify-content: space-between;
    gap: 60px; margin-bottom: 150px; scroll-margin-top: 50px;
    opacity: 0;
}
.faq-section:nth-child(even) { flex-direction: row-reverse; }

.text-col { flex: 1; }
.text-col h2 { font-size: 2.2rem; margin: 0 0 20px 0; color: #fff; }
.text-col p { font-family: 'Roboto', sans-serif; font-size: 1.1rem; line-height: 1.7; color: #cdd6f4; text-align: justify; margin-bottom: 20px; }

.visual-col { flex: 0 0 auto; width: 300px; display: flex; justify-content: center; position: relative; }
.phone-mockup {
    width: 270px; aspect-ratio: 9/19.5;
    background: #000; border-radius: 38px;
    border: 6px solid #2a2a35;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    overflow: hidden; position: relative;
    transition: transform 0.3s ease;
}
.phone-mockup:hover { transform: translateY(-10px) rotate(1deg); }
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }

.visual-col.logo-mode .phone-mockup {
    border: none; background: transparent; box-shadow: none; overflow: visible;
}
.visual-col.logo-mode img { object-fit: contain; filter: drop-shadow(0 0 30px rgba(108,66,245,0.4)); }

.faq-section.text-only-mode {
    display: block; text-align: center;
    background: rgba(243, 139, 168, 0.05);
    border: 1px solid rgba(243, 139, 168, 0.2);
    border-radius: 30px; padding: 60px 40px;
}
.faq-section.text-only-mode h2 { justify-content: center; color: var(--pink); }
.faq-section.text-only-mode p { text-align: center; max-width: 700px; margin: 0 auto; }

.faq-footer { text-align: center; color: rgba(255,255,255,0.2); margin-top: 50px; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

@media (max-width: 1024px) {
    .faq-container { padding-left: 20px; padding-top: 80px; }
    .back-btn { position: absolute; top: 20px; left: 20px; }
    .faq-section, .faq-section:nth-child(even) { flex-direction: column; gap: 40px; text-align: left; }
    .text-col h2 { font-size: 1.8rem; }
    .text-col p { text-align: left; }
    .visual-col { width: 100%; }
    .phone-mockup { width: 240px; }
}