/* Homepage hero — animated headline & refreshed marketplace area */

.marketplace-home {
    padding-bottom: 8px;
}

.marketplace-section {
    position: relative;
}

.marketplace-hero {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    margin-top: 8px;
    padding: 40px 28px 36px;
    border-radius: calc(var(--woiso-radius-lg) + 4px);
    border: 1px solid rgba(var(--woiso-rust-rgb), 0.12);
    background: var(--woiso-surface);
    box-shadow: var(--woiso-shadow-lg);
}

.marketplace-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.marketplace-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.marketplace-hero__media + .marketplace-hero__backdrop {
    background: rgba(255, 255, 255, 0.88);
}

.marketplace-hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.marketplace-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.marketplace-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(var(--woiso-rust-rgb), 0.08);
    border: 1px solid rgba(var(--woiso-rust-rgb), 0.14);
    color: var(--woiso-primary-dark);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: hero-fade-up 0.7s ease both;
}

.marketplace-hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--woiso-accent);
    box-shadow: 0 0 0 4px rgba(var(--woiso-gold-rgb), 0.25);
    animation: hero-pulse 2.4s ease-in-out infinite;
}

.marketplace-hero__title {
    --hero-wave-step: 1.1s;
    margin: 0 0 16px;
    font-size: clamp(2rem, 6vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--woiso-gray-dark);
}

.marketplace-hero__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    animation:
        hero-word-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-word-wave calc(var(--hero-word-count, 4) * var(--hero-wave-step)) ease-in-out infinite;
    animation-delay:
        calc(0.12s + (var(--word-index) * 0.14s)),
        calc(1.25s + (var(--word-index) * var(--hero-wave-step)));
}

.marketplace-hero__word--light {
    color: var(--woiso-gray-dark);
}

.marketplace-hero__word--gold {
    color: var(--woiso-gold-dark);
    text-shadow: 0 8px 28px rgba(var(--woiso-gold-rgb), 0.35);
    animation:
        hero-word-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-word-wave-gold calc(var(--hero-word-count, 4) * var(--hero-wave-step)) ease-in-out infinite;
    animation-delay:
        calc(0.12s + (var(--word-index) * 0.14s)),
        calc(1.25s + (var(--word-index) * var(--hero-wave-step)));
}

.marketplace-hero__word--rust {
    color: var(--woiso-primary);
    text-shadow: 0 8px 28px rgba(var(--woiso-rust-rgb), 0.28);
    animation:
        hero-word-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-word-wave-rust calc(var(--hero-word-count, 4) * var(--hero-wave-step)) ease-in-out infinite;
    animation-delay:
        calc(0.12s + (var(--word-index) * 0.14s)),
        calc(1.25s + (var(--word-index) * var(--hero-wave-step)));
}

.marketplace-hero__space {
    display: inline-block;
    width: 0.28em;
}

.marketplace-hero__subtitle {
    margin: 0 0 24px;
    max-width: 620px;
    font-size: clamp(1rem, 2.4vw, 1.125rem);
    line-height: 1.65;
    color: var(--woiso-text-secondary);
    animation: hero-fade-up 0.8s ease 0.55s both;
}

.marketplace-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    animation: hero-fade-up 0.8s ease 0.72s both;
}

.marketplace-hero__cta {
    min-height: 48px;
    padding-inline: 22px;
    box-shadow: 0 10px 24px rgba(var(--woiso-rust-rgb), 0.28);
}

.marketplace-hero__cta-secondary {
    min-height: 48px;
    padding-inline: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(var(--woiso-rust-rgb), 0.18);
    color: var(--woiso-primary-dark);
}

.marketplace-hero__cta-secondary:hover {
    background: #fff;
    border-color: var(--woiso-primary);
    color: var(--woiso-primary-dark);
}

.marketplace-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: hero-fade-up 0.8s ease 0.9s both;
}

.marketplace-hero__highlights li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(var(--woiso-gold-rgb), 0.35);
    color: var(--woiso-gray);
    font-size: 0.8125rem;
    font-weight: 600;
}

.marketplace-hero__highlights li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--woiso-primary);
    flex-shrink: 0;
}

@keyframes hero-word-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-word-wave {
    0%,
    14%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
        text-shadow: inherit;
    }

    7% {
        opacity: 1;
        transform: translateY(-8px) scale(1.08);
        filter: brightness(1.14);
    }
}

@keyframes hero-word-wave-gold {
    0%,
    14%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
        text-shadow: 0 8px 28px rgba(var(--woiso-gold-rgb), 0.35);
    }

    7% {
        opacity: 1;
        transform: translateY(-8px) scale(1.08);
        filter: brightness(1.18);
        text-shadow: 0 12px 36px rgba(var(--woiso-gold-rgb), 0.55);
    }
}

@keyframes hero-word-wave-rust {
    0%,
    14%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: brightness(1);
        text-shadow: 0 8px 28px rgba(var(--woiso-rust-rgb), 0.28);
    }

    7% {
        opacity: 1;
        transform: translateY(-8px) scale(1.08);
        filter: brightness(1.16);
        text-shadow: 0 12px 36px rgba(var(--woiso-rust-rgb), 0.45);
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes hero-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

@media (max-width: 767px) {
    .marketplace-hero {
        min-height: 0;
        padding: 28px 18px 24px;
    }

    .marketplace-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .marketplace-hero__cta,
    .marketplace-hero__cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-hero__word,
    .marketplace-hero__eyebrow,
    .marketplace-hero__subtitle,
    .marketplace-hero__actions,
    .marketplace-hero__highlights,
    .marketplace-hero__eyebrow-dot {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
