:root {
    --primary-color: #FFFFFF;
    --primary-dark: #F5F5F5;
    --secondary-color: #C0C0C0;
    --background: #000000;
    --background-alt: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border-color: #333333;
    --gradient-start: #000000;
    --gradient-end: #111111;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] {
    --primary-color: #FFFFFF;
    --primary-dark: #F5F5F5;
    --secondary-color: #C0C0C0;
    --background: #000000;
    --background-alt: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --border-color: #333333;
    --gradient-start: #000000;
    --gradient-end: #111111;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .navbar {
    background: rgba(28, 28, 30, 0.8);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .screenshot-item,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .about-tech,
[data-theme="dark"] .modal,
[data-theme="dark"] .nav-links {
    background: #2C2C2E;
    border-color: #424245;
}

[data-theme="dark"] .faq-question:hover {
    background: #3A3A3C;
}

[data-theme="dark"] .feature-icon-img {
    filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

[data-theme="dark"] .language-switcher {
    background: rgba(44, 44, 46, 0.9);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Navigation right side (links + language) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1100px) {
    .nav-right {
        gap: 12px;
    }
    .language-switcher {
        margin-top: 4px; /* при переносе окажется строкой ниже меню */
    }
}


.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: var(--background-alt);
    color: var(--text-primary);
}

.lang-btn.active {
    background: transparent;
    color: inherit;
    border: none;
}

.lang-current {
    color: var(--text-primary);
    font-weight: 600;
}

.theme-toggle {
    display: none !important;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
}

.theme-toggle:hover {
    background: var(--background-alt);
    color: var(--text-primary);
}

.theme-icon {
    font-size: 18px;
    line-height: 1;
}

[data-theme="dark"] .theme-toggle {
    color: #F5F5F7;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #3A3A3C;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

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

/* Active state for hamburger */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: #000000;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    word-wrap: break-word; /* Prevent overflow */
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #E5E5E5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-appstore {
    gap: 12px;
    padding-left: 32px;
    padding-right: 36px;
    min-width: 220px;
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--background);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--background-alt);
    padding: 32px;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* Screenshots */
.screenshots {
    padding: 80px 0;
    background: var(--background-alt);
    overflow: hidden;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0 40px;
}

@media (max-width: 992px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

.screenshot-item {
    width: 100%;
    background: var(--background);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 12px;
}

.screenshot-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--background);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
}

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

.faq-question:hover {
    background: #E5E5EA;
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--background-alt);
    border-radius: 0 0 16px 16px;
    margin-top: -8px;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
    max-height: 500px;
    margin-top: 0;
}

/* About */
.about {
    padding: 80px 0;
    background: var(--background-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.intro-text {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.sub-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-list-detailed {
    list-style: none;
    display: grid;
    gap: 24px;
}

.feature-list-detailed li {
    padding-left: 24px;
    position: relative;
}

.feature-list-detailed li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -4px;
}

.feature-list-detailed strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-tech {
    background: var(--background);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.about-tech h3 {
    margin-bottom: 24px;
    font-size: 20px;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-list li {
    padding: 6px 12px;
    background: var(--background-alt);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background: var(--background);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

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

/* Utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--background);
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: var(--background-alt);
    color: var(--text-primary);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: center;
}

.modal-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    background: var(--background-alt);
    color: var(--text-primary);
}

.submit-btn {
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.success-message {
    display: none;
    text-align: center;
    padding: 10px 0;
}

.success-message.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.error-message {
    color: #FF3B30;
    font-size: 14px;
    text-align: center;
    display: none;
    margin-top: 12px;
}

.error-message.visible {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        padding: 0 10px;
    }

    @media (max-width: 480px) {
        .hero-title {
            font-size: 28px;
        }
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 16px;
        align-items: center;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* Adjust Language Switcher for mobile to not overlap with menu button */
    .language-switcher {
        top: 15px;
        right: 60px; /* Move left to avoid overlap with potential elements or just keep clear */
        padding: 4px;
        transform: scale(0.9);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Modal */
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.media-modal.active {
    opacity: 1;
    visibility: visible;
}

.media-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.media-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-modal-content img,
.media-modal-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Theme-specific visibility (Moved to end for precedence) */
.theme-img-light {
    display: block;
}
.theme-img-dark {
    display: none;
}

[data-theme="dark"] .theme-img-light {
    display: none;
}
[data-theme="dark"] .theme-img-dark {
    display: block;
}

/* Pricing Page */
.pricing-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card {
    display: inline-block;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 48px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: none;
    max-width: 100%;
}

.pricing-features {
    list-style: none;
    display: grid;
    gap: 20px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    color: var(--text-primary);
}

.check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.pricing-action {
    text-align: center;
}

.pricing-text-display {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.pricing-trial-text {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.cookie-consent.visible {
    transform: translateY(0);
}

[data-theme="dark"] .cookie-consent {
    background: rgba(28, 28, 30, 0.95);
}

.cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn.accept {
    background: #000000;
    color: white;
}

.cookie-btn.accept:hover {
    background: #333333;
    transform: translateY(-1px);
}

[data-theme="dark"] .cookie-btn.accept {
    background: #FFFFFF;
    color: #000000;
}

[data-theme="dark"] .cookie-btn.accept:hover {
    background: #E5E5E5;
}

@media (max-width: 600px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}
