:root {
    --cnc-primary: #1267e8;
    --cnc-dark: #0e1b2c;
    --cnc-background: #f5f7fa;
    --cnc-text: #111b29;
    --cnc-muted: #5f6e80;
    --cnc-line: #cbd5df;
    --cnc-white: #ffffff;
    --cnc-shell: 1200px;
    --cnc-shadow: 0 28px 70px rgba(19, 43, 75, .18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
}

body {
    margin: 0;
    color: var(--cnc-text);
    background-color: var(--cnc-background);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.is-home {
    background-image:
        linear-gradient(rgba(18, 103, 232, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 103, 232, .045) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

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

button, input, textarea, select {
    font: inherit;
}

h1, h2, h3, p {
    overflow-wrap: anywhere;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(var(--cnc-shell), calc(100% - 64px));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 10000;
    padding: 12px 16px;
    color: #fff;
    background: var(--cnc-dark);
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cnc-primary) 70%, white);
    outline-offset: 4px;
}

/* Header */
.site-header {
    min-height: 88px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid #dce2e9;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.brand > span:last-child strong {
    color: var(--cnc-primary);
}

.brand-mark {
    position: relative;
    width: 29px;
    height: 29px;
    border: 3px solid currentColor;
    transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    position: absolute;
    content: "";
    background: var(--cnc-primary);
}

.brand-mark::before {
    width: 12px;
    height: 3px;
    top: 4px;
    left: 5px;
}

.brand-mark::after {
    width: 3px;
    height: 12px;
    top: 5px;
    left: 12px;
}

.brand-mark span {
    width: 8px;
    height: 8px;
    right: -5px;
    bottom: -5px;
}

.site-nav {
    justify-self: center;
}

.site-nav ul,
.site-nav .mod-menu,
.fallback-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 700;
}

.site-nav a::after {
    position: absolute;
    content: "";
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--cnc-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease;
}

.site-nav a:hover,
.site-nav .active > a {
    color: var(--cnc-primary);
}

.site-nav a:hover::after,
.site-nav .active > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 9px;
    border-bottom: 2px solid var(--cnc-primary);
    font-size: 12px;
    font-weight: 800;
}

.header-cta span {
    font-size: 17px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--cnc-line);
    background: transparent;
    cursor: pointer;
}

.menu-toggle > span:not(.visually-hidden) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--cnc-text);
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-navigation {
    position: fixed;
    z-index: 999;
    inset: 72px 0 auto;
    padding: 20px;
    color: #fff;
    background: var(--cnc-dark);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .28);
}

.mobile-navigation ul,
.mobile-navigation .mod-menu,
.mobile-navigation .fallback-nav {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-navigation a {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: 15px;
    font-weight: 700;
}

/* Hero */
.hero {
    min-height: 710px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 70px;
    padding-block: 68px 74px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--cnc-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.crosshair {
    position: relative;
    width: 15px;
    height: 15px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.crosshair::before,
.crosshair::after {
    position: absolute;
    content: "";
    background: currentColor;
}

.crosshair::before {
    top: 6px;
    left: -4px;
    width: 21px;
    height: 1px;
}

.crosshair::after {
    top: -4px;
    left: 6px;
    width: 1px;
    height: 21px;
}

.hero h1 {
    margin: 25px 0 30px;
    font-size: clamp(54px, 6vw, 88px);
    font-weight: 800;
    line-height: .93;
    letter-spacing: -.067em;
}

.hero h1 span,
.hero h1 em {
    display: block;
}

.hero h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1.5px var(--cnc-primary);
}

.hero-description {
    max-width: 590px;
    margin: 0 0 32px;
    color: #536173;
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 15px 22px;
    border: 0;
    font-size: 13px;
    font-weight: 800;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--cnc-primary);
}

.button-primary:hover {
    background: color-mix(in srgb, var(--cnc-primary) 82%, black);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-block: 12px;
    font-size: 13px;
    font-weight: 700;
}

.text-link:hover {
    color: var(--cnc-primary);
}

.proof-grid {
    display: flex;
    gap: 32px;
    margin-top: 56px;
    padding-top: 25px;
    border-top: 1px solid var(--cnc-line);
}

.proof-grid div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proof-grid strong {
    font-size: 19px;
}

.proof-grid span {
    color: #6c7886;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    min-height: 510px;
}

.hero-visual::before {
    position: absolute;
    z-index: 0;
    content: "";
    inset: 0 28px 28px 0;
    border: 1px solid var(--cnc-primary);
}

.hero-visual::after {
    position: absolute;
    z-index: 2;
    content: "";
    left: -20px;
    top: 54px;
    width: 90px;
    height: 1px;
    background: var(--cnc-primary);
}

.hero-visual img {
    position: absolute;
    z-index: 1;
    inset: 22px 0 0 24px;
    width: calc(100% - 24px);
    height: calc(100% - 22px);
    object-fit: cover;
    box-shadow: var(--cnc-shadow);
}

/* Services */
.services {
    padding-block: 110px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 55px;
}

.section-heading > span {
    color: var(--cnc-primary);
    font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.07;
    letter-spacing: -.04em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--cnc-line);
    border-left: 1px solid var(--cnc-line);
}

