.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 2;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

/* Default (Dark Theme) */
.hero-img-dark {
    opacity: 1;
}

.hero-img-light {
    opacity: 0;
}

/* Light Theme */
[data-theme="light"] .hero-img-dark {
    opacity: 0;
}

[data-theme="light"] .hero-img-light {
    opacity: 1;
}

.hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    /* Cover left side where text is */
    height: 100%;
    background: linear-gradient(to right, var(--bg-color) 40%, transparent 100%);
    opacity: 1;
    z-index: 0;
}

.hero-content {
    max-width: 55%;
    /* Asymmetry */
    margin-left: 0;
    /* Ensure left alignment */
    position: relative;
    z-index: 1;
    text-align: left;
    /* Explicitly left align text */
}

.brand-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
    opacity: 0.9;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-size: 4rem;
    /* Reduced from default 6rem */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    /* Brighter than description */
    line-height: 1.4;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 85svh;
        align-items: center;
        padding-bottom: 4rem;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: left;
        padding: 0;
        /* Removed redundant padding */
    }

    .hero-overlay {
        width: 100%;
        /* Stronger gradient from bottom for text readability, but lighter top */
        background: linear-gradient(to top, var(--bg-color) 15%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
        opacity: 0.8;
    }

    [data-theme="light"] .hero-overlay {
        /* Lighter gradient for light theme */
        background: linear-gradient(to top, var(--bg-color) 20%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0.4) 100%);
    }

    .brand-name {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        opacity: 0.8;
        margin-bottom: 1rem;
        text-shadow: none;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 2rem;
        max-width: 90%;
        opacity: 0.9;
    }

    /* Hide the long description on mobile to fix "wall of text" */
    .hero-description {
        display: none;
    }

    .hero-actions {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .btn {
        width: max-content;
        /* Size to text */
        flex: 0 0 auto;
        /* Do not grow or shrink */
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-outline {
        display: none;
    }
}