/* --- CSS Переменные --- */
:root {
    --bg-main: #0c101d;
    --bg-card: #1a2341;
    --bg-darker: #080b14;
    --primary: #457dd5;
    --text-main: #ffffff;
    --text-muted: #a0aabf;
    
    /* Акцентные цвета */
    --acc-red: #e74c3c;
    --acc-blue: #3498db;
    --acc-green: #2ecc71;
    --acc-yellow: #f1c40f;
    --acc-purple: #9b59b6;

    --font-head: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Базовые настройки --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Фон и Эффекты --- */
.neuro-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.blob-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: var(--acc-purple); bottom: -100px; right: -100px; }

/* --- Навигация --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(12, 16, 29, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; }
.dot { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a:hover { color: var(--primary); }

.nav-controls { display: flex; align-items: center; gap: 20px; }
.lang-switch { font-weight: 600; cursor: pointer; font-size: 0.9rem; }
.lang-opt { color: var(--text-muted); }
.lang-opt.active { color: var(--primary); }
.lang-opt:hover { color: white; }

/* Burger Menu (Mobile) */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: 0.3s; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
}
.hero-content { max-width: 600px; z-index: 2; }
.badge {
    display: inline-block;
    background: rgba(69, 125, 213, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(69, 125, 213, 0.3);
}
h1 { font-family: var(--font-head); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; max-width: 450px; }

.hero-btns { display: flex; gap: 15px; }
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: 0.3s;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(69, 125, 213, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(69, 125, 213, 0.4); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* Hero Animation Visual */
.hero-visual {
    position: absolute; right: 10%; top: 50%; transform: translateY(-50%);
    width: 300px; height: 300px;
}
.brain-circle {
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}
.pulse-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid var(--primary);
    border-radius: 50%;
    animation: pulse 3s infinite;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

/* --- Sections General --- */
.section { padding: 100px 0; }
.bg-darker { background: var(--bg-darker); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 10px; font-family: var(--font-head); }
.subtitle { color: var(--text-muted); }

/* --- Cards Grid (Exercises) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.card:hover { transform: translateY(-10px); }
.card-icon { font-size: 2rem; margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.btn-card {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

/* Цветовые акценты */
.card-red { border-top: 3px solid var(--acc-red); }
.card-red:hover { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15); }
.card-red .btn-card:hover { background: var(--acc-red); }

.card-blue { border-top: 3px solid var(--acc-blue); }
.card-blue:hover { box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15); }
.card-blue .btn-card:hover { background: var(--acc-blue); }

.card-green { border-top: 3px solid var(--acc-green); }
.card-green:hover { box-shadow: 0 10px 30px rgba(46, 204, 113, 0.15); }
.card-green .btn-card:hover { background: var(--acc-green); }

.card-yellow { border-top: 3px solid var(--acc-yellow); }
.card-yellow:hover { box-shadow: 0 10px 30px rgba(241, 196, 15, 0.15); }
.card-yellow .btn-card:hover { background: var(--acc-yellow); color: #000; }

.card-purple { border-top: 3px solid var(--acc-purple); }
.card-purple:hover { box-shadow: 0 10px 30px rgba(155, 89, 182, 0.15); }
.card-purple .btn-card:hover { background: var(--acc-purple); }

/* --- About Grid --- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about-card { padding: 20px; border-left: 2px solid var(--primary); background: linear-gradient(90deg, rgba(69, 125, 213, 0.05), transparent); }
.about-card h3 { margin-bottom: 10px; color: var(--primary); }

/* --- Team --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.avatar-ph {
    width: 100px; height: 100px; background: #2a3b5e; border-radius: 50%;
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: rgba(255,255,255,0.2); font-size: 1.5rem;
}
.role { font-size: 0.85rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }

/* --- Investors Box --- */
.investor-box {
    background: var(--bg-card); border-radius: 20px; padding: 50px;
    display: flex; align-items: center; justify-content: space-between;
}
.inv-list { margin: 20px 0; padding-left: 20px; }
.inv-list li { list-style: disc; color: var(--text-muted); margin-bottom: 10px; }

.inv-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bar { width: 30px; background: var(--primary); border-radius: 5px 5px 0 0; }
.b1 { height: 40%; animation: grow 2s infinite alternate; }
.b2 { height: 70%; animation: grow 2.5s infinite alternate 0.5s; }
.b3 { height: 100%; animation: grow 3s infinite alternate 1s; }
@keyframes grow { from { transform: scaleY(0.8); } to { transform: scaleY(1.1); } }

/* --- Footer --- */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.f-logo { color: white; font-weight: 700; }
.socials a { margin-left: 20px; color: var(--text-muted); }
.socials a:hover { color: var(--primary); }

/* --- Modal --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--bg-card); padding: 40px; border-radius: 15px;
    width: 90%; max-width: 500px; text-align: center; position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; }
.modal-visual {
    height: 150px; background: rgba(0,0,0,0.2); margin: 20px 0; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.demo-animation { color: var(--primary); font-family: monospace; }

/* --- Animations --- */
.scroll-anim { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.scroll-anim.visible { opacity: 1; transform: translateY(0); }

.fade-up { opacity: 0; animation: fadeUp 1s forwards; }
@keyframes fadeUp { to { opacity: 1; } }

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; top: 60px; height: 90vh; background: var(--bg-card);
        flex-direction: column; width: 70%; padding: 40px; transform: translateX(100%); transition: 0.3s;
    }
    .nav-links.nav-active { transform: translateX(0); }
    .burger { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero-visual { display: none; }
    .about-grid, .team-grid, .investor-box { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .inv-chart { display: none; }
}