:root {
    --bg-color: #030712;
    --surface-color: rgba(17, 24, 39, 0.6);
    --primary-color: #22D3EE; /* Cyan */
    --text-color: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: rgba(34, 211, 238, 0.2);
    --font-header: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

.background-blur {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background:
            radial-gradient(circle at 15% 25%, rgba(34, 211, 238, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 85% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 40%);
    animation: moveBlurs 30s infinite alternate ease-in-out;
}

@keyframes moveBlurs {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.2) translate(50px, -50px); }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.tag {
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: inline-block;
}

h1, h2, h3, h4 {
    font-family: var(--font-header);
    font-weight: 800;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 42px; margin-bottom: 16px; }
p { font-size: 18px; color: var(--text-muted); line-height: 1.8; }

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 14px 28px;
    font-size: 16px;
    font-family: var(--font-header);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn:hover { background: transparent; color: var(--primary-color); }
.btn.btn-secondary { background: transparent; color: var(--primary-color); }
.btn.btn-secondary:hover { background: var(--primary-color); color: var(--bg-color); }

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}
.main-header.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
}
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-header); font-size: 28px; font-weight: 800; color: var(--text-color); text-decoration: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; margin: 0 20px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-color); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 100px;
}
#hero-canvas-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.5;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.philosophy-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.1);
    transform: translateY(-5px);
}
.card-icon { font-size: 36px; margin-bottom: 20px; }
.glass-card h3 { font-size: 22px; margin-bottom: 10px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- VISUALIZER --- */
#audio-visualizer-canvas {
    width: 100%;
    height: 150px;
    margin-top: 30px;
    border: 1px dashed var(--border-color);
    border-radius: 5px;
}

.privacy-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.privacy-text ul { list-style: none; padding-left: 0; margin-top: 20px; }
.privacy-text li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.privacy-text li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); }
.privacy-visual { text-align: center; }
.shield-icon { font-size: 150px; color: var(--primary-color); opacity: 0.3; }

.download-section { text-align: center; }
.platform-links { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 40px; }
.platform-btn { background: var(--surface-color); color: var(--text-color); padding: 12px 24px; border-radius: 5px; text-decoration: none; transition: background-color 0.3s; }
.platform-btn:hover { background: var(--primary-color); color: var(--bg-color); }

.roadmap-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.roadmap-timeline::before { content: ''; position: absolute; left: 20px; top: 10px; bottom: 10px; width: 2px; background: var(--border-color); }
.roadmap-item { position: relative; padding: 15px 0 15px 50px; margin: 20px 0; font-size: 18px; }
.roadmap-item::before { content: ''; position: absolute; left: 12px; top: 21px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-color); border: 2px solid var(--border-color); }
.roadmap-item.done { color: var(--text-muted); text-decoration: line-through; }
.roadmap-item.done::before { background: var(--text-muted); border-color: var(--text-muted); }
.roadmap-item.current::before { background: var(--primary-color); border-color: var(--primary-color); }

.footer { background: var(--surface-color); border-top: 1px solid var(--border-color); padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; }
.footer-col a, .footer-col p { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text-color); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-muted); font-size: 14px; }

.cookie-banner { position: fixed; bottom: 20px; left: 20px; background: var(--surface-color); backdrop-filter: blur(10px); border: 1px solid var(--border-color); padding: 20px; border-radius: 10px; z-index: 1000; max-width: 380px; }
.cookie-banner a { color: var(--primary-color); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner button { margin-top: 15px; width: 100%; }

.legal-page .main-header { position: static; background: var(--surface-color); }
.legal-content { padding: 80px 0; }
.legal-content .container { max-width: 800px; text-align: left; }
.legal-content h1 { font-size: 40px; margin-bottom: 20px; }
.legal-content p, .legal-content li { margin-bottom: 1.5em; }

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}
.auth-container {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 20px;
    z-index: 2;
}
.auth-container .logo {
    display: inline-block;
    margin-bottom: 30px;
}
.auth-card {
    padding: 40px;
    text-align: left;
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px;
    font-family: var(--font-body);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
.auth-card .btn {
    width: 100%;
    margin-top: 10px;
}
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.terms-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -10px;
    margin-bottom: 20px;
}
.terms-notice a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-requisites {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-requisites p {
    margin: 0;
    padding: 0;
    color: var(--text-muted);
}

.footer-requisites a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-requisites a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .privacy-content { grid-template-columns: 1fr; text-align: center; }
    .privacy-text { order: 2; }
    .privacy-visual { order: 1; margin-bottom: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 32px; }
    .main-nav .nav-links, .main-nav .btn-secondary { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}