/* ============================================================
   HOME — Clean Minimal Landing Page
   Namespace: frag-hom / hom-*
   File: mani-home-ltr.css
   Buttons & animations → mani-globals-ltr.css (mni-btn, mni-ri)
   ============================================================ */

.frag-hom {
    --ink: #111827;
    --ink2: #374151;
    --muted: #6B7280;
    --light: #9CA3AF;
    --border: #E5E7EB;
    --bg: #F9FAFB;
    --white: #ffffff;
    --blue: #2563EB;
    --blue-l: #EFF6FF;
    --green: #059669;
    --grn-l: #ECFDF5;
    --red: #DC2626;
    --red-l: #FEF2F2;
    --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --tr: .22s ease;

    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.frag-hom a {
    text-decoration: none;
    color: inherit;
}

/* ── shared label ── */
.hom-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

/* ── section title ── */
.hom-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.6px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.hom-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hom-hero {
    padding: 88px 24px 72px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hom-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
}

.hom-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hom-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--blue-l);
    border: 1px solid #BFDBFE;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 28px;
}

.hom-pill i {
    font-size: 13px;
    font-weight: 700;
}

.hom-hero h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.hom-hero h1 em {
    font-style: normal;
    color: var(--blue);
}

.hom-hero-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}

.hom-hero-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hom-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
}

.hom-trust-ck {
    color: var(--green);
    margin-right: 5px;
}

/* ── stats row ── */
.hom-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.hom-stat {
    padding: 28px 16px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: var(--tr);
}

.hom-stat:last-child {
    border-right: none;
}

.hom-stat:hover {
    background: var(--bg);
}

.hom-stat-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1;
}

.hom-stat-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.hom-video-wrap {
    padding: 72px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hom-video-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hom-video-card {
    margin-top: 36px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--ink);
    cursor: pointer;
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tr);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.hom-video-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
    transform: translateY(-2px);
}

.hom-video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    opacity: .92;
}

.hom-play-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.hom-play-circle {
    width: 64px;
    height: 64px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    transition: var(--tr);
    animation: hom-pulse-ring 2.5s ease-in-out infinite;
}

@keyframes hom-pulse-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .35);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
    }
}

.hom-video-card:hover .hom-play-circle {
    transform: scale(1.1);
}

.hom-play-label {
    font-size: 13px;
    font-weight: 700;
    opacity: .75;
    letter-spacing: .04em;
}

/* Modal */
.hom-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    backdrop-filter: blur(8px);
}

.hom-modal-bg.hom-open {
    opacity: 1;
    visibility: visible;
}

.hom-modal-box {
    width: 92%;
    max-width: 960px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(.96);
    transition: .25s;
}

.hom-modal-bg.hom-open .hom-modal-box {
    transform: scale(1);
}

.hom-modal-box iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

.hom-modal-x {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

.hom-modal-x:hover {
    background: rgba(255, 255, 255, .22);
    transform: rotate(90deg);
}

/* ============================================================
   PAIN — BEFORE / AFTER
   ============================================================ */
.hom-pain-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
}

.hom-pain-head {
    text-align: center;
    margin-bottom: 48px;
}

.hom-pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.hom-pain-card {
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: var(--tr);
}

.hom-pain-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.hom-pain-card--new {
    background: var(--grn-l);
    border-color: #BBF7D0;
}

.hom-pain-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hom-pain-card--old .hom-pain-tag {
    background: var(--red-l);
    color: var(--red);
}

.hom-pain-card--new .hom-pain-tag {
    background: #D1FAE5;
    color: var(--green);
}

.hom-pain-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.hom-pain-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink2);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   MODULES — with icon images
   ============================================================ */
.hom-modules-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.hom-mods-head {
    text-align: center;
    margin-bottom: 48px;
}

.hom-mod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.hom-mod-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--tr);
    cursor: default;
}

.hom-mod-item:hover {
    border-color: #BFDBFE;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .08);
    transform: translateY(-2px);
}

.hom-mod-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hom-mod-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink2);
    margin: 0;
    line-height: 1.4;
}

