/* ============================================================
   DESNORA HOME - home.css (loaded only on index.php)
   Builds on css/headers.css (hero), css/about.css (sections, stats,
   CTA) and css/case-studies.css (result charts). Every chart in the
   results section uses figures stated on case-studies.php.
   ============================================================ */

.hm-center {
    margin-top: 2.75rem;
    text-align: center;
}

/* ---- hero mockup label (the image shows made-up numbers) ---- */
.hero-frame {
    position: relative;
}

.hm-illustrative {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFC24B;
    background: rgba(5, 7, 13, 0.85);
    border: 1px solid rgba(255, 194, 75, 0.35);
}

/* ---- stats band ---- */
.hm-stats-wrap {
    position: relative;
    z-index: 2;
    padding: 1rem 0 3rem;
    background: var(--bg-dark, #010101);
}

/* ---- brand logos: one row, full colour, seamless marquee ---- */
.hm-brands {
    padding: 1.5rem 0 3rem;
    background: var(--bg-dark, #010101);
}

.hm-brands-viewport {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hm-brand-track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0.75rem 0;
    list-style: none;
    animation: hmBrandScroll 36s linear infinite;
}

.hm-brands-viewport:hover .hm-brand-track,
.hm-brands-viewport:focus-within .hm-brand-track {
    animation-play-state: paused;
}

/* margin (not gap) keeps both halves exactly equal, so -50% loops seamlessly */
.hm-brand {
    flex: 0 0 auto;
    margin-right: 1.5rem;
}

.hm-brand img {
    display: block;
    height: 56px;
    width: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-brand img:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 244, 238, 0.5);
    box-shadow: 0 16px 30px -14px rgba(37, 244, 238, 0.45);
}

@keyframes hmBrandScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .hm-brand {
        margin-right: 1rem;
    }

    .hm-brand img {
        height: 44px;
    }

    .hm-brand-track {
        animation-duration: 28s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-brands-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hm-brand-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        row-gap: 1rem;
    }

    .hm-brand[aria-hidden="true"] {
        display: none;
    }

    .hm-brand img,
    .hm-brand img:hover {
        transition: none;
        transform: none;
    }
}

/* ---- services ---- */
.hm-svc-group-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
}

.hm-svc-group-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.hm-platform {
    font: 700 0.78rem 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.hm-platform-tt {
    color: #25F4EE;
}

.hm-svc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.6rem;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, #141418, #0a0a0d 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hm-svc:hover,
.hm-svc:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(37, 244, 238, 0.35);
    box-shadow: 0 24px 46px -26px rgba(37, 244, 238, 0.45);
}

.hm-svc:focus-visible {
    outline: 2px solid #25F4EE;
    outline-offset: 3px;
}

.hm-svc h3 {
    margin: 0;
    font: 700 1.15rem 'Poppins', sans-serif;
    color: #fff;
}

.hm-svc p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: #a9a9b3;
}

.hm-svc-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: #25F4EE;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.18));
}

.hm-svc-icon svg,
.hm-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hm-svc-link {
    margin-top: auto;
    padding-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #25F4EE;
}

.hm-svc-feature {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.75rem;
    padding: 2rem;
    border: 0;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 70px -25px rgba(254, 44, 85, 0.35), 0 0 70px -25px rgba(37, 244, 238, 0.3);
    isolation: isolate;
}

