.adc-hero {
    padding: 0 var(--container-padding) 24px;
}

.adc-hero__inner {
    display: flex;
    gap: 16px;
    margin-inline: auto;
}

/* LEFT */
.adc-hero__content {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 692px;
    overflow: hidden;
    border-radius: 24px;
    color: var(--color-bg-white);
    background: var(--color-bg-dark) url("img/hero-bg.webp") no-repeat center / cover;
}

.adc-hero__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.adc-hero__content-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 69px 80px;
}

.adc-hero__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: inset 0 0 0 1px var(--color-bg-white); /* design stroke is inside the frame */
    background: var(--color-bg-white-6);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
}

.adc-hero__breadcrumbs span {
    opacity: 0.6;
}

.adc-hero__breadcrumbs .adc-hero__breadcrumbs-active {
    opacity: 1;
}

.adc-hero__title {
    max-width: 898px;
    margin: 0 0 16px;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.05px;
    background: linear-gradient(156deg, #F0F5FA 58.5%, #DCE3F3 86.86%); /* DESIGN-DEVIATION: gradient stops have no token */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.adc-hero__description {
    max-width: 729px;
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.9;
}

.adc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.adc-hero__button {
    min-height: 62px;
    padding: 19px 28px;
    border-radius: 12px;
}

.adc-hero__button--secondary {
    width: 148px;
    border-color: var(--color-bg-white);
    color: var(--color-bg-white);
}

.adc-hero__button--secondary:hover {
    background: var(--color-bg-white-10);
}

.adc-hero__trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    width: min(100%, 602px);
    padding: 18px 24px;
    border-radius: 15px;
    background: var(--color-bg-white-6);
}

.adc-hero__trust-customers,
.adc-hero__trust-rating {
    display: flex;
    align-items: center;
}

.adc-hero__trust-customers {
    gap: 16px;
    min-width: 0;
}

.adc-hero__trust-rating {
    flex: 0 0 auto;
    gap: 8px;
}

.adc-hero__trust-avatars {
    flex: 0 0 auto;
}

.adc-hero__trust-text,
.adc-hero__trust-score {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.44;
    opacity: 0.9;
}

.adc-hero__trust-text {
    white-space: nowrap;
}

.adc-hero__trust-score {
    color: var(--color-bg-white-80);
    opacity: 1;
}

/* RIGHT — dash-cam visual.
   --u = one design pixel of the active Figma frame (height 692 / 507 / 280);
   everything is pinned to the RIGHT edge (photo, cards, glows, LIVE pill) and sized by
   height, so when the block is resized only the left side of the photo is cropped.
   --fw = design frame width, --sh/--st = photo height/top offset in design px,
   --sr = how far the photo overshoots the right edge. */
.adc-hero__visual {
    --fw: 470;
    --u: calc(100cqh / 692);
    --sh: 703;
    --st: -5;
    --sr: 181;
    --sw: max(calc(100cqw + var(--sr) * var(--u)), calc(var(--sh) * var(--u) * 1672 / 941));
    position: relative;
    flex: 0 0 470px;
    min-height: 692px;
    overflow: hidden;
    border-radius: 24px;
    container-type: size;
}

.adc-hero__scene {
    position: absolute;
    top: calc(var(--st) * var(--u));
    right: calc(var(--sr) * var(--u) * -1);
    width: var(--sw);
    aspect-ratio: 1672 / 941;
}

.adc-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
}

.adc-hero__stage {
    position: absolute;
    inset: 0;
}

/* glows */
.adc-hero__glow {
    position: absolute;
    width: calc(var(--gs, 902) * var(--u));
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-30) 0, transparent 62%);
    pointer-events: none;
}

