:root {
    --brand-navy: #1a2744;
    --brand-midnight: #101a31;
    --brand-gold: #c9a227;
    --brand-amber: #e4c55b;
    --brand-teal: #3f8f8c;
    --brand-slate: #617086;
    --brand-ink: #22314d;
    --brand-line: #d7e0eb;
    --brand-bg: #f5f7fb;
    --brand-mist: #eef4fb;
    --brand-panel: rgba(255, 255, 255, 0.92);
}

body.brand-body {
    margin: 0;
    color: var(--brand-ink);
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.11), transparent 22rem),
        radial-gradient(circle at top right, rgba(63, 143, 140, 0.12), transparent 28rem),
        linear-gradient(180deg, #fbfcfe 0%, var(--brand-bg) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-display {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.03em;
}

.brand-topbar {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(215, 224, 235, 0.85);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(215, 224, 235, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 224, 235, 0.5) 1px, transparent 1px);
    background-size: 3.6rem 3.6rem;
}

.brand-card {
    background: var(--brand-panel);
    border: 1px solid rgba(215, 224, 235, 0.95);
    border-radius: 1.55rem;
    box-shadow: 0 18px 48px rgba(26, 39, 68, 0.08);
}

.brand-soft-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 251, 0.96));
    border: 1px solid rgba(215, 224, 235, 0.95);
    border-radius: 1.25rem;
}

.brand-panel-dark {
    background: linear-gradient(145deg, var(--brand-midnight), var(--brand-navy));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.65rem;
    color: white;
    box-shadow: 0 24px 65px rgba(16, 26, 49, 0.22);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.13);
    color: #8f6e0f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.14), rgba(63, 143, 140, 0.12));
    color: var(--brand-navy);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.72rem;
}

.cms-text {
    white-space: pre-line;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    color: var(--brand-slate);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.nav-link-active {
    color: var(--brand-navy);
    background: rgba(238, 244, 251, 0.95);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-gold), #b88d12);
    box-shadow: 0 14px 34px rgba(184, 141, 18, 0.24);
    color: #1d1a14;
    cursor: pointer;
    font-weight: 800;
    padding: 0.85rem 1.45rem;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    border: 1px solid rgba(26, 39, 68, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-navy);
    cursor: pointer;
    font-weight: 800;
    padding: 0.82rem 1.35rem;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background: white;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
    border: 1px solid rgba(145, 34, 34, 0.14);
    border-radius: 999px;
    background: linear-gradient(135deg, #c64a43, #a92d25);
    box-shadow: 0 14px 34px rgba(169, 45, 37, 0.18);
    color: white;
    cursor: pointer;
    font-weight: 800;
    padding: 0.82rem 1.35rem;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.metric-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 224, 235, 0.95);
    border-radius: 1.35rem;
    padding: 1.35rem;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    bottom: -1.8rem;
    width: 5.8rem;
    height: 5.8rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 68%);
}

.metric-card .font-display {
    line-height: 1;
}

.tagline-strip-panel {
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid rgba(215, 224, 235, 0.95);
    border-radius: 1.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.96));
    box-shadow: 0 18px 48px rgba(26, 39, 68, 0.08);
    padding: 1.4rem 1.6rem;
}

.tagline-strip-image {
    display: block;
    width: 100%;
    height: auto;
}

.use-case-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.use-case-matrix thead {
    background: linear-gradient(180deg, rgba(238, 244, 251, 0.95), rgba(247, 250, 253, 0.98));
}

.use-case-matrix th,
.use-case-matrix td {
    padding: 1.1rem 1.1rem;
    border-bottom: 1px solid rgba(215, 224, 235, 0.95);
    text-align: left;
    vertical-align: top;
}

.use-case-matrix th {
    color: var(--brand-navy);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.use-case-matrix td {
    color: var(--brand-slate);
    font-size: 0.97rem;
    line-height: 1.6;
}

.use-case-matrix tbody tr:nth-child(even) {
    background: rgba(245, 247, 251, 0.75);
}

.proof-card-icon {
    display: block;
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.proof-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

.proof-badge-image {
    width: 100%;
    max-width: 14rem;
    height: auto;
    object-fit: contain;
}

.workflow-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 39, 68, 0.2);
    box-shadow: 0 24px 52px rgba(26, 39, 68, 0.12);
    outline: none;
}

.workflow-card-link {
    opacity: 0.8;
}

.pillar-card {
    display: flex;
    flex-direction: column;
}

