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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #081226 0%, #0a1929 50%, #0d1421 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a237e;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    flex: 1;
}

.nav-link {
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(26, 35, 126, 0.08);
    color: #1a237e;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 35, 126, 0.08);
    border: none;
    border-radius: 8px;
    color: #1a237e;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(26, 35, 126, 0.15);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-btn svg {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(26, 35, 126, 0.08);
}

.lang-option.active {
    background: rgba(26, 35, 126, 0.12);
    color: #1a237e;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-content {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }
    
    .nav-content.active {
        transform: translateY(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 16px;
        display: block;
    }
    
    .lang-dropdown {
        width: 100%;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .lang-menu {
        position: static;
        margin-top: 8px;
        transform: none;
    }
    
    .lang-dropdown.active .lang-menu {
        transform: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #1a237e;
    color: white;
}

/* Header */
.header {
    position: relative;
    text-align: center;
    padding: calc(80px + env(safe-area-inset-top)) 0 60px;
    color: white;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 140%;
    background: radial-gradient(1200px 500px at 10% 10%, rgba(99, 102, 241, 0.25), transparent 60%),
                radial-gradient(800px 400px at 90% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
                radial-gradient(700px 300px at 70% 60%, rgba(16, 185, 129, 0.15), transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}

.app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img,
.app-icon svg {
    width: 80px;
    height: 80px;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header .subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 40px;
}

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

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
    color: white;
    text-decoration: none;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    backdrop-filter: saturate(150%) blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 30px rgba(0,0,0,0.25);
}

.download-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.18));
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Main Content */
.main-content {
    background: color-mix(in oklab, white 96%, #f5f7fa);
    border-radius: 32px 32px 0 0;
    margin-top: 40px;
    padding: 60px 0 12px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
}

/* Features Section */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.06);
    border: 1px solid rgba(2, 6, 23, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.feature-card.new::before {
    content: 'NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.12);
}

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

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: #f8fafc;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.platform-tab {
    padding: 12px 30px;
    border: none;
    background: transparent;
    border-radius: 45px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-tab.active {
    background: #1a237e;
    color: white;
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.35);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.screenshot-title {
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}

/* Supported Devices */
.supported-devices {
    padding: 80px 0;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.device-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.device-card:hover {
    transform: translateY(-3px);
}

.device-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-tested {
    background: #d4edda;
    color: #155724;
}

.status-supported {
    background: #e2e3e5;
    color: #495057;
}

/* Contact Section */
.contact {
    padding: 64px 0;
    background: linear-gradient(135deg, #0a1929 0%, #1a237e 100%);
    color: white;
    text-align: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-email {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9em;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header .subtitle {
        font-size: 1.1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .screenshot-item img {
        max-width: 150px;
    }
}

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

    .screenshot-item img {
        max-width: 200px;
    }

    .platform-tabs {
        flex-direction: column;
        width: 200px;
    }
}

/* Language Switching */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

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

.feature-card,
.screenshot-item,
.device-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utilities */
.hidden {
    display: none;
}

/* Contact Overrides */
.contact .section-title {
    color: white;
    margin-bottom: 20px;
}

.contact .lead-text {
    margin-bottom: 20px;
}
