/* --- Шрифты и переменные --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&display=swap');

:root {
    --bg-main: #0B0A10;
    --bg-card: rgba(22, 21, 31, 0.5);
    --text-light: #F2F2F2;
    --text-secondary: #A1A1AA;
    --border-color: rgba(139, 92, 246, 0.2);
    --gradient-start: #8B5CF6;
    --gradient-end: #3B82F6;
}

/* --- Глобальные стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Фон и эффекты --- */
.background-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* --- Шапка --- */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 10, 16, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-light);
}

/* --- Основной контент --- */
h1, h2 {
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    background: linear-gradient(90deg, var(--text-light), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.subtitle, .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

section {
    padding: 6rem 0;
}

/* --- Секция Hero --- */
#hero {
    padding: 8rem 0;
    text-align: center;
}

#hero .subtitle {
    margin: 0 auto 2.5rem auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* --- Карточки (Features, Modules) --- */
.feature-grid, .modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card, .module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover, .module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
}

.feature-card p, .module-card p {
    color: var(--text-secondary);
}

/* --- Архитектура --- */
#architecture .section-subtitle {
    text-align: center;
    margin: 0 auto 4rem auto;
}

.arch-diagram {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
}

.arch-node {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.arch-connector {
    flex: 0 1 50px;
    position: relative;
}

.arch-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), var(--border-color) 50%, transparent 50%);
    background-size: 10px 2px;
}

/* --- FAQ --- */
.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-secondary);
}

/* --- Подвал --- */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .arch-diagram {
        flex-direction: column;
    }
    .arch-connector {
        flex: 0 1 50px;
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        gap: 1.5rem;
    }
    section {
        padding: 4rem 0;
    }
    #hero {
        padding: 5rem 0;
    }
}