/* 1. ОБНУЛЕНИЕ И ФИКС СКРОЛЛА */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* 2. ШРИФТЫ */
@font-face { font-family: 'Druk Wide Bold'; src: url('DrukWideBold.ttf') format('truetype'); font-weight: bold; }
@font-face { font-family: 'Inter'; src: url('Inter-Bold.otf') format('opentype'); font-weight: 700; }
@font-face { font-family: 'Inter'; src: url('Inter-Regular.otf') format('opentype'); font-weight: 400; }

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding-left: clamp(20px, 9.8vw, 198px); 
    padding-right: clamp(20px, 9.8vw, 198px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ШАПКА */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 200;
}
.logo-block { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 60px; height: 60px; object-fit: contain; }
.logo-text { font-family: 'Druk Wide Bold', sans-serif; font-size: 24px; line-height: 1; }

/* КНОПКИ */
.btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
}
.btn:hover { background: #fff; color: #000; }
.btn-waitlist { padding: 8px 20px; font-size: 16px; box-shadow: 0 0 12px rgba(255, 255, 255, 1); }
.btn-access { margin-top: 40px; padding: 16px 36px; font-size: 22px; box-shadow: 0 0 15px rgba(255, 255, 255, 1); }

/* HERO СЕКЦИЯ */
.hero {
    flex: 1;
    flex-shrink: 0;
    min-height: 100vh; 
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate; 
}

/* ТЕКСТ */
.text-layer {
    position: relative;
    z-index: 100;
    max-width: 800px;
}
h1 { font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; margin-bottom: 30px; }
.white-line { width: 100%; max-width: 600px; height: 1px; background: rgba(255, 255, 255, 0.3); margin-bottom: 30px; }
.description { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.4; max-width: 400px; color: rgba(255, 255, 255, 0.9); }

/* КАРТОЧКА (Слой 50) */
.card-layer {
    position: absolute;
    right: -35%; 
    top: 40%;
    transform: translateY(-50%);
    perspective: 2000px;
    z-index: 10;
    pointer-events: none;
}

.perspective-card {
    /* Чтобы не сплющивалась, задаем ширину и пропорцию сторон */
    width: clamp(550px, 80vw, 1500px); 
    height: auto; 
    aspect-ratio: 2.2 / 1.4; /* Сохраняет пропорцию при сжатии окна */
    
    border-radius: 40px;
    overflow: hidden;
    background: transparent;
    /* Твои повороты */
    transform: rotateY(30deg) rotateX(40deg) rotateZ(-18deg);
    
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 95%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 95%);
}

.perspective-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* СИНИЙ СВЕТ */
.bg-glow {
    position: absolute;
    left: 0;
    top: 45%;
    width: 500px;
    height: 0px; 
    z-index: 10;
    box-shadow: 0 0 200px 60px #0096DB;
}

.video-section {
    width: 100%;
    display: flex;
    justify-content: center; /* Центрирует карточку по горизонтали */
    padding: 200px 0;        /* Большой отступ сверху и снизу, чтобы секции не слипались */
    position: relative;
    z-index: 10;
}

.video-card {
        width: 100%;
        max-width: 1200px;
        aspect-ratio: 16 / 9; /* Соотношение сторон видео-карточки */
        background: #000;
        border-radius: 0px;
        overflow: hidden; /* Скрывает углы видео под радиус */
        position: relative;
        box-shadow: 0 0 250px 35px rgba(0, 150, 219, 0.4);
        border: 0px solid rgba(255, 255, 255, 0.1);
    }

    .video-element {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Видео заполнит всю карточку без искажений */
        display: block;
    }




/* СЕКЦИЯ ФИЧ */
.features-section {
    padding: 120px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    gap: 0;
}

.feature-item {
    padding: 60px 0;
    max-width: 450px; /* Ограничиваем ширину текста */
}

/* ПРАВАЯ КОЛОНКА: прижимаем содержимое к правому краю ячейки */
.feature-item-right {
    justify-self: end;
    text-align: left; /* Сам текст внутри остается левоориентированным */
}

.feature-item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.feature-item p {
    font-size: 18px;
    line-height: 1.5;
    color: rgb(255, 255, 255);
    font-family: 'Inter', sans-serif;
}

/* ЛИНИИ ПЛЮСА */
.cross-line-h, .cross-line-v {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Горизонтальная: в центре ярко-белая (100%), к краям уходит в 0% */
.cross-line-h {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,1) 50%, 
        rgba(255,255,255,0) 100%);
}

/* Вертикальная: в центре ярко-белая (100%), вверх/вниз уходит в 0% */
.cross-line-v {
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,1) 50%, 
        rgba(255,255,255,0) 100%);
}


/* ФУТЕР */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 100px 0 60px;
    border-top: 0px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.copyright {
    font-size: 14px;
    color: rgb(255, 255, 255);
    margin-top: 40px;
}

