:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --accent-color: #FF9500;
    --success-color: #34C759;
    --warning-color: #FFCC00;
    --danger-color: #FF3B30;
    
    --text-primary: #1c1c1e;
    --text-secondary: #3a3a3c;
    --text-tertiary: #8e8e93;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f2f2f7;
    --bg-tertiary: #e5e5ea;
    
    --border-color: #c6c6c8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #e5e5ea;
    --text-tertiary: #8e8e93;
    
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-tertiary: #3a3a3c;
    
    --border-color: #48484a;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-selector {
    position: fixed;
    top: 80px;
    right: 80px;
    z-index: 1000;
}

#languageToggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

#languageToggle:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.lang-option:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
}

.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

#themeToggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

#themeToggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.sun-icon, .moon-icon {
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon,
:not([data-theme]) .moon-icon {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: all 0.3s ease;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none !important;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.nav-logo:visited,
.nav-logo:link,
.nav-logo:active {
    text-decoration: none !important;
}

.nav-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

.hero {
    padding: 120px 2rem 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-container {
    margin-bottom: 2rem;
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    object-fit: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 600;
}

[data-theme="dark"] .badge-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .badge-item:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .badge-text {
    color: rgba(255, 255, 255, 0.95) !important;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.btn-testflight {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    color: white;
}

.btn-testflight:hover {
    background: linear-gradient(135deg, #0051D5 0%, #4A9FE7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: var(--bg-primary);
    border-radius: 40px;
    border: 8px solid var(--text-primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    padding: 20px;
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flight-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.flight-number {
    font-weight: 700;
    color: var(--primary-color);
}

.flight-status {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.city {
    text-align: center;
}

.city-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.city-name {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.flight-path {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plane-icon {
    font-size: 24px;
    z-index: 2;
    animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
}

.path-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.flight-timer {
    text-align: center;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.timer-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

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

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.achievements {
    padding: 80px 0;
    background: var(--bg-primary);
}

.achievement-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.achievement-category h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.achievement-badge {
    font-size: 2rem;
}

.achievement-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.achievement-info p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.achievement-showcase {
    margin-top: 3rem;
}

.achievement-showcase h3 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.achievement-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.achievement-card.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.achievement-card.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: white;
}

.achievement-card.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

.achievement-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stats {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.stat-chart {
    height: 150px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

.pie-chart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color) 0deg 126deg,
        var(--secondary-color) 126deg 216deg,
        var(--accent-color) 216deg 288deg,
        var(--success-color) 288deg 360deg
    );
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    width: 100%;
}

.bar {
    width: 15%;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    height: var(--height);
    transition: all 0.3s ease;
}

.bar:hover {
    background: var(--secondary-color);
}

.stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: var(--bg-primary);
    border-radius: 20px;
}

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

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

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

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

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.app-store-btn {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.testflight-btn {
    display: inline-block;
    transition: all 0.3s ease;
}

.testflight-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.platform-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
}

.footer-simple {
    text-align: center;
}

.footer-links-simple {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links-simple a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

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

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 1rem 60px;
        min-height: auto;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-left {
        width: 100%;
        align-items: center;
    }
    
    .hero-right {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-badges {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .badge-item {
        justify-content: center;
        width: 100%;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .app-icon-container {
        margin-bottom: 1.5rem;
    }
    
    .app-icon {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }
    
    .achievements {
        padding: 60px 0;
    }
    
    .achievement-categories {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .footer-links-simple {
        flex-direction: column;
        gap: 15px;
    }
    
    .language-selector {
        right: 60px;
        top: 70px;
    }
    
    .theme-toggle {
        right: 10px;
        top: 70px;
    }
    
    #languageToggle, #themeToggle {
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .download {
        padding: 80px 0;
    }
    
    .download-content h2 {
        font-size: 2rem;
    }
    
    .download-content p {
        font-size: 1.1rem;
    }
    
    .platform-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .app-store-btn, .testflight-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .app-store-btn img, .testflight-btn svg {
        width: 100%;
        height: auto;
        max-width: 200px;
    }
}