:root {
    --violet: #8b43e9;
    --purple: #ac43e7;
    --pink: #e95bb6;
    --night: #17152f;
    --muted: #6f6b86;
    --soft: #f8f5ff;
    --border: rgba(139, 67, 233, 0.12);
    --shadow: 0 18px 45px rgba(73, 45, 124, 0.12);
    --gradient: linear-gradient(
        135deg,
        var(--violet),
        var(--purple),
        var(--pink)
    );
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--night);
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(139, 67, 233, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(233, 91, 182, 0.15),
            transparent 30%
        ),
        #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    backdrop-filter: blur(18px);
}

.nav-wrapper {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    white-space: nowrap;
}

.brand-main {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-marketplace {
    color: var(--night);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.main-nav a {
    position: relative;
    padding: 21px 0;
    font-weight: 700;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 0;
    height: 3px;
    border-radius: 20px;
    background: var(--gradient);
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 32px;
}

.header-cta {
    padding: 13px 24px;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    background: var(--gradient);
    box-shadow: 0 12px 25px rgba(172, 67, 231, 0.24);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 26px 0 24px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: 34px;
    right: 18%;
    border: 2px solid rgba(233, 91, 182, 0.25);
    box-shadow:
        0 0 70px rgba(233, 91, 182, 0.22),
        inset 0 0 60px rgba(139, 67, 233, 0.15);
}

.hero::after {
    width: 900px;
    height: 2px;
    right: -150px;
    top: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.95),
        rgba(233, 91, 182, 0.5),
        transparent
    );
    transform: rotate(-12deg);
    box-shadow:
        0 60px 0 rgba(255, 255, 255, 0.45),
        0 -65px 0 rgba(172, 67, 231, 0.22);
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 430px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 30px;
}

.hero-content {
    padding: 10px 0 20px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.eyebrow {
    margin-bottom: 16px;
    padding: 8px 13px;
    border: 1px solid rgba(172, 67, 231, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.section-kicker {
    margin-bottom: 7px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 650px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 0.96;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 620px;
    margin: 20px 0;
    color: #3f3a57;
    font-size: 17px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

.button-primary {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 14px 28px rgba(172, 67, 231, 0.28);
}

.button-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 25px rgba(63, 40, 95, 0.09);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 22px;
}

.hero-benefits article {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(172, 67, 231, 0.08);
    box-shadow: inset 0 0 0 1px rgba(172, 67, 231, 0.12);
}

.hero-benefits strong,
.hero-benefits small {
    display: block;
}

.hero-benefits small {
    margin-top: 3px;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 430px;
    display: grid;
    grid-template-columns: 0.72fr 1fr 0.76fr;
    align-items: center;
    gap: 12px;
}

.hero-model {
    position: relative;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
}

.hero-model::before {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    top: 45px;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    box-shadow:
        0 0 40px rgba(233, 91, 182, 0.45),
        0 0 90px rgba(139, 67, 233, 0.35);
}

.hero-model-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 400px;
    max-height: 400px;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(
        0 22px 28px rgba(63, 35, 93, 0.18)
    );
}

.try-on-card,
.featured-product-card {
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transform: scale(0.9);
    transform-origin: center;
}

.try-on-card {
    padding: 14px;
}

.try-on-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.try-on-preview {
    min-height: 210px;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        #f4effb,
        #efe7f8
    );
}

.try-on-preview-image {
    width: 100%;
    height: 205px;
    min-height: 205px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.try-on-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.try-on-thumbnails span {
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #eee7f7,
        #f8f2fb
    );
    border: 1px solid transparent;
}

.try-on-thumbnails span.selected {
    border-color: var(--pink);
    box-shadow: 0 0 0 2px rgba(233, 91, 182, 0.12);
}

.featured-product-card {
    padding: 16px;
}

.featured-product-image {
    height: 170px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(233, 91, 182, 0.15),
        rgba(139, 67, 233, 0.08)
    );
}

.featured-product-image img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: contain;
    padding: 10px;
}

