﻿/* =========================================================
   QLII HOME
   ========================================================= */

.qlii-home {
    background: var(--qlii-bg);
    color: var(--qlii-text);
}

    .qlii-home .container {
        width: min(1240px, calc(100% - 2rem));
        margin: 0 auto;
    }


/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
}

    .home-hero::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: var(--qlii-primary-light);
        opacity: .18;
        top: -240px;
        right: -120px;
        pointer-events: none;
    }

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 6rem;
    align-items: center;
}

.home-hero-content {
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .85rem;
    border: 1px solid var(--qlii-border);
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: var(--qlii-primary-dark);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .home-eyebrow::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--qlii-primary);
    }

.home-hero h1 {
    margin: 1.4rem 0 1.2rem;
    max-width: 760px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 750;
}

    .home-hero h1 span {
        color: var(--qlii-primary);
    }

.home-hero-text {
    max-width: 650px;
    margin-bottom: 2rem;
    color: var(--qlii-text-muted);
    font-size: 1.18rem;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}

.home-login-link {
    margin-top: 1.2rem;
    color: var(--qlii-text-muted);
    font-size: .92rem;
}

    .home-login-link a {
        color: var(--qlii-primary-dark);
        font-weight: 650;
        text-decoration: none;
    }

        .home-login-link a:hover {
            text-decoration: underline;
        }


/* =========================================================
   BUTTONS
   ========================================================= */

.home-primary-button,
.home-secondary-button,
.home-final-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: .2s ease;
}

.home-primary-button {
    border: 1px solid var(--qlii-primary);
    background: var(--qlii-primary);
    color: white;
}

    .home-primary-button:hover {
        background: var(--qlii-primary-dark);
        border-color: var(--qlii-primary-dark);
        color: white;
        transform: translateY(-1px);
    }

.home-secondary-button {
    border: 1px solid var(--qlii-border);
    background: rgba(255,255,255,.65);
    color: var(--qlii-text);
}

    .home-secondary-button:hover {
        border-color: var(--qlii-primary);
        background: white;
        color: var(--qlii-primary-dark);
        transform: translateY(-1px);
    }


/* =========================================================
   STOREFRONT DEMO / CAROUSEL
   ========================================================= */

.home-product-preview {
    position: relative;
    min-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}


.home-storefront-carousel {
    width: 360px;
    background: transparent;
}

.home-demo-frame {
    width: 360px;
    height: 610px;
    padding: 8px;
    overflow: hidden;
    border-radius: 32px;
    background: #26211E;
    box-shadow: none;
}

.home-demo-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 25px;
    background: white;
}

.home-demo-caption {
    margin-top: 12px;
    padding: 0;
    text-align: center;
    background: transparent !important;
}

    .home-demo-caption strong {
        color: var(--qlii-text-muted);
        font-size: .82rem;
        font-weight: 600;
    }

.home-product-preview,
.home-storefront-carousel,
.home-storefront-carousel .carousel-inner,
.home-storefront-carousel .carousel-item,
.home-demo-caption {
    background: transparent !important;
    box-shadow: none;
}

    .home-storefront-carousel .carousel-item::before,
    .home-storefront-carousel .carousel-item::after {
        content: none !important;
        display: none !important;
    }
   


/* Carousel controls */

.home-carousel-control {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--qlii-border);
    border-radius: 50%;
    background: white;
    color: var(--qlii-primary-dark);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(71, 45, 34, .12);
}

    .home-carousel-control:hover {
        background: var(--qlii-primary);
        color: white;
    }

    .home-carousel-control span[aria-hidden="true"] {
        position: relative;
        top: -2px;
        font-size: 2rem;
        line-height: 1;
    }

.carousel-control-prev.home-carousel-control {
    left: -62px;
}

.carousel-control-next.home-carousel-control {
    right: -62px;
}


/* QR desktop */

/* QR desktop */

