/* ===============================================
   МоиАвтоТесты - Landing Page Styles
   Colors matched with Flutter app theme
   =============================================== */

/* CSS Variables - from app_colors.dart */
:root {
    /* Primary */
    --primary: #667EEA;
    --primary-dark: #5A67D8;
    --primary-light: #7C3AED;

    /* Secondary */
    --secondary: #EC4899;
    --secondary-dark: #DB2777;
    --secondary-light: #F472B6;

    /* Neon Accents */
    --neon-purple: #A855F7;
    --neon-pink: #EC4899;
    --neon-blue: #3B82F6;
    --neon-cyan: #06B6D4;
    --neon-green: #10B981;
    --neon-orange: #F97316;

    /* Background */
    --bg-dark: #0A0A0F;
    --bg-main: #12121A;
    --bg-light: #1A1A2E;

    /* Surface */
    --surface: #1E1E2D;
    --surface-light: #2A2A3D;
    --surface-variant: #363650;

    /* Glass */
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.18);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B4B4C7;
    --text-hint: #6B6B80;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-secondary: linear-gradient(135deg, #EC4899 0%, #F97316 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    --gradient-pink: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);

    /* Shadows */
    --shadow: rgba(0, 0, 0, 0.4);
    --glow-purple: rgba(168, 85, 247, 0.4);
    --glow-pink: rgba(236, 72, 153, 0.4);
    --glow-blue: rgba(59, 130, 246, 0.4);

    /* Sizing */
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-main) 50%, var(--bg-light) 100%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--neon-purple);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-pink);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow-purple);
}

.btn-glass {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--glass-highlight);
    border-color: var(--glass-highlight);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 14px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-hint);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #2a2a3d 0%, #1e1e2d 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    border-radius: 32px;
    overflow: hidden;
    padding: 20px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-purple) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-header {
    text-align: center;
    padding: 16px 0;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
}

.card-icon {
    font-size: 32px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-hint);
}

.card-progress {
    font-size: 14px;
    font-weight: 700;
    color: var(--neon-green);
}

.app-card-ai {
    background: var(--gradient-primary);
    border: none;
}

.app-card-ai .card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neon-purple);
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-purple { background: var(--gradient-purple); }
.feature-icon-pink { background: var(--gradient-pink); }
.feature-icon-cyan { background: var(--gradient-accent); }
.feature-icon-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.feature-icon-orange { background: linear-gradient(135deg, #F97316 0%, #EA580C 100%); }
.feature-icon-blue { background: var(--gradient-blue); }

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
    padding: 32px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px var(--glow-purple);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
}

.step-icon {
    margin-top: 24px;
    color: var(--text-hint);
}

.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    opacity: 0.3;
}

/* Screenshots */
.screenshots-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex: 0 0 auto;
    text-align: center;
    scroll-snap-align: center;
}

.screenshot-phone {
    width: 220px;
    height: 440px;
    background: linear-gradient(145deg, #2a2a3d 0%, #1e1e2d 100%);
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 26px;
}

.screenshot-home { background: linear-gradient(180deg, #1a1a2e 0%, #12121a 100%); }
.screenshot-test { background: linear-gradient(180deg, #1e1e2d 0%, #0a0a0f 100%); }
.screenshot-stats { background: linear-gradient(180deg, #12121a 0%, #1a1a2e 100%); }
.screenshot-achievements { background: linear-gradient(180deg, #1a1a2e 0%, #1e1e2d 100%); }

.screenshot-card p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 80px 0;
}

.download-card {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.download-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: var(--surface-light);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.store-btn svg {
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-text span {
    font-size: 12px;
    color: var(--text-hint);
}

.store-text strong {
    font-size: 16px;
    font-weight: 600;
}

.store-btn-web {
    background: var(--gradient-primary);
    border: none;
}

.store-btn-web:hover {
    border: none;
}

.store-btn-web .store-text span {
    color: rgba(255, 255, 255, 0.7);
}

.download-qr {
    text-align: center;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.qr-placeholder {
    font-size: 32px;
    font-weight: 800;
    color: var(--bg-main);
}

.download-qr p {
    font-size: 14px;
    color: var(--text-hint);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--text-hint);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-hint);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 60px;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .btn-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .phone-mockup {
        width: 260px;
        height: 520px;
    }

    .download-card {
        padding: 40px 24px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    section {
        padding: 60px 0;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }
}
