.mw-hero {
    --mw-violet: #7138f2;
    --mw-blue: #135bec;
    --mw-ink: #111827;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(1.75rem, 3.2vw, 3rem) 0 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.mw-hero::before {
    display: none;
}

.mw-hero__container {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
}

.mw-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(31rem, 1.07fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.mw-hero__content {
    position: relative;
    z-index: 3;
}

.mw-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2rem;
    margin-bottom: 1.35rem;
    padding: .35rem .75rem;
    color: var(--mw-violet);
    border: 1px solid rgba(113, 56, 242, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 30px rgba(55, 31, 117, .07);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.mw-hero__eyebrow-icon {
    font-size: 1rem;
}

.mw-hero__title {
    max-width: 43rem;
    margin: 0;
    color: var(--mw-ink);
    font-size: clamp(2.75rem, 5.2vw, 5rem);
    font-weight: 700;
    line-height: .99;
    letter-spacing: -.055em;
}

.mw-hero__title em {
    display: inline-block;
    padding-right: .08em;
    color: transparent;
    background: linear-gradient(110deg, var(--mw-violet) 5%, #7357ff 45%, var(--mw-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -.045em;
}

.mw-hero__description {
    max-width: 39rem;
    margin: 1.6rem 0 0;
    color: #64748b;
    font-family: "Noto Sans", sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    line-height: 1.78;
}

.mw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.8rem;
}

.mw-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 10.8rem;
    min-height: 3.25rem;
    padding: .75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: .85rem;
    font-size: .94rem;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.mw-hero__button .material-symbols-outlined {
    font-size: 1.2rem;
}

.mw-hero__button--primary {
    color: #fff;
    background: linear-gradient(120deg, var(--mw-violet), var(--mw-blue));
    box-shadow: 0 14px 30px rgba(85, 63, 220, .28);
}

.mw-hero__button--secondary {
    color: #273047;
    border-color: #dce2ed;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.mw-hero__button:hover {
    transform: translateY(-2px);
}

.mw-hero__button--primary:hover {
    color: #fff;
    box-shadow: 0 18px 38px rgba(85, 63, 220, .34);
}

.mw-hero__button--secondary:hover {
    color: var(--mw-ink);
    border-color: #bfc8d8;
    background: #fff;
}

.mw-hero__button:focus-visible,
.mw-outfit:focus-visible {
    outline: 3px solid rgba(19, 91, 236, .3);
    outline-offset: 3px;
}

.mw-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 43rem;
    margin: 2.75rem 0 0;
    padding-top: 1.45rem;
    border-top: 1px solid #e2e8f0;
}

.mw-hero__stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 clamp(.55rem, 1.2vw, 1rem);
    border-left: 1px solid #e2e8f0;
}

.mw-hero__stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.mw-hero__stat dd {
    order: -1;
    margin: 0 0 .3rem;
    color: var(--mw-ink);
    font-size: clamp(1.35rem, 2.1vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.04em;
}

.mw-hero__stat dt {
    color: #7c8799;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
}

.mw-hero__visual {
    position: relative;
    top: -1.25rem;
    min-height: 45rem;
    perspective: 1200px;
}

.mw-hero__visual::before {
    position: absolute;
    inset: 4% 0 18% 6%;
    content: "";
    border: 1px solid #e2e5ea;
    border-radius: 2.5rem;
    background: #eef0f3;
    box-shadow: 0 28px 70px rgba(31, 41, 55, .08);
}

.mw-hero__model-wrap {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 8.75rem;
    width: 55%;
    height: 77%;
    overflow: hidden;
    border-radius: 0 0 8rem 8rem;
    will-change: transform;
    transition: transform .2s ease-out;
}

.mw-hero__model {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 18%;
    filter: saturate(.78) contrast(1.02);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}

.mw-phone-wrap {
    position: absolute;
    z-index: 4;
    bottom: 0;
    left: 3%;
    width: min(54%, 20.5rem);
    transform-style: preserve-3d;
    will-change: transform;
}

.mw-phone {
    position: relative;
    width: 100%;
    padding: .5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 2.6rem;
    background: #13151b;
    box-shadow: 0 30px 70px rgba(17, 24, 39, .28), 0 0 0 2px rgba(15, 23, 42, .06);
}

.mw-phone__speaker {
    position: absolute;
    z-index: 8;
    top: .8rem;
    left: 50%;
    width: 4.3rem;
    height: 1.1rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #0c0e12;
}

.mw-phone__screen {
    overflow: hidden;
    border-radius: 2.13rem;
    background: #f8fafc;
}

.mw-phone__topbar,
.mw-phone__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mw-phone__topbar {
    height: 2rem;
    padding: .45rem 1rem 0;
    color: #111827;
    font-size: .58rem;
    font-weight: 700;
}

.mw-phone__topbar .material-symbols-outlined {
    font-size: .85rem;
}

.mw-phone__brand {
    gap: .35rem;
    padding: .55rem .75rem;
    color: #273047;
    border-bottom: 1px solid #e8ecf2;
    font-size: .62rem;
    font-weight: 700;
}

.mw-phone__brand-mark {
    padding: .22rem;
    color: #fff;
    border-radius: .35rem;
    background: linear-gradient(135deg, var(--mw-violet), var(--mw-blue));
    font-size: .76rem;
}

.mw-phone__viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #f4f0ec, #e9e7e4);
}

