/* ============================================================
   CATEGORY PAGE (shared by all solution pages)
   Brand: navy #2b3153, orange #f8673b, white
============================================================ */

.cat-hero,
.cat-section,
.cat-cta,
.cat-partners,
.cat-missing {
    --cat-navy: #2b3153;
    --cat-orange: #f8673b;
    --cat-ink: #2b3153;
    --cat-muted: #5b6079;
    --cat-line: #e4e6ef;
    --cat-soft: #f5f6fa;
}

/* ---------- Shared bits ---------- */
.cat-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--cat-orange);
    margin-bottom: 14px;
}

.cat-section h2,
.cat-hero h1,
.cat-intro h2,
.cat-cta h2,
.cat-partners h2 {
    color: var(--cat-ink);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0;
}

.cat-section h2 span,
.cat-hero h1 span,
.cat-intro h2 span,
.cat-cta h2 span,
.cat-partners h2 span {
    color: var(--cat-orange);
}

.cat-hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 20px; }
.cat-section h2 { font-size: clamp(26px, 3.2vw, 38px); }

.cat-section { padding: 88px 0; background: #fff; }
.cat-alt { background: var(--cat-soft); }

.cat-heading {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 44px;
}
.cat-heading p {
    color: var(--cat-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Buttons used on this page */
.cat-hero .btn-primary,
.cat-hero .btn { display: inline-flex; align-items: center; gap: 8px; }
.btn-white,
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}
.btn-white { background: #fff; color: var(--cat-navy); }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-white:hover,
.btn-outline-white:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.cat-hero {
    padding: 80px 0 72px;
    background:
        radial-gradient(circle at 85% 10%, rgba(248,103,59,.12), transparent 40%),
        linear-gradient(180deg, #fff 0%, #f5f6fa 100%);
}
.cat-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.cat-hero-content p {
    color: var(--cat-muted);
    font-size: 17px;
    line-height: 1.75;
    max-width: 560px;
}
.cat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 26px;
}
.cat-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}
.cat-points span {
    color: var(--cat-ink);
    font-size: 14px;
    font-weight: 600;
}
.cat-points i { color: var(--cat-orange); margin-right: 6px; }

/* Hero panel (mini system diagram) */
.cat-panel {
    background: #fff;
    border: 1px solid var(--cat-line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(43,49,83,.10);
}
.cat-panel-top,
.cat-panel-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--cat-muted);
}
.cat-panel-top i { color: #22a06b; font-size: 8px; margin-right: 4px; }
.cat-panel-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    margin: 28px 0;
}
.cat-panel-node {
    text-align: center;
    padding: 14px 6px;
    border-radius: 14px;
    background: var(--cat-soft);
    border: 1px solid var(--cat-line);
}
.cat-panel-node i { font-size: 20px; color: var(--cat-navy); }
.cat-panel-node strong { display: block; font-size: 11px; color: var(--cat-ink); margin-top: 8px; }
.cat-panel-node small { display: block; font-size: 11px; color: var(--cat-muted); margin-top: 2px; }
.cat-panel-node.is-featured { background: var(--cat-navy); border-color: var(--cat-navy); }
.cat-panel-node.is-featured i,
.cat-panel-node.is-featured strong,
.cat-panel-node.is-featured small { color: #fff; }
.cat-panel-line {
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--cat-line), var(--cat-orange));
}
.cat-panel-bottom span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--cat-soft);
    border: 1px solid var(--cat-line);
}

/* ---------- Intro ---------- */
.cat-intro { padding-top: 80px; }
.cat-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.cat-intro p {
    color: var(--cat-muted);
    font-size: 16px;
    line-height: 1.75;
}
.cat-flow-card {
    background: var(--cat-navy);
    border-radius: 22px;
    padding: 26px;
    color: #fff;
}
.cat-flow-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    margin-bottom: 22px;
}
.cat-flow-title span:first-child { color: #fff; }
.cat-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}
.cat-flow-item {
    text-align: center;
    padding: 16px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}
