:root {
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;
    --surface-strong: #EEF1F5;

    --text: #0F172A;
    --muted: #475569;
    --faint: #94A3B8;
    --line: rgba(15, 23, 42, .1);

    --brand: #2563EB;
    --brand-hover: #1D4ED8;
    --accent: #FACC15;
    --accent-hover: #EAB308;
    --white: #FFFFFF;

    --nav-bg: #1E293B;
    --nav-text: #E2E8F0;
    --nav-text-muted: #94A3B8;
    --nav-hover: #334155;

    --shadow-subtle: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow-soft: 0 4px 16px rgba(15, 23, 42, .08);

    --radius: 2px;
    --radius-sm: 0;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

p {
    margin: 0 0 14px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 16px;
}

h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin: 0 0 14px;
}

h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

h4 {
    font-size: .9rem;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--faint);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transform: translateY(-160%);
    box-shadow: var(--shadow-subtle);
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand);
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

/* Top navigation – dark gray, fixed, rectangular */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__mark {
    width: 28px;
    height: 28px;
}

.brand__text {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--nav-text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--nav-text-muted);
    border: 1px solid transparent;
    font-size: .9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--nav-text);
    background: var(--nav-hover);
}

.nav-link--cta {
    background: var(--brand);
    color: var(--white);
    border-color: transparent;
}

.nav-link--cta:hover {
    background: var(--brand-hover);
}

/* Active nav */
html[data-nav="home"] .nav-link[data-nav-link="home"],
html[data-nav="solutions"] .nav-link[data-nav-link="solutions"],
html[data-nav="technology"] .nav-link[data-nav-link="technology"],
html[data-nav="use-cases"] .nav-link[data-nav-link="use-cases"],
html[data-nav="compliance"] .nav-link[data-nav-link="compliance"],
html[data-nav="contact"] .nav-link[data-nav-link="contact"] {
    color: var(--nav-text);
    background: var(--nav-hover);
}

html[data-nav="contact"] .nav-link--cta[data-nav-link="contact"] {
    background: var(--brand-hover);
    color: var(--white);
}

/* Insights Media theme: topbar nav (single-row menu) */
.topbar .nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.topbar .nav a {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}
.topbar .nav a:hover {
    color: var(--text);
}
.topbar .nav a.nav-link--primary {
    background: var(--brand);
    color: var(--white);
}
.topbar .nav a.nav-link--primary:hover {
    background: var(--brand-hover);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .2);
    background: var(--nav-hover);
    color: var(--nav-text);
}

.nav-toggle__bars {
    width: 18px;
    height: 12px;
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
}

.nav-toggle__bars::before {
    top: 0;
}

.nav-toggle__bars::after {
    bottom: 0;
}

/* Hero – full viewport, background slideshow */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide__bg img,
.hero-slide__bg video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .58);
    pointer-events: none; /* so Contact / Explore solutions buttons stay clickable */
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 100%;
    max-width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 120px 18% 80px 10%;
    text-align: left;
    color: var(--white);
}

.hero-slide__content h1 {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    margin-bottom: 16px;
}

.hero-slide__content .lead {
    color: rgba(255, 255, 255, .92);
    font-size: 1.05rem;
    max-width: 42ch;
    margin: 0 0 24px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.hero-slide__content .kicker {
    color: rgba(255, 255, 255, .9);
    margin-bottom: 12px;
}

.hero-slide__content .hero-actions {
    justify-content: flex-start;
}

.hero-slide__content .lead {
    margin-right: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Buttons – rectangular, solid blue or white, no gradients */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn--primary {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

.btn--primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn--ghost {
    background: var(--white);
    color: var(--text);
    border-color: rgba(255, 255, 255, .5);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .95);
    border-color: var(--white);
}

/* Yellow CTA button – no border, for use in CTA blocks */
.btn--accent {
    background: var(--accent);
    color: var(--text);
    border: none;
}

.btn--accent:hover {
    background: var(--accent-hover);
    border: none;
}

/* Hero slideshow nav – arrows left/right, dots bottom center */
.hero-slideshow__nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

/* Only the actual prev/next/dot buttons receive clicks; containers must not block hero CTA buttons */
.hero-slideshow__arrows,
.hero-slideshow__dots {
    pointer-events: none;
}
.hero-slideshow__btn,
.hero-slideshow__dot {
    pointer-events: auto;
}

.hero-slideshow__arrows {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.hero-slideshow__btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    transition: background .2s ease;
}

.hero-slideshow__btn:hover {
    background: rgba(255, 255, 255, .35);
}

.hero-slideshow__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-slideshow__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .2s ease;
}

.hero-slideshow__dot.is-active {
    background: var(--white);
}

.hero-slideshow__dot:hover {
    background: rgba(255, 255, 255, .7);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .2);
    color: rgba(255, 255, 255, .95);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.lead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 52ch;
}

