﻿/* =========================================================
           4. HERO SECTION WITH SAAS DASHBOARD
           ========================================================= */
.hero {
    background: linear-gradient(180deg, var(--navy), #071731);
    color: #fff;
    padding: 4.5rem 0 5rem;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), radial-gradient(60rem 32rem at 80% 20%, rgba(22,163,74,.22), transparent 70%), linear-gradient(180deg, var(--navy), #071731);
    background-size: 2.75rem 2.75rem, 2.75rem 2.75rem, auto, auto;
    position: relative;
    overflow: hidden;
}

    .hero .w {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 3.4vw, 3.4rem);
        line-height: 1.12;
        font-weight: 800;
        color: #fff;
    }

        .hero h1 em {
            font-style: normal;
            color: var(--amber);
        }

        .hero h1 span.wa-accent {
            color: #4ade80;
        }

    .hero p.sub {
        color: #c5d3ea;
        font-size: 1.08rem;
        margin: 1.25rem 0 1.375rem;
        max-width: 54ch;
    }

.note {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: 1.625rem;
    max-width: 56ch;
    color: #e2e8f0;
}

.ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.18);
}

    .trust-grid b {
        display: block;
        font-size: 1.25rem;
        color: #fff;
    }

    .trust-grid span {
        font-size: .78rem;
        color: #a9bbd8;
    }

/* SaaS Dashboard Mockup */
.mockup-container {
    background: #091322;
    border: 1px solid #1f3352;
    border-radius: 1.125rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
    overflow: hidden;
}

.mockup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: #0d1b30;
    border-bottom: 1px solid #1a2f4c;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

    .mockup-dots span {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #334766;
    }

        .mockup-dots span:nth-child(1) {
            background: #ef4444;
        }

        .mockup-dots span:nth-child(2) {
            background: #f59e0b;
        }

        .mockup-dots span:nth-child(3) {
            background: #10b981;
        }

.mockup-url {
    font-size: 0.72rem;
    color: #8da2c0;
    background: #060e1a;
    padding: 0.2rem 1rem;
    border-radius: 6.1875rem;
    border: 1px solid #1e3557;
}

.mockup-body {
    display: grid;
    grid-template-columns: 8.5rem 11.5rem 1fr;
    height: 25.5rem;
    font-size: 0.78rem;
    background: #060e1a;
}

.m-sidebar {
    background: #091424;
    border-right: 1px solid #162a47;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tenant-chip {
    background: #142845;
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.m-nav-item {
    padding: 0.45rem 0.6rem;
    border-radius: 0.35rem;
    color: #9ab0cf;
    font-weight: 600;
}

    .m-nav-item.active {
        background: var(--wa-teal);
        color: #fff;
    }

.m-inbox {
    background: #0b182b;
    border-right: 1px solid #162a47;
    overflow-y: auto;
}

.m-inbox-header {
    padding: 0.6rem;
    border-bottom: 1px solid #162a47;
    color: #8da2c0;
    font-weight: 700;
}

.m-chat-row {
    padding: 0.6rem;
    border-bottom: 1px solid #12223a;
    cursor: pointer;
}

    .m-chat-row.active {
        background: #152945;
        border-left: 3px solid #4ade80;
    }

.m-chat-name {
    font-weight: 700;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.m-chat-snip {
    color: #8da2c0;
    font-size: 0.72rem;
    margin-top: 2px;
}

.m-thread {
    background: #07101e;
    display: flex;
    flex-direction: column;
}

.m-thread-head {
    padding: 0.6rem 0.85rem;
    background: #0d1a2d;
    border-bottom: 1px solid #162a47;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.m-thread-feed {
    flex: 1;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
}

.m-bubble {
    max-width: 82%;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    line-height: 1.4;
    font-size: 0.75rem;
}

.m-in {
    background: #172a44;
    color: #e2e8f0;
    align-self: flex-start;
}

.m-out {
    background: #005c4b;
    color: #fff;
    align-self: flex-end;
}

.m-meta {
    font-size: 0.65rem;
    color: #93c5fd;
    text-align: right;
    margin-top: 2px;
}

.m-input-bar {
    padding: 0.55rem 0.75rem;
    background: #0d1a2d;
    border-top: 1px solid #162a47;
    display: flex;
    gap: 0.5rem;
}

.m-input-mock {
    flex: 1;
    background: #060e1a;
    border: 1px solid #1e3557;
    border-radius: 0.4rem;
    padding: 0.35rem 0.6rem;
    color: #9ab0cf;
}

/* =========================================================
           5. INTEGRATION STRIP
           ========================================================= */
.strip {
    padding: 1.75rem 0;
    background: var(--soft);
}

    .strip .w {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.875rem 1.75rem;
        align-items: center;
        font-weight: 700;
        color: var(--mut);
    }

    .strip span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: .92rem;
    }

    .strip i {
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--wa);
        display: inline-block;
    }

