/* ================================================================
   RSolutions eCRM — main.css 
   ================================================================ */

/* ── FONTS ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'dm-sans';
    src: url('../fonts/dm-sans.ttf') format('truetype');
}

@font-face {
    font-family: 'sora';
    src: url('../fonts/sora.ttf') format('truetype');
}

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
    --brand: #E39802;
    --brand-deep: #E67817;
    --brand-light: #FEF3DC;
    --brand-glow: rgba(245,166,35,.15);
    --bg: #FFFFFF;
    --bg-soft: #FAFAF8;
    --bg-muted: #F4F2EE;
    --border: rgba(0,0,0,.08);
    --border-mid: rgba(0,0,0,.12);
    --text: #18181B;
    --text-2: #52525B;
    --text-3: #71717A;
    --text-4: #A1A1AA;
    --black: #1A1A1A;
    --green: #16A34A;
    --green-bg: #DCFCE7;
    --blue: #2563EB;
    --blue-bg: #DBEAFE;
    --red: #DC2626;
    --red-bg: rgba(220,38,38,.08);
    --amber-bg: #FEF3C7;
    --font-body: 'dm-sans',sans-serif;
    --font-head: 'sora',sans-serif;
    --ease: cubic-bezier(.16,1,.3,1);
    --max: 1200px;
    --sp: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
}

ul {
    list-style: none;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 99px;
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
}

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

.reveal-delay-1 {
}

.reveal-delay-2 {
}

.reveal-delay-3 {
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .8rem 1.85rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .93rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all .22s var(--ease);
    text-decoration: none;
}

    .btn svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: .55rem 1.1rem;
    font-size: .84rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--brand-glow);
}

    .btn-primary:hover {
        background: var(--brand-deep);
        color: var(--bg);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--brand-glow);
    }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-mid);
}

    .btn-outline:hover {
        border-color: var(--brand);
        color: var(--brand-deep);
        background: var(--brand-light);
        transform: translateY(-2px);
    }

.btn-ghost {
    background: var(--bg-soft);
    color: var(--text-2);
    border: 1px solid var(--border);
}

    .btn-ghost:hover {
        background: var(--bg-muted);
        color: var(--text);
        transform: translateY(-2px);
    }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.headline {
    font-family: var(--font-head);
    font-size: clamp(2.7rem,5.5vw,5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
}

.headline-lg {
    font-family: var(--font-head);
    font-size: clamp(2rem,4vw,3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.label-tag {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-deep);
    margin-bottom: 0.5rem;
}

.accent {
    color: var(--brand-deep);
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: auto;
    padding: 0 clamp(1.5rem,5vw,3.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .35s var(--ease), box-shadow .35s;
}

    .nav.scrolled {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(16px);
        box-shadow: 0 1px 0 var(--border),0 4px 14px rgba(0,0,0,.05);
    }

.nav-logo img {
    height: 105px;
    width: auto;
    display: block;
    padding: 5px;
    border-radius: 5px;
}

.nav-title {
    display: inline;
    align-items: center;
    gap: 2.2rem;
    width: 60%;
}

    .nav-title h1 {
        font-size: 2rem;
        font-weight: 800;
        color: var(--brand-deep);
        position: relative;
        transition: color .2s;
        font-family: var(--font-head);
    }

    .nav-title h2 {
        font-size: .9rem;
        font-weight: 500;
        color: var(--text-2);
        position: relative;
        transition: color .2s;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

    .nav-links a {
        font-size: .9rem;
        font-weight: 500;
        color: var(--text-2);
        position: relative;
        transition: color .2s;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            right: 0;
            height: 1.5px;
            background: var(--brand);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .25s var(--ease);
        }

        .nav-links a:hover {
            color: var(--text);
        }

            .nav-links a:hover::after {
                transform: scaleX(1);
            }

.nav-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    padding: .4rem;
    line-height: 1;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    padding-left: clamp(1.5rem,5vw,4rem);
    padding-right: clamp(1.5rem,5vw,4rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 70% 20%, rgba(245,166,35,.09) 0%, transparent 65%), radial-gradient(ellipse 50% 50% at 15% 80%, rgba(245,166,35,.05) 0%, transparent 65%), linear-gradient(170deg,#FFFDF9 0%,#FAF8F3 60%,#FFFFFF 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle,rgba(245,166,35,.2) 1px,transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%,black 0%,transparent 100%);
    opacity: .55;
}

.hero-orb {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(245,166,35,.1) 0%,transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}

/* Hero left */
.hero-content {
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .95rem;
    border-radius: 99px;
    background: var(--brand-light);
    border: 1px solid rgba(245,166,35,.3);
    margin-bottom: 1.75rem;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.hero-badge-text {
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand-deep);
    letter-spacing: .4px;
}