.footer-right {
    display: flex;
    gap: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #0096DB;
}

/* 1. Картинка логотипа в футере */
.footer .logo-icon {
    width: 80px;  /* Ставь нужное число (в шапке у тебя 60px) */
    height: 80px;
}

/* 2. Текст "SlonAi, Inc." в футере */
.footer .logo-text {
    font-size: 22px; /* Ставь нужное число (в шапке у тебя 28px) */
}

/* 3. Если нужно поменять расстояние между картинкой и текстом */
.footer .logo-block {
    margin-left: -20px;
    gap: 5px; 
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Сама карточка */
.modal-card {
    background: #111;
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: 0.3s;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-card h2 { font-size: 32px; margin-bottom: 12px; color: #fff; }
.modal-card p { font-size: 16px; color: rgba(255, 255, 255, 0.5); margin-bottom: 30px; }

/* Форма внутри */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-form input {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.waitlist-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

/* Кнопка-крестик */
.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
}

/* АДАПТИВНОСТЬ */

@media (max-width: 768px) {

        .container {
            min-height: auto;
            height: auto;
            padding-bottom: 80px; /* Добавляем место в самом низу сайта для скролла */
            padding-left: 20px;
            padding-right: 20px;
        }
        
        .btn-waitlist{
            padding: 10px 10px; /* Делаем чуть меньше, чем на компе */
            font-size: 13px; 
        }

        .btn-access {
        padding: 12px 24px; /* Делаем чуть меньше, чем на компе */
        font-size: 18px;    /* Уменьшаем шрифт */
        }

        .hero { 
            flex-direction: column; 
            justify-content: flex-start; /* Меняем center на flex-start */
            padding: 60px 0 20px 0; 
            min-height: auto; /* ОЧЕНЬ ВАЖНО: разрешаем блоку быть любой высоты */
            height: auto;
        }
        
        .text-layer { max-width: 100%; text-align: left; }

        .card-layer {
            position: relative;
            right: 0;
            top: 0; /* УБИРАЕМ 50%, ставим 0 */
            transform: none; 
            width: 130%; /* Ставим 100%, чтобы не распирало экран */
            margin-top: 0px; /* Регулируем отступ от текста здесь */
            display: flex;
            justify-content: center;
        }

        .perspective-card {
            /* На мобилке оставляем 3D наклон, но уменьшаем масштаб, чтобы влезло */
            transform: scale(0.8) rotateY(30deg) rotateX(40deg) rotateZ(-18deg);
            width: 100%; /* Немного шире экрана, чтобы наклон смотрелся эффектно */
            aspect-ratio: 2.2 / 1.4;
            mask-image: none; /* Убираем убывание, чтобы карточку было видно целиком */
            border-radius: 20px;
        }
        
        .bg-glow { 
            box-shadow: 0 0 150px 40px #0096DB;
            top: 25%; width: 100%;
        }

        .video-section {
            width: 100%;
            display: flex;
            justify-content: center;
            padding: 0px 0; /* Даем отступ, чтобы карточки не слипались */
            margin-top: 0px;
            position: relative;
            z-index: 10;
            flex: none; /* Запрещаем сжиматься */
        }

        .video-card {
            width: 100%;
            max-width: 1200px;
            aspect-ratio: 16 / 9; /* Соотношение сторон видео-карточки */
            background: #000;
            border-radius: 0px;
            overflow: hidden; /* Скрывает углы видео под радиус */
            position: relative;
            box-shadow: 0 0 250px 20px rgba(0, 150, 219, 0.4);
            border: 0px solid rgba(255, 255, 255, 0.1);
        }

        .video-element {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Видео заполнит всю карточку без искажений */
            display: block;
        }

        .features-grid {
        grid-template-columns: 1fr;
        }

        .feature-item-right {
            justify-self: start;
        }

        .cross-line-h, .cross-line-v, .features-grid::after {
            display: none;
        }

        .footer {
            flex-direction: column;
            margin-top: -150px;
            gap: 60px;
        }

        /* 1. Центрируем блок с колонками */
        .footer-right {
            order: 1;
            display: flex;
            /* РАЗРЕШАЕМ ПЕРЕНОС НА НОВУЮ СТРОКУ */
            flex-wrap: wrap; 
            justify-content: center; /* Сдвигает колонки в центр */
            text-align: center;
            gap: 40px;
        }

        .footer-left {
            order: 2;
            align-items: flex-start; /* Сначала прижимаем влево */
            padding-left: 0%;      /* А потом двигаем вправо на 20px */
            width: 100%;
        }

        /* 2. Центрируем текст внутри каждой колонки */
        .footer-col {
            align-items: center; /* Выравнивает ссылки и заголовки по центру */
        }

}