/* ==========================================================================
   QrCodeTrack — home page theme
   Palette taken from the logo: #194EBF (wordmark blue) → #B94294 (wordmark
   magenta), with the QR mark's own gradient endpoints (#0A4FC3 → #AF4297).
   Everything here is scoped under .qt-home so other public pages (login,
   register, pricing, bio pages) are untouched.
   ========================================================================== */

.qt-home {
    --qt-blue: #194EBF;
    --qt-blue-bright: #2E6BF5;
    --qt-magenta: #B94294;
    --qt-magenta-bright: #E056B4;
    --qt-gradient: linear-gradient(115deg, var(--qt-blue) 0%, #7B46AE 52%, var(--qt-magenta) 100%);
    --qt-gradient-bright: linear-gradient(115deg, var(--qt-blue-bright) 0%, #8E52D6 52%, var(--qt-magenta-bright) 100%);

    --qt-ink: #070C24;
    --qt-ink-soft: #101838;

    --qt-text: #14183a;
    --qt-text-muted: #5b6180;
    --qt-surface: #ffffff;
    --qt-surface-sunken: #f5f7fc;
    --qt-border: rgba(20, 24, 58, .08);
    --qt-shadow: 0 18px 50px -24px rgba(16, 24, 56, .32);
    --qt-radius: 26px;
}

[data-theme-style="dark"] .qt-home,
.cc--darkmode .qt-home {
    --qt-text: #eef0fa;
    --qt-text-muted: #9aa2c4;
    --qt-surface: #131834;
    --qt-surface-sunken: #0d1129;
    --qt-border: rgba(255, 255, 255, .09);
    --qt-shadow: 0 18px 50px -24px rgba(0, 0, 0, .7);
}

/* ==========================================================================
   1. Hero
   ========================================================================== */

.qt-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 1.5rem;
    padding: 4.5rem 0 5.5rem;
    background: var(--qt-ink);
    border-radius: 34px;
    color: #fff;
}

/* brand aurora — two soft gradient pools, blue top-left, magenta bottom-right */
.qt-hero::before,
.qt-hero::after {
    content: "";
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    pointer-events: none;
}

.qt-hero::before {
    width: 46rem;
    height: 46rem;
    top: -22rem;
    left: -14rem;
    background: radial-gradient(circle, var(--qt-blue-bright) 0%, transparent 70%);
}

.qt-hero::after {
    width: 40rem;
    height: 40rem;
    right: -12rem;
    bottom: -20rem;
    background: radial-gradient(circle, var(--qt-magenta) 0%, transparent 70%);
}

/* faint QR-module grid, fading out toward the bottom */
.qt-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    pointer-events: none;
}

.qt-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .95rem;
    margin-bottom: 1.5rem;
    font-size: .82rem;
    font-weight: 600;
    color: #dfe4ff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.qt-hero__badge .qt-stars {
    color: #FFC44D;
    letter-spacing: -.06em;
}

.qt-home .qt-hero__title {
    max-width: 15ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: #fff;
}

.qt-hero__lead {
    max-width: 44ch;
    margin-bottom: 2rem;
    font-size: 1.06rem;
    line-height: 1.65;
    color: rgba(233, 236, 255, .72);
}

/* feature pills replace the old plain-text column list */
.qt-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.25rem;
    padding: 0;
    list-style: none;
}

.qt-home .qt-pill {
    display: inline-flex;
    align-items: center;
    padding: .45rem .9rem;
    font-size: .86rem;
    font-weight: 600;
    color: rgba(240, 242, 255, .86);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.qt-home .qt-pill:hover,
.qt-home .qt-pill:focus {
    transform: translateY(-2px);
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .26);
    text-decoration: none;
}

/* ---- buttons ---- */

.qt-home .qt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.9rem;
    font-size: 1rem;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.qt-home .qt-btn-primary {
    color: #fff;
    background-image: var(--qt-gradient-bright);
    box-shadow: 0 14px 34px -12px rgba(46, 107, 245, .8);
}

.qt-home .qt-btn-primary:hover,
.qt-home .qt-btn-primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px -12px rgba(185, 66, 148, .75);
}

.qt-home .qt-btn-ghost {
    color: #e8ebff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
}

.qt-home .qt-btn-ghost:hover,
.qt-home .qt-btn-ghost:focus {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

.qt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

/* claim-url input, kept working for when the setting is switched on */
.qt-hero__claim {
    max-width: 32rem;
    margin-bottom: 1rem;
}

.qt-hero__claim .form-control,
.qt-hero__claim .input-group-text,
.qt-hero__claim .custom-select {
    height: 3.4rem;
    background: rgba(255, 255, 255, .95);
    border: 0;
    color: var(--qt-text);
}

.qt-hero__claim .input-group > :first-child,
.qt-hero__claim .input-group > :first-child .input-group-text,
.qt-hero__claim .input-group > :first-child .custom-select {
    border-radius: 999px 0 0 999px;
}

.qt-hero__claim .form-control:last-child {
    border-radius: 0 999px 999px 0;
}

/* ---- hero visual: the scan card ---- */

.qt-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22rem;
}