.pillar-card .brand-badge {
    align-self: flex-start;
}

.pillar-card-title {
    min-height: 3.25rem;
    line-height: 1.15;
    display: flex;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .pillar-card-title {
        min-height: 2.4rem;
        white-space: nowrap;
    }
}

.workflow-detail-copy {
    position: relative;
}

.workflow-detail-heading {
    color: var(--brand-navy);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .workflow-detail-heading {
        min-height: 2.25rem;
    }
}

.workflow-dot {
    width: 0.62rem;
    height: 0.62rem;
    margin-top: 0.42rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(63, 143, 140, 0.45);
}

.workflow-dot-strong {
    background: rgba(201, 162, 39, 0.85);
}

.workflow-detail-visual {
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.14), transparent 16rem),
        linear-gradient(180deg, rgba(238, 244, 251, 0.92), rgba(255, 255, 255, 0.96));
}

.workflow-visual-shell {
    overflow: hidden;
    border: 1px solid rgba(26, 39, 68, 0.08);
    border-radius: 1.4rem;
    background: white;
    box-shadow: 0 20px 45px rgba(26, 39, 68, 0.12);
}

.workflow-visual-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workflow-visual-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 58px rgba(26, 39, 68, 0.16);
}

.workflow-visual-trigger:focus-visible {
    outline: 3px solid rgba(201, 162, 39, 0.34);
    outline-offset: 3px;
}

.workflow-visual-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(19rem, 48vh, 42rem);
    object-fit: contain;
    object-position: center top;
}

.workflow-visual-trigger.is-tall {
    min-height: clamp(19rem, 48vh, 42rem);
}

.workflow-visual-trigger.is-tall .workflow-visual-image {
    height: clamp(19rem, 48vh, 42rem);
    max-height: none;
    object-fit: cover;
    object-position: top center;
}

.workflow-visual-hint {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(16, 26, 49, 0.78);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.8rem;
    pointer-events: none;
}

.workflow-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.workflow-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 26, 49, 0.58);
    backdrop-filter: blur(8px);
}

.workflow-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 36px 100px rgba(16, 26, 49, 0.32);
}

.workflow-modal-close {
    position: sticky;
    top: 1.25rem;
    float: right;
    z-index: 2;
    margin: 1.25rem 1.25rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(26, 39, 68, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-navy);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(26, 39, 68, 0.12);
}

.workflow-modal-close:hover {
    background: white;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 17, 34, 0.82);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.image-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 1rem;
    border: 1px solid rgba(215, 224, 235, 0.28);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 42px 120px rgba(16, 26, 49, 0.42);
}

.image-lightbox-close {
    position: sticky;
    top: 0.4rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid rgba(26, 39, 68, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-navy);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(26, 39, 68, 0.12);
}

.image-lightbox-frame {
    overflow: hidden;
    border: 1px solid rgba(26, 39, 68, 0.08);
    border-radius: 1.35rem;
    background: white;
}

.image-lightbox-media {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(22rem, 78vh, 56rem);
    object-fit: contain;
    object-position: center top;
}

.image-lightbox-frame.is-tall {
    height: clamp(22rem, 78vh, 56rem);
}

.image-lightbox-frame.is-tall .image-lightbox-media {
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: top center;
}

.image-lightbox-meta {
    padding: 1rem 0.35rem 0.2rem;
}

body.modal-open {
    overflow: hidden;
}

.form-field {
    display: grid;
    gap: 0.55rem;
}

.form-field span {
    color: var(--brand-navy);
    font-size: 0.92rem;
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(26, 39, 68, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-ink);
    font: inherit;
    padding: 0.95rem 1rem;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid rgba(201, 162, 39, 0.24);
    border-color: rgba(201, 162, 39, 0.5);
}

@media (max-width: 767px) {
    .metric-card {
        padding: 1.15rem;
    }

    .use-case-matrix th,
    .use-case-matrix td {
        padding: 0.95rem 0.9rem;
    }
}

@media (max-width: 1023px) {
    .nav-link {
        min-height: auto;
        padding: 0;
    }

    .workflow-detail-visual {
        border-top: 1px solid rgba(215, 224, 235, 0.95);
    }
}

@media (max-width: 640px) {
    .workflow-visual-trigger.is-tall {
        min-height: 16rem;
    }

    .workflow-visual-trigger.is-tall .workflow-visual-image {
        height: 16rem;
    }

    .image-lightbox-frame.is-tall {
        height: min(68vh, 28rem);
    }
}
