/*=========================================================
                SocialVortex UI v2.1 (Cleaned)
=========================================================*/

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #09090B;
    --surface: #111118;
    --surface2: #171720;
    --primary: #7C3AED;
    --primary2: #8B5CF6;
    --primary3: #A855F7;
    --border: #2D2D3F;
    --text: #FAFAFA;
    --gray: #A1A1AA;
    --radius: 20px;
    --transition: .30s;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ФОНОВЫЕ СВЕЧЕНИЯ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 15% 20%, rgba(124,58,237,.18), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(59,130,246,.15), transparent 35%),
        #09090B;
}

.container {
    width: min(1250px, 92%);
    margin: auto;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1300px, 94%);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-radius: 18px;
    background: rgba(17, 17, 24, .8);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .08);
    z-index: 999;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--primary2);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #D4D4D8;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.hero-content {
    width: 100%;
    max-width: 880px;
    margin: auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(124, 58, 237, .12);
    border: 1px solid rgba(124, 58, 237, .25);
    color: #C4B5FD;
    font-size: 14px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 62px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero h1 span {
    background: linear-gradient(90deg, #7C3AED, #A855F7, #3B82F6);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 25px;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.6;
    max-width: 680px;
    margin-inline: auto;
}

/* ФОРМА ПОИСКА */
.download-box {
    margin-top: 45px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.download-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 35px rgba(124, 58, 237, .25);
}

.download-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    padding: 14px 18px;
}

.download-box input::placeholder {
    color: #666;
}

.btn {
    border: none;
    cursor: pointer;
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(124, 58, 237, .5);
}

/* СТАТИСТИКА */
.stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}

.stat h2 {
    font-size: 28px;
    color: var(--primary2);
}

.stat p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--gray);
}

/* LOADER */
.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 50px auto;
    border: 4px solid rgba(255, 255, 255, .08);
    border-top: 4px solid var(--primary);
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* КАРТОЧКА РЕЗУЛЬТАТА */
.video-card {
    width: 100%;
    max-width: 980px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 35px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(18px);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.video-author {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 25px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.meta-box {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
}

.meta-box span {
    display: block;
    color: var(--primary2);
    font-size: 13px;
    margin-bottom: 4px;
}

.meta-box h3 {
    font-size: 16px;
    font-weight: 600;
}

/* КНОПКИ КАЧЕСТВА */
.quality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 25px;
}

.quality {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #181824;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.quality:hover, .quality.active {
    background: var(--primary);
    border-color: var(--primary3);
}

.download-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-primary:hover {
    box-shadow: 0 0 30px rgba(124, 58, 237, .4);
    transform: translateY(-2px);
}

/* СЕКЦИИ И КАРТОЧКИ */
.section-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
}

.platforms, .features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.features {
    grid-template-columns: repeat(3, 1fr);
}

.platform-card, .feature-card {
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: var(--transition);
}

.platform-card:hover, .feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.platform-card h3, .feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.platform-card p, .feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(124, 58, 237, .15);
    color: #C4B5FD;
    font-size: 12px;
    font-weight: 600;
}

/* FOOTER */
footer {
    margin-top: 120px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 960px) {
    .video-card {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 42px;
    }
    .stats, .platforms, .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats, .platforms, .features {
        grid-template-columns: 1fr;
    }
    .download-box {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}