:root {
    --hero-stage-height: clamp(760px, 100svh, 920px);
}

#main-content {
    position: relative;
}

.hero {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: var(--hero-stage-height);
    min-height: var(--hero-stage-height);
    overflow: hidden;
    color: #fff;
    background: var(--color-ink-950);
    padding: calc(var(--header-height) + 46px) 0 112px;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
}

.hero::before {
    z-index: 1;
    opacity: 1;
    background:
        linear-gradient(90deg, rgba(3, 21, 43, 0.02) 0%, rgba(3, 21, 43, 0.10) 40%, rgba(3, 21, 43, 0.86) 72%, rgba(3, 21, 43, 0.96) 100%),
        linear-gradient(180deg, rgba(3, 21, 43, 0.12) 0%, rgba(3, 21, 43, 0.02) 52%, rgba(3, 21, 43, 0.68) 100%);
    background-size: auto;
    mask-image: none;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 210px;
    background: linear-gradient(180deg, transparent, rgba(3, 21, 43, 0.62));
    pointer-events: none;
}

.hero__ambient,
.hero-visual {
    display: none;
}

.hero__grid {
    position: relative;
    z-index: 2;
    width: var(--shell-wide);
    min-height: calc(var(--hero-stage-height) - var(--header-height) - 215px);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: end;
    direction: ltr;
}

.hero-copy {
    width: min(100%, 600px);
    max-width: 600px;
    margin: -14px 0 0;
    padding: 0;
    direction: rtl;
    text-shadow: 0 3px 26px rgba(0, 0, 0, 0.34);
}

html[dir="ltr"] .hero-copy {
    direction: ltr;
}

.eyebrow {
    padding: 8px 13px;
    gap: 9px;
    font-size: 0.78rem;
}

.eyebrow--dark {
    color: rgba(238, 248, 255, 0.92);
    border-color: rgba(38, 214, 255, 0.24);
    background: rgba(4, 31, 60, 0.54);
    backdrop-filter: blur(10px);
}

.hero-title {
    max-width: 600px;
    margin: 22px 0 18px;
    font-size: clamp(2.75rem, 4vw, 4.15rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.hero-title__accent {
    margin-top: 5px;
    background: linear-gradient(90deg, #61e2ff 0%, #1fb6ff 46%, #1687ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    max-width: 570px;
    color: rgba(232, 244, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.85;
}

.hero-actions {
    margin-top: 28px;
    gap: 11px;
}

.hero-actions .button {
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.hero-signals {
    position: absolute;
    z-index: 3;
    inset: auto 50% 34px auto;
    width: var(--shell-wide);
    margin: 0;
    padding: 10px;
    gap: 7px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(4, 24, 49, 0.84), rgba(7, 43, 79, 0.66));
    border-color: rgba(38, 214, 255, 0.16);
    box-shadow: 0 20px 58px rgba(0, 10, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px) saturate(135%);
    transform: translateX(50%);
}

.hero-signal {
    padding: 11px 13px;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.025);
    background: rgba(255, 255, 255, 0.018);
}

.hero-signal__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
    font-size: 0.62rem;
}

.hero-signal h2 {
    font-size: 0.82rem;
}

.hero-signal p {
    font-size: 0.68rem;
    line-height: 1.45;
}

.content-shell {
    position: relative;
    z-index: var(--z-content);
    margin-top: calc(var(--hero-stage-height) - 36px);
    border-radius: 44px 44px 0 0;
    box-shadow: 0 -28px 76px rgba(0, 18, 44, 0.28);
}

@media (max-width: 1100px) {
    :root {
        --hero-stage-height: clamp(760px, 100svh, 880px);
    }

    .hero-copy {
        width: min(100%, 540px);
        max-width: 540px;
    }

    .hero-title {
        max-width: 540px;
        font-size: clamp(2.55rem, 4.5vw, 3.65rem);
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(3, 21, 43, 0.10) 0%, rgba(3, 21, 43, 0.22) 40%, rgba(3, 21, 43, 0.90) 76%, rgba(3, 21, 43, 0.97) 100%),
            linear-gradient(180deg, rgba(3, 21, 43, 0.14), rgba(3, 21, 43, 0.70));
    }
}

@media (max-width: 820px) {
    :root {
        --hero-stage-height: 850px;
    }

    .hero {
        padding: calc(var(--header-height) + 34px) 0 118px;
    }

    .hero__backdrop {
        object-position: 37% center;
    }

    .hero::before {
        background:
            linear-gradient(180deg, rgba(3, 21, 43, 0.50) 0%, rgba(3, 21, 43, 0.70) 48%, rgba(3, 21, 43, 0.94) 100%),
            linear-gradient(90deg, rgba(3, 21, 43, 0.20), rgba(3, 21, 43, 0.64));
    }

    .hero__grid {
        min-height: 500px;
        align-items: center;
    }

    .hero-copy {
        width: 100%;
        max-width: 580px;
        margin: 0;
    }

    .hero-title {
        max-width: 580px;
        font-size: clamp(2.35rem, 8vw, 3.3rem);
    }

    .hero-signals {
        bottom: 26px;
        grid-template-columns: repeat(2, 1fr);
    }

    .content-shell {
        margin-top: calc(var(--hero-stage-height) - 28px);
        border-radius: 34px 34px 0 0;
    }
}

@media (max-width: 560px) {
    :root {
        --hero-stage-height: 810px;
    }

    .hero {
        padding-top: calc(var(--header-height) + 26px);
    }

    .hero__backdrop {
        object-position: 31% center;
    }

    .hero__grid {
        min-height: 470px;
    }

    .hero-title {
        margin-top: 18px;
        font-size: clamp(2.05rem, 10.5vw, 2.8rem);
        line-height: 1.16;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .hero-actions {
        margin-top: 22px;
        align-items: stretch;
        flex-direction: row;
    }

    .hero-actions .button {
        width: auto;
        flex: 1 1 0;
        padding-inline: 12px;
        font-size: 0.82rem;
    }

    .hero-signals {
        bottom: 22px;
        grid-template-columns: repeat(2, 1fr);
        padding: 8px;
    }

    .hero-signal {
        padding: 9px;
    }

    .hero-signal p {
        display: none;
    }

    .content-shell {
        margin-top: calc(var(--hero-stage-height) - 22px);
        border-radius: 28px 28px 0 0;
    }
}
