body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.landing-container {
    text-align: center;
    max-width: 1200px;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.landing-header {
    margin-bottom: 1rem;
    width: 100%;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 24px;
    border-radius: 20px;
    /* Fully rounded */
    border: 1px solid var(--md-sys-color-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.0, 0, 1.0);
    background: transparent;
    color: var(--md-sys-color-primary);
    box-shadow: none;
    min-width: 44px;
    min-height: 44px;
}

.theme-toggle:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 8px rgba(0, 0, 0, 0.12);
    /* Elev 2 */
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    transform: translateY(-1px);
    border-color: var(--md-sys-color-primary);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.brand-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 60px;
    position: relative;
    z-index: 1;
}

.logo .theme-toggle {
    position: relative;
    z-index: 1;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

/* Theme-specific gradients for the title */
:root .logo h1 {
    color: var(--text);
}



.landing-message {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.how-to-use {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.tutorial-link {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 108, 53, 0.2);
}

.tutorial-link:hover {
    background: rgba(0, 108, 53, 0.1);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

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

.option-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Ensure text is centered */
}

.option-card:hover {
    transform: translateY(-5px);
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 4rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.option-card:hover .card-icon {
    transform: scale(1.1);
}

.option-card h2 {
    font-size: 1.8rem;
    margin: 0;
}

.option-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: auto;
    /* landing buttons are inline-flex */
    padding: 0 32px;
    /* Larger padding for landing */
    height: 48px;
    /* Larger target */
    border-radius: var(--md-sys-shape-corner-full);
    /* Outlined style by default */
    background: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-primary);
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.2, 0.0, 0, 1.0);
}

/* Fill on card hover */
.option-card:hover .btn {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 8px rgba(0, 0, 0, 0.12);
}

/* Ensure icon color matches text */
.option-card .btn i {
    color: var(--md-sys-color-primary);
    transition: color 0.2s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.option-card:hover .btn i {
    color: var(--md-sys-color-on-primary);
}

/* Footer Styles */
.landing-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-bottom: 0.5rem;
}

.developer-btn {
    margin-top: 0.5rem;
}

.developer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.developer-link:hover {
    color: var(--accent-1);
    background: rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 20px;
    width: auto;
    opacity: 0.8;
}

.developer-link:hover .footer-logo {
    opacity: 1;
}

/* Data Sources Section */
.data-sources {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.data-sources-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.data-sources-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.data-source-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.data-source-btn:hover {
    color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
    background: rgba(0, 97, 53, 0.08);
    transform: translateY(-2px);
}

.data-source-btn i {
    font-size: 0.85rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        height: 100vh;
        overflow: hidden;
    }

    .landing-container {
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .landing-header {
        margin-bottom: 0.5rem;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 0.25rem;
        position: relative;
    }

    .brand-group {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 35px;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .logo h1 {
        font-size: 0.95rem;
        text-align: center;
    }

    .logo .theme-toggle {
        position: relative;
        z-index: 1;
    }

    .theme-toggle {
        flex-shrink: 0;
        min-width: 36px;
        min-height: 36px;
        font-size: 1rem;
    }

    .landing-message {
        font-size: 0.8rem;
        margin: 0.25rem 0 0.5rem;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .how-to-use {
        margin-bottom: 0;
        margin-top: 0.5rem;
    }

    .option-card {
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .card-icon {
        font-size: 3.5rem;
        margin-bottom: 0.75rem;
    }

    .option-card h2 {
        font-size: 1.75rem;
    }

    .option-card p {
        font-size: 0.85rem;
        display: block;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .landing-footer {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .developer-link {
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .data-sources {
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .data-sources-label {
        font-size: 0.7rem;
    }

    .data-source-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .landing-container {
        padding: 0.5rem;
    }

    .logo img {
        height: 35px;
    }

    .logo h1 {
        font-size: 0.9rem;
    }

    .theme-toggle {
        min-width: 36px;
        min-height: 36px;
        font-size: 1rem;
    }

    .landing-header p {
        font-size: 0.75rem;
    }

    .options-grid {
        gap: 0.75rem;
    }

    .option-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .option-card h2 {
        font-size: 1.25rem;
    }

    .option-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}