@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #000;
    --bg-card: hsla(0, 0%, 100%, 0.04);
    --bg-surface: hsla(0, 0%, 100%, 0.06);
    --text: #fff;
    --text-secondary: hsla(0, 0%, 100%, 0.6);
    --text-muted: hsla(0, 0%, 100%, 0.35);
    --border: hsla(0, 0%, 100%, 0.1);
    --border-strong: hsla(0, 0%, 100%, 0.2);
    --accent: #3b82f6;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background: #000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Основной контейнер страницы */
main {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 64px; /* отступ под фиксированный хедер */
}

/* Корневой блок лендинга */
.landing-root {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Фиксированный фон */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.65;
    pointer-events: none;
}

/* Hero секция */
.landing-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-hero-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.landing-hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.hero-badge-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;       /* ← добавляем */
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.text-accent {
    color: var(--accent);
}

.landing-hero-left p {
    color: var(--text-secondary);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    max-width: 480px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.proto-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: hsla(0, 0%, 100%, 0.06);
    border: 1px solid hsla(0, 0%, 100%, 0.15);
}

.proto-vless { color: #fff; }
.proto-h2 { color: hsla(0, 0%, 100%, 0.8); }
.proto-tuic { color: hsla(0, 0%, 100%, 0.6); }

.hero-price-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.price-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-divider {
    width: 1px;
    height: 32px;
    background: var(--border-strong);
}

.trial-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.trial-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    padding: 13px 28px;
    cursor: pointer;
    transition: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: hsla(0, 0%, 100%, 0.05);
    color: hsla(0, 0%, 100%, 0.8);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

/* Правая карточка (glass-hero) */
.landing-hero-right {
    display: flex;
    justify-content: center;
    width: 100%;
}

.glass-hero {
    background: hsla(0, 0%, 4%, 0.8);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(40px);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.glass-hero-content {
    text-align: center;
    width: 100%;
}

.glass-hero h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.glass-hero p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-login-methods {
    margin: 20px 0;
}

.hero-stats-mini {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.stat-mini-item {
    text-align: center;
}
.stat-mini-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.stat-mini-label {
    font-size: 11px;
    color: var(--text-muted);
}

.glass-footer-links {
    font-size: 11px;
    color: var(--text-muted);
}
.glass-footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Features секции */
.landing-features {
    position: relative;
    z-index: 10;
    padding: 0 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.features-title {
    text-align: center;
    margin-bottom: 32px;
}
.features-title h2 {
    font-size: 28px;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: hsla(0, 0%, 100%, 0.03);
    border: 1px solid hsla(0, 0%, 100%, 0.06);
    border-radius: 40px;
    padding: 14px 24px;
    color: var(--text);
    font-size: 15px;
    backdrop-filter: blur(12px);
}
.benefit-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.text-center { text-align: center; }
.mb-10 { margin-bottom: 40px; }
.mb-8 { margin-bottom: 32px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: hsla(0, 0%, 100%, 0.025);
    border: 1px solid hsla(0, 0%, 100%, 0.06);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    backdrop-filter: blur(20px);
    transition: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--text);
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.platform-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.platform-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    transition: none;
}

.platform-icon {
    color: var(--text);
}
.platform-name { font-weight: 700; }
.platform-desc { font-size: 12px; color: var(--text-muted); }

/* Footer */
.landing-footer {
    position: relative;
    z-index: 10;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}
.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Анимации */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up {
    animation: fadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Адаптивность */
@media (max-width: 900px) {
    .landing-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .landing-hero-left {
        align-items: center;
    }
    .hero-badge-chip, .hero-badges {
        justify-content: center;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 20px 16px;
    }
    .landing-features {
        padding: 0 16px 40px;
    }
    .glass-hero {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero-price-block {
        flex-direction: column;
        gap: 8px;
    }
    .price-divider {
        width: 100%;
        height: 1px;
    }
    .platform-card {
        padding: 16px;
        min-width: 120px;
    }
    .hero-stats-mini {
        gap: 12px;
    }
    .stat-mini-value {
        font-size: 16px;
    }
    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }
}