.mw-phone__outfit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: opacity .22s ease, filter .22s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
}

.mw-phone__viewport.is-changing .mw-phone__outfit {
    opacity: .38;
    filter: blur(3px) saturate(.75);
    transform: scale(.98);
}

.mw-phone__viewport.is-revealing .mw-phone__outfit {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.mw-phone__scan {
    position: absolute;
    z-index: 4;
    top: -8%;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, #8b5cf6 12%, #33c8ff 50%, #8b5cf6 88%, transparent);
    box-shadow: 0 0 12px #7656ff, 0 0 32px rgba(57, 189, 255, .8), 0 14px 40px rgba(99, 102, 241, .38);
    pointer-events: none;
}

.mw-phone__viewport.is-scanning .mw-phone__scan {
    animation: mw-scan .82s cubic-bezier(.45, 0, .3, 1) both;
}

.mw-phone__status {
    position: absolute;
    z-index: 6;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: max-content;
    padding: .48rem .65rem;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -42%);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: .6rem;
    background: rgba(22, 24, 36, .78);
    backdrop-filter: blur(8px);
    font-size: .58rem;
    font-weight: 700;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.mw-phone__status .material-symbols-outlined {
    color: #a78bfa;
    font-size: .8rem;
}

.mw-phone__status.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.mw-phone__status.is-ready .material-symbols-outlined {
    color: #4ade80;
}

.mw-phone__fit-badge {
    position: absolute;
    z-index: 3;
    right: .55rem;
    bottom: .55rem;
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .3rem .42rem;
    color: #166534;
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: .45rem;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    font-size: .46rem;
    font-weight: 800;
}

.mw-phone__fit-badge .material-symbols-outlined {
    font-size: .68rem;
}

.mw-outfits {
    display: flex;
    justify-content: center;
    gap: .7rem;
    margin-top: .65rem;
}

.mw-outfits__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: max-content;
    max-width: 100%;
    min-height: 2.25rem;
    margin: 1.05rem auto 0;
    padding: .42rem .72rem;
    color: #4f37bd;
    border: 1px solid rgba(113, 56, 242, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(82, 57, 178, .13);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.2;
}

.mw-outfits__hint-icon {
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mw-violet), var(--mw-blue));
    box-shadow: 0 0 0 0 rgba(113, 56, 242, .3);
    font-size: .85rem;
    animation: mw-hint-pulse 1.8s ease-out infinite;
}

.mw-outfits__hint-arrow {
    font-size: .85rem;
    animation: mw-hint-arrow 1.3s ease-in-out infinite;
}

.mw-hero--interacted .mw-outfits__hint-icon,
.mw-hero--interacted .mw-outfits__hint-arrow {
    animation: none;
}

