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

:root {
    /* Brand Colors */
    --primary: #0000FF;
    --secondary: #A855F7;
    --tertiary: #00A8D4;
    --accent: #FACC15;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F97316;

    /* Light Theme */
    --bg-primary: #F9FAFB;
    --bg-surface: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-light: #E1E4E8;
    --inactive-light: #EBEDF0;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0000FF 0%, #A855F7 70%, #00A8D4 100%);
    --gradient-accent: linear-gradient(135deg, #FACC15 0%, #F97316 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-surface: #1E293B;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-light: #30363D;
    --inactive-light: #161B22;
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(-6px);
    /* Overlap header bottom by 6px */
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-6px);
    /* Overlap header bottom by 6px */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Changed from center to flex-start */
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    background: var(--primary);
    width: 100px;
    height: 60px;
    /* Increased height to accommodate the extension */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 255, 0.3);
    transform: translateY(10px);
    /* Extends 10px below the header */
}

.logo img {
    width: 50px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 10px;
    /* Align with the logo baseline */
}

.theme-toggle {
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 255, 0.2);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-image {
    height: 100px;
    background-color: var(--primary);
    padding: 16px;
    border-radius: 12px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 168, 212, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-20px, -20px) rotate(120deg);
    }

    66% {
        transform: translate(20px, -10px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Download Section */
.download-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 0 auto 4rem;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-hero);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 255, 0.4);
}

.download-icon {
    font-size: 1.3rem;
}

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

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 255, 0.15);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
    border-color: var(--success);
}

.benefit-check {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Perfect For Section */
.perfect-for {
    padding: 100px 0;
    background: var(--bg-surface);
}

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

.perfect-card {
    background: var(--gradient-card);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.perfect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.perfect-card:hover::before {
    transform: scaleX(1);
}

.perfect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 255, 0.1);
}

.perfect-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.perfect-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(250, 204, 21, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 168, 212, 0.3) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .download-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta .download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-hero);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 255, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    color: var(--text-secondary);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    margin: 2rem 0 1.5rem;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.powered-by:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 255, 0.1);
}

.powered-by .logo-icon {
    width: 20px;
    height: 20px;
    background: var(--gradient-hero);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.platform-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-options .logo {
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 999;
}

.platform-group {
    margin-bottom: 1.5rem;
}

.platform-group:last-child {
    margin-bottom: 0;
}

.platform-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-strip {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--success);
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 11px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    z-index: 10;

}

.platform-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--gradient-card);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
}

.platform-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 255, 0.15);
    border-color: var(--primary);
}

.platform-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-hero);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.platform-icon img {
    width: 32px;
    height: 32px;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.platform-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.platform-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-badge {
    background: var(--success);
}

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

    nav {
        padding: 1rem;
    }

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

    .download-section {
        padding: 2rem 1.5rem;
        margin: 0 15px 3rem;
    }

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

    .feature-card {
        padding: 2rem;
    }

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

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

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

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

    .feature-card,
    .perfect-card {
        padding: 1.5rem;
    }

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

    /* Modal Responsive */
    .modal {
        padding: 3.5rem 1.5rem;
    }

    .platform-option {
        padding: 1rem;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .platform-icon img {
        width: 28px;
        height: 28px;
    }

    .platform-name {
        font-size: 1rem;
    }


}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}