.hero-headline-wrap {
    margin-bottom: 1.3rem;
}

    .hero-headline-wrap .line {
        display: block;
    }

        .hero-headline-wrap .line:nth-child(1) {
        }

        .hero-headline-wrap .line:nth-child(2) {
        }

        .hero-headline-wrap .line:nth-child(3) {
        }

.headline-mark {
    position: relative;
    display: inline-block;
    color: var(--brand-deep);
}

    .headline-mark::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        height: 3px;
        border-radius: 2px;
        background: linear-gradient(90deg,var(--brand),transparent);
    }

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-2);
    max-width: 480px;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 2.75rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.trust-avatars {
    display: flex;
}

    .trust-avatars span {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 2px solid var(--bg);
        margin-left: -7px;
        background: linear-gradient(135deg,var(--brand),var(--brand-deep));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .6rem;
        font-weight: 700;
        color: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,.1);
    }

        .trust-avatars span:first-child {
            margin-left: 0;
        }

.trust-avatar-plus {
    background: var(--bg-muted) !important;
    color: var(--text-3) !important;
}

.trust-text {
    font-size: .82rem;
    color: var(--text-3);
    line-height: 1.35;
}

    .trust-text strong {
        display: block;
        color: var(--text);
        font-weight: 600;
    }

/* Hero right — mock dashboard */
.hero-visual {
    position: relative;
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.1),0 4px 12px rgba(0,0,0,.05);
    position: relative;
    overflow: hidden;
}

    .dashboard-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,transparent,rgba(245,166,35,.5),transparent);
    }

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.dash-title {
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
}

.dash-live {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 99px;
    background: var(--green-bg);
    font-size: .67rem;
    font-weight: 700;
    color: var(--green);
}

    .dash-live::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green);
    }

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .6rem;
    margin-bottom: 1.2rem;
}

.kpi-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem;
}

.kpi-val {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: .18rem;
}

.kpi-lbl {
    font-size: .6rem;
    color: var(--text-3);
    font-weight: 500;
}

.kpi-chg {
    font-size: .6rem;
    color: var(--green);
    font-weight: 600;
    margin-top: .12rem;
}

.dash-chart {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .9rem 1rem;
    margin-bottom: .7rem;
}

.chart-lbl {
    font-size: .65rem;
    color: var(--text-3);
    margin-bottom: .55rem;
    font-weight: 500;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: .3rem;
    height: 56px;
}

.bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: rgba(245,166,35,.22);
    transition: height .6s cubic-bezier(.16,1,.3,1);
}

.bar-h40 {
    height: 40%;
}

.bar-h55 {
    height: 55%;
}

.bar-h45 {
    height: 45%;
}

.bar-h70 {
    height: 70%;
}

.bar-h60 {
    height: 60%;
}

.bar-h80 {
    height: 80%;
}

.bar-h75 {
    height: 75%;
}

.bar-h95 {
    height: 95%;
}

.bar-active {
    background: var(--brand);
}

.dash-rows {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.dash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .8rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.dash-row-left {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.row-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--brand),var(--brand-deep));
    flex-shrink: 0;
}

.row-av-blue {
    background: linear-gradient(135deg,#60a5fa,#2563eb);
}

.row-av-violet {
    background: linear-gradient(135deg,#a78bfa,#7c3aed);
}

.row-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text);
}

.row-sub {
    font-size: .62rem;
    color: var(--text-3);
}

/* Pills */
.pill {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 99px;
    font-size: .62rem;
    font-weight: 700;
}

.pill-green {
    background: var(--green-bg);
    color: var(--green);
}

.pill-amber {
    background: var(--amber-bg);
    color: var(--brand-deep);
}