.mw-outfit {
    position: relative;
    flex: 0 0 4.15rem;
    width: 4.15rem;
    height: 4.15rem;
    min-width: 44px;
    min-height: 44px;
    padding: .22rem;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 7px 18px rgba(31, 41, 55, .12);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mw-outfit:hover {
    transform: translateY(-3px);
}

.mw-outfit.is-active {
    border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(145deg, var(--mw-violet), #36bffa) border-box;
    box-shadow: 0 8px 22px rgba(99, 71, 220, .26);
    transform: translateY(-3px);
}

.mw-outfit img {
    width: 100%;
    height: 100%;
    border-radius: .5rem;
    object-fit: contain;
    object-position: center;
}

.mw-outfit span {
    position: absolute;
    right: .18rem;
    bottom: .16rem;
    padding: .05rem .18rem;
    color: #fff;
    border-radius: .22rem;
    background: rgba(15, 23, 42, .7);
    font-size: .4rem;
    font-weight: 700;
}

.mw-hero--enhanced [data-hero-reveal],
.mw-hero--enhanced [data-hero-visual] {
    opacity: 0;
    transform: translateY(18px);
}

.mw-hero--enhanced [data-hero-phone] {
    transform: translateY(35px);
}

.mw-hero--ready [data-hero-reveal],
.mw-hero--ready [data-hero-visual],
.mw-hero--ready [data-hero-phone] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.mw-hero--ready [data-hero-reveal]:nth-child(2) { transition-delay: .08s; }
.mw-hero--ready [data-hero-reveal]:nth-child(3) { transition-delay: .16s; }
.mw-hero--ready [data-hero-reveal]:nth-child(4) { transition-delay: .24s; }
.mw-hero--ready [data-hero-reveal]:nth-child(5) { transition-delay: .32s; }
.mw-hero--ready [data-hero-visual] { transition-delay: .12s; }
.mw-hero--ready [data-hero-phone] { transition-delay: .26s; }

@keyframes mw-scan {
    0% { top: -8%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 102%; opacity: 0; }
}

@keyframes mw-hint-pulse {
    0% { box-shadow: 0 0 0 0 rgba(113, 56, 242, .34); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(113, 56, 242, 0); }
}

@keyframes mw-hint-arrow {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(3px); }
}

@media (max-width: 1100px) {
    .mw-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(26rem, .9fr); gap: 2rem; }
    .mw-hero__visual { min-height: 40rem; }
    .mw-hero__title { font-size: clamp(2.8rem, 5vw, 4rem); }
}

@media (max-width: 860px) {
    .mw-hero { padding-top: 2.25rem; }
    .mw-hero__grid { grid-template-columns: 1fr; }
    .mw-hero__content { text-align: center; }
    .mw-hero__description { margin-inline: auto; }
    .mw-hero__actions { justify-content: center; }
    .mw-hero__stats { margin-inline: auto; }
    .mw-hero__visual { top: -.6rem; width: min(100%, 36rem); min-height: 36rem; margin-inline: auto; }
    .mw-hero__model-wrap { display: none; }
    .mw-phone-wrap { bottom: 1rem; left: 50%; width: min(64%, 19rem); transform: translateX(-50%); }
    .mw-hero--enhanced [data-hero-phone] { transform: translate(-50%, 35px); }
    .mw-hero--ready [data-hero-phone] { transform: translate(-50%, 0); }
}

@media (max-width: 560px) {
    .mw-hero { padding: 1.6rem 0 2.2rem; }
    .mw-hero__container { width: min(100% - 1.25rem, 1280px); }
    .mw-hero__title { font-size: clamp(2.45rem, 12vw, 3.5rem); line-height: 1.02; }
    .mw-hero__description { margin-top: 1.25rem; font-size: .96rem; line-height: 1.68; }
    .mw-hero__actions { flex-direction: column; }
    .mw-hero__button { width: 100%; min-height: 3.25rem; }
    .mw-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.15rem 0; margin-top: 2.1rem; }
    .mw-hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .mw-hero__visual { min-height: 39rem; margin-top: .5rem; }
    .mw-phone-wrap { width: min(78vw, 18rem); }
    .mw-outfits { width: calc(100vw - 1.25rem); margin-left: 50%; padding: .25rem .5rem .65rem; overflow-x: auto; transform: translateX(-50%); scroll-snap-type: x proximity; }
    .mw-outfits__hint { font-size: .63rem; }
    .mw-outfit { flex-basis: 4.2rem; width: 4.2rem; height: 4.2rem; min-width: 4.2rem; min-height: 4.2rem; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .mw-hero *,
    .mw-hero *::before,
    .mw-hero *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: .01ms !important;
    }
    .mw-phone__scan { display: none; }
    .mw-hero--enhanced [data-hero-reveal],
    .mw-hero--enhanced [data-hero-visual],
    .mw-hero--enhanced [data-hero-phone] { transform: none; }
}