.service-card {
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-right: 1px solid var(--cnc-line);
    border-bottom: 1px solid var(--cnc-line);
    background: rgba(255, 255, 255, .52);
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.service-card:hover {
    z-index: 2;
    color: #fff;
    background: var(--cnc-primary);
    transform: translateY(-7px);
}

.service-number {
    color: var(--cnc-primary);
    font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.service-card h3 {
    margin: auto 0 14px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.service-card p {
    min-height: 62px;
    padding-right: 24px;
    margin: 0;
    color: #657384;
    font-size: 13px;
    line-height: 1.55;
}

.service-card:hover .service-number,
.service-card:hover p {
    color: #d5e7ff;
}

.service-arrow {
    position: absolute;
    right: 24px;
    bottom: 19px;
    font-size: 28px;
    font-weight: 300;
}

/* Process */
.process {
    color: #fff;
    background: var(--cnc-dark);
}

.process-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding-block: 100px;
}

.process-kicker {
    color: color-mix(in srgb, var(--cnc-primary) 75%, white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.process h2 {
    margin: 18px 0 0;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.process h2 span {
    display: block;
}

.process ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.process li {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.process li b {
    color: color-mix(in srgb, var(--cnc-primary) 72%, white);
    font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process li span {
    font-size: 17px;
}

/* CTA, modules and footer */
.contact-cta {
    padding-block: 110px;
    text-align: center;
}

.contact-cta > span {
    color: #637182;
    font-size: 13px;
}

.contact-cta h2 {
    margin: 13px 0 30px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -.06em;
}

.contact-modules,
.module-position,
.home-component {
    margin-top: 48px;
}

.home-extra {
    padding-block: 90px;
}

.module-card {
    padding: 28px;
    border: 1px solid var(--cnc-line);
    background: rgba(255, 255, 255, .72);
}

.site-footer {
    color: rgba(255, 255, 255, .72);
    background: var(--cnc-dark);
}

.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-inner ul,
.footer-inner .mod-menu {
    display: flex;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Standard Joomla content */
.inner-content {
    min-height: 65vh;
    padding-block: 72px 110px;
}

.inner-content > * {
    max-width: 900px;
}

.inner-content h1,
.inner-content .page-header h2 {
    margin: 0 0 32px;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -.055em;
}

.inner-content h2,
.inner-content h3 {
    letter-spacing: -.03em;
}

.inner-content p,
.inner-content li {
    color: #4e5d6e;
    line-height: 1.75;
}

.inner-content a:not(.button) {
    color: var(--cnc-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.item-image {
    margin-block: 28px;
}

.pager,
.pagination {
    display: flex;
    gap: 8px;
    padding: 0;
    margin-top: 40px;
    list-style: none;
}

.pager a,
.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--cnc-line);
    text-decoration: none !important;
}

/* Forms */
.control-group,
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--cnc-line);
    border-radius: 0;
    color: var(--cnc-text);
    background: #fff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

button,
.btn {
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: var(--cnc-primary);
    font-weight: 800;
    cursor: pointer;
}

.alert {
    width: min(var(--cnc-shell), calc(100% - 64px));
    padding: 16px 18px;
    margin: 20px auto;
    border-left: 4px solid var(--cnc-primary);
    background: #fff;
    box-shadow: 0 8px 30px rgba(19, 43, 75, .1);
}

/* Error, offline and component layouts */
.error-page,
.offline-page,
.cncaxis-component {
    min-height: 100vh;
    background: var(--cnc-background);
}

.error-page,
.offline-page {
    display: grid;
    place-items: center;
    padding: 32px;
}

.error-card,
.offline-card {
    width: min(720px, 100%);
    padding: 64px;
    border: 1px solid var(--cnc-line);
    background: #fff;
    box-shadow: var(--cnc-shadow);
}

.error-code {
    display: block;
    margin-top: 72px;
    color: var(--cnc-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .15em;
}

.error-card h1,
.offline-card h1 {
    margin: 18px 0;
    font-size: clamp(44px, 8vw, 76px);
    line-height: .95;
    letter-spacing: -.06em;
}

.error-card p,
.offline-card p {
    color: var(--cnc-muted);
}

.error-card .button {
    margin-top: 24px;
}

.cncaxis-component {
    padding: 24px;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        min-height: 520px;
    }

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

    .process-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .shell {
        width: calc(100% - 36px);
    }

    .site-header {
        position: relative;
        z-index: 1000;
        min-height: 72px;
        grid-template-columns: 1fr auto;
        background: var(--cnc-background);
    }

    .site-header > .site-nav,
    .site-header > .fallback-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-block: 55px;
    }

    .hero h1 {
        font-size: clamp(50px, 15vw, 70px);
    }

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

    .proof-grid {
        flex-wrap: wrap;
        gap: 18px 28px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .services {
        padding-block: 76px;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

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

    .service-card {
        min-height: 240px;
    }

    .process-inner {
        gap: 42px;
        padding-block: 72px;
    }

    .contact-cta {
        padding-block: 80px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 26px;
    }

    .footer-inner ul,
    .footer-inner .mod-menu {
        flex-wrap: wrap;
    }

    .error-card,
    .offline-card {
        padding: 36px 24px;
    }
}

@media (max-width: 520px) {
    .shell {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-visual::before {
        inset: 0 16px 16px 0;
    }

    .hero-visual img {
        inset: 12px 0 0 12px;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
    }

    .hero-visual::after {
        left: -12px;
        width: 50px;
    }

    .service-card {
        min-height: 220px;
    }

    .process li {
        grid-template-columns: 44px 1fr;
    }

    .contact-cta h2 {
        font-size: 48px;
    }

    .alert {
        width: calc(100% - 28px);
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .hero-actions,
    .menu-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .inner-content {
        width: 100%;
        padding: 0;
    }
}