.pill-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.pill-red {
    background: var(--red-bg);
    color: var(--red);
}

/* Floating cards on hero visual */
.float-notif {
    position: absolute;
    bottom: -1rem;
    left: -2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: .8rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    min-width: 210px;
}

.notif-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .08rem;
}

.notif-sub {
    font-size: .67rem;
    color: var(--text-3);
}

.float-metric {
    position: absolute;
    top: -1rem;
    right: -2rem;
    background: #fff;
    border: 1px solid rgba(245,166,35,.3);
    border-radius: 16px;
    padding: .8rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    text-align: center;
}

.metric-big {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--brand-deep);
    line-height: 1;
}

.metric-lbl {
    font-size: .62rem;
    color: var(--text-3);
    margin-top: .2rem;
    line-height: 1.35;
}

/* ── LOGOS STRIP ────────────────────────────────────────────── */
.logos-strip {
    padding: 2.75rem clamp(1.5rem,5vw,4rem);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    text-align: center;
}

.logos-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.75rem;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.logo-word {
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 800;
    color: var(--text-4);
    letter-spacing: -.2px;
    transition: color .2s;
}

    .logo-word:hover {
        color: var(--text-2);
    }

/* ── SECTION HELPERS ────────────────────────────────────────── */
.section {
    padding: var(--sp);
    max-width: var(--max);
    margin: 0 auto;
}

.section-bg {
    background: var(--bg-soft);
}

.section-hd {
    text-align: center;
    margin-bottom: 3.75rem;
}

    .section-hd p {
        max-width: 520px;
        margin: .65rem auto 0;
        font-size: 1.05rem;
        color: var(--text-2);
        line-height: 1.7;
    }

.section-hd-left {
    margin-bottom: 2rem;
}

/* ── FEATURES GRID ──────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.35rem;
}

.feat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.85rem;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform .3s var(--ease),box-shadow .3s,border-color .3s;
}

    .feat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg,var(--brand),var(--brand-deep));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--ease);
    }

    .feat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 48px rgba(0,0,0,.08);
        border-color: rgba(245,166,35,.2);
    }

        .feat-card:hover::before {
            transform: scaleX(1);
        }

        .feat-card:hover .feat-icon {
            transform: scale(1.07) rotate(-4deg);
        }

    .feat-card.feat-large {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

.feat-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--brand-light);
    border: 1px solid rgba(245,166,35,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    transition: transform .3s;
}

.feat-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .55rem;
    letter-spacing: -.2px;
}

.feat-card p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.65;
}

.feat-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

    .feat-list li {
        display: flex;
        align-items: center;
        gap: .55rem;
        font-size: .88rem;
        color: var(--text-2);
    }

        .feat-list li::before {
            content: '';
            width: 18px;
            height: 18px;
            border-radius: 50%;
            flex-shrink: 0;
            background: var(--green-bg) url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2316A34A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
        }

/* Kanban preview inside large feat card */
.feat-kanban {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    height: 170px;
    display: flex;
    align-items: stretch;
    gap: .5rem;
    overflow: hidden;
}

.kanban-col {
    flex: 1;
    border-radius: 8px;
    border: 1px solid rgba(245,166,35,.2);
    background: rgba(245,166,35,.04);
    padding: .5rem;
}

.kanban-col-won {
    border-color: rgba(22,163,74,.2);
    background: rgba(22,163,74,.03);
}

.kanban-col-title {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--brand-deep);
    margin-bottom: .4rem;
}

.kanban-col-won .kanban-col-title {
    color: var(--green);
}

.kanban-deal {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: .3rem .45rem;
    font-size: .6rem;
    color: var(--text);
    margin-bottom: .25rem;
    font-weight: 500;
}

/* ── METRICS BAND ───────────────────────────────────────────── */
.metrics-band {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: clamp(3rem,5vw,4.5rem) clamp(1.5rem,5vw,4rem);
}

.metrics-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 2rem;
    text-align: center;
}

.metric-stat {
    font-family: var(--font-head);
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 800;
    color: var(--brand-deep);
    line-height: 1;
    margin-bottom: .3rem;
}

.metric-desc {
    font-size: .9rem;
    color: var(--text-2);
    font-weight: 500;
}