.hm-svc-feature::before,
.hm-guarantee::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.85), rgba(255, 255, 255, 0.08) 45%, rgba(37, 244, 238, 0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

.hm-svc-feature .hm-svc-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    color: #fff;
    background: linear-gradient(135deg, #FE2C55, #25F4EE);
}

.hm-svc-feature .hm-svc-icon svg {
    width: 28px;
    height: 28px;
}

.hm-svc-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hm-svc-feature h3 {
    font-size: 1.45rem;
}

.hm-svc-feature p {
    max-width: 760px;
    font-size: 1rem;
    color: #c4c4cc;
}

.hm-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ---- TikTok Shop flywheel ---- */
.hm-fly {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: none;
}

.hm-fly li {
    position: relative;
    padding: 1.75rem 1.6rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(22, 24, 32, 0.9), rgba(10, 11, 16, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-fly li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.25rem;
    width: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, #FE2C55, #25F4EE);
}

.hm-fly-num {
    display: inline-block;
    margin-bottom: 0.9rem;
    font: 800 1.6rem 'Poppins', sans-serif;
    background: linear-gradient(110deg, #FE2C55, #25F4EE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hm-fly h3,
.hm-flow h3,
.hm-card h3 {
    margin: 0 0 0.5rem;
    font: 700 1.08rem 'Poppins', sans-serif;
    color: #fff;
}

.hm-fly p,
.hm-flow p,
.hm-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #a9a9b3;
}

/* ---- how we work ---- */
.hm-flow {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.hm-flow::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, #FE2C55, #25F4EE);
    opacity: 0.6;
}

.hm-flow li {
    position: relative;
    text-align: center;
    padding: 0 0.5rem;
}

.hm-flow-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    font: 700 1rem 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(#0a0a0d, #0a0a0d) padding-box, linear-gradient(135deg, #FE2C55, #25F4EE) border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 22px -4px rgba(37, 244, 238, 0.45);
}

.hm-flow li:last-child .hm-flow-dot {
    color: #05070d;
    background: linear-gradient(135deg, #FE2C55, #25F4EE);
}

/* ---- results bento (charts from css/case-studies.css) ---- */
.hm-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.hm-res {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    max-width: none;
    margin: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.hm-res:hover,
a.hm-res:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 70px -20px rgba(37, 244, 238, 0.45);
}

a.hm-res:focus-visible {
    outline: 2px solid #25F4EE;
    outline-offset: 3px;
}

.hm-res-wide {
    grid-column: span 2;
}

.hm-res .cs-bars {
    max-width: 360px;
    margin-bottom: 0.5rem;
}

.hm-res .cs-hbars-acos {
    margin-bottom: 1rem;
}

.hm-res-big {
    font: 800 clamp(2.4rem, 4vw, 3.2rem) 'Poppins', sans-serif;
    line-height: 1;
    background: linear-gradient(110deg, #FE2C55, #25F4EE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hm-gauge {
    margin-top: 1rem;
    padding: 0.75rem;
}

.hm-gauge .cs-ring {
    width: 84px;
    height: 84px;
}

.hm-res-foot {
    margin: auto 0 0;
    padding-top: 0.75rem;
    font-size: 0.88rem;
    color: #9a9aa4;
}

.hm-res-foot b {
    color: #fff;
}

/* ---- why + guarantee ---- */
.hm-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.hm-card {
    padding: 1.75rem 1.6rem;
    border-radius: 20px;
    background: linear-gradient(160deg, #141418, #0a0a0d 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 13px;
    color: #25F4EE;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.18));
}

.hm-guarantee {
    max-width: none;
    margin: 0;
    padding: 2.25rem;
    border: 0;
    isolation: isolate;
}

.hm-guarantee-head {
    max-width: 720px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.hm-guarantee-head h3 {
    margin: 0.9rem 0 0.75rem;
    font: 700 clamp(1.5rem, 2.6vw, 2rem) 'Poppins', sans-serif;
    color: #fff;
}

.hm-guarantee-head p {
    margin: 0;
    color: #a9a9b3;
}

.hm-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hm-guarantee-grid > div {
    padding: 1.2rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hm-guarantee-grid h4 {
    margin: 0 0 0.4rem;
    font: 700 0.98rem 'Poppins', sans-serif;
    color: #25F4EE;
}

.hm-guarantee-grid p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #a9a9b3;
}

/* ---- testimonials teaser ---- */
.hm-reviews-h2 {
    margin-top: 1.25rem;
}

.hm-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.hm-review {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: 20px;
    background: linear-gradient(160deg, #141418, #0a0a0d 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-review-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hm-review-stars span {
    letter-spacing: 2px;
    color: #FFC24B;
}

.hm-review-stars b {
    font: 700 0.85rem 'Poppins', sans-serif;
    color: #fff;
}

.hm-review blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

.hm-review blockquote p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #d4d4da;
}

.hm-review footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hm-review-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font: 700 0.95rem 'Poppins', sans-serif;
    color: #05070d;
    background: linear-gradient(135deg, #FE2C55, #25F4EE);
}

.hm-review-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hm-review-who b {
    font: 600 0.9rem 'Poppins', sans-serif;
    color: #fff;
    overflow-wrap: anywhere;
}

.hm-review-who span {
    font-size: 0.78rem;
    color: #8b8b95;
}

/* ---- kept sections: match the dark premium look ---- */
.portfolio,
.blog {
    background: var(--bg-dark, #010101);
}

.hm-cta-note {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: #8b8b95;
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
    .hm-svc-grid,
    .hm-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.25rem;
    }

    .hm-flow::before {
        display: none;
    }

    .hm-review-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .hm-fly,
    .hm-why-grid,
    .hm-guarantee-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-fly li:not(:last-child)::after {
        top: auto;
        bottom: -1.25rem;
        right: auto;
        left: 50%;
        width: 2px;
        height: 1.25rem;
        background: linear-gradient(#FE2C55, #25F4EE);
    }
}

@media (max-width: 768px) {
    .hm-stats-wrap {
        padding-bottom: 2rem;
    }

    .hm-svc-feature {
        flex-direction: column;
        padding: 1.6rem 1.3rem;
    }

    .hm-svc-feature h3 {
        font-size: 1.25rem;
    }

    .hm-guarantee {
        padding: 1.6rem 1.2rem;
    }
}

@media (max-width: 640px) {
    .hm-svc-grid,
    .hm-bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-res-wide {
        grid-column: auto;
    }

    .hm-flow {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-svc,
    .hm-res {
        transition: none;
    }

    .hm-svc:hover,
    .hm-svc:focus-visible,
    a.hm-res:hover,
    a.hm-res:focus-visible {
        transform: none;
    }
}