.qt-scan-card {
    position: relative;
    width: min(21rem, 100%);
    padding: 1.6rem;
    text-align: center;
    background: rgba(255, 255, 255, .97);
    border-radius: 28px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
    transform: rotate(-2.5deg);
    transition: transform .35s ease;
}

.qt-scan-card:hover {
    transform: rotate(0deg) translateY(-4px);
}

.qt-scan-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.qt-scan-card__label {
    display: block;
    margin-top: 1rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--qt-blue);
}

.qt-scan-card__sub {
    display: block;
    margin-top: .15rem;
    font-size: .8rem;
    color: #6b7192;
}

/* floating stat chips pinned to the scan card */
.qt-chip {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: .8rem 1.1rem;
    background: rgba(19, 24, 52, .82);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
    animation: qt-float 6s ease-in-out infinite;
}

.qt-chip__value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    background-image: linear-gradient(100deg, #7FB0FF, #F58AD2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qt-chip__label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(226, 230, 255, .66);
    white-space: nowrap;
}

.qt-chip--one {
    top: 1rem;
    left: -1rem;
}

.qt-chip--two {
    right: -1.25rem;
    bottom: 1.5rem;
    animation-delay: -3s;
}

@keyframes qt-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   2. Section rhythm — every section on the page carries .qt-section
   ========================================================================== */

.qt-home .qt-section {
    margin-top: 0 !important;
    padding-block: clamp(2.75rem, 6vw, 5rem);
}

.qt-home h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.028em;
    color: var(--qt-text);
}

.qt-home .qt-section p.h6,
.qt-home .qt-section > .card p.text-muted {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--qt-text-muted) !important;
}

/* ==========================================================================
   3. Feature sections — image + copy, alternating sides
   ========================================================================== */

/* the card chrome comes off; the image itself becomes the visual anchor */
.qt-home .qt-feature > .card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.qt-home .qt-feature .card-body {
    padding: 0;
}

.qt-home .qt-feature .row {
    align-items: center;
    row-gap: 2.5rem;
}

.qt-home .qt-feature--flip .row {
    flex-direction: row-reverse;
}

.qt-home .qt-feature .row > [class*="col"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-inline: 1rem;
}

/* brand glow pooled behind the screenshot */
.qt-home .qt-feature .row > [class*="col"]:first-child {
    position: relative;
}

.qt-home .qt-feature .row > [class*="col"]:first-child::before {
    content: "";
    position: absolute;
    inset: 14% 10%;
    z-index: 0;
    border-radius: 50%;
    background: var(--qt-gradient);
    filter: blur(64px);
    opacity: .26;
    pointer-events: none;
}

.qt-home .qt-feature .index-card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 32px 64px -34px rgba(25, 78, 191, .5);
    transition: transform .4s ease, box-shadow .4s ease;
}

.qt-home .qt-feature .index-card-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 78px -34px rgba(185, 66, 148, .5);
}

/* the little icon tile above each heading, on brand */
.qt-home .qt-feature .bg-primary-100 {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0 !important;
    background-color: transparent !important;
    background-image: var(--qt-gradient);
    border-radius: 18px !important;
    box-shadow: 0 12px 26px -14px rgba(25, 78, 191, .9);
}

.qt-home .qt-feature .bg-primary-100 i {
    color: #fff !important;
}

/* feature checklist — two columns once there is room */
.qt-home .qt-feature ul.list-style-none {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1.75rem;
    margin-top: 1.75rem !important;
}

.qt-home .qt-feature ul.list-style-none li {
    margin-bottom: 0 !important;
    font-size: .95rem;
    color: var(--qt-text);
}

.qt-home .qt-feature ul.list-style-none .fa-check-circle {
    color: var(--qt-magenta) !important;
}

/* ==========================================================================
   4. Feature grid — the six product cards
   ========================================================================== */

.qt-home .qt-grid .card {
    border: 1px solid var(--qt-border) !important;
    border-radius: 22px !important;
    background: var(--qt-surface);
    box-shadow: var(--qt-shadow);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.qt-home .qt-grid .card:hover {
    transform: translateY(-6px);
    border-color: rgba(25, 78, 191, .32) !important;
    box-shadow: 0 26px 56px -28px rgba(25, 78, 191, .45);
}

/* the pastel per-feature tints are replaced by one neutral surface … */
.qt-home .qt-grid [class$="-background"] {
    display: flex;
    align-items: center;
    background-color: var(--qt-surface-sunken) !important;
    border: 1px solid var(--qt-border);
    border-radius: 16px !important;
}

/* … with the brand's two colours alternating across the grid */
.qt-home .qt-grid [class$="-icon"] {
    color: var(--qt-blue) !important;
}

.qt-home .qt-grid .row > [class*="col"]:nth-child(even) [class$="-icon"] {
    color: var(--qt-magenta) !important;
}

.qt-home .qt-grid .h5 {
    font-weight: 700;
    color: var(--qt-text);
}

/* ==========================================================================
   5. Stats band
   ========================================================================== */

.qt-home .qt-stats .card {
    padding-block: 1.75rem;
    background-color: var(--qt-ink) !important;
    background-image: var(--qt-gradient) !important;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: 0 32px 70px -36px rgba(25, 78, 191, .85);
}

.qt-home .qt-stats .text-muted {
    font-size: .8rem;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72) !important;
}