/* ── MODULE TABS ────────────────────────────────────────────── */
.modules-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: var(--sp);
}

.modules-intro {
    margin-bottom: 0;
}

.tabs-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .35rem;
    margin: 2.25rem 0;
    width: fit-content;
    overflow-x: auto;
}

.tab-btn {
    padding: .55rem 1.1rem;
    border-radius: 7px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-2);
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s var(--ease);
}

    .tab-btn:hover:not(.tab-active) {
        background: var(--bg-muted);
        color: var(--text);
    }

.tab-active {
    background: var(--brand);
    color: #1A1000;
    box-shadow: 0 3px 10px var(--brand-glow);
}

.tab-panel {
    display: none;
}

    .tab-panel.tab-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

.panel-info h3 {
    font-family: var(--font-head);
    font-size: clamp(1.4rem,2.5vw,1.9rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: .7rem;
    letter-spacing: -.4px;
    line-height: 1.3;
}

.panel-info p {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 1.35rem;
}

.module-screen {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    min-height: 270px;
}

/* Screen internals */
.ms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ms-title {
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
}

.ms-sub {
    font-size: .7rem;
    color: var(--text-3);
    margin-top: .08rem;
}

.ms-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .55rem;
    margin-bottom: 1rem;
}

.ms-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .7rem;
    text-align: center;
}

.ms-kpi-val {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

    .ms-kpi-val.v-brand {
        color: var(--brand-deep);
    }

    .ms-kpi-val.v-green {
        color: var(--green);
    }

    .ms-kpi-val.v-blue {
        color: var(--blue);
    }

.ms-kpi-lbl {
    font-size: .6rem;
    color: var(--text-3);
}

.ms-activity {
    display: flex;
    flex-direction: column;
    gap: .38rem;
}

.ms-act-row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .45rem .7rem;
    font-size: .7rem;
    color: var(--text-2);
    display: flex;
    gap: .5rem;
    align-items: center;
}

.ms-act-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    margin-bottom: .4rem;
}

.ms-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

.ms-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    margin-bottom: .2rem;
}

.ms-progress-lbl {
    color: var(--text);
    font-weight: 500;
}

.ms-progress-val {
    color: var(--text-3);
}

.progress-track {
    background: var(--bg-muted);
    border-radius: 99px;
    height: 5px;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--brand);
}

.pf-blue {
    background: var(--blue);
}

.pf-green {
    background: var(--green);
}

.pf-w75 {
    width: 75%;
}

.pf-w72 {
    width: 72%;
}

.pf-w90 {
    width: 90%;
}

.pf-w68 {
    width: 68%;
}

.ms-milestone-list {
    display: flex;
    flex-direction: column;
    gap: .38rem;
}

.ms-milestone {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .48rem .72rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ms-milestone-lbl {
    font-size: .72rem;
    color: var(--text);
    font-weight: 500;
}

.ms-milestone-status {
    font-size: .65rem;
    font-weight: 600;
}

.ms-ms-done {
    color: var(--green);
}

.ms-ms-active {
    color: var(--brand-deep);
}

.ms-ms-pending {
    color: var(--text-3);
}

.ms-ticket-badges {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}

.tkt-badge {
    border-radius: 6px;
    padding: .32rem .6rem;
    font-size: .65rem;
    font-weight: 700;
}

.tkt-red {
    background: var(--red-bg);
    color: var(--red);
}

.tkt-amber {
    background: var(--amber-bg);
    color: var(--brand-deep);
}

.tkt-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.ms-ticket-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ms-ticket {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .6rem .8rem;
}

    .ms-ticket.t-crit {
        background: rgba(220,38,38,.04);
        border-color: rgba(220,38,38,.14);
    }

    .ms-ticket.t-high {
        background: rgba(245,166,35,.05);
        border-color: rgba(245,166,35,.14);
    }

.ms-ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .16rem;
}

.ms-ticket-id {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text);
}

.ms-ticket-sla {
    font-size: .62rem;
    font-weight: 600;
    color: var(--red);
}

.ms-ticket-sla-ok {
    color: var(--green);
}

.ms-ticket-sla-mid {
    color: var(--brand-deep);
}

