/* ═══════════════════════════════════════════════════════
   🎬 Нарезки Завод — Лендинг
   ═══════════════════════════════════════════════════════ */

/* ─── Переменные ───────────────────────────────────── */
:root {
    --primary: #7c5cfc;
    --primary-dark: #5a3fe0;
    --primary-light: #a78bfa;
    --bg: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a25;
    --surface: #1a1a25;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --border: #2a2a3a;
    --accent-green: #34d399;
    --accent-pink: #f472b6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --glow: 0 0 80px rgba(124, 92, 252, 0.15);
}

/* ─── Сброс ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Кнопки ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 252, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-white {
    background: #fff;
    color: var(--bg);
}
.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
    border-color: #fff;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: var(--radius);
}

/* ─── Бейдж ────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(124, 92, 252, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(124, 92, 252, 0.2);
    margin-bottom: 16px;
}

/* ─── Навбар ───────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { font-size: 14px; padding: 10px 20px; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a {
    font-size: 16px;
    color: var(--text-muted);
    padding: 8px 0;
}
.mobile-menu.open { display: flex; }

/* ─── Герой ────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Phone Mockup ─────────────────────────────────── */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 3px solid var(--border);
    padding: 12px;
    box-shadow: var(--glow), var(--shadow);
    position: relative;
}

.phone-mockup.small {
    width: 220px;
    height: 440px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0d0d14;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-webcam {
    flex: 1;
    background: linear-gradient(135deg, #1a1a30, #252540);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-bottom: 2px solid var(--primary);
}

.mockup-content {
    flex: 2;
    background: linear-gradient(135deg, #0f1a0f, #1a2a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mockup-app-header {
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    background: var(--surface);
    flex-shrink: 0;
}

.mockup-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px;
    background: var(--bg-card);
    margin-top: auto;
    flex-shrink: 0;
}

.mockup-tabs .tab {
    font-size: 20px;
    opacity: 0.5;
}
.mockup-tabs .tab.active { opacity: 1; }

/* Floating badges */
.floating-badge {
    position: absolute;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

.fb-1 { top: 60px; right: -20px; animation-delay: 0s; }
.fb-2 { top: 200px; left: -30px; animation-delay: 1s; }
.fb-3 { bottom: 100px; right: -10px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─── Секции ───────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

/* ─── Фичи ─────────────────────────────────────────── */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── Шаги ─────────────────────────────────────────── */
.how-it-works {
    padding: 120px 0;
    background: var(--surface);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
}

.step-arrow {
    font-size: 28px;
    color: var(--primary);
    font-weight: 800;
}

/* ─── Мобильная секция ─────────────────────────────── */
.mobile-section {
    padding: 120px 0;
}

.mobile-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mobile-text h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.mobile-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.mobile-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.mf-item {
    font-size: 14px;
    font-weight: 500;
}

.mobile-visual {
    display: flex;
    justify-content: center;
}

/* ─── FAQ ──────────────────────────────────────────── */
.faq {
    padding: 120px 0;
    background: var(--surface);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ─── CTA ──────────────────────────────────────────── */
.cta-section {
    padding: 80px 0 120px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(124, 92, 252, 0.3);
}

.cta-card h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Футер ────────────────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Respons ive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 42px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 36px; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }

    .features-grid { grid-template-columns: 1fr; }

    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .step { max-width: 100%; }

    .mobile-inner { grid-template-columns: 1fr; text-align: center; }
    .mobile-features { justify-items: center; }

    .section-header h2 { font-size: 30px; }

    .cta-card { padding: 40px 24px; }
    .cta-card h2 { font-size: 28px; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 28px; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
