:root {
    /* Light, calm surface system */
    --bg: #F5F7FB;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFF;
    --surface-strong: #EEF2FF;

    --text: #0F172A;
    --muted: #4B5563;
    --faint: #9CA3AF;
    --line: rgba(15, 23, 42, .08);

    --brand-1: #4F46E5; /* indigo */
    --brand-2: #22C55E; /* green */
    --brand-3: #06B6D4; /* cyan */
    --brand-4: #F97316; /* orange */

    --shadow-soft: 0 18px 60px rgba(15, 23, 42, .10);
    --shadow-subtle: 0 10px 30px rgba(15, 23, 42, .06);

    --radius: 18px;
    --radius-sm: 14px;
    --pill-radius: 999px;
    --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", "Liberation Sans", sans-serif;
    color: var(--text);
    background: radial-gradient(900px 600px at 0% 0%, rgba(79, 70, 229, .09), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(56, 189, 248, .08), transparent 60%),
    radial-gradient(1100px 700px at 50% 120%, rgba(45, 212, 191, .05), transparent 65%),
    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.1;
    letter-spacing: -0.03em
}

h1 {
    font-size: clamp(2.5rem, 4.4vw, 3.8rem);
    margin: 0 0 16px
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin: 0 0 14px
}

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

h4 {
    font-size: .95rem;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .12em;
    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: 999px;
    transform: translateY(-160%);
    box-shadow: var(--shadow-subtle);
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .35)
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 247, 251, .88);
    border-bottom: 1px solid rgba(148, 163, 184, .20);
    backdrop-filter: blur(16px);
}

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

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

.brand__mark {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .20));
}

.brand__text {
    font-weight: 750;
    letter-spacing: -0.02em
}

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

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid transparent;
    font-size: .9rem;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .90);
    border-color: rgba(148, 163, 184, .45);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.nav-link--cta {
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .6), transparent 55%),
    linear-gradient(135deg, var(--brand-1), var(--brand-3));
    color: #F9FAFB;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(79, 70, 229, .25);
}

.nav-link--cta:hover {
    filter: brightness(1.04)
}

/* 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(--brand-1);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 70, 229, .35);
    box-shadow: 0 16px 30px rgba(148, 163, 184, .25);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .40);
    background: rgba(255, 255, 255, .95);
    color: var(--text);
    box-shadow: 0 10px 25px rgba(148, 163, 184, .55);
}

.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: var(--text);
    border-radius: 2px;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 32px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    gap: 40px;
    align-items: center;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--pill-radius);
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(255, 255, 255, .9);
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 14px;
}

.kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22C55E, #16A34A);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .25);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .65);
    background: rgba(255, 255, 255, .95);
    color: var(--text);
    font-weight: 650;
    font-size: .95rem;
    box-shadow: 0 10px 26px rgba(148, 163, 184, .35);
}

.btn--primary {
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .7), transparent 55%),
    linear-gradient(135deg, var(--brand-1), var(--brand-3));
    color: #F9FAFB;
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(79, 70, 229, .35);
}

.btn--primary:hover {
    filter: brightness(1.04)
}

.btn--ghost {
    background: rgba(248, 250, 252, .9);
    border-style: dashed;
}

.hero-media__frame {
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, .30);
    background: radial-gradient(180% 140% at 10% 0%, rgba(56, 189, 248, .12), transparent 65%),
    radial-gradient(150% 120% at 100% 20%, rgba(79, 70, 229, .14), transparent 60%),
    var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.hero-media__frame img {
    width: 100%;
    border-radius: 14px;
}

.hero-bg {
    position: absolute;
    inset: -80px -80px auto -80px;
    opacity: .6;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: blur(.4px);
}

.breadcrumbs {
    margin-top: 16px;
}

.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: rgba(148, 163, 184, .80)
}

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

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

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

.section:nth-of-type(odd) {
    background: rgba(255, 255, 255, .9);
}

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

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

.section--emphasis {
    background: radial-gradient(120% 160% at 0% 0%, rgba(79, 70, 229, .10), transparent 60%),
    radial-gradient(120% 160% at 100% 0%, rgba(6, 182, 212, .08), transparent 60%),
    var(--surface);
}

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

.section-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(239, 246, 255, .9);
    color: #1D4ED8;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.section-header__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22C55E;
}

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

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

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

.card {
    display: flex;
    gap: 12px;
    padding: 18px 18px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, .25);
    background: radial-gradient(140% 180% at 0% 0%, rgba(79, 70, 229, .06), transparent 60%),
    var(--surface);
    box-shadow: var(--shadow-subtle);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, .40);
    background: radial-gradient(160% 200% at 0% 0%, rgba(79, 70, 229, .10), transparent 60%),
    var(--surface);
    box-shadow: var(--shadow-soft);
}

.card__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(79, 70, 229, .12), rgba(56, 189, 248, .20));
    border: 1px solid rgba(129, 140, 248, .50);
    color: #0F172A;
    font-size: 1.1rem;
}

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

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

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

.metric {
    padding: 18px 18px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, .32);
    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: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
}

/* Timeline-style lists */
.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: 999px;
    background: #EEF2FF;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(148, 163, 184, .5);
    top: .35em;
}

/* FAQ-style lists */
.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-sm);
    border: 1px solid rgba(148, 163, 184, .32);
    box-shadow: var(--shadow-subtle);
}

.section--faq .bullets li::before {
    content: "?";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #1D4ED8;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 16px;
    margin-left: 10px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(148, 163, 184, .35);
    background: radial-gradient(700px 220px at 0% 50%, rgba(79, 70, 229, .14), transparent 60%),
    radial-gradient(700px 260px at 100% 50%, rgba(56, 189, 248, .16), transparent 60%),
    var(--surface);
    box-shadow: var(--shadow-soft);
}

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

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

.site-footer {
    padding: 32px 0 34px;
    border-top: 1px solid rgba(148, 163, 184, .28);
    margin-top: 32px;
    background: rgba(248, 250, 252, .96);
}

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

.footer-brand__title {
    font-weight: 800;
    letter-spacing: -0.02em
}

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

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

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

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

@media (max-width: 920px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1
    }

    .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: 70px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
        border-radius: var(--radius);
        border: 1px solid rgba(148, 163, 184, .40);
        background: rgba(248, 250, 252, .98);
        backdrop-filter: blur(14px);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-link {
        width: 100%
    }

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

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

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

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

/* Mautic form: keep page styles, hide hidden fields */
.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: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, .45);
    background: var(--surface);
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.contact-form .mauticform-input:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .2);
}

.contact-form .mauticform-errormsg {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    color: var(--brand-4);
}

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

.contact-form .mauticform-error {
    background: rgba(249, 115, 22, .12);
    border: 1px solid rgba(249, 115, 22, .35);
    color: var(--text);
}

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

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

.contact-form .mauticform-button {
    cursor: pointer;
    font-family: inherit;
}

.contact-form .mauticform-button:hover {
    background: rgb(0, 171, 255);
}

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

    .card {
        transition: none
    }
}

@media (max-width: 920px) {
    .hero-media {
        display: none;
    }
}