.ms-ticket-meta {
    font-size: .63rem;
    color: var(--text-3);
}

.ms-approval-card {
    background: rgba(245,166,35,.06);
    border: 1px solid rgba(245,166,35,.15);
    border-radius: 8px;
    padding: .6rem .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
}

.ms-approval-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text);
}

.ms-approval-meta {
    font-size: .63rem;
    color: var(--text-3);
}

.ms-approval-btns {
    display: flex;
    gap: .35rem;
}

.ms-btn-approve {
    background: var(--green-bg);
    color: var(--green);
    border: none;
    border-radius: 5px;
    padding: .25rem .55rem;
    font-size: .62rem;
    font-weight: 700;
    cursor: pointer;
}

.ms-btn-reject {
    background: var(--red-bg);
    color: var(--red);
    border: none;
    border-radius: 5px;
    padding: .25rem .55rem;
    font-size: .62rem;
    font-weight: 700;
    cursor: pointer;
}

.ms-stat-2up {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .5rem;
    margin-bottom: .75rem;
}

.ms-stat-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem;
}

.ms-stat-lbl {
    font-size: .62rem;
    color: var(--text-3);
    margin-bottom: .2rem;
}

.ms-stat-val {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

    .ms-stat-val.v-brand {
        color: var(--brand-deep);
    }

    .ms-stat-val.v-green {
        color: var(--green);
    }

.ms-mini-chart {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem;
}

.ms-chart-lbl {
    font-size: .65rem;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}

.ms-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: .22rem;
    height: 48px;
}

.ms-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
}

.msb-1 {
    height: 40%;
    background: rgba(245,166,35,.18);
}

.msb-2 {
    height: 55%;
    background: rgba(245,166,35,.22);
}

.msb-3 {
    height: 45%;
    background: rgba(245,166,35,.22);
}

.msb-4 {
    height: 70%;
    background: rgba(245,166,35,.28);
}

.msb-5 {
    height: 65%;
    background: rgba(245,166,35,.33);
}

.msb-6 {
    height: 80%;
    background: rgba(245,166,35,.38);
}

.msb-7 {
    height: 75%;
    background: rgba(245,166,35,.43);
}

.msb-8 {
    height: 95%;
    background: var(--brand);
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.steps-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
}

    .steps-grid::before {
        content: '';
        position: absolute;
        top: 31px;
        left: calc(12.5% + 31px);
        right: calc(12.5% + 31px);
        height: 1px;
        background: linear-gradient(90deg,var(--brand),rgba(245,166,35,.2),var(--brand));
    }

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.15rem;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-deep);
    box-shadow: 0 0 0 8px rgba(245,166,35,.07);
    transition: transform .3s var(--ease),box-shadow .3s;
}

.step:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(245,166,35,.1),0 6px 20px var(--brand-glow);
}

.step h3 {
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .45rem;
}

.step p {
    font-size: .85rem;
    color: var(--text-2);
    line-height: 1.6;
}

.chart-title {
    font-size: 14px !important;
}

