/* ClientX public landing v1 */
.clientx-public-body {
    background:
        radial-gradient(circle at 18% 10%, rgba(28, 121, 255, .32), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(0, 170, 255, .16), transparent 30%),
        linear-gradient(180deg, #030812 0%, #06111f 45%, #020611 100%);
    color: #fff;
    overflow-x: hidden;
}
.clientx-public-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .42;
    background:
        linear-gradient(90deg, transparent 0 96%, rgba(68, 154, 255, .12) 96% 97%, transparent 97% 100%),
        linear-gradient(180deg, transparent 0 96%, rgba(68, 154, 255, .10) 96% 97%, transparent 97% 100%);
    background-size: 82px 82px;
    mask-image: radial-gradient(circle at 50% 25%, #000, transparent 72%);
}
.clientx-public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 8, 18, .78);
    border-bottom: 1px solid rgba(96, 165, 250, .18);
    backdrop-filter: blur(18px);
}
.clientx-public-brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.clientx-public-brand img { width: 148px; height: auto; max-height: 46px; object-fit: contain; }
.public-nav { display: flex; align-items: center; gap: 20px; }
.public-nav a {
    color: rgba(255,255,255,.76);
    font-weight: 800;
    font-size: .95rem;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.public-nav a:hover { color: #fff; }
.public-nav .nav-cta {
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #0b72ff, #0753bd);
    border: 1px solid rgba(122, 184, 255, .38);
    box-shadow: 0 14px 34px rgba(0, 91, 255, .28);
}
.btn.ghost {
    color: #d9ecff;
    border: 1px solid rgba(148, 195, 255, .25);
    background: rgba(255,255,255,.055);
}
.btn.ghost:hover {
    background: rgba(70, 151, 255, .13);
    border-color: rgba(148, 195, 255, .42);
}
.public-menu-toggle { display: none; }
.clientx-hero {
    position: relative;
    min-height: 86vh;
    padding: clamp(56px, 8vw, 120px) 6vw 64px;
    isolation: isolate;
}
.clientx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 28%, rgba(20, 120, 255, .28), transparent 28%),
        radial-gradient(circle at 74% 36%, rgba(45, 147, 255, .18), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.03), transparent 42%);
}
.clientx-hero-content {
    width: min(1480px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.14fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-copy h1 {
    margin: 0;
    font-size: clamp(3.4rem, 8.4vw, 8.5rem);
    line-height: .9;
    letter-spacing: -.075em;
    text-shadow: 0 0 34px rgba(75, 153, 255, .18);
}
.hero-lead {
    margin: 24px 0 0;
    max-width: 640px;
    font-size: clamp(1.1rem, 1.75vw, 1.42rem);
    color: rgba(236, 245, 255, .78);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-primary {
    background: linear-gradient(180deg, #1680ff, #064bb0) !important;
    border-color: rgba(122, 184, 255, .45) !important;
    box-shadow: 0 18px 44px rgba(0, 91, 255, .32) !important;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.hero-trust span {
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(96,165,250,.26);
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.72);
    font-size: .9rem;
    font-weight: 800;
}
.hero-image-card,
.showcase-image,
.clientx-flow-strip,
.clientx-split-cards article,
.cta-panel,
.access-panel,
.access-card,
.portal-jump,
.feature-card {
    border: 1px solid rgba(96, 165, 250, .22);
    background: linear-gradient(180deg, rgba(12, 25, 45, .72), rgba(5, 12, 24, .64));
    box-shadow: 0 24px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(12px);
}
.hero-image-card {
    border-radius: 30px;
    padding: 12px;
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}
.hero-image-card img,
.showcase-image img,
.clientx-flow-strip img,
.clientx-split-cards img {
    width: 100%;
    border-radius: 22px;
}
.clientx-section {
    width: min(1240px, calc(100% - 12vw));
    margin: 0 auto;
    padding: clamp(64px, 9vw, 120px) 0;
}
.clientx-section.compact { padding-top: 30px; }
.section-kicker,
.eyebrow {
    color: #47a3ff;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 950;
    font-size: .76rem;
}
.clientx-section h2,
.clientx-showcase h2,
.clientx-flow-strip h2,
.cta-panel h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4.6vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.065em;
}
.section-lead,
.showcase-copy p,
.clientx-flow-strip p,
.cta-panel p {
    color: rgba(235, 245, 255, .75);
    font-size: 1.08rem;
}
.section-lead { max-width: 850px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.feature-card {
    border-radius: 26px;
    padding: 22px;
}
.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #9ecbff;
    background: rgba(21, 115, 255, .18);
    border: 1px solid rgba(96,165,250,.26);
    font-weight: 950;
}
.feature-card h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: rgba(235,245,255,.68); }
.clientx-showcase {
    width: min(1380px, calc(100% - 8vw));
    margin: 0 auto;
    padding: clamp(50px, 7vw, 96px) 0;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
}
.clientx-showcase.reverse { grid-template-columns: .78fr 1.22fr; }
.clientx-showcase.reverse .showcase-copy { order: 2; }
.showcase-copy { max-width: 560px; }
.showcase-image { border-radius: 30px; padding: 12px; }
.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 10px;
}
.check-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255,255,255,.78);
    font-weight: 800;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #54d6ff;
}
.clientx-flow-strip {
    width: min(1360px, calc(100% - 8vw));
    margin: 48px auto;
    border-radius: 32px;
    padding: clamp(16px, 2vw, 26px);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
}
.clientx-flow-strip div { padding: 12px clamp(0px, 2vw, 24px); }
.clientx-split-cards {
    width: min(1380px, calc(100% - 8vw));
    margin: 0 auto;
    padding: clamp(52px, 7vw, 92px) 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.clientx-split-cards article {
    border-radius: 30px;
    padding: 12px;
    overflow: hidden;
}
.clientx-split-cards article div { padding: 18px 12px 10px; }
.clientx-split-cards h3 { margin: 8px 0; font-size: clamp(1.45rem, 2.4vw, 2.3rem); letter-spacing: -.04em; }
.clientx-split-cards p { color: rgba(235,245,255,.72); }

.access-section { padding-top: clamp(34px, 5vw, 76px); }
.access-panel {
    border-radius: 34px;
    padding: clamp(22px, 4vw, 48px);
    display: grid;
    gap: 24px;
}
.access-copy { max-width: 920px; }
.access-copy h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4.6vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.065em;
}
.access-copy p { color: rgba(235,245,255,.74); font-size: 1.08rem; }
.access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.access-card {
    display: grid;
    gap: 8px;
    border-radius: 24px;
    padding: 20px;
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.access-card:hover {
    transform: translateY(-2px);
    border-color: rgba(112, 180, 255, .48);
    box-shadow: 0 26px 76px rgba(0, 91, 255, .18), inset 0 1px 0 rgba(255,255,255,.07);
}
.access-card strong { font-size: 1.22rem; letter-spacing: -.02em; }
.access-card small { color: rgba(235,245,255,.66); line-height: 1.45; }
.access-label {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #9ecbff;
    background: rgba(21, 115, 255, .18);
    border: 1px solid rgba(96,165,250,.26);
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.admin-access {
    background:
        radial-gradient(circle at 18% 0%, rgba(25, 132, 255, .22), transparent 42%),
        linear-gradient(180deg, rgba(12, 25, 45, .78), rgba(5, 12, 24, .70));
}
.portal-jump {
    border-radius: 24px;
    padding: 18px;
}
.portal-jump label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.86);
    font-weight: 900;
}
.portal-jump div {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.portal-jump span {
    color: rgba(235,245,255,.62);
    font-weight: 850;
}
.portal-jump input {
    width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(96,165,250,.24);
    background: rgba(0,0,0,.22);
    color: #fff;
    padding: 12px 14px;
    outline: none;
}
.portal-jump input:focus {
    border-color: rgba(83, 165, 255, .62);
    box-shadow: 0 0 0 4px rgba(20, 115, 255, .16);
}
.portal-jump p { margin: 10px 0 0; color: rgba(235,245,255,.58); font-size: .92rem; }

.cta-panel {
    border-radius: 34px;
    padding: clamp(24px, 5vw, 62px);
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(22px, 5vw, 70px);
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(63, 148, 255, .18), transparent 36%),
        linear-gradient(180deg, rgba(12, 25, 45, .78), rgba(5, 12, 24, .72));
}
.cta-panel img { width: 230px; filter: drop-shadow(0 0 32px rgba(70, 157, 255, .16)); }
.clientx-public-footer {
    width: min(1380px, calc(100% - 12vw));
    margin: 0 auto;
    padding: 38px 0 54px;
    border-top: 1px solid rgba(96, 165, 250, .18);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255,255,255,.68);
}
.clientx-public-footer strong { color: #fff; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }
.clientx-public-footer p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #8fc4ff; font-weight: 850; }
@media (max-width: 1100px) {
    .clientx-hero-content,
    .clientx-showcase,
    .clientx-showcase.reverse,
    .clientx-flow-strip,
    .cta-panel { grid-template-columns: 1fr; }
    .clientx-showcase.reverse .showcase-copy { order: 0; }
    .hero-image-card { transform: none; }
    .feature-grid, .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .clientx-public-header { padding: 14px 18px; }
    .public-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(96,165,250,.22);
        border-radius: 14px;
        background: rgba(255,255,255,.06);
        color: #fff;
    }
    .public-nav {
        display: none;
        position: absolute;
        left: 18px;
        right: 18px;
        top: 70px;
        padding: 14px;
        border-radius: 18px;
        border: 1px solid rgba(96,165,250,.22);
        background: rgba(3, 8, 18, .96);
        flex-direction: column;
        align-items: stretch;
    }
    .public-nav.is-open { display: flex; }
    .public-nav a { padding: 10px 8px; }
    .clientx-public-brand span { display: none; }
    .clientx-hero { padding: 48px 20px 34px; }
    .hero-copy h1 { font-size: clamp(3rem, 17vw, 5.6rem); }
    .hero-actions .btn { width: 100%; }
    .portal-jump div { grid-template-columns: 1fr; }
    .portal-jump .btn { width: 100%; }
    .feature-grid, .clientx-split-cards, .access-grid { grid-template-columns: 1fr; }
    .clientx-section, .clientx-showcase, .clientx-flow-strip, .clientx-split-cards, .clientx-public-footer {
        width: calc(100% - 36px);
    }
    .clientx-flow-strip { margin-top: 18px; }
    .cta-panel { grid-template-columns: 1fr; text-align: left; }
    .cta-panel img { width: 160px; }
    .clientx-public-footer { flex-direction: column; }
}