/* =========================================================
           6. CORE FEATURES GRID
           ========================================================= */
.grid {
    display: grid;
    gap: 1.25rem;
}

.g4 {
    grid-template-columns: repeat(4, 1fr);
}

.g3 {
    grid-template-columns: repeat(3, 1fr);
}

.g2 {
    grid-template-columns: repeat(2, 1fr);
}

.svc {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.625rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

    .svc:hover {
        border-color: var(--wa);
        box-shadow: 0 0.875rem 1.875rem rgba(10,31,61,.08);
    }

.ic {
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 0.75rem;
    background: var(--navy);
    color: var(--amber);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

    .ic.wa-ic {
        background: #e8f7ee;
        color: var(--wa);
    }

    .ic svg {
        width: 1.5rem;
        height: 1.5rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.svc h3 {
    font-size: 1.15rem;
    margin-bottom: 0.375rem;
    color: var(--navy);
}

.svc p {
    color: var(--mut);
    font-size: .94rem;
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.more {
    font-weight: 700;
    color: var(--blue);
    font-size: .92rem;
    margin-top: auto;
}

/* =========================================================
           7. DASHBOARD SHOWCASE (DEEP DIVE)
           ========================================================= */
.dark {
    background: var(--navy);
    color: #fff;
}

    .dark .lead {
        color: #b9c9e3;
    }

    .dark h2 {
        color: #fff;
    }

.showcase-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.metric-card {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--r);
    padding: 1.75rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

    .metric-row:last-child {
        border-bottom: none;
    }

    .metric-row span {
        color: #c5d3ea;
        font-size: 0.92rem;
    }

    .metric-row b {
        color: #4ade80;
        font-size: 1rem;
    }

/* =========================================================
           8. DEVELOPER API SECTION WITH CODE TABS
           ========================================================= */
.code-shell {
    background: #071220;
    border: 1px solid #1e3352;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-bar {
    background: #0d1e35;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a3150;
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    color: #8fa5c2;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 0.35rem;
    cursor: pointer;
}

    .tab-btn.on {
        background: #193863;
        color: #fff;
    }

.code-view {
    padding: 1.25rem;
    overflow-x: auto;
    color: #e2e8f0;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.84rem;
    line-height: 1.6;
}

.tok-kw {
    color: #f43f5e;
}

.tok-str {
    color: #86efac;
}

.tok-key {
    color: #38bdf8;
}

/* =========================================================
           9. USE CASES, MULTI-TENANT & WHY CHOOSE US
           ========================================================= */
.use-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.use-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--wa-teal);
    background: #e6fffa;
    border-radius: 6.1875rem;
    padding: 0.2rem 0.6rem;
    align-self: flex-start;
}

.use-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
}

.use-card p {
    font-size: 0.92rem;
    color: var(--mut);
}

.use-sample {
    background: var(--soft);
    border-left: 3px solid var(--wa);
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    color: #2a3d58;
    border-radius: 0 0.4rem 0.4rem 0;
    margin-top: auto;
}

.why {
    padding: 1.375rem;
    border-left: 4px solid var(--wa);
    background: var(--soft);
    border-radius: 0 0.75rem 0.75rem 0;
}

    .why h3 {
        font-size: 1.05rem;
        margin-bottom: 4px;
        color: var(--navy);
    }

    .why p {
        color: var(--mut);
        font-size: .93rem;
    }

/* =========================================================
           10. PRICING CARDS
           ========================================================= */
.price-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.85rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .price-card.hl {
        border: 2px solid var(--wa);
        box-shadow: 0 10px 30px rgba(22,163,74,.12);
    }

.price-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wa);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.75rem;
    border-radius: 6.1875rem;
    text-transform: uppercase;
}

.price-tier {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.price-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0.8rem 0 0.2rem;
}

.price-sub {
    font-size: 0.82rem;
    color: var(--mut);
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    flex: 1;
}

    .price-features li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.92rem;
        color: var(--ink);
    }

        .price-features li::before {
            content: "✓";
            color: var(--wa);
            font-weight: 800;
        }

/* =========================================================
           11. FAQ ACCORDION
           ========================================================= */
details {
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--navy);
}

    summary::after {
        content: "+";
        font-size: 1.4rem;
        line-height: 1;
        color: var(--amber);
    }

details[open] summary::after {
    content: "–";
}

details p {
    color: var(--mut);
    margin-top: 0.625rem;
    max-width: 70ch;
    font-size: 0.95rem;
}

/* =========================================================
           12. FINAL CTA BANNER & TEMPLATE FOOTER
           ========================================================= */
.final {
    background: linear-gradient(135deg, var(--navy), #143b73);
    color: #fff;
    text-align: center;
}

    .final h2 {
        font-size: clamp(1.7rem, 3vw, 3rem);
        color: #fff;
    }

    .final .ctas {
        justify-content: center;
        margin-top: 1.5rem;
    }

footer {
    background: #071731;
    color: #b4c3dc;
    padding: 3.5rem 0 1.5rem;
    font-size: .92rem;
}

.fgrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.25rem;
}

