/* Homepage theme, scoped to .home-modern so pages sharing style.css are
   unaffected. Extracted from index.php: the HTML is sent no-store, so
   inlining re-sent 35 KB on every request; as a file it is cached for a
   month. Loaded after style.css, exactly where the <style> block sat. */

/* ============================================================
       LumaQube homepage — clean white "IT software corporation"
       theme. Scoped to .home-modern so other pages (shop, faq,
       gallery…) that share style.css are NOT affected.
       ============================================================ */
    body.home-modern {
        background: #ffffff;
        color: #0f172a;
        font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    .home-modern { --brand: #2563eb; --brand-2: #0ea5e9; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg-alt: #f8fafc;
        /* One vertical rhythm for the whole page. Sections written for this theme
           used 84px while the ones inherited from style.css used 50px, and three
           inline overrides patched the seams — gaps ranged from 0 to 168px with no
           pattern. Everything below now derives from these two values. */
        --sec-y: 76px; --sec-y-sm: 52px; }

    /* ---- Nav (kept DARK so the white logo stays visible) ----
       Direct child of <body> only: the footer contains a <nav> of its own,
       which must not inherit the sticky top-bar treatment. */
    .home-modern > nav {
        background: linear-gradient(90deg, #0b1220, #1e293b);
        box-shadow: 0 4px 20px rgba(15,23,42,.18);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .home-modern .nav-menu a { color: #cbd5e1; text-transform: none; font-weight: 500; }
    .home-modern .nav-menu a:hover { color: #ffffff; transform: none; }
    @media (max-width: 768px) {
        .home-modern .nav-menu { background: #0b1220; box-shadow: 0 10px 30px rgba(15,23,42,.3); }
        .home-modern .nav-menu a:hover { background: rgba(255,255,255,.06); color: #7dd3fc; }
    }

    /* ---- V5 announcement — the intro half of the merged dark section ---- */
    .home-modern .v5-intro { max-width: 900px; margin: 0 auto 54px; text-align: center; }
    .home-modern .v5-pill {
        display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.2); padding: 7px 16px; border-radius: 999px;
        font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
    }
    .home-modern .v5-intro h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; color: #fff; text-transform: none; text-shadow: none; }
    .home-modern .v5-intro h2 em { font-style: normal; color: #7dd3fc; }
    .home-modern .v5-intro h2::after { display: none; }
    .home-modern .v5-intro p { color: #cbd5e1; font-size: 1.06rem; max-width: 620px; margin: 0 auto 28px; }
    /* The four V5 highlights read as a compact 2×2 badge row, not a bullet list —
       the detailed selling happens in the Custom UI half below. */
    .home-modern .v5-feats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; text-align: left; }
    .home-modern .v5-feats li { display: flex; align-items: flex-start; gap: 10px; color: #e2e8f0; font-weight: 500; font-size: .96rem;
        background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 13px 16px; }
    .home-modern .v5-feats li i { color: #38bdf8; margin-top: 4px; }
    .home-modern .v5-divider { max-width: 1200px; margin: 0 auto 54px; height: 1px; background: linear-gradient(90deg, transparent, rgba(125,211,252,.35), transparent); }
    @media (max-width: 640px) { .home-modern .v5-feats { grid-template-columns: 1fr; } .home-modern .v5-intro { margin-bottom: 40px; } }

    /* ---- Carousel ---- */
    .home-modern .carousel { box-shadow: 0 10px 30px rgba(15,23,42,.08); border: 1px solid var(--line); margin-top: 28px; }
    .home-modern .swiper-slide { background: var(--bg-alt); }
    .home-modern .swiper-slide h2 { color: var(--ink); text-transform: none; text-shadow: none; }
    .home-modern .swiper-slide h2::after { display: none; }
    .home-modern .swiper-slide p { color: var(--muted); }
    .home-modern .swiper-pagination-bullet-active { background: var(--brand); }

    /* ---- Products ---- */
    .home-modern .products { background: #ffffff; border: 0; padding: var(--sec-y) 40px; }
    .home-modern .product-card {
        background: #ffffff; border: 1px solid var(--line); border-radius: 18px;
        box-shadow: 0 1px 2px rgba(15,23,42,.06); border-top: 4px solid var(--brand);
    }
    .home-modern .product-card:nth-child(1) { border-top-color: #2563eb; }
    .home-modern .product-card:nth-child(2) { border-top-color: #ec4899; }
    .home-modern .product-card:nth-child(3) { border-top-color: #10b981; }
    .home-modern .product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(37,99,235,.14); border-color: #cbd5e1; }
    .home-modern .product-card { position: relative; }
    /* Featured "Best Seller" product card */
    .home-modern .product-card.featured { border: 2px solid var(--brand); border-top: 4px solid var(--brand); background: linear-gradient(180deg,#ffffff,#f4f8ff); box-shadow: 0 24px 50px rgba(37,99,235,.22); transform: translateY(-6px) scale(1.04); z-index: 2; }
    .home-modern .product-card.featured:hover { transform: translateY(-12px) scale(1.04); box-shadow: 0 30px 60px rgba(37,99,235,.28); }
    .home-modern .product-card.featured h3 span { color: var(--brand); }
    .home-modern .pop-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 6px 18px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 10px 22px rgba(37,99,235,.4); }
    .home-modern .cloud-incl { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #0369a1; background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 10px; padding: 9px 12px; margin-top: 14px; }
    .home-modern .cloud-incl i { color: #0ea5e9; }
    .home-modern .cloud-note { text-align: center; color: var(--muted); max-width: 760px; margin: 28px auto 0; padding: 0 20px; font-weight: 500; }
    .home-modern .cloud-note strong { color: var(--ink); }
    .home-modern .product-card h3 { color: var(--ink); }
    .home-modern .product-card h3 span { color: var(--brand); }
    .home-modern .product-card ul li { color: #334155; }
    .home-modern .product-card ul li:before { color: #10b981; }

    /* ---- Generic section shells (video, testimonials, bottom) ---- */
    .home-modern .video-section,
    .home-modern .testimonials,
    .home-modern .bottom-section { background: linear-gradient(180deg, #f5f8ff, #eef4ff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: none; }
    /* Same rhythm as .lq-section, replacing the 50px these inherit from style.css. */
    .home-modern .video-section,
    .home-modern .testimonials,
    .home-modern .bottom-section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
    .home-modern .video-placeholder { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.08); }

    .home-modern .testimonials h2 { color: var(--ink); text-transform: none; }
    .home-modern .testimonials h2::after { background: var(--brand); }
    .home-modern .testimonial-card { background: #ffffff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.06); }
    .home-modern .testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15,23,42,.1); }
    .home-modern .testimonial-card p { color: #334155; }
    .home-modern .testimonial-card .author { color: var(--brand); }

    .home-modern .section { background: #ffffff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.06); border-top: 4px solid var(--brand); }
    .home-modern .section:nth-child(1) { border-top-color: #8b5cf6; }
    .home-modern .section:nth-child(2) { border-top-color: #0ea5e9; }
    .home-modern .section:nth-child(3) { border-top-color: #f59e0b; }
    .home-modern .section:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15,23,42,.1); }
    .home-modern .section h3 { color: var(--ink); }
    .home-modern .section p { color: var(--muted); }
    .home-modern .section a { color: var(--brand); }
    .home-modern .section a:hover { color: #1d4ed8; }
    .home-modern .section button { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
    .home-modern .section button:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(37,99,235,.3); }

    /* Footer: fully self-styled in footer.php (.lq-foot scope). The rules that
       used to sit here targeted bare `footer a` etc. and bled into it — the
       links turned cyan and the footer's own <nav> picked up the top-bar look. */

    /* ---- Content pages rendered by index.php ---- */
    .home-modern .container { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); }
    /* Links inside content pages were yellow (#ffd700) and hard to read on white — use brand blue */
    .home-modern .container a,
    .home-modern .content-area a { color: var(--brand); font-weight: 600; }
    .home-modern .container a:hover,
    .home-modern .content-area a:hover { color: #1d4ed8; text-decoration: underline; }
    /* Keep content media within the container width — no horizontal overflow past the screen edges */
    .home-modern .container img,
    .home-modern .content-area img,
    .home-modern .container video,
    .home-modern .content-area video { max-width: 100%; height: auto; }
    .home-modern .container iframe,
    .home-modern .content-area iframe { max-width: 100%; }
    .home-modern .container table,
    .home-modern .content-area table { max-width: 100%; }
    .home-modern .content-area { overflow-wrap: break-word; word-wrap: break-word; }

    /* ---- World map ---- */
    .home-modern .map-card { position: relative; max-width: 1200px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.08); }
    .home-modern #worldMap { height: 480px; width: 100%; background: #eef4ff; z-index: 1; }
    .home-modern .map-badge { position: absolute; top: 16px; left: 16px; z-index: 500; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(15,23,42,.06); font-weight: 700; font-size: .9rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
    .home-modern .map-badge i { color: var(--brand); }
    .leaflet-popup-content h4 { margin: 0 0 6px; color: #1d4ed8; font-size: .95rem; }
    .leaflet-popup-content p { margin: 0; font-size: .82rem; color: #64748b; }
    @media (max-width: 640px) { .home-modern #worldMap { height: 360px; } }

    /* ============================================================
       V5 Super-App showcase — booths, setups, ticker, stats
       ============================================================ */
    .home-modern .lq-section { max-width: 1200px; margin: 0 auto; padding: var(--sec-y) 20px; }
    /* Consecutive sections would otherwise stack their padding into a double gap. */
    .home-modern .lq-section + .lq-section { padding-top: 0; }
    .home-modern .lq-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
    .home-modern .lq-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: rgba(37,99,235,.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
    .home-modern .lq-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: 14px; line-height: 1.12; }
    .home-modern .lq-sub { color: var(--muted); font-size: 1.05rem; }

    /* Ticker */
    .home-modern .ticker { overflow: hidden; background: #0b1220; padding: 16px 0; }
    .home-modern .ticker-track { display: inline-flex; gap: 34px; white-space: nowrap; animation: lqticker 30s linear infinite; will-change: transform; }
    .home-modern .ticker .item { color: #e2e8f0; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; }
    .home-modern .ticker .item i { color: #38bdf8; }
    .home-modern .ticker .sep { color: #475569; }
    @keyframes lqticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

    /* Booth grid */
    .home-modern .booth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .home-modern .booth-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .3s, box-shadow .3s, border-color .3s; }
    .home-modern .booth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--bc); }
    .home-modern .booth-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(37,99,235,.16); border-color: transparent; }
    .home-modern .booth-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 24px; margin-bottom: 18px; background: var(--bc); box-shadow: 0 10px 24px rgba(15,23,42,.18); }
    .home-modern .booth-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
    .home-modern .booth-card p { color: var(--muted); font-size: .95rem; }
    .home-modern .booth-card.soon { background: #f8fafc; border-style: dashed; }
    .home-modern .booth-card.soon .ic { background: linear-gradient(135deg,#94a3b8,#cbd5e1); box-shadow: none; }
    .home-modern .booth-card.soon::before { background: linear-gradient(90deg,#cbd5e1,#e2e8f0); }
    .home-modern .chip-soon { position: absolute; top: 18px; right: 18px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #475569; background: #e2e8f0; padding: 4px 10px; border-radius: 999px; }

    /* Stats band */
    .home-modern .stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
    .home-modern .stat-box { text-align: center; padding: 26px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.06); }
    .home-modern .stat-box .num { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; background: linear-gradient(120deg,var(--brand),var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .home-modern .stat-box .lbl { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: 8px; }

    /* Setup grid */
    .home-modern .setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
    .home-modern .setup-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
    .home-modern .setup-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15,23,42,.1); }
    .home-modern .setup-card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: #0b1220; }
    .home-modern .setup-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
    .home-modern .setup-card:hover .ph img { transform: scale(1.06); }
    .home-modern .setup-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
    .home-modern .setup-card .tag2 { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 10px; }
    .home-modern .setup-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
    .home-modern .setup-card p { color: var(--muted); }
    .home-modern .setup-card .pay { margin-top: 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 7px 13px; border-radius: 999px; }

    /* Reveal. Gated behind the .js class that head.php sets on <html>, so with
       JavaScript unavailable — or if the observer script ever throws — the content
       is simply visible instead of stuck at opacity 0. */
    .js .home-modern .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
    .js .home-modern .reveal.in { opacity: 1; transform: none; }

    @media (max-width: 900px) {
        .home-modern .booth-grid { grid-template-columns: repeat(2, 1fr); }
        .home-modern .stats-band { grid-template-columns: repeat(2, 1fr); }
        .home-modern .setup-grid { grid-template-columns: 1fr; max-width: 460px; }
    }
    @media (max-width: 560px) {
        .home-modern .booth-grid { grid-template-columns: 1fr; }
        .home-modern .stats-band { grid-template-columns: 1fr; }
    }
    /* Narrow screens get the tighter step of the same scale, so the rhythm holds
       rather than leaving desktop-sized gaps between short stacked sections. */
    @media (max-width: 640px) {
        .home-modern { --sec-y: var(--sec-y-sm); }
    }

    /* ---- Custom UI killer feature (dark premium) ---- */
    .home-modern .ui-section { background: radial-gradient(80% 120% at 50% 0%, #142a5e 0%, #0b1220 55%); color: #fff; }
    .home-modern .ui-wrap { max-width: 1200px; margin: 0 auto; padding: 84px 20px; }
    .home-modern .ui-split { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 48px; align-items: center; }
    .home-modern .ui-eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; background: rgba(125,211,252,.12); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
    .home-modern .ui-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 14px; color: #fff; }
    .home-modern .ui-sub { color: #cbd5e1; font-size: 1.05rem; }
    .home-modern .ui-feats { list-style: none; display: grid; gap: 13px; margin-top: 22px; padding: 0; }
    .home-modern .ui-feats li { display: flex; gap: 12px; align-items: flex-start; color: #e2e8f0; font-weight: 500; }
    .home-modern .ui-feats li i { color: #7dd3fc; margin-top: 4px; }
    .home-modern .ui-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 13px 26px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 24px rgba(37,99,235,.35); transition: transform .2s, box-shadow .2s; }
    .home-modern .ui-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,99,235,.5); text-decoration: none; color: #fff; }
    .home-modern .ui-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(125,211,252,.3); box-shadow: 0 30px 70px rgba(14,165,233,.28); }
    .home-modern .ui-video iframe { width: 100%; height: 100%; border: 0; display: block; }
    @media (max-width: 900px) { .home-modern .ui-split { grid-template-columns: 1fr; gap: 32px; } }

    /* ---- Floating WhatsApp button (replaces AI chatbox toggle) ---- */
    .home-modern .wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 1001; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s, box-shadow .2s; animation: waPulse 2.4s infinite; }
    .home-modern .wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,.6); color: #fff; text-decoration: none; }
    @keyframes waPulse { 0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }
    @media (max-width: 480px) { .home-modern .wa-float { width: 54px; height: 54px; font-size: 27px; bottom: 18px; right: 18px; } }
    /* ---------- Promo band ---------- */
    .home-modern .promo-band { max-width: 980px; margin: 0 auto 34px; display: flex; align-items: center;
        gap: 20px; flex-wrap: wrap; justify-content: center; text-align: left;
        background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff;
        border-radius: 16px; padding: 18px 24px; box-shadow: 0 18px 40px rgba(30,58,138,.28); }
    .home-modern .promo-left { display: flex; flex-direction: column; gap: 2px; }
    .home-modern .promo-eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
        color: #fbbf24; display: inline-flex; align-items: center; gap: 6px; }
    .home-modern .promo-off { font-size: 1.9rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
    .home-modern .promo-scope { font-size: .78rem; opacity: .85; }
    .home-modern .promo-mid { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 200px; }
    .home-modern .promo-code { font-size: 1rem; }
    .home-modern .promo-code strong { background: rgba(255,255,255,.16); padding: 2px 10px; border-radius: 6px;
        font-family: Consolas, Menlo, monospace; letter-spacing: .06em; }
    .home-modern .promo-meta { font-size: .78rem; opacity: .8; }
    .home-modern .promo-cta { display: inline-flex; align-items: center; gap: 9px; background: #fbbf24; color: #0f172a;
        padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: .92rem; text-decoration: none;
        white-space: nowrap; transition: transform .18s, box-shadow .18s; }
    .home-modern .promo-cta:hover { color: #0f172a; text-decoration: none; transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(251,191,36,.4); }
    @media (max-width: 640px) {
        .home-modern .promo-band { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; padding: 18px; }
        .home-modern .promo-left, .home-modern .promo-mid { align-items: center; }
        .home-modern .promo-cta { justify-content: center; }
    }

    /* Compare-editions modal: styles live in partials/compare_modal.php now,
       shared with purchase.php so both pages stay identical. */

    /* ============================================================
       Hero — merged from the former landing page
       ============================================================ */
    .home-modern .lq-hero { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 20px 56px; }
    .home-modern .lq-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
        background:
            radial-gradient(55% 50% at 82% 0%, rgba(14,165,233,.16), transparent 60%),
            radial-gradient(45% 45% at 8% 8%, rgba(139,92,246,.12), transparent 60%),
            radial-gradient(40% 40% at 50% 100%, rgba(37,99,235,.10), transparent 60%); }
    .home-modern .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
    .home-modern .v5-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
        padding: 8px 14px 8px 8px; border-radius: 999px; box-shadow: 0 1px 2px rgba(15,23,42,.06); margin-bottom: 22px;
        font-size: .85rem; font-weight: 600; color: #334155; }
    .home-modern .v5-badge .tag { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
    .home-modern .v5-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: lqPulse 2s infinite; }
    @keyframes lqPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
    .home-modern .lq-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.06; color: var(--ink); margin: 0 0 16px; text-transform: none; text-shadow: none; }
    .home-modern .lq-hero h1::after { display: none; }
    .home-modern .lq-hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .home-modern .rotator-line { font-size: 1.1rem; font-weight: 600; color: #334155; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .home-modern .rotator { display: inline-flex; align-items: center; gap: 8px; min-width: 190px; font-weight: 800; padding: 4px 14px; border-radius: 999px; color: #fff;
        background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px rgba(37,99,235,.3); transition: opacity .35s, transform .35s; }
    .home-modern .rotator.swap { opacity: 0; transform: translateY(8px); }
    .home-modern .lq-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 0; }
    /* .hero-btn is shared with the closing CTA band, so it stays even though the
       hero itself no longer carries buttons. */
    .home-modern .hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: transform .2s, box-shadow .2s; }
    .home-modern .hero-btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,.3); }
    .home-modern .hero-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,99,235,.42); color: #fff; text-decoration: none; }
    .home-modern .hero-visual { position: relative; }
    .home-modern .device { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(37,99,235,.16); background: #000; aspect-ratio: 16 / 10; }
    .home-modern .device video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .home-modern .float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
        box-shadow: 0 10px 30px rgba(15,23,42,.08); display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9rem; animation: lqFloaty 4s ease-in-out infinite; }
    .home-modern .float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 16px; }
    .home-modern .float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
    .home-modern .float-card.one { bottom: -22px; left: -24px; }
    .home-modern .float-card.one .ic { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
    .home-modern .float-card.two { top: -22px; right: -20px; animation-delay: 1.5s; }
    .home-modern .float-card.two .ic { background: linear-gradient(135deg,#10b981,#06b6d4); }
    @keyframes lqFloaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
    @media (max-width: 900px) {
        .home-modern .hero-grid { grid-template-columns: 1fr; gap: 40px; }
        .home-modern .hero-visual { order: -1; }
    }
    @media (max-width: 640px) {
        .home-modern .float-card { display: none; }
    }

    /* ---- Feature cards (One platform, all the power) ---- */
    .home-modern .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .home-modern .feature-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .3s, box-shadow .3s, border-color .3s; }
    .home-modern .feature-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15,23,42,.1); border-color: #cbd5e1; }
    .home-modern .feature-card .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 20px; margin-bottom: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
    .home-modern .feature-grid .feature-card:nth-child(1) .ic { background: linear-gradient(135deg,#2563eb,#0ea5e9); }
    .home-modern .feature-grid .feature-card:nth-child(2) .ic { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
    .home-modern .feature-grid .feature-card:nth-child(3) .ic { background: linear-gradient(135deg,#10b981,#06b6d4); }
    .home-modern .feature-grid .feature-card:nth-child(4) .ic { background: linear-gradient(135deg,#f59e0b,#f97316); }
    .home-modern .feature-grid .feature-card:nth-child(5) .ic { background: linear-gradient(135deg,#ec4899,#f43f5e); }
    .home-modern .feature-grid .feature-card:nth-child(6) .ic { background: linear-gradient(135deg,#06b6d4,#3b82f6); }
    .home-modern .feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
    .home-modern .feature-card p { color: var(--muted); font-size: .96rem; }
    @media (max-width: 900px) { .home-modern .feature-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .home-modern .feature-grid { grid-template-columns: 1fr; } }

    /* ---- Showcase sliders (AI in action, gallery samples) ---- */
    .home-modern .lq-swiper { width: 100%; max-width: 920px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,23,42,.08); }
    .home-modern .lq-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; background: #fff; }
    .home-modern .lq-swiper .swiper-slide img { width: 100%; height: auto; object-fit: contain; display: block; }
    /* <picture> is inline by default, which would leave a text-baseline gap under
       every slide and shrink-wrap the image inside the flex slide. */
    .home-modern .lq-swiper .swiper-slide picture { display: block; width: 100%; }
    .home-modern .setup-card .ph picture { display: block; width: 100%; height: 100%; }
    /* Every slide in each of these sliders shares one aspect ratio (3:2 for the AI
       showcase, 5:4 for the gallery), so the box can be reserved before the image
       arrives — no reflow as each one loads, and Swiper no longer has to remeasure. */
    .home-modern .ai-slider .swiper-slide img { aspect-ratio: 3 / 2; }
    .home-modern .sample-images-slider .swiper-slide img { aspect-ratio: 5 / 4; }
    .home-modern .lq-swiper .swiper-button-prev, .home-modern .lq-swiper .swiper-button-next { color: var(--brand); background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
    .home-modern .lq-swiper .swiper-button-prev::after, .home-modern .lq-swiper .swiper-button-next::after { font-size: 18px; font-weight: 700; }
    .home-modern .lq-swiper .swiper-pagination-bullet { background: var(--brand); }

    /* ---- Closing CTA band ---- */
    .home-modern .cta-band { max-width: 1200px; margin: 24px auto 64px; border-radius: 24px; padding: 60px 40px; text-align: center;
        background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 24px 60px rgba(37,99,235,.18); }
    .home-modern .cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: 14px; color: #fff; text-transform: none; text-shadow: none; }
    .home-modern .cta-band h2::after { display: none; }
    .home-modern .cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; }
    .home-modern .cta-band .hero-btn.primary { background: #fff; color: #1d4ed8; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
    .home-modern .cta-band .hero-btn.primary:hover { color: #1d4ed8; box-shadow: 0 18px 40px rgba(0,0,0,.26); }
    @media (max-width: 640px) { .home-modern .cta-band { margin: 16px 16px 48px; padding: 44px 22px; } }

    /* Visible to screen readers only — for labels a sighted user gets from
       placeholder text or an adjacent icon. */
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

    /* Skip link: off-screen until focused, so keyboard users can jump the nav. */
    .skip-link { position: absolute; left: -9999px; top: 0; z-index: 5000;
        background: #fff; color: #1d4ed8; padding: 12px 20px; font-weight: 700;
        border-radius: 0 0 10px 0; box-shadow: 0 6px 20px rgba(15,23,42,.25); }
    .skip-link:focus { left: 0; outline: 3px solid #0ea5e9; outline-offset: 2px; }

    /* ============================================================
       Reduced motion. The ticker, the pulses and the floating cards run
       indefinitely, so anyone who has asked their OS to limit animation gets a
       still page instead. home.js makes the matching JS-side choices.
       ============================================================ */
    @media (prefers-reduced-motion: reduce) {
        .home-modern *,
        .home-modern *::before,
        .home-modern *::after {
            animation-duration: .001ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: .001ms !important;
            scroll-behavior: auto !important;
        }
        .js .home-modern .reveal { opacity: 1; transform: none; }
        .home-modern .ticker-track { animation: none; }
    }

    /* Windows high-contrast mode drops background-clip gradients, which would
       otherwise leave the second headline line and the stat numbers invisible. */
    @media (forced-colors: active) {
        .home-modern .lq-hero h1 .grad,
        .home-modern .stat-box .num {
            -webkit-text-fill-color: CanvasText;
            color: CanvasText;
            background: none;
        }
    }
