/* ======================================== */
/* hero slider                              */
/* ======================================== */

.hero {
    padding: 22px 0 34px;
}

.hero-frame {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 28px;

    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(125, 230, 210, 0.22), transparent 34%),
        linear-gradient(135deg, #1f5d55 0%, #123d36 52%, #081f1b 100%);

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.20),
        0 10px 24px rgba(0, 0, 0, 0.10);

    isolation: isolate;
    user-select: none;
    cursor: grab;
}

.hero-frame:active {
    cursor: grabbing;
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.16) 0%,
            transparent 26%,
            transparent 72%,
            rgba(255, 255, 255, 0.08) 100%
        ),
        radial-gradient(circle at 74% 50%, rgba(255, 255, 255, 0.12), transparent 34%);

    opacity: 0.75;
    mix-blend-mode: screen;
}

.hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;

    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);

    opacity: 0.25;
}

.hero-track {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    min-height: 520px;
    width: 100%;
    padding: 82px 76px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background-image:
        linear-gradient(
            90deg,
            rgba(2, 15, 13, 0.08) 0%,
            rgba(2, 15, 13, 0.20) 38%,
            rgba(2, 15, 13, 0.72) 100%
        ),
        var(--hero-bg);

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    transform: scale(1.05);
    transition:
        opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    content: attr(data-watermark);
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 1;

    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;

    color: rgba(255, 255, 255, 0.115);
    font-size: clamp(58px, 9vw, 126px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.hero-slide::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -170px;
    z-index: 1;

    width: 460px;
    height: 460px;
    border-radius: 50%;

    background:
        radial-gradient(circle, rgba(122, 231, 210, 0.22), rgba(122, 231, 210, 0.08) 42%, transparent 70%);

    filter: blur(3px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 6;

    width: min(465px, 100%);
    color: #ffffff;
    text-align: right;

    transform: translateY(20px);
    opacity: 0;
}

.hero-slide.is-active .hero-content {
    animation: heroContentReveal 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-content::before {
    content: "";
    display: block;

    width: 72px;
    height: 3px;
    margin-bottom: 18px;

    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff, #7ee7d4, transparent);
    box-shadow: 0 0 18px rgba(126, 231, 212, 0.55);
}

.hero-title {
    margin: 0;

    color: #ffffff;
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: 0;

    text-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.04);
}

.hero-subtitle {
    max-width: 430px;
    margin: 14px 0 30px;

    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 500;
    line-height: 2;
}

/* ======================================== */
/* button                                   */
/* ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    text-decoration: none;
    cursor: pointer;

    font-family: inherit;
    font-weight: 900;
    line-height: 1;

    transition:
        transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        color 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-pill {
    min-height: 50px;
    padding: 0 24px;

    border-radius: 999px;
    background: #ffffff;
    color: #101614;

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.btn-pill:hover {
    transform: translateY(-3px);
    background: #effffb;
    color: #0e4038;

    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.26),
        0 0 0 6px rgba(255, 255, 255, 0.13);
}

.btn-pill:active {
    transform: translateY(-1px);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;
    background: rgba(15, 43, 38, 0.09);
    color: inherit;

    font-size: 15px;
    font-weight: 900;

    transition:
        transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-pill:hover .btn-arrow {
    transform: translateX(-5px);
    background: rgba(15, 43, 38, 0.14);
}

/* ======================================== */
/* dots                                     */
/* ======================================== */

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.dot {
    width: 9px;
    height: 9px;

    padding: 0;
    border: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;

    transition:
        width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dot:hover {
    transform: scale(1.18);
    background: rgba(255, 255, 255, 0.74);
}

.dot.is-active {
    width: 30px;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.15);
}

/* ======================================== */
/* Animation                                */
/* ======================================== */

@keyframes heroContentReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ======================================== */
/* Responsive                               */
/* ======================================== */

@media (max-width: 992px) {
    .hero-frame,
    .hero-track,
    .hero-slide {
        min-height: 460px;
    }

    .hero-slide {
        padding: 70px 48px;
    }

    .hero-slide::before {
        font-size: clamp(46px, 10vw, 96px);
        letter-spacing: 6px;
    }
}

@media (max-width: 768px) {
    .hero-frame,
    .hero-track,
    .hero-slide {
        min-height: 420px;
    }

    .hero-slide {
        padding: 62px 28px;
        background-position: center center;
    }

    .hero-slide::before {
        top: 42%;
        font-size: clamp(38px, 12vw, 72px);
        letter-spacing: 4px;
    }

    .hero-title {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 14px 0 26px;
    }

    .hero-frame,
    .hero-track,
    .hero-slide {
        min-height: 390px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 56px 20px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .btn-pill {
        min-height: 46px;
        padding: 0 20px;
    }
}

.hero-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 40% center;
}
