/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0720;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --neon-pink: #ff3cac;
    --neon-violet: #784BA0;
    --neon-yellow: #f9c80e;
    --neon-cyan: #08F7FE;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(1200px 600px at 50% -10%, rgba(255,60,172,0.25), transparent), radial-gradient(800px 400px at 80% 20%, rgba(8,247,254,0.12), transparent);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(5, 3, 20, 0.6);
    backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 2px 20px rgba(8, 247, 254, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(255,60,172,0.5), 0 0 18px rgba(8,247,254,0.35);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 60, 172, 0.08);
    box-shadow: 0 0 12px rgba(8, 247, 254, 0.15) inset;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #64748b;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle:hover {
    color: #6366f1;
}

/* Language Switcher */
.language-switcher {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(8,247,254,0.35);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 44px;
    min-width: 80px;
}

.language-switcher:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.language-switcher span {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #64748b;
}

.language-switcher span.active {
    background: #6366f1;
    color: white;
}

.language-switcher .lang-ru.active ~ .lang-en,
.language-switcher .lang-en.active ~ .lang-ru {
    color: #94a3b8;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    color: var(--text);
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255,60,172,0.25), transparent),
                linear-gradient(180deg, rgba(3,2,12,0.6), rgba(3,2,12,0.9));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Splash artwork overlay is optional; disabled by default to avoid missing asset warnings */
    background: none;
    opacity: 0.18;
    pointer-events: none;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.store-badge {
    height: 40px;
    width: auto;
}

.store-badge-large {
    height: 60px;
    width: auto;
}

/* Telegram Badge Styling */

.btn[href*="t.me"] {
    background: #0088cc !important;
    color: white !important;
    border: none;
    position: relative;
    min-width: 160px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

.btn[href*="t.me"]:hover {
    background: #006699 !important;
}

.btn[href*="t.me"]::before {
    content: "📱";
    margin-right: 8px;
    font-size: 1.2em;
}

.btn-large[href*="t.me"] {
    min-width: 180px;
    padding: 1rem 2rem;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.phone-screen {
    width: 280px;
    height: 500px;
    background: #1f2937;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
}

.app-preview {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6366f1;
}

.footer-info p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
    }

    /* Hero Section */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Store badges */
    .store-badge {
        height: 50px;
    }

    .store-badge-large {
        height: 60px;
    }

    .phone-mockup {
        height: 400px;
    }

    .phone-screen {
        width: 240px;
        height: 400px;
    }

    .section-title {
        font-size: 2rem;
    }

    .download-content h2 {
        font-size: 2rem;
    }

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

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

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

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        max-width: 100%;
        font-size: 0.9rem;
    }

    /* Smaller store badges for very small screens */
    .store-badge {
        height: 45px;
    }

    .store-badge-large {
        height: 55px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .download {
        padding: 60px 0;
    }

    .download-content h2 {
        font-size: 1.8rem;
    }

    .download-content p {
        font-size: 1rem;
    }

    .phone-screen {
        width: 200px;
        height: 350px;
    }

    /* Language switcher adjustments */
    .language-switcher {
        font-size: 0.8rem;
        min-width: 70px;
        padding: 0.4rem 0.6rem;
    }

    /* Logo size adjustment */
    .logo h1 {
        font-size: 1.5rem;
    }
}