.favorite-button,
.card-favorite {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.favorite-button {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(73, 45, 124, 0.11);
}

.featured-product-card h2 {
    margin: 15px 0 5px;
    font-size: 17px;
}

.featured-product-card p {
    margin: 0;
    color: var(--muted);
}

.price {
    display: block;
    margin-top: 12px;
    font-size: 20px;
}

.sizes {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.sizes button {
    min-width: 32px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--night);
    background: #fff;
}

.sizes button.selected {
    color: #fff;
    border-color: transparent;
    background: var(--gradient);
}

.product-button {
    width: 100%;
}

.products-section {
    position: relative;
    z-index: 4;
    padding: 30px 0 42px;
    border-radius: 42px 42px 0 0;
    background: rgba(255, 255, 255, 0.96);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2,
.how-it-works h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.section-heading a {
    color: var(--purple);
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(48, 34, 76, 0.08);
}

.product-thumb {
    min-height: 135px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    color: var(--muted);
    background: linear-gradient(
        135deg,
        #f2edf8,
        #fbf8ff
    );
}

.product-thumb img {
    width: 100%;
    height: 135px;
    display: block;
    object-fit: contain;
    padding: 8px;
}

.product-card-content {
    position: relative;
    padding-top: 4px;
}

.card-favorite {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--pink);
    font-size: 20px;
}

.product-shop {
    display: inline-block;
    margin-right: 26px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 8px 24px 4px 0;
    font-size: 15px;
}

.product-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.product-card strong {
    display: block;
    margin-bottom: 12px;
}

.small-buy-button {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: var(--gradient);
}

.marketplace-section {
    padding: 10px 0 46px;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(250, 247, 255, 0.88);
    box-shadow: 0 16px 36px rgba(55, 38, 86, 0.06);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.shop-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(49, 36, 76, 0.09);
}

.shop-cover {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 12px;
    color: #fff;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    letter-spacing: 1px;
    background: linear-gradient(
        135deg,
        rgba(23, 21, 47, 0.88),
        rgba(139, 67, 233, 0.54)
    );
}

.shop-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 13px 8px;
}

.shop-info strong,
.shop-info small {
    display: block;
}

.shop-info small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.35;
}

.shop-info span {
    color: var(--pink);
    font-size: 20px;
}

.shop-link {
    display: inline-flex;
    margin: 0 13px 13px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
}

.how-it-works {
    padding-left: 8px;
}

.steps {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.steps article {
    position: relative;
    display: grid;
    grid-template-columns: 58px 58px 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(172, 67, 231, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.step-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    background: var(--gradient);
}

.step-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--purple);
    font-size: 24px;
    background: rgba(172, 67, 231, 0.08);
}

.steps strong {
    font-size: 16px;
}

.steps p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.trust-section {
    padding: 0 0 50px;
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(248, 245, 255, 0.9);
}

.trust-bar article {
    display: flex;
    align-items: center;
    gap: 13px;
}

.trust-bar article > span {
    width: 46px;
    height: 46px;
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--purple);
    background: rgba(172, 67, 231, 0.08);
}

.trust-bar strong,
.trust-bar small {
    display: block;
}

.trust-bar small {
    margin-top: 3px;
    color: var(--muted);
}

.site-footer {
    padding: 48px 0 20px;
    color: #fff;
    background: #17152f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-brand .brand-marketplace {
    color: rgba(255, 255, 255, 0.82);
}

.footer-grid p {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.6;
}

.footer-grid strong {
    margin-bottom: 4px;
}

.footer-grid a:not(.brand) {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.footer-grid a:not(.brand):hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
}

@media (max-width: 1250px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1,
    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-benefits {
        justify-content: center;
    }

    .hero-visual {
        max-width: 920px;
        width: 100%;
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .hero-visual {
        grid-template-columns: 1fr 1.2fr;
    }

    .featured-product-card {
        grid-column: 1 / -1;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1440px);
    }

    .site-header {
        padding: 10px 0;
    }

    .nav-wrapper {
        min-height: 58px;
        padding: 0 14px;
        border-radius: 16px;
    }

    .brand {
        gap: 6px;
    }

    .brand-main {
        font-size: 25px;
    }

    .brand-marketplace {
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .header-cta {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero {
        padding-top: 22px;
    }

    .hero-grid {
        min-height: auto;
        gap: 20px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2.5px;
    }

    .hero-content > p {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-benefits {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .try-on-card,
    .featured-product-card {
        max-width: 100%;
        transform: none;
    }

    .hero-model {
        min-height: 330px;
        height: 330px;
        max-height: 330px;
    }

    .hero-model-image {
        height: 330px;
        max-height: 330px;
    }

    .product-grid,
    .shop-grid,
    .trust-bar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 120px 1fr;
    }

    .marketplace-grid {
        padding: 18px;
    }

    .steps article {
        grid-template-columns: 42px 50px 1fr;
        padding: 13px;
    }

    .section-heading h2,
    .how-it-works h2 {
        font-size: 27px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
