:root {
    --hero-ratio: 1280 / 853;
}

.hero {
    position: relative;
    padding: calc(var(--header-height-mobile) + 2rem) 1.25rem 2.5rem;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, var(--color-accent-light) 0%, transparent 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-media {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slider {
    position: relative;
    width: min(100%, 640px);
    aspect-ratio: var(--hero-ratio);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: transparent;
    isolation: isolate;
}

.hero-slider-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.38) 0%, rgba(10, 10, 10, 0.12) 55%, rgba(10, 10, 10, 0.3) 100%);
    pointer-events: none;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.02);
    transition: transform 8s ease-out;
}

.hero-slide.is-active img {
    transform: scale(1.06);
}

.hero-slider-nav {
    position: absolute;
    inset-inline: 0;
    bottom: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.75rem;
    z-index: 2;
    pointer-events: none;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.32rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: auto;
}

.hero-slider-dot {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    opacity: 0.8;
    transition: width var(--t-fast), opacity var(--t-fast), background-color var(--t-fast);
}

.hero-slider-dot.is-active {
    width: 0.9rem;
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.15;
    margin: 0;
    max-width: 600px;
    color: var(--color-text);
    font-weight: 700;
    text-align: center;
}

.hero-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.hero-actions .btn {
    width: 100%;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    margin-top: 1.75rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.stat-num {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--color-text-dim);
}

@media (min-width: 640px) {
    .hero {
        padding: calc(var(--header-height-mobile) + 2.5rem) 1.5rem 3rem;
    }

    .hero-container {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: auto;
    }

    .hero-slider {
        width: min(100%, 760px);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: calc(var(--header-height) + 3rem) 0;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: center;
    }

    .hero-media {
        order: 0;
    }

    .hero-content {
        text-align: right;
        align-items: flex-start;
    }

    .hero-title {
        font-size: var(--fs-4xl);
        max-width: 100%;
    }

    .hero-desc {
        max-width: 480px;
        margin: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-stats {
        justify-content: flex-start;
        gap: 2rem;
    }

    .hero-slider {
        width: min(100%, 760px);
        aspect-ratio: 16 / 10;
    }
}
