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

:root {
    --primary-color: #D4E8F5;
    --secondary-color: #A8D5E2;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --text-dark: #F5F5F5;
    --text-light: #B8B8B8;
    --bg-light: #1A1A1A;
    --white: #2C2C2C;
    --shadow: rgba(0, 0, 0, 0.5);
    --border-light: rgba(255, 255, 255, 0.1);
}

html {
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] html {
    background-color: var(--bg-light);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

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

[data-theme="dark"] .site-header {
    background-color: rgba(26, 26, 26, 0.9);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 10px;
    background-color: rgba(44, 62, 80, 0.15);
}

.logo-link:hover {
    background-color: rgba(44, 62, 80, 0.25);
    transform: scale(1.05);
}

[data-theme="dark"] .logo-link {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .logo-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px var(--shadow));
}

[data-theme="dark"] .logo-img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) brightness(1.1);
}

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

.controls {
    position: relative;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 5px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    border: 1px solid var(--border-light);
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background-color: transparent;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 13px;
}

.lang-btn:hover {
    background-color: var(--bg-light);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.2s ease;
    font-size: 20px;
    border: 1px solid var(--border-light);
}

.theme-toggle:hover {
    transform: scale(1.05);
    background-color: var(--bg-light);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--text-light);
    line-height: 1.7;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background-color: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 190px;
    border: none;
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.store-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    fill: currentColor;
}

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

.store-label {
    font-size: 0.7rem;
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 2px;
    font-weight: 400;
}

.store-name {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
}

.app-store-btn {
    background-color: #000000;
    color: var(--white);
}

[data-theme="dark"] .app-store-btn {
    background-color: #1a1a1a;
    color: #FFFFFF;
}

.app-store-btn:hover {
    background-color: #333333;
}

[data-theme="dark"] .app-store-btn:hover {
    background-color: #2a2a2a;
}

.google-play-btn {
    background-color: #01875f;
    color: var(--white);
}

[data-theme="dark"] .google-play-btn {
    background-color: #01875f;
    color: #FFFFFF;
}

.google-play-btn:hover {
    background-color: #01a372;
}

[data-theme="dark"] .google-play-btn:hover {
    background-color: #01b87a;
}

.download-btn span,
.download-btn .store-label,
.download-btn .store-name {
    color: inherit;
}

section {
    padding: 100px 0;
}

.features {
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

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

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow);
}

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

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 50px 0;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .footer {
    background-color: #0f0f0f;
    border-top: 1px solid var(--border-light);
}

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

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a[href="index.html"] {
    font-weight: 500;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.legal-page {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.legal-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.legal-date {
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 0.95rem;
}

.legal-content {
    max-width: 800px;
    line-height: 1.8;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.legal-content section {
    margin-bottom: 40px;
    padding: 0;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .legal-content a {
    color: var(--secondary-color);
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

[data-theme="dark"] .legal-content a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
}