.breadcrumbs {
    margin-top: 0;
    padding: 16px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: min(var(--max), calc(100% - 32px));
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--faint);
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: var(--faint);
}

.breadcrumbs a {
    color: var(--muted);
}

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

.section {
    padding: 88px 0;
    position: relative;
}

.section:nth-of-type(odd) {
    background: var(--surface);
}

.section:nth-of-type(even) {
    background: var(--surface-soft);
}

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

.section--emphasis {
    background: var(--surface-strong);
}

.section-header {
    max-width: 640px;
    margin-bottom: 28px;
}

.section-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .08);
    color: var(--brand);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.section-header__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius);
    background: var(--brand);
}

.section-header__lead {
    color: var(--muted);
    font-size: .98rem;
}

.section__actions {
    margin-top: 24px;
}

.grid {
    display: grid;
    gap: 14px;
}

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-subtle);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-soft);
}

.card__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, .1);
    border: 1px solid rgba(37, 99, 235, .25);
    color: var(--text);
    font-size: 1.1rem;
}

.card__body p {
    color: var(--muted);
    margin: 0 0 10px;
}

.card__link {
    color: var(--brand);
    font-weight: 600;
    font-size: .88rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.metric {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-subtle);
}

.metric__value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.metric__label {
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
}

.bullets {
    margin: 16px 0 0;
    padding-left: 0;
    list-style: none;
    color: var(--muted);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.bullets li {
    position: relative;
    padding-left: 20px;
    font-size: .95rem;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px;
    height: 6px;
    border-radius: var(--radius);
    background: var(--brand);
}

.section--timeline .bullets {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 22px 40px;
    counter-reset: step;
}

.section--timeline .bullets li {
    padding-left: 36px;
}

.section--timeline .bullets li::before {
    counter-increment: step;
    content: counter(step);
    width: 24px;
    height: 24px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    top: .35em;
}

.section--faq .bullets {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.section--faq .bullets li {
    padding: 14px 16px 12px 36px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-subtle);
}

.section--faq .bullets li::before {
    content: "?";
    width: 20px;
    height: 20px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, .12);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 16px;
    margin-left: 10px;
}

/* Feature strip: full-width background image, heading, horizontal tiles (title + line + description) */
.feature-strip {
    position: relative;
    padding: 176px 0;
    overflow: hidden;
}

.feature-strip__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.feature-strip__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.feature-strip__inner {
    position: relative;
    z-index: 1;
    color: #fff;
}

.feature-strip__title {
    margin: 0 0 32px;
    text-align: center;
    color: #fff;
}

.feature-strip__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px 32px;
    align-items: start;
}

.feature-strip__tile {
    max-width: 320px;
}

.feature-strip__tile-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.feature-strip__tile-line {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, .9);
    margin-bottom: 12px;
}

.feature-strip__tile-desc {
    margin: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .88);
    line-height: 1.5;
}

.feature-strip__tile-desc p {
    margin: 0 0 8px;
}

.feature-strip__tile-desc p:last-child {
    margin-bottom: 0;
}

