/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #333;
    --border-color: #f0f0f0;
    --border-color-dark: #333;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(0, 0, 0, 0.05);
    --hero-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --categories-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --footer-bg: #1a1a1a;
    --footer-text: #999;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-heavy: rgba(0, 0, 0, 0.2);
}

html.dark {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #151515;
    --bg-card: #1f1f1f;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-tertiary: #d0d0d0;
    --border-color: #2a2a2a;
    --border-color-dark: #444;
    --header-bg: rgba(15, 15, 15, 0.95);
    --header-border: rgba(255, 255, 255, 0.05);
    --hero-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --categories-gradient: linear-gradient(135deg, #151515 0%, #252525 100%);
    --footer-bg: #0a0a0a;
    --footer-text: #777;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-heavy: rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.theme-toggle {
    position: relative;
    width: 56px;
    height: 32px;
    background: #e0e0e0;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

html.dark .theme-toggle {
    background: #667eea;
}

html.dark .toggle-slider {
    transform: translateX(24px);
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1600px;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.gradient-text {
    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.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ratings {
    margin-bottom: 32px;
}

.rating-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stars {
    font-size: 18px;
}

.rating-text {
    font-weight: 600;
    color: var(--text-primary);
}

.rating-count {
    color: var(--text-secondary);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.store-button {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.store-button img {
    height: 90px;
    width: auto;
}

/* Screenshots Carousel */
.screenshots-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1550px;
}

.screenshots-window {
    overflow: hidden;
    width: 1380px;
    max-width: 100%;
}

.screenshots-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.screenshot-item {
    flex-shrink: 0;
    width: 260px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px 10px;
    box-shadow: 
        0 20px 40px var(--shadow-color-heavy),
        inset 0 0 0 2px #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.screenshot-item::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: #333;
    border-radius: 3px;
    z-index: 10;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px var(--shadow-color-heavy),
        inset 0 0 0 2px #333;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.screenshot-item .screenshot-light {
    display: block;
}

.screenshot-item .screenshot-dark {
    display: none;
}

html.dark .screenshot-item .screenshot-light {
    display: none;
}

html.dark .screenshot-item .screenshot-dark {
    display: block;
}

.carousel-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Support Section */
.support {
    padding: 100px 0;
    background: var(--categories-gradient);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.support-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.support-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.support-link {
    display: inline-block;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-link:hover {
    color: #764ba2;
}

/* Categories Section */
.categories {
    padding: 100px 0;
    background: var(--categories-gradient);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.category-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.category-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--text-secondary);
}

.author-flag {
    font-size: 24px;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.download p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-note {
    margin-top: 24px;
}

.download-note p {
    font-size: 14px;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--footer-bg);
    color: #ffffff;
}

.footer .logo {
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left p {
    color: var(--footer-text);
    margin-top: 12px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color-dark);
    text-align: center;
}

.footer-bottom p {
    color: var(--footer-text);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .screenshots-carousel {
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .screenshot-item {
        width: 175px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 24px;
    }
    
    .screenshots-carousel {
        gap: 8px;
    }
    
    .screenshot-item {
        width: 145px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