/* ── PRICING ────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.35rem;
    margin-top: 3rem;
}

.price-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.1rem;
    position: relative;
    transition: transform .3s var(--ease),box-shadow .3s;
}

    .price-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 48px rgba(0,0,0,.08);
    }

    .price-card.price-featured {
        background: linear-gradient(160deg,#FFFDF5 0%,#FFF8E8 100%);
        border-color: rgba(245,166,35,.4);
        box-shadow: 0 0 0 1px rgba(245,166,35,.12),0 12px 40px rgba(245,166,35,.12);
    }

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #1A1000;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .8px;
    padding: .28rem .85rem;
    border-radius: 99px;
    white-space: nowrap;
}

.price-plan {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: .7rem;
}

.price-amount {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: .25rem;
}

.price-unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-3);
}

.price-desc {
    font-size: .85rem;
    color: var(--text-2);
    margin-bottom: 1.65rem;
    line-height: 1.5;
}

.price-feats {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-bottom: 1.85rem;
}

    .price-feats li {
        display: flex;
        align-items: center;
        gap: .55rem;
        font-size: .88rem;
        color: var(--text-2);
    }

        .price-feats li.on::before {
            content: '';
            width: 17px;
            height: 17px;
            border-radius: 50%;
            flex-shrink: 0;
            background: var(--green-bg) url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2316A34A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
        }

        .price-feats li.off {
            opacity: .42;
        }

            .price-feats li.off::before {
                content: '–';
                width: 17px;
                height: 17px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: .8rem;
                color: var(--text-4);
                flex-shrink: 0;
            }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-outer {
    background: var(--bg-soft);
}

.cta-box {
    background: linear-gradient(135deg,rgba(245,166,35,.1) 0%,rgba(245,166,35,.04) 100%);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 30px;
    padding: clamp(2.5rem,5vw,4rem) clamp(2rem,5vw,4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 70% at 50% -10%,rgba(245,166,35,.14),transparent 70%);
        pointer-events: none;
    }

    .cta-box h2 {
        font-family: var(--font-head);
        font-size: clamp(1.8rem,3.5vw,2.85rem);
        font-weight: 800;
        color: var(--text);
        letter-spacing: -1px;
        margin-bottom: .7rem;
        line-height: 1.2;
    }

    .cta-box p {
        font-size: 1.05rem;
        color: var(--text-2);
        max-width: 490px;
        margin: 0 auto 2rem;
        line-height: 1.7;
    }

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .9rem;
    position: relative;
    z-index: 1;
}

.cta-label {
    display: block;
    margin-bottom: .85rem;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
    background: var(--brand-deep);
    color: var(--bg);
    padding: 0.8rem clamp(1.5rem,5vw,4rem) 0.8rem;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 38px;
    margin-bottom: .85rem;
}

.footer-brand-desc {
    font-size: .88rem;
    line-height: 1.75;
    color: rgba(255,255,255,.45);
    max-width: 260px;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

    .footer-col ul li a {
        font-size: .87rem;
        color: rgba(255,255,255,.45);
        transition: color .2s;
    }

        .footer-col ul li a:hover {
            color: var(--brand);
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: .82rem;
    color: var(--bg);
}

.footer-pride a {
    color: var(--bg);
    transition: all 0.5s;
}

    .footer-pride a:hover {
        text-decoration: underline;
    }

.footer-pride {
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}

    .footer-pride strong {
        color: var(--brand);
    }

/* AutoComplete extender */
/* ── AutoComplete Extender ── */
.ac-list {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    overflow: hidden;
    z-index: 9999;
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: .875rem;
}

.ac-item {
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text-primary, #1F2937);
    border-bottom: 1px solid var(--border-color, #F1F5F9);
    transition: background .12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .ac-item:last-child {
        border-bottom: none;
    }

    .ac-item:hover {
        background: var(--bg-hover, #F8FAFC);
        color: var(--text-primary, #1F2937);
    }

.ac-item-hl {
    background: var(--accent, #FFA500);
    color: #ffffff;
    padding: 8px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.15);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Dark theme overrides ── */
[data-theme="dark"] .ac-list {
    background: var(--bg-card, #1E2530);
    border-color: var(--border-color, #2D3748);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

[data-theme="dark"] .ac-item {
    color: var(--text-primary, #E2E8F0);
    border-bottom-color: var(--border-color, #2D3748);
}

    [data-theme="dark"] .ac-item:hover {
        background: var(--bg-hover, #2D3748);
        color: #ffffff;
    }

[data-theme="dark"] .ac-item-hl {
    background: var(--accent, #FFA500);
    color: #ffffff;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width:1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-desc, .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions, .hero-trust {
        justify-content: center;
    }

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

    .feat-card.feat-large {
        grid-column: span 1;
        display: block;
    }

    .feat-kanban {
        display: none;
    }

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

        .steps-grid::before {
            display: none;
        }

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

    .tab-panel.tab-open {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:768px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
    }
}

.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 898;
}

.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1rem 2rem 2rem;
    gap: .65rem;
    z-index: 898;
}

/* portrait tablets and small desktops*/
@media (max-width: 767px) {
    .nav-logo img {
        height: 85px;
    }

    .nav-title h1 {
        font-size: 1.2rem;
    }

    .nav-title h2 {
        font-size: .8rem;
    }

    .nav-open .nav-actions {
        bottom: -54px;
    }
}