/* Mobile menu hotfix v3: compact dropdown on phone */
@media (max-width: 760px) {
    .clientx-public-header {
        position: sticky;
        top: 0;
        z-index: 9990;
        min-height: 72px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
    }

    .clientx-public-brand img {
        width: 124px !important;
        height: auto !important;
        max-height: 40px;
        object-fit: contain;
    }

    .public-menu-toggle {
        flex: 0 0 auto;
        font-size: 1.2rem;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .public-menu-open .public-menu-toggle {
        background: rgba(21, 115, 255, .22);
        border-color: rgba(120, 184, 255, .46);
        box-shadow: 0 10px 28px rgba(0, 91, 255, .24);
    }

    .public-nav {
        display: none !important;
        position: fixed !important;
        left: 14px !important;
        right: 14px !important;
        top: 86px !important;
        z-index: 9999 !important;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 10px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(96,165,250,.32) !important;
        background: rgba(3, 8, 18, .98) !important;
        box-shadow: 0 26px 90px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.06) !important;
        backdrop-filter: blur(18px);
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;
    }

    .public-nav.is-open {
        display: flex !important;
    }

    .public-nav a,
    .public-nav a:visited {
        display: flex !important;
        align-items: center !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        border: 1px solid transparent !important;
        font-size: .98rem !important;
        line-height: 1.15 !important;
        font-weight: 850 !important;
        letter-spacing: 0 !important;
        color: rgba(245, 250, 255, .86) !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .public-nav a:hover,
    .public-nav a:focus {
        color: #fff !important;
        background: rgba(255,255,255,.07) !important;
        border-color: rgba(96,165,250,.24) !important;
        outline: none;
    }

    .public-nav .nav-cta {
        margin-top: 6px !important;
        justify-content: center !important;
        color: #fff !important;
        background: linear-gradient(180deg, #1680ff, #064bb0) !important;
        border-color: rgba(122, 184, 255, .45) !important;
        box-shadow: 0 14px 34px rgba(0, 91, 255, .28) !important;
    }

    .clientx-hero {
        padding-top: 28px !important;
        min-height: auto !important;
    }

    .hero-copy h1 {
        opacity: .98;
        text-shadow: 0 0 28px rgba(75, 153, 255, .16);
    }
}
