* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.25rem 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: white;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #4338ca 100%);
    color: white;
    padding: 10rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-github {
    background: linear-gradient(135deg, #24292e 0%, #1a1f23 100%);
    color: white;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(36, 41, 46, 0.3);
}

.btn-github:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(36, 41, 46, 0.5);
}

.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.features h2,
.download h2,
.github h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.35rem;
    color: #64748b;
    margin-bottom: 4rem;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0.2);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
}

.download {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.download-section {
    margin-bottom: 5rem;
}

.download-section:last-child {
    margin-bottom: 0;
}

.download-section h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    padding-left: 1.5rem;
    border-left: 5px solid var(--secondary-color);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.download-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-card:hover::after {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-color);
}

.download-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.download-card h4 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.download-card p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.download-btn {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.download-card:hover .download-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.download-center {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.download-card-large {
    background: var(--card-bg);
    padding: 3.5rem 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.download-card-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-card-large:hover::after {
    opacity: 1;
}

.download-card-large:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.download-card-large .download-icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.download-card-large h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.download-card-large p {
    color: #64748b;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.download-card-large .download-btn {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

.download-card-large:hover .download-btn {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.github {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.github-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.github-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.github-info p {
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: #475569;
    font-size: 1.1rem;
}

.github-links {
    list-style: none;
}

.github-links li {
    margin-bottom: 1.25rem;
}

.github-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.github-links a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

.github-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

.github-content-center {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.github-info-center {
    text-align: center;
    max-width: 700px;
    padding: 3rem 2rem;
}

.github-info-center h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.github-info-center p {
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: #475569;
    font-size: 1.1rem;
}

.github-note {
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 1rem;
}

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 350px;
    }

    .nav-menu li {
        padding: 0.75rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .hero {
        padding: 6rem 0 5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .features h2,
    .download h2,
    .github h2 {
        font-size: 2.25rem;
    }

    .features-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-card-large {
        padding: 2.5rem 2rem;
        max-width: 100%;
    }

    .github-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .github-info-center {
        padding: 2rem 1rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .features,
    .download,
    .github {
        padding: 4rem 0;
    }

    .features h2,
    .download h2,
    .github h2 {
        font-size: 1.85rem;
    }

    .download-section h3,
    .github-info h3,
    .github-info-center h3 {
        font-size: 1.6rem;
    }

    .download-card-large {
        padding: 2rem 1.5rem;
    }

    .download-card-large h4 {
        font-size: 1.6rem;
    }

    .download-card-large .download-icon {
        font-size: 3.5rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