footer h4 {
    color: #fff;
    margin-bottom: 0.875rem;
    font-size: 1rem;
}

footer li {
    list-style: none;
    margin-bottom: 0.5rem;
}

footer ul {
    padding: 0;
}

footer a:hover {
    color: var(--amber);
}

.soc {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.875rem;
}

    .soc a {
        width: 2.375rem;
        height: 2.375rem;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.19);
        display: grid;
        place-items: center;
        font-weight: 700;
        font-size: .8rem;
    }

.copy {
    border-top: 1px solid rgba(255,255,255,.11);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.625rem;
    font-size: .85rem;
}

/* =========================================================
           13. FLOATING BUTTONS & MODAL (MATCHING TEMPLATE)
           ========================================================= */
.wa-float {
    position: fixed;
    right: 1.375rem;
    bottom: 1.375rem;
    z-index: 60;
    width: 3.625rem;
    height: 3.625rem;
    border-radius: 50%;
    background: var(--wa);
    display: grid;
    place-items: center;
    box-shadow: 0 0.625rem 1.5rem rgba(0,0,0,.3);
}

    .wa-float svg {
        width: 1.875rem;
        height: 1.875rem;
        fill: #fff;
    }

.bar {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(7,23,49,.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .modal.on {
        display: flex;
    }

.card-form {
    background: #fff;
    color: var(--ink);
    border-radius: 1.125rem;
    padding: 1.625rem;
    box-shadow: 0 1.875rem 3.75rem rgba(0,0,0,.35);
    width: min(27.5rem, 100%);
    position: relative;
}

    .card-form h2 {
        font-size: 1.4rem;
        margin-bottom: 0.375rem;
        color: var(--navy);
    }

    .card-form .s {
        font-size: .88rem;
        color: var(--mut);
        margin-bottom: 0.875rem;
    }

.x {
    position: absolute;
    top: 0.625rem;
    right: 0.875rem;
    background: none;
    border: 0;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--mut);
    line-height: 1;
}

label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin: 0.625rem 0 0.3125rem;
}

input, select, textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    padding: 0.6875rem 0.8125rem;
    border: 1px solid var(--line);
    border-radius: 0.625rem;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
    min-height: 4rem;
}

.card-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.fine {
    font-size: .78rem;
    color: var(--mut);
    text-align: center;
    margin-top: 0.625rem;
}

    .fine a {
        color: var(--blue);
        font-weight: 700;
    }

/* =========================================================
           14. RESPONSIVE BREAKPOINTS
           ========================================================= */
@media (max-width: 1000px) {
    .hero .w, .showcase-split {
        grid-template-columns: 1fr;
    }

    .g4, .g3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fgrid {
        grid-template-columns: 1fr 1fr;
    }

    .burger {
        display: block;
    }

    nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(21.25rem, 88vw);
        background: #fff;
        transform: translateX(105%);
        transition: transform .25s;
        padding: 5rem 1.25rem 6.25rem;
        overflow: auto;
        box-shadow: -1.25rem 0 2.5rem rgba(0,0,0,.2);
        z-index: 70;
    }

        nav.on {
            transform: none;
        }

        nav > ul {
            flex-direction: column;
            align-items: stretch;
            gap: 0;
        }

            nav > ul > li > a, nav > ul > li > button {
                padding: 0.875rem 4px;
                width: 100%;
                justify-content: space-between;
                border-bottom: 1px solid var(--line);
            }

    .nclose {
        display: grid;
        place-items: center;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 50%;
        border: 1px solid var(--line);
        background: var(--soft);
        color: var(--navy);
        font-size: 1.8rem;
        cursor: pointer;
    }

    .nback.on {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(7,23,49,.55);
        z-index: 65;
    }

    .top .hide-m {
        display: none;
    }
}

@media (max-width: 640px) {
    section {
        padding: 3.25rem 0;
    }

    .g4, .g3, .g2 {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fgrid {
        grid-template-columns: 1fr;
    }

    .top span {
        display: none;
    }

    .top .w {
        justify-content: center;
    }

    .wa-float {
        display: none;
    }

    body {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }

    .bar {
        display: grid;
        grid-template-columns: 1fr 1fr 1.3fr;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        background: var(--navy);
        padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
        gap: 0.5rem;
        box-shadow: 0 -0.375rem 1.25rem rgba(0,0,0,.25);
    }

        .bar a, .bar button {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 2.875rem;
            border-radius: 0.75rem;
            font-weight: 700;
            font-size: .9rem;
            border: 0;
            color: #fff;
            background: #1d56b3;
            cursor: pointer;
        }

        .bar .w2 {
            background: var(--wa);
        }

        .bar .q {
            background: var(--amber);
            color: var(--navy);
        }

    .mockup-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .m-sidebar, .m-inbox {
        display: none;
    }
}
