/* Системные шрифты Apple (San Francisco) + fallback */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    /* Глубокий космический градиент */
    background: radial-gradient(ellipse at top, #0d0d1a 0%, #03030a 100%);
    position: relative;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Усиливаем космическую атмосферу */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(100, 150, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(200, 100, 255, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(255, 200, 100, 0.05) 0%, transparent 40%);
    animation: galaxyFloat 30s infinite alternate ease-in-out;
}

@keyframes galaxyFloat {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    100% { transform: scale(1.1) rotate(1deg); opacity: 1; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* iOS-стиль матового стекла */
.glass-card {
    background: rgba(30, 30, 40, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(120, 120, 160, 0.2);
    border-radius: 44px;
    padding: 60px 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Затемняем фон под стеклом для читаемости */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 44px;
    z-index: -1;
}

/* Герой-блок */
.hero {
    text-align: center;
}

.title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(180deg, #ffffff 0%, #c0c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    background: linear-gradient(135deg, #9f9fff, #6b6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    opacity: 0.85;
}

/* Сетка преимуществ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.feature-item {
    padding: 30px 20px;
    background: rgba(40, 40, 50, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
}

.feature-item:hover {
    transform: translateY(-8px);
    background: rgba(50, 50, 70, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Кнопка призыва (стеклянная) */
.cta-section {
    text-align: center;
}

.glass-button {
    display: inline-block;
    padding: 18px 56px;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    text-decoration: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 255, 0.2);
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.6;
    font-weight: 400;
}

.small-text a {
    color: #a0a0ff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.small-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Блок "Как это работает" */
.how-it-works {
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #fff 0%, #c0c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 16px;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.step p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.85;
}

/* Подвал */
footer {
    text-align: center;
    padding: 40px 0 20px;
    opacity: 0.5;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Адаптивность под iOS */
@media (max-width: 768px) {
    .title {
        font-size: 3.2rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .steps {
        grid-template-columns: 1fr 1fr;
    }
    
    .glass-card {
        padding: 40px 20px;
        border-radius: 36px;
    }
    
    .glass-button {
        padding: 16px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2.8rem;
    }
    
    .feature-item {
        padding: 25px 15px;
    }
}

/* Для поддержки темной темы на системном уровне */
@media (prefers-color-scheme: dark) {
    body {
        background: #03030a;
    }
}

/* ===== КАСТОМНЫЙ ПРОГРЕСС-БАР ЗАГРУЗКИ ===== */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #03030a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.loader-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #6b6bff, #9f9fff, #c0c0ff);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(107, 107, 255, 0.5);
    transition: width 0.3s ease;
}

.loader-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Звезды на фоне */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 10px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 140px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 280px 390px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 450px 120px, #fffb, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 600px 550px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 720px 280px, #fffb, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 850px 620px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 950px 420px, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 1100px 200px, #fffb, rgba(0,0,0,0));
    background-repeat: repeat;
    animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== СТИЛИ ДЛЯ FAQ ===== */
.faq-section {
    text-align: left;
    margin-top: 40px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #c0c0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background: rgba(40, 40, 50, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(50, 50, 70, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #9f9fff;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Достаточно для любого ответа */
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Адаптивность для FAQ */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 20px 15px 20px;
    }
}