/* RESET & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #050511;
    --primary: #FF416C; /* Orange/Red Neon for Logo Match */
    --secondary: #00d2ff; /* Cyan */
    --accent: #bf5af2; /* Purple */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* BACKGROUND MESH GRADIENTS (Creating color spots) */
.background-mesh {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden; pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: floatBlob 10s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--secondary); }
.blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: var(--primary); animation-delay: 2s; }
.blob-3 { top: 40%; left: 30%; width: 30vw; height: 30vw; background: var(--accent); opacity: 0.2; animation-delay: 4s; }

@keyframes floatBlob { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 30px); } }

/* GLASSMORPHISM */
.glass-header {
    background: rgba(5, 5, 17, 0.7); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); position: fixed; width: 100%; z-index: 100;
}
.glass-card {
    background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* HEADER */
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; }
.desktop-nav a { color: var(--text-muted); text-decoration: none; margin: 0 15px; font-weight: 500; transition: 0.3s; }
.desktop-nav a:hover { color: #fff; }
.btn-header { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 20px; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.btn-header:hover { background: var(--secondary); border-color: var(--secondary); color: #000; }

/* HERO SECTION (Interactive) */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 25px; }
.text-gradient { background: linear-gradient(90deg, var(--secondary), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tag-pill { display: inline-block; padding: 5px 15px; background: rgba(0, 210, 255, 0.1); color: var(--secondary); border-radius: 20px; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 35px; max-width: 500px; }

/* 3D IMAGE CONTAINER */
.hero-visual-container { position: relative; perspective: 1000px; display: flex; justify-content: center; }
#hero-3d-img { width: 100%; max-width: 550px; transition: transform 0.1s ease-out; filter: drop-shadow(0 0 30px rgba(0, 210, 255, 0.2)); }
.glow-circle { position: absolute; width: 300px; height: 300px; background: var(--primary); filter: blur(100px); opacity: 0.2; z-index: -1; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* BUTTONS */
.btn-primary { background: linear-gradient(90deg, var(--primary), #FFB75E); color: #fff; border: none; padding: 16px 36px; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 65, 108, 0.3); transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255, 65, 108, 0.5); }
.hero-btns { display: flex; align-items: center; gap: 20px; }
.trust-badge { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 8px; align-items: center; }

/* SECTIONS */
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.desc-text { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

/* FEATURES GRID (Images) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { padding: 0; overflow: hidden; transition: 0.3s; }
.feature-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid var(--glass-border); }
.feat-content { padding: 25px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* STEPS */
.steps-row { display: flex; justify-content: space-between; align-items: flex-start; max-width: 900px; margin: 0 auto; }
.step-item { text-align: center; flex: 1; }
.step-num { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.1); margin-bottom: 10px; }
.step-line { width: 100px; height: 2px; background: rgba(255,255,255,0.1); margin-top: 30px; }
.step-item h4 { margin-bottom: 10px; color: var(--secondary); }

/* APP & FORM STYLES */
.app-wrapper { max-width: 600px; margin: 0 auto; min-height: 450px; display: flex; flex-direction: column; justify-content: center; }
.hidden { display: none; }
.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.benefits-row { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; color: var(--secondary); font-size: 0.9rem; }
.btn-full { width: 100%; }

.input-wrap { position: relative; margin-bottom: 15px; }
.input-wrap i { position: absolute; left: 15px; top: 16px; color: var(--text-muted); }
.input-wrap input { width: 100%; padding: 14px 14px 14px 45px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 12px; color: #fff; font-size: 1rem; }
.checkbox-wrap { font-size: 0.9rem; margin-bottom: 20px; }
.checkbox-wrap a { color: var(--secondary); }

/* FAQ */
.faq-wrapper { max-width: 700px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; cursor: pointer; transition: 0.3s; padding: 0; }
.faq-head { padding: 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-body { padding: 0 20px 20px; color: var(--text-muted); display: none; }
.faq-item.open { border-color: var(--secondary); background: rgba(255,255,255,0.08); }
.faq-item.open .faq-body { display: block; }
.faq-item.open i { transform: rotate(45deg); color: var(--secondary); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--glass-border); padding: 50px 0 20px; background: rgba(0,0,0,0.3); margin-top: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-links a { margin-left: 20px; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: #555; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* MEDIA */
@media(max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    .steps-row { flex-direction: column; align-items: center; gap: 30px; }
    .step-line { display: none; }
    .desktop-nav { display: none; }
    .footer-top { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links a { margin: 0 10px; }
}

/* =========================================
   QUIZ & APP STYLES (iOS Glass Fix)
   ========================================= */

/* Контейнер квиза */
.app-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Заголовки и текст внутри квиза */
.app-step h2 { font-size: 1.8rem; margin-bottom: 15px; text-align: center; color: #fff; }
.app-step h3 { font-size: 1.5rem; margin-bottom: 30px; text-align: center; color: #fff; font-weight: 600; }
.desc-text { text-align: center; color: var(--text-muted); margin-bottom: 30px; font-size: 1rem; }

/* Хедер квиза (Прогресс бар) */
.quiz-header {
    margin-bottom: 30px;
    width: 100%;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1); /* Темная подложка */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--primary)); /* Неоновый градиент */
    border-radius: 10px;
    transition: width 0.4s ease-out;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

#q-counter {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* КНОПКИ ОТВЕТОВ (Самое важное!) */
.quiz-option {
    display: flex;
    justify-content: space-between; /* Текст слева, стрелка справа */
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 12px;
    
    /* iOS Glass Style */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; /* Закругленные углы как в iOS */
    backdrop-filter: blur(10px);
    
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Эффекты при наведении */
.quiz-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary); /* Голубая обводка */
    transform: scale(1.02); /* Легкое увеличение */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Нажатие (Active) */
.quiz-option:active {
    transform: scale(0.98);
}

/* Контент внутри кнопки */
.opt-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-emoji {
    font-size: 1.4rem;
}

.opt-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.2s;
}

.quiz-option:hover .opt-arrow {
    color: var(--primary);
    transform: translateX(5px); /* Стрелка едет вправо */
}

/* Анимации для JS */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
    opacity: 0;
}
/* Задержка для каждой кнопки, чтобы они вылетали лесенкой */
.quiz-option:nth-child(2) { animation-delay: 0.1s; }
.quiz-option:nth-child(3) { animation-delay: 0.2s; }
.quiz-option:nth-child(4) { animation-delay: 0.3s; }
.quiz-option:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   CALCULATOR REDESIGN (Professional Look)
   ========================================= */

/* Карточка с результатом (Большая цифра) */
.result-card {
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2); /* Чуть темнее фона */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

#final-result {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    /* Градиентный текст для цифры */
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

/* Контейнеры для ползунков */
.control-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.control-header label {
    font-weight: 500;
    color: #fff;
    font-size: 1rem;
}

.value-badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Кастомный стиль самого ползунка (Range Input) */
input[type=range].custom-range {
    -webkit-appearance: none; /* Убираем стандартный вид */
    width: 100%;
    background: transparent;
}

/* Дорожка (Track) */
input[type=range].custom-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
}

/* Бегунок (Thumb) */
input[type=range].custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary); /* Неоновый оранжевый/красный */
    cursor: pointer;
    margin-top: -9px; /* Центрирование относительно дорожки */
    box-shadow: 0 0 10px rgba(255, 65, 108, 0.5);
    border: 2px solid #fff;
    transition: transform 0.1s;
}

input[type=range].custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Мобильная адаптация шрифтов */
@media (max-width: 480px) {
    #final-result { font-size: 2.5rem; }
    .control-header label { font-size: 0.9rem; }
}

/* =========================================
   FOOTER FIX (FOR LEGAL PAGES)
   ========================================= */

.site-footer {
    background: #02020a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: auto; /* Прижимает футер к низу */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Убираем точки списка */
.footer-col ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.footer-col li {
    margin-bottom: 12px;
}

/* Стили ссылок (убираем синий цвет) */
.footer-col a {
    color: #9ca3af !important; /* Светло-серый */
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--primary) !important; /* Неоновый при наведении */
    transform: translateX(5px);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: #555;
    font-size: 0.8rem;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .logo {
        justify-content: center;
    }
}

/* =========================================
   FEATURE CARDS HOVER EFFECTS (INTERACTIVE)
   ========================================= */

/* 1. Базовые настройки карточки */
.feature-card {
    position: relative;
    overflow: hidden; /* Чтобы зум картинки не вылезал за рамки */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистая анимация iOS */
    z-index: 1; /* Базовый слой */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Еле заметная граница */
}

/* 2. Эффект при наведении на саму карточку */
.feature-card:hover {
    transform: translateY(-10px); /* Всплытие вверх */
    z-index: 2; /* Выносим на передний план */
    border-color: rgba(255, 255, 255, 0.3); /* Граница становится ярче */
}

/* 3. Эффект для картинки внутри (Плавный зум) */
.feature-card img {
    transition: transform 0.6s ease; /* Картинка движется медленнее карточки (параллакс) */
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.feature-card:hover img {
    transform: scale(1.1); /* Легкое увеличение */
}

/* =========================================
   INDIVIDUAL NEON GLOW COLORS
   ========================================= */

/* Карточка 1 (Фиолетовый чип) */
.feature-card:nth-child(1):hover {
    box-shadow: 0 15px 30px rgba(191, 90, 242, 0.25); /* Purple Glow */
    border-top: 1px solid rgba(191, 90, 242, 0.5);
}

/* Карточка 2 (Зеленый щит/Биткоин) */
.feature-card:nth-child(2):hover {
    box-shadow: 0 15px 30px rgba(0, 255, 135, 0.25); /* Green Glow */
    border-top: 1px solid rgba(0, 255, 135, 0.5);
}

/* Карточка 3 (Кристаллы/Рост - Красно-синий) */
.feature-card:nth-child(3):hover {
    box-shadow: 0 15px 30px rgba(255, 65, 108, 0.25); /* Red/Pink Glow */
    border-top: 1px solid rgba(255, 65, 108, 0.5);
}

/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 768px) {
    /* На телефоне эффект скромнее, чтобы не мешать скроллу */
    .feature-card:hover {
        transform: translateY(-5px);
    }
}

/* =========================================
   QUIZ SIZE UPDATE (Desktop vs Mobile)
   ========================================= */

/* 1. Увеличиваем контейнер на больших экранах */
.app-wrapper {
    max-width: 900px !important; /* Было ~600px. Делаем широким */
    min-height: 600px !important; /* Делаем выше, чтобы занять пустоту */
    padding: 60px !important; /* Больше воздуха внутри карточки */
    
    /* Центрирование контента по вертикали */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 2. Увеличиваем заголовки и текст, чтобы соответствовать размеру */
.app-step h2 {
    font-size: 3rem !important; /* Крупный заголовок */
    margin-bottom: 25px !important;
}

.desc-text {
    font-size: 1.3rem !important; /* Крупный текст описания */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. Увеличиваем кнопку старта */
.app-step .btn-primary {
    padding: 20px 50px !important;
    font-size: 1.3rem !important;
    margin-top: 30px;
}

/* 4. Увеличиваем иконки преимуществ (Anonimo, Gratuito...) */
.benefits-row {
    gap: 30px !important;
    font-size: 1.1rem !important;
    margin-bottom: 40px !important;
}

/* =========================================
   MOBILE ADAPTATION (Critical!)
   ========================================= */
/* На телефонах возвращаем компактные размеры, чтобы не вылезало за экран */
@media (max-width: 768px) {
    .app-wrapper {
        max-width: 100% !important; /* На всю ширину экрана */
        min-height: auto !important; /* Высота по контенту */
        padding: 30px 20px !important; /* Обычные отступы */
        margin: 0 15px; /* Небольшой отступ от краев экрана */
    }

    .app-step h2 {
        font-size: 2rem !important; /* Возвращаем нормальный размер шрифта */
    }

    .desc-text {
        font-size: 1rem !important;
    }

    .app-step .btn-primary {
        width: 100%; /* Кнопка на всю ширину */
        padding: 16px !important;
        font-size: 1.1rem !important;
    }

    .benefits-row {
        flex-direction: column; /* Элементы друг под другом или компактно */
        gap: 10px !important;
        margin-bottom: 25px !important;
    }
}

/* =========================================
   FAQ REDESIGN (Smooth & Crisp)
   ========================================= */

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden; /* Важно для обрезки контента */
    transition: all 0.3s ease;
}

.faq-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    transition: background 0.3s;
}

/* Иконка (Крестик/Стрелка) */
.faq-header i {
    font-size: 0.9rem;
    color: var(--secondary); /* Мятный цвет */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Пружинистый поворот */
}

/* Тело ответа (Анимация) */
.faq-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    /* Убираем padding отсюда, чтобы не было скачков */
    padding: 0 25px;
    
    /* ТЕКСТ: Делаем четким и ярким */
    color: #e2e8f0; /* Светло-серый, почти белый */
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    
    /* Плавная анимация появления */
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

/* Активное состояние (Открыто) */
.faq-item.open {
    background: rgba(255, 255, 255, 0.08); /* Чуть светлее фон */
    border-color: var(--secondary); /* Мятная обводка */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.open .faq-header i {
    transform: rotate(135deg); /* Поворот в крестик */
    color: #fff;
}

.faq-item.open .faq-body {
    opacity: 1;
    padding-bottom: 25px; /* Отступ появляется плавно вместе с высотой */
}