.adc-hero__glow--top {
    right: calc((var(--fw) - 590 - 902) * var(--u));
    top: calc(-456 * var(--u));
    animation: adc-hero-glow-top 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.adc-hero__glow--bottom {
    right: calc((var(--fw) + 793 - 902) * var(--u));
    top: calc(536 * var(--u));
    animation: adc-hero-glow-bottom 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* detection boxes — anchored to the photo */
.adc-hero__box {
    --bw: calc(var(--sw) * 0.0022);
    --corner: var(--color-bg-white);
    position: absolute;
    aspect-ratio: 1;
    border: var(--bw) solid var(--color-bg-white-50);
    border-radius: 5%;
    background: var(--color-bg-white-10);
    animation: adc-hero-box-neutral 8s linear infinite;
}

.adc-hero__box--truck {
    right: 36.71%;
    top: 28.73%;
    width: 13.65%;
}

.adc-hero__box--car {
    right: 8.34%;
    top: 36.7%;
    width: 22.87%;
    animation-name: adc-hero-box-alert;
}

.adc-hero__corner {
    position: absolute;
    width: 8.6%;
    aspect-ratio: 1;
    border: var(--bw) solid var(--corner);
    animation: adc-hero-corner-neutral 8s linear infinite;
}

.adc-hero__box--car .adc-hero__corner {
    animation-name: adc-hero-corner-alert;
}

.adc-hero__corner--tl {
    top: calc(var(--bw) * -1);
    left: calc(var(--bw) * -1);
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 40%;
}

.adc-hero__corner--tr {
    top: calc(var(--bw) * -1);
    right: calc(var(--bw) * -1);
    border-left: 0;
    border-bottom: 0;
    border-top-right-radius: 40%;
}

.adc-hero__corner--br {
    right: calc(var(--bw) * -1);
    bottom: calc(var(--bw) * -1);
    border-top: 0;
    border-left: 0;
    border-bottom-right-radius: 40%;
}

.adc-hero__corner--bl {
    bottom: calc(var(--bw) * -1);
    left: calc(var(--bw) * -1);
    border-top: 0;
    border-right: 0;
    border-bottom-left-radius: 40%;
}

/* alert cards (glass) */
.adc-hero__card {
    position: absolute;
    aspect-ratio: 1;
    container-type: inline-size;
    overflow: hidden;
    border: 1px solid var(--color-bg-white-10);
    border-radius: 5.5%;
    color: var(--color-bg-white);
    background:
        linear-gradient(135deg, var(--color-bg-white-50) 0%, var(--color-bg-white-6) 55%),
        var(--Chart-Red-8);
    -webkit-backdrop-filter: blur(calc(14 * var(--u)));
    backdrop-filter: blur(calc(14 * var(--u)));
}

.adc-hero__card--speeding {
    right: calc(130 * var(--u));
    top: calc(475 * var(--u));
    width: calc(167 * var(--u));
    animation: adc-hero-card-speeding 8s linear infinite;
}

.adc-hero__card--tailgating {
    right: calc(243.5 * var(--u));
    top: calc(329 * var(--u));
    width: calc(133.5 * var(--u));
    opacity: 0;
    animation: adc-hero-card-tailgating 8s linear infinite;
}

.adc-hero__card-head {
    position: absolute;
    top: 10.5cqw;
    right: 10cqw;
    left: 10cqw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.6cqw;
    font-weight: 500;
    line-height: 1;
}

.adc-hero__card-label {
    display: flex;
    align-items: center;
    gap: 3.8cqw;
}

.adc-hero__card-icon {
    width: 11.4cqw;
    height: auto;
}

.adc-hero__card-arrow {
    width: 10cqw;
    height: 10cqw;
    transform: rotate(-135deg);
}

.adc-hero__card-body {
    position: absolute;
    top: 43cqw;
    right: 6cqw;
    left: 10cqw;
}

.adc-hero__card-title {
    margin: 0 0 5cqw;
    font-size: 14cqw;
    font-weight: 500;
    line-height: 1.2;
}

.adc-hero__card-date {
    margin: 0;
    font-size: 6.4cqw;
    line-height: 1;
    opacity: 0.8;
}

/* LIVE pill */
.adc-hero__live {
    --live-fs: 18.3;
    position: absolute;
    right: calc(24 * var(--u));
    top: calc(24 * var(--u));
    display: flex;
    align-items: center;
    gap: 0.83em;
    padding: 0.5em 1.17em;
    border-radius: 999px;
    color: var(--color-bg-white);
    background: var(--color-dark-graphite-55);
    -webkit-backdrop-filter: blur(calc(6 * var(--u)));
    backdrop-filter: blur(calc(6 * var(--u)));
    font-size: calc(var(--live-fs) * var(--u));
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.adc-hero__live-dot {
    width: 0.5em;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--chart-red);
    animation: adc-hero-live-dot 8s linear infinite;
}

.adc-hero__live-clock {
    display: grid;
}

.adc-hero__live-time {
    grid-area: 1 / 1;
    opacity: 0;
    animation: adc-hero-live-tick 8s step-end infinite;
}

.adc-hero__live-time:nth-child(1) { opacity: 1; animation-delay: -8s; }
.adc-hero__live-time:nth-child(2) { animation-delay: -7s; }
.adc-hero__live-time:nth-child(3) { animation-delay: -6s; }
.adc-hero__live-time:nth-child(4) { animation-delay: -5s; }
.adc-hero__live-time:nth-child(5) { animation-delay: -4s; }
.adc-hero__live-time:nth-child(6) { animation-delay: -3s; }
.adc-hero__live-time:nth-child(7) { animation-delay: -2s; }
.adc-hero__live-time:nth-child(8) { animation-delay: -1s; }

/* motion — one 8s loop: first half = speeding (car), second half = tailgating (truck) */
@keyframes adc-hero-box-neutral {
    0%, 46.25% {
        border-color: var(--color-bg-white-50);
        background-color: var(--color-bg-white-10);
        animation-timing-function: ease-in-out;
    }
    53.75%, 96.25% {
        border-color: var(--chart-red);
        background-color: color-mix(in srgb, var(--chart-red) 20%, transparent);
        animation-timing-function: ease-in-out;
    }
    100% {
        border-color: var(--color-bg-white-50);
        background-color: var(--color-bg-white-10);
    }
}

@keyframes adc-hero-box-alert {
    0%, 46.25% {
        border-color: var(--chart-red);
        background-color: color-mix(in srgb, var(--chart-red) 20%, transparent);
        animation-timing-function: ease-in-out;
    }
    53.75%, 96.25% {
        border-color: var(--color-bg-white-50);
        background-color: var(--color-bg-white-10);
        animation-timing-function: ease-in-out;
    }
    100% {
        border-color: var(--chart-red);
        background-color: color-mix(in srgb, var(--chart-red) 20%, transparent);
    }
}

@keyframes adc-hero-corner-neutral {
    0%, 46.25% {
        border-color: var(--color-bg-white);
        animation-timing-function: ease-in-out;
    }
    53.75%, 96.25% {
        border-color: var(--color-error);
        animation-timing-function: ease-in-out;
    }
    100% {
        border-color: var(--color-bg-white);
    }
}

@keyframes adc-hero-corner-alert {
    0%, 46.25% {
        border-color: var(--color-error);
        animation-timing-function: ease-in-out;
    }
    53.75%, 96.25% {
        border-color: var(--color-bg-white);
        animation-timing-function: ease-in-out;
    }
    100% {
        border-color: var(--color-error);
    }
}

@keyframes adc-hero-card-speeding {
    0%, 35.56% { opacity: 1; }
    42.39%, 46.25% { opacity: 0.8; animation-timing-function: ease-in-out; }
    53.75%, 96.25% { opacity: 0; animation-timing-function: ease-in-out; }
    100% { opacity: 1; }
}

@keyframes adc-hero-card-tailgating {
    0%, 46.25% { opacity: 0; animation-timing-function: ease-in-out; }
    53.75%, 59.73% { opacity: 1; }
    66.55%, 72.5% { opacity: 0.8; }
    78.1%, 87.5% { opacity: 1; }
    96.25% { opacity: 0.8; animation-timing-function: ease-in-out; }
    100% { opacity: 0; }
}

@keyframes adc-hero-live-dot {
    0% { opacity: 0.35; animation-timing-function: cubic-bezier(0.2, 1, 0.3, 1); }
    4.5% { opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    10.25% { opacity: 0.35; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    16% { opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    21.75% { opacity: 0.35; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    25%, 96.25% { opacity: 0.75; animation-timing-function: ease-in-out; }
    100% { opacity: 0.35; }
}

@keyframes adc-hero-live-tick {
    0% { opacity: 1; }
    12.5%, 100% { opacity: 0; }
}

@keyframes adc-hero-glow-top {
    0%, 50%, 100% { translate: 0 0; }
    25%, 75% { translate: calc(-18.1 * var(--u)) calc(10.9 * var(--u)); }
}

@keyframes adc-hero-glow-bottom {
    0%, 50%, 100% { translate: 0 0; }
    25%, 75% { translate: calc(14.5 * var(--u)) calc(-10.9 * var(--u)); }
}

/* Stacked layout + tablet visual (below 1280) */
@media (max-width: 1279px) {
    .adc-hero__inner {
        flex-direction: column;
        gap: 16px;
    }

    .adc-hero__content {
        flex: none;
        min-height: auto;
    }

    .adc-hero__visual {
        --fw: 770;
        --gs: 902;
        --u: calc(100cqh / 507);
        --sh: 507;
        --st: 0;
        --sr: 0;
        flex: none;
        min-height: 0;
        height: 507px;
    }

    .adc-hero__glow--top {
        right: calc((var(--fw) - 1484.7 - var(--gs)) * var(--u));
        top: calc(-641 * var(--u));
    }

    .adc-hero__glow--bottom {
        right: calc((var(--fw) - 101.3 - var(--gs)) * var(--u));
        top: calc(351.3 * var(--u));
    }

    .adc-hero__box--truck {
        right: 36.87%;
        top: 27.22%;
        width: 14%;
    }

    .adc-hero__box--car {
        right: 7.36%;
        top: 33.93%;
        width: 24.14%;
    }

    .adc-hero__live {
        left: auto;
        right: calc(25.5 * var(--u));
    }

    .adc-hero__card--speeding {
        right: calc(218.1 * var(--u));
        top: calc(304.2 * var(--u));
    }

    .adc-hero__card--tailgating {
        right: calc(421 * var(--u));
        top: calc(226.7 * var(--u));
        width: calc(93 * var(--u));
    }
}

/* Desktop design (1440): 48px between the hero cards and the logo strip. The strip is a shared
   component, so the extra 24px lives here and the other pages are untouched. Tablet already matches. */
@media (min-width: 1280px) {
    .adc-hero {
        padding-bottom: 48px;
    }
}

/* Tablet design (790): card 8px from the edges and 72px from the top (header is 68px),
   photo 10px from the edges. */
@media (min-width: 577px) and (max-width: 1024px) {
    .adc-hero {
        padding: 4px 8px 24px;
    }

    .adc-hero__visual {
        margin-inline: 2px;
    }
}

/* Desktop: design strokes are a gradient border, white -> white 40% */
@media (min-width: 1025px) {
    .adc-hero__breadcrumbs,
    .adc-hero__trust {
        position: relative;
        box-shadow: none;
    }

    .adc-hero__breadcrumbs::before,
    .adc-hero__trust::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--color-bg-white) 0%, var(--color-bg-white-40) 100%);
        -webkit-mask: linear-gradient(var(--color-bg-white) 0 0) content-box, linear-gradient(var(--color-bg-white) 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .adc-hero__content-inner {
        padding: 92px clamp(24px, 7.8vw, 60px);
    }

    .adc-hero__breadcrumbs {
        box-shadow: inset 0 0 0 1px var(--color-bg-white-10);
    }

    .adc-hero__title {
        max-width: 634px;
        font-size: clamp(40px, 7.3vw, 56px);
        line-height: 1.14;
        letter-spacing: -0.56px;
    }

    .adc-hero__description {
        max-width: 634px;
        font-size: 20px;
    }

    .adc-hero__trust {
        gap: 16px;
        box-shadow: inset 0 0 0 1px var(--color-bg-white-10);
    }

    .adc-hero__trust-text {
        white-space: normal;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .adc-hero {
        padding: 0 var(--container-padding-sm) 8px;
    }

    .adc-hero__inner {
        gap: 8px;
    }

    .adc-hero__content-inner {
        align-items: center;
        padding: 32px 15px;
        text-align: center;
    }

    .adc-hero__breadcrumbs {
        margin-bottom: 12px;
        padding: 6px 16px;
        font-size: 12px;
        line-height: 1.5;
    }

    .adc-hero__breadcrumbs span[aria-hidden="true"] {
        font-size: 10px;
        line-height: 1.4;
    }

    .adc-hero__title {
        margin-bottom: 12px;
        font-size: clamp(28px, 9.2vw, 36px);
        line-height: 1.12;
        letter-spacing: -0.36px;
    }

    .adc-hero__description {
        margin-bottom: 32px;
        font-size: 14px;
        line-height: 1.5;
        opacity: 0.78;
    }

    .adc-hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
        margin-bottom: 32px;
        padding-inline: 15px;
    }

    .adc-hero__button,
    .adc-hero__button--secondary {
        width: 100%;
        min-height: 52px;
        padding: 12px 32px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.4;
    }

    .adc-hero__button svg {
        width: 21px;
        height: 21px;
    }

    .adc-hero__trust {
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        text-align: left;
    }

    .adc-hero__trust-customers {
        gap: 8px;
    }

    .adc-hero__trust-avatars {
        width: auto;
        height: 19px;
        margin-right: -10px;
        clip-path: inset(0 10px 0 0); /* design shows 3 of the 4 avatars */
    }

    .adc-hero__trust-text,
    .adc-hero__trust-score {
        font-size: 12px;
        line-height: 1.5;
    }

    .adc-hero__trust-text {
        max-width: 104px;
    }

    .adc-hero__visual {
        --fw: 377;
        --gs: 498.3;
        --u: calc(100cqh / 280);
        --sh: 280;
        --sr: 13;
        height: 280px;
    }

    .adc-hero__visual .adc-hero__glow--top {
        right: calc((var(--fw) - 820 - var(--gs)) * var(--u));
        top: calc(-354 * var(--u));
    }

    .adc-hero__visual .adc-hero__glow--bottom {
        right: calc((var(--fw) - 56 - var(--gs)) * var(--u));
        top: calc(194 * var(--u));
    }

    .adc-hero__visual .adc-hero__box--truck {
        right: 36.11%;
        top: 26.43%;
        width: 13.99%;
    }

    .adc-hero__visual .adc-hero__box--car {
        right: 7.25%;
        top: 34.29%;
        width: 24.14%;
    }

    .adc-hero__visual .adc-hero__live {
        --live-fs: 10.1;
        left: auto;
        right: calc(14 * var(--u));
        top: calc(14 * var(--u));
    }

    .adc-hero__card--speeding {
        right: calc(106.8 * var(--u));
        top: calc(169 * var(--u));
        width: calc(92.2 * var(--u));
    }

    .adc-hero__card--tailgating {
        right: calc(215.7 * var(--u));
        top: calc(123 * var(--u));
        width: calc(51.3 * var(--u));
    }

}

@media (prefers-reduced-motion: reduce) {
    .adc-hero__bg-video {
        display: none;
    }

    .adc-hero__button {
        transition: none;
    }

    .adc-hero__glow,
    .adc-hero__box,
    .adc-hero__corner,
    .adc-hero__card,
    .adc-hero__live-dot,
    .adc-hero__live-time {
        animation: none;
    }
}