.qt-home .qt-stats .h1 {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.03em;
    background-image: none !important;
    -webkit-text-fill-color: #fff;
    color: #fff !important;
}

/* ==========================================================================
   6. Content bands — app linking, pixels, tools, testimonials, FAQ
   ========================================================================== */

.qt-home .qt-band > .card {
    border: 1px solid var(--qt-border) !important;
    border-radius: var(--qt-radius) !important;
    background: var(--qt-surface);
    box-shadow: var(--qt-shadow);
}

.qt-home .qt-band .bg-gray-100 {
    background-color: var(--qt-surface-sunken) !important;
    border: 1px solid var(--qt-border);
    border-radius: 16px !important;
}

.qt-home .qt-band .icon-zoom-animation,
.qt-home .qt-grid .icon-zoom-animation {
    transition: transform .22s ease;
}

.qt-home .qt-band .icon-zoom-animation:hover {
    transform: translateY(-4px);
}

/* tools keep their own brand colours, but get the same geometry */
.qt-home .qt-band .card[style] {
    border-radius: 18px !important;
    box-shadow: 0 18px 40px -24px rgba(16, 24, 56, .5);
    transition: transform .22s ease;
}

.qt-home .qt-band .card[style]:hover {
    transform: translateY(-4px);
}

/* FAQ accordion */
.qt-home .qt-band .index-faq .card {
    border-radius: 16px !important;
    margin-bottom: .6rem;
}

.qt-home .qt-band .index-testimonial-avatar {
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--qt-gradient) border-box;
}

/* ==========================================================================
   7. Closing call to action
   ========================================================================== */

.qt-home .qt-ctaband .index-cta {
    background-color: var(--qt-ink) !important;
    background-image: var(--qt-gradient) !important;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: 0 32px 70px -36px rgba(185, 66, 148, .8);
    color: #fff;
}

.qt-home .qt-ctaband .index-cta h2,
.qt-home .qt-ctaband .index-cta p,
.qt-home .qt-ctaband .index-cta .text-muted {
    color: #fff !important;
}

.qt-home .qt-ctaband .index-cta a.btn {
    padding: .9rem 2.1rem;
    font-weight: 700;
    color: var(--qt-blue) !important;
    background: #fff !important;
    border: 0;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.qt-home .qt-ctaband .index-cta a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .5);
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .qt-hero {
        margin-top: 1rem;
        padding: 3.25rem 0 3.75rem;
        border-radius: 26px;
    }

    .qt-hero__visual {
        min-height: 0;
        margin-top: 3rem;
    }

    .qt-scan-card {
        transform: none;
    }

    .qt-chip--one { left: -.5rem; }
    .qt-chip--two { right: -.5rem; }

    /* stacked: the screenshot always leads, whichever side it sits on */
    .qt-home .qt-feature--flip .row {
        flex-direction: column-reverse;
    }

    .qt-home .qt-feature ul.list-style-none {
        grid-template-columns: 1fr;
    }

    /* the screenshot column is col-auto, which sizes to content — force it
       full width below lg so the image cannot overflow the row */
    .qt-home .qt-feature .row > [class*="col"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .qt-home .qt-hero__title {
        max-width: none;
    }

    .qt-hero__actions .qt-btn {
        width: 100%;
    }

    .qt-chip {
        position: static;
        display: inline-flex;
        margin: .75rem .35rem 0;
        animation: none;
    }

    .qt-home .qt-stats .card {
        border-radius: 22px !important;
    }
}

/* right-to-left (Arabic is configured in the language list) */
[dir="rtl"] .qt-hero::before { left: auto; right: -14rem; }
[dir="rtl"] .qt-hero::after { right: auto; left: -12rem; }
[dir="rtl"] .qt-scan-card { transform: rotate(2.5deg); }
[dir="rtl"] .qt-chip--one { left: auto; right: -1rem; }
[dir="rtl"] .qt-chip--two { right: auto; left: -1.25rem; }
[dir="rtl"] .qt-home .qt-feature .row { flex-direction: row-reverse; }
[dir="rtl"] .qt-home .qt-feature--flip .row { flex-direction: row; }

@media (prefers-reduced-motion: reduce) {
    .qt-home *,
    .qt-home *::before,
    .qt-home *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
