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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --gradient-start: #1e3a8a;
    --gradient-end: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 24px;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-logo .logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Language Switcher in Nav */
.navbar .lang-switcher {
    position: relative;
    top: 0;
    right: 0;
    margin-left: 16px;
}

.navbar .lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
}

.navbar .lang-btn:hover {
    background: var(--bg-card);
}

/* Language Switcher (Global/Fixed) */
.lang-switcher {
    z-index: 1001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.lang-icon {
    font-size: 16px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.lang-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    min-width: 150px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.lang-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.lang-dropdown a:hover {
    background: var(--bg-card-hover);
}

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

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--bg-dark) 100%);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.logo-icon {
    font-size: 3.5rem;
}

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

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-style: italic;
}

/* Download Section */
.download-section {
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
}

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

.download-info {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.download-alt {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-alt code {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--accent-green);
    font-size: 0.85rem;
}

.version-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 60px;
}

.screenshot-gallery {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.screenshot-main {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.screenshot-frame {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.screenshot-frame:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.screenshot-caption {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

.screenshot-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 1000px;
}

.thumb-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.thumb-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    filter: brightness(0.85) saturate(0.8);
    transition: all 0.3s ease;
}

.thumb-item:hover img {
    filter: brightness(1) saturate(1);
}

.thumb-item.active img {
    filter: brightness(1) saturate(1);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.version-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.version-line {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.version-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 8px;
}

.version-sep {
    margin: 0 8px;
    color: var(--text-muted);
}

.version-line strong {
    color: var(--text-primary);
}

.sha-line {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sha-label {
    color: var(--text-primary);
    font-weight: 600;
}

.sha-hash {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.license-line {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.license-line strong {
    color: var(--text-primary);
}

.footer-github-link {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 4px;
}

.footer-github-link:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

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

.footer-license {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

    .nav-container {
        height: 60px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-logo .logo-icon {
        font-size: 1.3rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .navbar .lang-switcher {
        position: fixed;
        top: 68px;
        right: 16px;
        margin-left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 8px;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .features {
        padding: 60px 0;
    }

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

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
        align-items: flex-start;
    }

    .screenshots {
        padding: 60px 0;
    }

    .section-subtitle {
        margin-top: -20px;
        font-size: 1rem;
    }

    .screenshot-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .download-alt code {
        display: block;
        margin-top: 8px;
    }

    .screenshot-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }
.feature-card:nth-child(7) { animation-delay: 0.4s; }
.feature-card:nth-child(8) { animation-delay: 0.45s; }
.feature-card:nth-child(9) { animation-delay: 0.5s; }
.feature-card:nth-child(10) { animation-delay: 0.55s; }