.cat-flow-item i { font-size: 20px; color: #fff; }
.cat-flow-item strong { display: block; font-size: 12px; margin-top: 8px; }
.cat-flow-item small { display: block; font-size: 11px; color: rgba(255,255,255,.7); margin-top: 4px; line-height: 1.4; }
.cat-flow-item.is-featured { background: var(--cat-orange); border-color: var(--cat-orange); }
.cat-flow-arrow { color: var(--cat-orange); font-size: 12px; }

/* ---------- Cards ---------- */
.cat-card-grid {
    display: grid;
    gap: 22px;
}
.cat-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cat-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.cat-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--cat-line);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(43,49,83,.10);
    border-color: rgba(248,103,59,.35);
}
.cat-card-num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 12px;
    font-weight: 700;
    color: #9aa0b8;
}
.cat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--cat-soft);
    color: var(--cat-orange);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 18px;
}
.cat-card h3,
.cat-app-card strong,
.cat-step h3 {
    color: var(--cat-ink);
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
}
.cat-card p,
.cat-step p {
    color: var(--cat-muted);
    font-size: 14.5px;
    line-height: 1.65;
    margin: 0;
}
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.cat-tags em {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(43,49,83,.07);
    color: var(--cat-navy);
}

/* Application cards */
.cat-app-card {
    background: #fff;
    border: 1px solid var(--cat-line);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cat-app-card i { font-size: 22px; color: var(--cat-orange); }
.cat-app-card strong { font-size: 17px; }
.cat-app-card span { color: var(--cat-muted); font-size: 14.5px; line-height: 1.6; }

/* Process steps */
.cat-step {
    background: #fff;
    border-radius: 20px;
    border-top: 3px solid var(--cat-orange);
    padding: 26px 24px;
    box-shadow: 0 10px 30px rgba(43,49,83,.06);
}
.cat-step > span {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--cat-orange);
    margin-bottom: 14px;
}

/* ---------- CRM products ---------- */
.cat-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}
.cat-product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--cat-line);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cat-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(43,49,83,.12);
}
/* Whole card is clickable: the cover link sits over it; the datasheet link sits above */
.cat-product-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.cat-product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--cat-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.cat-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}
.cat-product-placeholder {
    font-size: 40px;
    color: #b7bdd0;
}
.cat-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--cat-navy);
    color: #fff;
}
.cat-product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.cat-product-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--cat-orange);
}
.cat-product-body h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--cat-ink);
    margin: 0;
    line-height: 1.3;
}
.cat-product-body p {
    font-size: 14px;
    color: var(--cat-muted);
    line-height: 1.6;
    margin: 0;
}
.cat-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    color: var(--cat-muted);
}
.cat-product-meta strong {
    font-size: 17px;
    color: var(--cat-navy);
}
.cat-product-link {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: var(--cat-orange);
    text-decoration: none;
}

.cat-empty {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 36px;
    border: 1px dashed #c9cde0;
    border-radius: 20px;
    background: var(--cat-soft);
}
.cat-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--cat-orange);
    font-size: 22px;
    flex-shrink: 0;
}
.cat-empty strong { color: var(--cat-ink); display: block; margin-bottom: 4px; }
.cat-empty p { margin: 0; color: var(--cat-muted); font-size: 14px; }

/* ---------- Partners ---------- */
.cat-partners {
    padding: 72px 0 40px;
    background: #fff;
}
.cat-partners-head { margin-bottom: 28px; }
.cat-partners h2 { font-size: clamp(24px, 3vw, 34px); }

/* ---------- CTA ---------- */
.cat-cta {
    padding: 0 0 96px;
    background: #fff;
}
.cat-cta-inner {
    background: var(--cat-navy);
    color: #fff;
    border-radius: 28px;
    padding: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}
.cat-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.cat-cta h2 span { color: var(--cat-orange); }
.cat-cta p {
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0;
}
.cat-cta-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--cat-orange);
    margin-bottom: 12px;
}
.cat-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Not found ---------- */
.cat-missing { padding: 120px 0; text-align: center; }
.cat-missing h1 { color: var(--cat-ink); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .cat-card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cat-card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .cat-hero-grid,
    .cat-intro-grid,
    .cat-heading { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
    .cat-hero { padding: 56px 0 52px; }
    .cat-section { padding: 64px 0; }
    .cat-card-grid.cols-4,
    .cat-card-grid.cols-3 { grid-template-columns: 1fr; }
    .cat-cta-inner { padding: 36px 24px; }
    .cat-panel-diagram,
    .cat-flow {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cat-panel-line,
    .cat-flow-arrow { display: none; }
    .cat-empty { flex-direction: column; text-align: center; }
}