:root {
    --header-height: 112px;
}

@media (max-width: 1023px) {
    :root {
        --header-height: 120px;
    }
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 2rem;
}

@media (min-width: 768px) {
    .hero-container {
        padding-inline: 9rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding-inline: 9rem;
    }
}

@media (min-width: 1280px) {
    .hero-container {
        padding-inline: 8rem;
    }
}

@media (min-width: 1536px) {
    .hero-container {
        padding-inline: 2.5rem;
    }
}

.hero-height {
    min-height: calc(100svh - var(--header-height));
}

.hero-content-layout {
    --hero-card-width: clamp(17rem, 86vw, 28rem);
    --hero-control-gap: 0rem;

    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding-block: clamp(1.5rem, 6svh, 4rem);
}

.hero-media {
    object-position: var(--hero-object-base, center);
}

.hero-copy {
    box-sizing: border-box;
    padding-inline: 0;
    width: min(var(--hero-card-width), calc(100% - var(--hero-control-gap)));
}

.hero-copy-panel {
    box-sizing: border-box;
    width: 100%;
}

.hero-copy-panel--glass_light,
.hero-copy-panel--glass_dark,
.hero-copy-panel--soft_light,
.hero-copy-panel--soft_dark {
    border-radius: 1rem;
    padding: clamp(1rem, 2.2vw, 1.75rem);
}

.hero-copy-panel--glass_light {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
}

.hero-copy-panel--glass_dark {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.44);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