/* extra chips row */
.hom-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1100px;
    margin: 24px auto 0;
    justify-content: center;
}

.hom-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink2);
    transition: var(--tr);
}

.hom-chip:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.hom-chip i {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
}

/* ============================================================
   CLIENTS — infinite scrolling logos
   ============================================================ */
.hom-clients-wrap {
    padding: 72px 0 64px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hom-clients-head {
    text-align: center;
    padding: 0 24px;
    margin-bottom: 48px;
}

.hom-logos-wrap {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.hom-logos-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: hom-scroll-logos 40s linear infinite;
}

.hom-logos-track:hover {
    animation-play-state: paused;
}

.hom-logos-track img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: .55;
    filter: grayscale(1);
    transition: var(--tr);
    flex-shrink: 0;
}

.hom-logos-track img:hover {
    opacity: 1;
    filter: grayscale(0);
}

@keyframes hom-scroll-logos {
    0% {
        transform: translateX(0);
    }

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

.hom-clients-cta {
    text-align: center;
    margin-top: 40px;
    padding: 0 24px;
}

/* ============================================================
   COMPARE — card rows
   ============================================================ */
.hom-cmp-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.hom-cmp-head {
    text-align: center;
    margin-bottom: 48px;
}

.hom-cmp-box {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 32px rgba(0, 0, 0, .06);
}

.hom-cmp-header {
    display: grid;
    grid-template-columns: 1fr 180px 200px;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

.hom-cmp-col-feat {
    padding: 16px 28px;
}

.hom-cmp-col-other,
.hom-cmp-col-us {
    padding: 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hom-cmp-col-us {
    background: var(--ink);
}

.hom-cmp-col-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.hom-cmp-col-us .hom-cmp-col-label {
    color: rgba(255, 255, 255, .7);
}

.hom-cmp-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hom-cmp-row {
    display: grid;
    grid-template-columns: 1fr 180px 200px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: var(--tr);
}

.hom-cmp-row:last-child {
    border-bottom: none;
}

.hom-cmp-row:hover .hom-cmp-feat {
    background: var(--bg);
}

.hom-cmp-feat {
    padding: 18px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--tr);
}

.hom-cmp-feat i {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
}

.hom-cmp-other {
    padding: 18px 20px;
    text-align: center;
    border-left: 1px solid var(--border);
}

.hom-cmp-no {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
}

.hom-cmp-no i {
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
}

.hom-cmp-yes {
    padding: 18px 20px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .08);
    background: var(--ink);
    color: #4ade80;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hom-cmp-yes i {
    font-size: 13px;
    font-weight: 700;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.hom-cta-wrap {
    padding: 80px 24px;
    text-align: center;
}

.hom-cta-box {
    max-width: 600px;
    margin: 0 auto;
}

.hom-cta-box h2 {
    font-size: 35px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.hom-cta-box p {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.7;
}

.hom-cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hom-cta-note {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hom-mod-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hom-cmp-header,
    .hom-cmp-row {
        grid-template-columns: 1fr 140px 160px;
    }
}

@media (max-width: 900px) {
    .hom-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hom-stat:nth-child(2) {
        border-right: none;
    }

    .hom-stat:nth-child(3) {
        border-top: 1px solid var(--border);
    }

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

@media (max-width: 700px) {

    .hom-cmp-header,
    .hom-cmp-row {
        grid-template-columns: 1fr 110px 130px;
    }

    .hom-cmp-feat {
        padding: 14px 16px;
        font-size: 15px;
    }

    .hom-cmp-feat i {
        display: none;
    }

    .hom-cmp-other,
    .hom-cmp-yes {
        padding: 14px 10px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .hom-hero {
        padding: 64px 20px 56px;
    }

    .hom-pain-grid {
        grid-template-columns: 1fr;
    }

    .hom-hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hom-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .hom-pain-wrap,
    .hom-cmp-wrap,
    .hom-video-wrap,
    .hom-modules-wrap {
        padding: 56px 20px;
    }

    .hom-clients-wrap {
        padding: 56px 0 48px;
    }
}