.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(28px, 5vw, 72px);
    min-height: 800px;
    padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
    color: var(--white);
    background: var(--graphite);
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: -16% 0;
    z-index: 0;
    background-image: var(--hero-image, url("../img/landing-page.webp"));
    background-position: var(--hero-bg-x, center) center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(16, 20, 27, 0.94), rgba(16, 20, 27, 0.78), rgba(16, 20, 27, 0.35));
    pointer-events: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    contain: paint;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
}

.hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 980px) {
        .hero-video {
            inset: auto;
            top: 50%;
            left: 50%;
            width: auto;
            height: 100%;
            min-width: 100%;
            min-height: 100%;
            transform: translate3d(-50%, -50%, 0);
            -webkit-transform: translate3d(-50%, -50%, 0);
        }
    }
}

.hero > *:not(.hero-media),
.page-hero > * {
    position: relative;
    z-index: 2;
}

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

.hero-copy { align-self: center; max-width: 850px; }
.hero .eyebrow, .cta-band .eyebrow { color: #74a8ff; }

.hero h1,
.page-hero h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    font-weight: 900;
}

.hero p { max-width: 720px; font-size: 20px; font-weight: 300; color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-actions .btn-secondary {
    color: var(--white);
    background: transparent;
    border-color: var(--line);
}

.hero-actions .btn-secondary:hover {
    color: var(--white);
    background: transparent;
    border-color: var(--white);
}

.online-box {
    align-self: center;
    padding: 10px;
}

.section-label {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.86;
    text-align: center;
}

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

.online-feature-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    padding: 14px;
    border: 1px solid;
    border-color: var(--line);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
}

.online-feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.online-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.online-feature-card h3 {
    margin: 0 0 6px;
    color: var(--white);
    font-size: 17px;
    line-height: 1.25;
}

.online-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.45;
}

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: clamp(118px, 12vw, 154px);
    padding-bottom: clamp(70px, 8vw, 110px);
    color: var(--white);
    background: var(--graphite);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(16, 20, 27, 0.94), rgba(16, 20, 27, 0.74), rgba(16, 20, 27, 0.38));
    pointer-events: none;
}

.page-hero h1 {
    max-width: 1080px;
    font-size: clamp(44px, 5.8vw, 78px);
}

.page-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(18px, 1.5vw, 22px);
}

.hero-scroll-cue {
    position: absolute;
    bottom: clamp(24px, 4vh, 46px);
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--white);
    background: rgba(7, 17, 31, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: 1;
    transform: translateX(-50%);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    animation: hero-scroll-cue-bounce 1.6s ease-in-out infinite;
}

/* Keep the cue above iOS Safari's expanding bottom browser controls. */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .hero-scroll-cue {
            bottom: max(
                clamp(24px, 4vh, 46px),
                calc(24px + env(safe-area-inset-bottom, 0px) + 100lvh - 100dvh)
            );
        }
    }
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
    color: var(--white);
    background: rgba(31, 111, 235, 0.56);
    border-color: var(--white);
    outline: none;
}

.hero-scroll-cue svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-scroll-cue.is-hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 12px);
    animation: none;
}

@keyframes hero-scroll-cue-bounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 9px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-cue {
        animation: none;
    }
}