/* Image + text block – background image like CTA, left square image, right text */
.image-text-section {
    background: transparent;
    padding: 0;
}

.image-text {
    width: 100%;
    position: relative;
    padding: 176px 24px;
    background: #fafafa url("/assets/topographic_lines_horizontal.svg") no-repeat center;
    background-size: cover;
}

.image-text__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.image-text__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.image-text__image-wrap {
    flex-shrink: 0;
    width: min(420px, 40vw);
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--muted-bg);
}

.image-text__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-text__content {
    flex: 1;
    min-width: 0;
}

.image-text__content .section-header__eyebrow {
    margin-bottom: 8px;
}

.image-text__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.image-text__lead {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.image-text__lead p:last-child,
.image-text__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .image-text__inner {
        flex-direction: column;
        gap: 24px;
    }

    .image-text__image-wrap {
        width: 100%;
        max-width: 360px;
    }
}

.cta-section {
    background: transparent;
    padding: 0;
}

.cta-section:nth-of-type(odd),
.cta-section:nth-of-type(even) {
    background: transparent;
}

.cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 208px 24px;
    background: #FAFAFA url("/assets/topographic_lines_horizontal.svg") no-repeat center;
    background-size: cover;
}

.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.cta__content {
    text-align: center;
}

.cta__content h2 {
    margin: 0 0 10px;
}

.cta p {
    color: var(--muted);
    margin: 0;
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer {
    padding: 32px 0 34px;
    border-top: 1px solid var(--nav-hover);
    margin-top: 0;
    background: var(--nav-bg);
    color: var(--nav-text);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand__title {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--nav-text);
}

.footer-brand__tag {
    color: var(--nav-text-muted);
    margin-top: 6px;
    font-size: .9rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--nav-text-muted);
    font-size: .9rem;
}

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

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

.footer-bottom {
    margin-top: 14px;
    color: var(--nav-text-muted);
}

.footer-bottom__content {
    font-size: 0.9rem;
}

.footer-bottom__content p {
    margin: 0 0 0.5em;
}

.footer-bottom__content p:last-child {
    margin-bottom: 0;
}

.footer-bottom__content ul,
.footer-bottom__content ol {
    margin: 0 0 0.5em;
    padding-left: 1.25em;
}

.footer-bottom__content a {
    color: inherit;
    text-decoration: underline;
}

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

/* Contact form – rectangular inputs */
.mauticform-field-hidden {
    display: none;
}

.contact-form.mauticform_wrapper {
    max-width: 480px;
    margin-top: 8px;
}

.contact-form .mauticform-row {
    margin-bottom: 18px;
}

.contact-form .mauticform-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-form .mauticform-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
}

.contact-form .mauticform-input:focus {
    outline: none;
    border-color: var(--brand);
}

.contact-form .mauticform-errormsg {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: #DC2626;
}

.contact-form .mauticform-error,
.contact-form .mauticform-message {
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: .9rem;
}

.contact-form .mauticform-error {
    background: rgba(220, 38, 38, .08);
    border: 1px solid rgba(220, 38, 38, .3);
    color: var(--text);
}

.contact-form .mauticform-message {
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .3);
    color: var(--text);
}

.contact-form .mauticform-button-wrapper {
    margin-top: 22px;
    margin-bottom: 0;
}

.contact-form .mauticform-button {
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--radius);
    background: var(--brand);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
}

.contact-form .mauticform-button:hover {
    background: var(--brand-hover);
}

@media (max-width: 920px) {
    .hero-slide__content {
        padding: 100px 16px 60px;
    }

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

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

    .bullets {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: 60px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px;
        border-radius: var(--radius);
        background: var(--nav-bg);
        border: 1px solid var(--nav-hover);
    }

    .nav-open .site-nav {
        display: flex;
    }

    .nav-link {
        width: 100%;
        border-radius: var(--radius);
    }

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

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

    .cta {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
    }

    .hero-slideshow__arrows {
        padding: 0 8px;
    }

    .hero-slideshow__dots {
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-slide {
        transition: none;
    }
}