.hero-copy-panel--soft_light {
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.hero-copy-panel--soft_dark {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.hero-copy-panel:not(.hero-copy-panel--none) .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-text-variant {
    display: none;
}

.hero-text-variant-mobile {
    display: block;
}

.hero-title-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title-line {
    display: block;
    max-width: 100%;
    white-space: normal;
}

.hero-copy-panel:not(.hero-copy-panel--none) .hero-title-line {
    overflow-wrap: normal;
    white-space: normal;
    word-break: normal;
}

@media (min-width: 768px) {
    .hero-content-layout {
        --hero-card-width: clamp(26rem, 54vw, 40rem);
        --hero-control-gap: 9rem;
    }

    .hero-actions {
        flex-flow: row wrap;
        align-items: center;
    }

    .hero-content-layout[data-content-position-tablet^="left_"] {
        justify-content: flex-start;
    }

    .hero-content-layout[data-content-position-tablet^="center_"] {
        justify-content: center;
    }

    .hero-content-layout[data-content-position-tablet^="right_"] {
        justify-content: flex-end;
    }

    .hero-content-layout[data-content-position-tablet$="_top"] {
        align-items: flex-start;
    }

    .hero-content-layout[data-content-position-tablet$="_center"] {
        align-items: center;
    }

    .hero-content-layout[data-content-position-tablet$="_bottom"] {
        align-items: flex-end;
    }

    .hero-content-layout[data-content-position-tablet^="left_"] .hero-copy {
        padding-left: 4.5rem;
    }

    .hero-content-layout[data-content-position-tablet^="right_"] .hero-copy {
        padding-right: 4.5rem;
    }

    .hero-text-variant-mobile {
        display: none;
    }

    .hero-text-variant-tablet {
        display: block;
    }

    .hero-title-line {
        max-width: none;
        white-space: nowrap;
    }

    .hero-copy-panel:not(.hero-copy-panel--none) .hero-title-line {
        white-space: normal;
    }

    .hero-copy-panel:not(.hero-copy-panel--none) .hero-title {
        font-size: clamp(2.5rem, 5.2vw, 4rem);
    }

    .hero-media {
        object-position: var(--hero-object-md, var(--hero-object-base, center));
    }
}

@media (min-width: 1024px) {
    .hero-content-layout {
        --hero-card-width: clamp(30rem, 46vw, 44rem);
        --hero-control-gap: 10rem;
    }

    .hero-content-layout[data-content-position-desktop^="left_"] {
        justify-content: flex-start;
    }

    .hero-content-layout[data-content-position-desktop^="center_"] {
        justify-content: center;
    }

    .hero-content-layout[data-content-position-desktop^="right_"] {
        justify-content: flex-end;
    }

    .hero-content-layout[data-content-position-desktop$="_top"] {
        align-items: flex-start;
    }

    .hero-content-layout[data-content-position-desktop$="_center"] {
        align-items: center;
    }

    .hero-content-layout[data-content-position-desktop$="_bottom"] {
        align-items: flex-end;
    }

    .hero-content-layout[data-content-position-desktop^="left_"] .hero-copy {
        padding-left: 5rem;
    }

    .hero-content-layout[data-content-position-desktop^="right_"] .hero-copy {
        padding-right: 5rem;
    }

    .hero-text-variant-tablet {
        display: none;
    }

    .hero-text-variant-desktop {
        display: block;
    }

    .hero-media {
        object-position: var(--hero-object-lg, var(--hero-object-md, center));
    }
}

@media (min-width: 1536px) {
    .hero-content-layout {
        --hero-card-width: clamp(32rem, 42vw, 46rem);
        --hero-control-gap: 11rem;
    }

    .hero-content-layout[data-content-position-desktop^="left_"] .hero-copy {
        padding-left: 5.5rem;
    }

    .hero-content-layout[data-content-position-desktop^="right_"] .hero-copy {
        padding-right: 5.5rem;
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    .hero-content-layout {
        --hero-card-width: clamp(20rem, 40vw, 28rem);

        align-items: center;
        justify-content: center;
        padding-block: 0.75rem;
    }

    .hero-content-layout[data-content-position-tablet^="left_"],
    .hero-content-layout[data-content-position-tablet^="center_"],
    .hero-content-layout[data-content-position-tablet^="right_"],
    .hero-content-layout[data-content-position-desktop^="left_"],
    .hero-content-layout[data-content-position-desktop^="center_"],
    .hero-content-layout[data-content-position-desktop^="right_"] {
        justify-content: center;
    }

    .hero-content-layout[data-content-position-tablet$="_top"],
    .hero-content-layout[data-content-position-tablet$="_center"],
    .hero-content-layout[data-content-position-tablet$="_bottom"],
    .hero-content-layout[data-content-position-desktop$="_top"],
    .hero-content-layout[data-content-position-desktop$="_center"],
    .hero-content-layout[data-content-position-desktop$="_bottom"] {
        align-items: center;
    }

    .hero-content-layout[data-content-position-tablet^="left_"] .hero-copy,
    .hero-content-layout[data-content-position-tablet^="right_"] .hero-copy,
    .hero-content-layout[data-content-position-desktop^="left_"] .hero-copy,
    .hero-content-layout[data-content-position-desktop^="right_"] .hero-copy {
        padding-inline: 0;
    }

    .hero-copy-panel--glass_light,
    .hero-copy-panel--glass_dark,
    .hero-copy-panel--soft_light,
    .hero-copy-panel--soft_dark {
        border-radius: 0.875rem;
        padding: 0.9rem 1.35rem;
    }

    .hero-copy-panel:not(.hero-copy-panel--none) .hero-title {
        font-size: clamp(1.7rem, 3.2vw, 2.25rem);
        line-height: 0.96;
    }

    .hero-text-variant-desktop,
    .hero-text-variant-tablet,
    .hero-description,
    .hero-secondary-action {
        display: none;
    }

    .hero-text-variant-mobile {
        display: block;
    }

    .hero-description.hero-text-variant-mobile {
        display: none;
    }

    .hero-actions {
        gap: 0.65rem;
        margin-top: 1rem;
    }

    .hero-actions .btn {
        height: 2.75rem;
        min-height: 2.75rem;
    }

    .hero-secondary-action {
        height: 2.75rem;
        min-height: 2.75rem;
    }
}

@media (orientation: landscape) and (max-height: 430px) {
    .hero-content-layout {
        --hero-card-width: clamp(18rem, 36vw, 24rem);

        padding-block: 0.5rem;
    }

    .hero-copy-panel--glass_light,
    .hero-copy-panel--glass_dark,
    .hero-copy-panel--soft_light,
    .hero-copy-panel--soft_dark {
        padding: 0.8rem 1.2rem;
    }

    .hero-copy-panel:not(.hero-copy-panel--none) .hero-title {
        font-size: clamp(1.55rem, 3vw, 2rem);
    }

    .hero-actions {
        margin-top: 0.9rem;
    }

    .hero-actions .btn,
    .hero-actions a {
        height: 2.5rem;
        min-height: 2.5rem;
    }
}

[data-hero-carousel] {
    touch-action: pan-y;
}

.hero-slide {
    display: block;
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 1;
    pointer-events: none;
    transform: translateX(100%);
    transition: none;
    will-change: transform;
    z-index: 1;
}

.hero-slide--placeholder {
    background: #dff5fb;
}

.hero-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: none;
    z-index: 1;
}

.hero-slide.is-moving {
    visibility: visible;
    transition: transform 760ms cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-bottom-fade {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    z-index: 20;
    height: clamp(5rem, 13svh, 9rem);
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.14) 38%,
        rgba(255, 255, 255, 0.52) 72%,
        rgba(255, 255, 255, 0.88) 100%
    );
}

.section-top-fade,
.section-bottom-fade {
    position: absolute;
    inset-inline: 0;
    z-index: 1;
    height: clamp(5rem, 13svh, 9rem);
    pointer-events: none;
}

.section-top-fade {
    top: -1px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.52) 28%,
        rgba(255, 255, 255, 0.14) 62%,
        rgba(255, 255, 255, 0) 100%
    );
}

.section-bottom-fade {
    bottom: -1px;
    height: clamp(7rem, 18svh, 12rem);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.16) 28%,
        rgba(255, 255, 255, 0.62) 66%,
        rgba(255, 255, 255, 0.96) 100%
    );
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 24%,
        rgba(0, 0, 0, 1) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 24%,
        rgba(0, 0, 0, 1) 100%
    );
}

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

.hero-dot {
    width: 5px;
    height: 5px;
    border: 0;
    border-radius: 9999px;
    cursor: pointer;
    transition:
        width 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

.hero-dot.is-active {
    width: 16px;
}

.hero-dots[data-controls-theme="light"] .hero-dot {
    background: rgba(255, 255, 255, 0.65);
}

.hero-dots[data-controls-theme="light"] .hero-dot.is-active {
    background: #ffffff;
}

.hero-dots[data-controls-theme="dark"] .hero-dot {
    background: #cbd5e1;
}

.hero-dots[data-controls-theme="dark"] .hero-dot.is-active {
    background: #020617;
}

.hero-dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.dev-section {
    min-height: 320px;
    border: 1px dashed rgba(15, 23, 42, 0.25);
    background:
        linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
}

.dev-label {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(15, 23, 42);
}
