:root {
    --ink: #111827;
    --muted: #5b6472;
    --line: #dfe5ec;
    --panel: #ffffff;
    --paper: #f5f7fa;
    --red: #d71920;
    --red-dark: #aa1117;
    --cyan: #0f7d86;
    --steel: #243447;
    --gold: #d9a441;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(17, 24, 39, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Manrope, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 229, 236, .9);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand img {
    width: 165px;
    height: auto;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--red);
    color: white;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.main-nav,
.menu {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a,
.menu a {
    color: var(--steel);
    font-size: 14px;
    font-weight: 700;
}

.call-chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: white !important;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
    gap: clamp(28px, 5vw, 72px);
    min-height: calc(100vh - 74px);
    padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 76px) clamp(34px, 5vw, 72px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .96), rgba(36, 52, 71, .88)),
        url('../images/access-control.jpg') center/cover;
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--red), var(--cyan), var(--gold));
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-copy {
    align-self: center;
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 2px;
    background: currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: .96;
}

.hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 800;
}

.button.primary {
    background: var(--red);
    color: white;
}

.button.ghost {
    border: 1px solid rgba(255, 255, 255, .34);
    color: white;
}

.hero-note {
    max-width: 560px;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    color: rgba(255, 255, 255, .76);
}

.hero-visual {
    display: grid;
    align-items: center;
    min-height: 480px;
}

.hero-product {
    position: absolute;
    object-fit: contain;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.hero-product-main {
    right: 10%;
    top: 12%;
    width: min(78%, 470px);
    padding: 24px;
    border-radius: 8px;
}

.hero-product-camera {
    left: 0;
    bottom: 12%;
    width: min(48%, 250px);
    padding: 18px;
    border-radius: 8px;
}

.signal-card {
    position: absolute;
    right: 0;
    bottom: 16%;
    width: min(58%, 280px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(14px);
}

.signal-card strong,
.signal-card span {
    display: block;
}

.signal-card span {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    background: white;
}

.trust-strip span {
    padding: 18px;
    border-right: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.intro,
.services,
.process,
.library,
.contact,
.page-shell {
    padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.intro {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    background: white;
}

.intro h2,
.process h2,
.library h2,
.contact h2 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
}

.intro p,
.section-head p,
.contact-copy p {
    color: var(--muted);
    font-size: 18px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    display: grid;
    grid-template-rows: 250px 1fr;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
    background: #f9fbfd;
}

.service-card div {
    padding: 24px;
}

.service-card span {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.service-card h3,
.steps h3,
.library-item h3 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.15;
}

.service-card p,
.steps p {
    color: var(--muted);
}

.process {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: clamp(28px, 5vw, 72px);
    background: var(--ink);
    color: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.steps div {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
}

.steps strong {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: var(--red);
}

.steps p {
    color: rgba(255, 255, 255, .72);
}

.library {
    background: white;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1fr);
    gap: 30px;
    align-items: end;
    margin-bottom: 24px;
}

.section-head p {
    margin-bottom: 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--steel);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.tab.is-active {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.library-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.library-item[hidden] {
    display: none;
}

.library-item img,
.embed {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #f7f9fc;
}

.embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.library-item div:not(.embed) {
    padding: 16px;
}

.library-item span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.library-item a {
    color: var(--red);
    font-weight: 800;
}

.contact {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(300px, .8fr);
    gap: clamp(28px, 5vw, 72px);
    background: #eef2f6;
}

.contact-panel {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .08);
}

.contact-panel a,
.contact-panel p {
    display: block;
    margin: 0;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--paper);
    font-weight: 800;
}

.contact-panel span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 5vw, 76px);
    background: var(--ink);
    color: white;
}

.site-footer span,
.footer-links a {
    color: rgba(255, 255, 255, .72);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.content-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: white;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .hero,
    .intro,
    .process,
    .section-head,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

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

    .services,
    .library-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 640px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand small {
        display: none;
    }

    .hero {
        padding-top: 34px;
    }

    h1 {
        font-size: 42px;
    }

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

    .hero-product-main {
        right: 0;
        width: 82%;
    }

    .hero-product-camera {
        width: 52%;
    }

    .signal-card {
        right: 0;
        width: 70%;
    }

    .services,
    .steps,
    .library-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
        grid-template-rows: 220px 1fr;
    }

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

