/* hero */
.hero-section {
    position: relative;
    background: #0a1124;
    padding: 156px 0 90px;
    overflow: hidden;
}
.hero-section > .container {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: clamp(2.25rem, 4.4vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 34px;
}
.hero-word {
    display: block;
    min-height: 1.08em;
    white-space: nowrap;
    color: #4da3ff;
}

/* slider card */
.hero-card-wrap {
    position: relative;
    margin: 0 22px;
}
.hero-swiper {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
}
.hero-card {
    display: grid;
    grid-template-columns: 42% 58%;
    height: 230px;
    color: #fff;
    text-decoration: none;
}
.hero-card:hover {
    color: #fff;
}
.hero-media {
    position: relative;
    overflow: hidden;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}
.hero-tag {
    align-self: flex-start;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9cc9ff;
    background: rgba(77, 163, 255, .14);
    border-radius: 20px;
    padding: 6px 11px;
}
.hero-card-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.hero-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #b6c0d3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-more {
    font-size: 14px;
    font-weight: 600;
    color: #4da3ff;
}

/* text reveal */
.hero-line {
    display: block;
    overflow: hidden;
}
.hero-body > .hero-line:nth-child(2) { --i: 1; }
.hero-body > .hero-line:nth-child(3) { --i: 2; }
.hero-body > .hero-line:nth-child(4) { --i: 3; }
.hero-line > * {
    display: block;
    transform: translateY(110%);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(280ms + var(--i, 0) * 80ms);
}
.hero-line > .hero-tag {
    display: inline-block;
}
.hero-line > .hero-desc {
    display: -webkit-box;
}
.hero-swiper:not(.swiper-initialized) .swiper-slide:first-child .hero-line > *,
.hero-swiper .swiper-slide-active .hero-line > * {
    transform: none;
}
.hero-swiper .swiper-slide.is-leaving .hero-line > * {
    transform: translateY(-110%);
    transition-duration: .3s;
    transition-timing-function: cubic-bezier(.55, 0, .68, .53);
    transition-delay: calc(var(--i, 0) * 40ms);
}

/* liquid canvas */
.hero-liquid {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}
.hero-liquid.is-playing {
    opacity: 1;
}
/* without webgl */
.hero-no-liquid .swiper-slide.is-entering .hero-media img {
    animation: heroWipe .9s cubic-bezier(.22, 1, .36, 1);
}
@keyframes heroWipe {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: #0a1124;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .3s;
}
.hero-nav:hover {
    transform: scale(1.08);
}
.hero-prev {
    left: -22px;
}
.hero-next {
    right: -22px;
}
.hero-pagination {
    display: flex;
    gap: 8px;
    margin: 18px 22px 0;
}
.hero-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    margin: 0 !important;
    background: rgba(255, 255, 255, .3);
    opacity: 1;
    transition: width .3s, background .3s;
}
.hero-pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: #fff;
}

/* buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 22px 0;
}
.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
}
.hero-btn-ghost:hover {
    background: #fff;
    color: #0a1124;
}

/* particles */
.hero-particles {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
    mask-image: linear-gradient(to right, transparent 0, #000 30%);
}

/* circle visual */
.hero-visual {
    position: relative;
    height: 520px;
}
.hero-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    padding: 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
}
.hero-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .05);
    display: block;
}

/* responsive */
@media (max-width: 1199px) {
    .hero-section { padding-top: 145px; }
    .hero-visual { height: 470px; }
    .hero-orb { width: 400px; height: 400px; }
}
@media (min-width: 992px) and (max-height: 820px) {
    .hero-title { font-size: clamp(2.25rem, min(4.4vw, 8.6vh), 4.25rem); margin-bottom: 24px; }
    .hero-card { height: 210px; }
    .hero-body { padding: 18px 24px; gap: 8px; }
    .hero-card-title { font-size: 18px; }
    .hero-desc { font-size: 14px; }
    .hero-pagination { margin-top: 14px; }
    .hero-actions { margin-top: 24px; }
    .hero-visual { height: 440px; }
    .hero-orb { width: 400px; height: 400px; }
}
@media (max-width: 991px) {
    .hero-section { padding: 110px 0 60px; }
    .hero-particles {
        width: 100%;
        bottom: auto;
        height: 470px;
        -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    }
    .hero-visual { height: 330px; margin-bottom: 26px; }
    .hero-orb { width: 270px; height: 270px; padding: 14px; }
    .hero-title { margin-bottom: 24px; }
    .hero-card-wrap, .hero-pagination { margin-left: 0; margin-right: 0; }
    .hero-nav { display: none; }
    .hero-pagination { justify-content: center; }
    .hero-actions { margin: 26px 0 0; }
    .hero-actions .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 575px) {
    .hero-particles { height: 420px; }
    .hero-visual { height: 280px; }
    .hero-orb { width: 230px; height: 230px; padding: 12px; }
    .hero-card { grid-template-columns: 40% 60%; height: 190px; }
    .hero-liquid { width: 40%; }
    .hero-body { padding: 14px 16px; gap: 7px; }
    .hero-card-title { font-size: 16px; }
    .hero-desc { font-size: 13px; }
    .hero-tag { font-size: 11px; padding: 5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-line > *,
    .hero-swiper .swiper-slide.is-leaving .hero-line > * {
        transition: none;
    }
    .hero-no-liquid .swiper-slide.is-entering .hero-media img {
        animation: none;
    }
}
