/**
 * @license MIT, https://opensource.org/license/MIT
 */

.hero {
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.cms-content > .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--pico-muted-border-color) 1px, #00000000 1px),
        linear-gradient(90deg, var(--pico-muted-border-color) 1px, #00000000 1px);
    background-size: 4rem 4rem;
    background-repeat: repeat;
    background-position: center top;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000000 0%, #00000000 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000000 0%, #00000000 75%);
}

.cms-content > .hero::after {
    content: "";
    position: absolute;
    top: -12rem;
    left: 50%;
    z-index: -1;
    width: min(64rem, 120%);
    height: 36rem;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, #6366F14D 0%, #A855F726 40%, #00000000 70%);
    filter: blur(2rem);
    pointer-events: none;
}

.hero .background {
    position: absolute;
    inset: 0;
    z-index: -3;
    margin: 0;
}

.hero .background img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    opacity: 0.35;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero .background.zoom img {
        animation: hero-zoom 10s ease-in-out infinite alternate;
    }

    .hero .first > * {
        animation: hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero .first > :nth-child(2) { animation-delay: 0.08s; }
    .hero .first > :nth-child(3) { animation-delay: 0.16s; }
    .hero .first > :nth-child(4) { animation-delay: 0.24s; }

    .hero .second {
        animation: hero-rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.hero .first {
    max-width: 52rem;
    margin: auto;
    text-align: center;
}

.hero .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.3125rem 0.875rem 0.3125rem 0.625rem;
    color: var(--pico-color);
    font-size: calc(var(--pico-font-size) * 0.8);
    font-weight: 500;
    background-color: color-mix(in srgb, var(--pico-card-background-color) 70%, #00000000);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 999px;
    box-shadow: 0 1px 2px #09090B0D;
}

.hero .subtitle::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #A855F7);
    box-shadow: 0 0 0 3px #6366F133;
}

.hero h1 {
    margin: 0 auto 1.5rem;
    color: var(--pico-h1-color);
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, var(--pico-contrast) 30%, var(--pico-muted-color) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: #00000000;
}

.hero h1 em {
    -webkit-text-fill-color: #00000000;
}

.hero .cms-text,
.hero p {
    max-width: 38rem;
    margin-inline: auto;
    color: var(--pico-muted-color);
    font-size: calc(var(--pico-font-size) * 1.1);
    line-height: 1.6;
}

.hero .cms-text p:last-child {
    margin-bottom: 0;
}

.hero .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0 0;
}

.hero .btn {
    margin: 0;
    padding: 0.8125rem 1.5rem;
    font-size: calc(var(--pico-font-size) * 0.95);
}

.hero .second {
    position: relative;
    display: block;
    width: 100%;
    max-width: 68rem;
    margin: 4rem auto 0;
}

.hero .second::before {
    content: "";
    position: absolute;
    inset: 10% 5% -5%;
    z-index: -1;
    background: linear-gradient(90deg, #6366F166, #A855F766, #06B6D466);
    border-radius: 50%;
    filter: blur(4rem);
    opacity: 0.6;
}

.hero .second picture,
.hero .second video {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5rem;
    background-color: color-mix(in srgb, var(--pico-card-background-color) 60%, #00000000);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: calc(var(--pico-border-radius) * 1.75);
    box-shadow: 0 2rem 4rem -1.5rem #09090B40;
}

.hero .second img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
}

.hero .second.multiple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    gap: 1rem;
}

.hero .second.multiple.swiffy-slider {
    --swiffy-slider-item-ratio: 16 / 10;
    display: block;
}

.hero .second.multiple picture,
.hero .second.multiple video {
    box-sizing: border-box;
    height: 100%;
}

.hero .second.multiple img,
.hero .second.multiple video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

@media screen and (min-width: 768px) {
    .hero .container {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }

    .hero .second {
        margin-top: 5rem;
    }
}