.home-demo-qr {
    position: absolute;
    left: -25px;
    bottom: 95px;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: .75rem;
    border: 1px solid var(--qlii-border);
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 45px rgba(71, 45, 34, .14);
}

#homeDemoQrImage {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.home-demo-qr span {
    color: var(--qlii-text-muted);
    font-size: .7rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
}


/* =========================================================
   GENERIC SECTION HEADINGS
   ========================================================= */

.home-section-heading {
    max-width: 820px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

    .home-section-heading span {
        display: inline-block;
        margin-bottom: .7rem;
        color: var(--qlii-primary);
        font-size: .8rem;
        font-weight: 750;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .home-section-heading h2 {
        margin: 0 0 1rem;
        font-size: clamp(2.3rem, 4vw, 3.6rem);
        line-height: 1.05;
        letter-spacing: -.04em;
    }

    .home-section-heading p {
        max-width: 680px;
        margin: 0 auto;
        color: var(--qlii-text-muted);
        font-size: 1.05rem;
        line-height: 1.7;
    }


/* =========================================================
   FEATURES
   ========================================================= */

.home-features-section {
    padding: 7rem 0;
    background: white;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
}

.home-feature {
    min-height: 240px;
    padding: 2rem;
    border: 1px solid var(--qlii-border);
    border-radius: 20px;
    background: var(--qlii-bg);
}

.home-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    background: rgba(201, 111, 74, .12);
    overflow: hidden;
}

    .home-feature-icon img {
        width: 25px;
        height: 25px;
        filter: drop-shadow(0 120px 0 var(--qlii-accentstrong));
        transform: translateY(-120px);
    }

.home-feature strong {
    display: block;
    margin-bottom: .75rem;
    font-size: 1.2rem;
}

.home-feature p {
    margin: 0;
    color: var(--qlii-text-muted);
    line-height: 1.65;
}


/* =========================================================
   HOW
   ========================================================= */

.home-how {
    padding: 7rem 0;
}

.home-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-how-step {
    min-height: 250px;
    padding: 2.4rem;
    border: 1px solid var(--qlii-border);
    border-radius: 22px;
    background: white;
}

.home-step-number {
    margin-bottom: 2rem;
    color: var(--qlii-primary);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.home-how-step h3 {
    margin-bottom: .8rem;
    font-size: 1.3rem;
}

.home-how-step p {
    margin: 0;
    color: var(--qlii-text-muted);
    line-height: 1.65;
}

.home-how-action {
    margin-top: 2.5rem;
    text-align: center;
}


/* =========================================================
   BUSINESS TYPES
   ========================================================= */

.home-business-types {
    padding: 7rem 0;
    background: white;
}

.home-business-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.home-business-card {
    min-height: 210px;
    padding: 2rem;
    border: 1px solid var(--qlii-border);
    border-radius: 20px;
    background: var(--qlii-bg);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .home-business-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 45px rgba(71, 45, 34, .08);
    }

.home-business-mark {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--qlii-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.home-business-card h3 {
    margin-bottom: .65rem;
    font-size: 1.15rem;
}

.home-business-card p {
    margin: 0;
    color: var(--qlii-text-muted);
    line-height: 1.6;
}


/* =========================================================
   FINAL CTA
   ========================================================= */

.home-final-section {
    padding: 7rem 0;
}

.home-final-cta {
    padding: 5rem 2rem;
    border-radius: 28px;
    background: var(--qlii-primary-dark);
    color: white;
    text-align: center;
}

.home-final-label {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--qlii-primary-light);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.home-final-cta h2 {
    max-width: 760px;
    margin: 0 auto 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.home-final-cta p {
    max-width: 620px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-final-button {
    border: 1px solid white;
    background: white;
    color: var(--qlii-primary-dark);
}

    .home-final-button:hover {
        background: var(--qlii-bg);
        color: var(--qlii-primary-dark);
        transform: translateY(-1px);
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .home-hero-inner {
        grid-template-columns: 1fr 420px;
        gap: 3.5rem;
    }

    .home-business-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .home-hero {
        padding: 3.5rem 0 4rem;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .home-product-preview {
        min-height: 620px;
    }

    .home-storefront-carousel {
        width: 340px;
    }

    .home-demo-frame {
        width: 340px;
        height: 580px;
    }

    .home-how-grid {
        grid-template-columns: 1fr;
    }

    .home-business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .home-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .qlii-home .container {
        width: min(100% - 1.2rem, 1240px);
    }

    .home-hero {
        padding: 2.5rem 0 3rem;
    }

        .home-hero h1 {
            font-size: clamp(2.6rem, 14vw, 4rem);
        }

    .home-hero-text {
        font-size: 1rem;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .home-primary-button,
    .home-secondary-button {
        width: 100%;
    }

    .home-product-preview {
        min-height: 570px;
    }

    .home-storefront-carousel {
        width: min(330px, calc(100vw - 2rem));
    }

    .home-demo-frame {
        width: 100%;
        height: 540px;
    }

    .carousel-control-prev.home-carousel-control {
        left: -8px;
    }

    .carousel-control-next.home-carousel-control {
        right: -8px;
    }

    .home-features-section,
    .home-how,
    .home-business-types,
    .home-final-section {
        padding: 4.5rem 0;
    }

    .home-business-grid {
        grid-template-columns: 1fr;
    }

    .home-final-cta {
        padding: 3.5rem 1.4rem;
    }
}

/*edito*/
/* =========================================================
   SEO BENEFITS
   ========================================================= */

.home-seo-benefits {
    padding: 7rem 0;
    background: var(--qlii-bg);
}

.home-seo-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.home-seo-benefit {
    position: relative;
    padding-top: 1.5rem;
    border-top: 1px solid var(--qlii-border);
}

.home-seo-benefit-number {
    margin-bottom: 1.4rem;
    color: var(--qlii-accentstrong);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.home-seo-benefit h3 {
    margin: 0 0 1.2rem;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.home-seo-benefit p {
    margin: 0 0 1rem;
    color: var(--qlii-text-muted);
    font-size: .98rem;
    line-height: 1.75;
}

    .home-seo-benefit p:last-child {
        margin-bottom: 0;
    }

@media (max-width: 900px) {

    .home-seo-benefits-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {

    .home-seo-benefits {
        padding: 4.5rem 0;
    }
}




.home-demo-frame {
    position: relative;
}

.home-demo-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
    z-index: 2;
    transition: opacity .25s ease;
}

.home-demo-frame.is-loaded .home-demo-loader {
    opacity: 0;
    pointer-events: none;
}

.qlii-loader-qr {
    width: 52px;
    height: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

    .qlii-loader-qr span {
        background: var(--qlii-accentstrong);
        border-radius: 3px;
        opacity: .15;
        animation: qliiQrLoading 1.2s infinite ease-in-out;
    }

        .qlii-loader-qr span:nth-child(2) {
            animation-delay: .1s;
        }

        .qlii-loader-qr span:nth-child(3) {
            animation-delay: .2s;
        }

        .qlii-loader-qr span:nth-child(4) {
            animation-delay: .3s;
        }

        .qlii-loader-qr span:nth-child(5) {
            animation-delay: .4s;
        }

        .qlii-loader-qr span:nth-child(6) {
            animation-delay: .5s;
        }

        .qlii-loader-qr span:nth-child(7) {
            animation-delay: .6s;
        }

        .qlii-loader-qr span:nth-child(8) {
            animation-delay: .7s;
        }

        .qlii-loader-qr span:nth-child(9) {
            animation-delay: .8s;
        }

@keyframes qliiQrLoading {
    0%, 100% {
        opacity: .15;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qlii-loader-qr span {
        animation: none;
        opacity: .6;
    }
}
