/* 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;
    }
}

/* hero v02: full-width peek carousel, layered on hero.css */
.hero-peek .hero-particles {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* tabs */
.hero-peek-tab {
    position: relative;
    color: rgba(255, 255, 255, .55);
    transition: color .3s;
}
.hero-peek-tab:hover,
.hero-peek-tab[aria-current="true"] {
    color: #fff;
}
.hero-peek-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #4da3ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.hero-peek-tab[aria-current="true"]::after {
    transform: scaleX(1);
}

/* glass arrows */
.hero-peek-arrow {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color .3s, border-color .3s, transform .3s;
}
.hero-peek-arrow:hover {
    background-color: rgba(77, 163, 255, .22);
    border-color: rgba(77, 163, 255, .6) !important;
    transform: translateY(-2px);
}

/* active card */
.hero-peek-main {
    flex: 0 0 78%;
    min-width: 0;
}
.hero-peek .hero-card {
    grid-template-columns: 50% 50%;
    height: 280px;
}
.hero-peek .hero-body {
    padding: 28px 34px;
}
.hero-peek .hero-card-title {
    font-size: 24px;
}
.hero-peek .hero-liquid {
    width: 50%;
}

/* next slide */
.hero-peek-next-card {
    flex: 1 1 auto;
    border-radius: 16px;
}
.hero-peek-next-card img {
    transition: opacity .4s, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.hero-peek-next-card:hover img {
    opacity: .65;
    transform: scale(1.04);
}

/* autoplay bar */
.hero-peek-progress span {
    width: 0;
}

/* responsive */
/* 14-inch laptops: pull everything into the first screen, logo still clear */
@media (min-width: 992px) and (max-height: 820px) {
    .hero-peek { padding-top: 132px; }
    .hero-peek .hero-title { font-size: clamp(2.25rem, min(4.4vw, 7.2vh), 4.25rem); }
    .hero-peek-head { margin-bottom: 22px !important; }
    .hero-peek-bar { margin-bottom: 16px !important; }
    .hero-peek .hero-card { height: 220px; }
    .hero-peek .hero-body { padding: 20px 28px; }
    .hero-peek .hero-card-title { font-size: 20px; }
    .hero-peek-progress { margin-top: 14px !important; }
}
@media (min-width: 992px) and (max-height: 680px) {
    .hero-peek .hero-card { height: 200px; }
}
@media (max-width: 991px) {
    .hero-peek .hero-particles {
        height: 100%;
        bottom: 0;
    }
    .hero-peek-main { flex-basis: 72%; }
    .hero-peek .hero-card { height: 250px; }
    .hero-peek .hero-body { padding: 22px 24px; }
    .hero-peek .hero-card-title { font-size: 20px; }
}
@media (max-width: 767px) {
    .hero-peek-main { flex-basis: 100%; }
    .hero-peek .hero-card { grid-template-columns: 40% 60%; height: 210px; }
    .hero-peek .hero-liquid { width: 40%; }
    .hero-peek .hero-body { padding: 16px 18px; gap: 8px; }
    .hero-peek .hero-card-title { font-size: 17px; }
}
/* short phones such as iPhone SE */
@media (max-width: 767px) and (max-height: 640px) {
    .hero-peek-head { margin-bottom: 18px !important; }
    .hero-peek-bar { margin-bottom: 14px !important; }
    .hero-peek .hero-card { height: 190px; }
    .hero-peek-progress { margin-top: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-peek-tab::after,
    .hero-peek-arrow,
    .hero-peek-next-card img {
        transition: none;
    }
    .hero-peek-progress {
        display: none !important;
    }
}

/* homepage hero: brain visual and heading row, layered on hero-peek.css */
.hero-peek .hero-title {
    font-size: clamp(2.75rem, min(4.9vw, 9vh), 4.5rem);
}
.home-hero-orb {
    position: relative;
    flex: 0 0 auto;
    width: 170px;
    height: 170px;
    padding: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
}
.home-hero-orb img {
    object-position: 50% 40%;
}
.home-hero-orb::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(rgba(77, 163, 255, 0) 0deg, rgba(77, 163, 255, .35) 70deg, #4da3ff 120deg, rgba(77, 163, 255, .35) 170deg, rgba(77, 163, 255, 0) 240deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    animation: home-hero-flow 14s linear infinite;
}
@keyframes home-hero-flow {
    to { transform: rotate(360deg); }
}

/* one line from tablet up */
@media (min-width: 768px) {
    .home-hero-orb { width: 85px; height: 85px; padding: 5px; }
    .hero-peek .hero-title { white-space: nowrap; }
    .hero-peek .hero-word { display: inline; }
}
@media (min-width: 1200px) {
    .home-hero-orb { width: 120px; height: 120px; padding: 7px; }
}
@media (min-width: 992px) and (max-height: 820px) {
    .home-hero-orb { width: 100px; height: 100px; padding: 6px; }
}
@media (max-width: 767px) {
    .hero-peek { padding: 118px 0 30px; }
    .hero-peek .hero-card { height: 190px; }
    .hero-peek-head { margin-bottom: 18px !important; }
}
/* phones held sideways */
@media (max-width: 991px) and (max-height: 500px) {
    .home-hero-orb { width: 90px; height: 90px; padding: 5px; }
}
/* phones: four fixed cards, text above image */
.hero-stack > .container {
    display: flex;
    flex-direction: column;
}
.hero-stack .hero-peek-head { order: -2; }
.hero-stack .hero-peek-cta {
    order: -1;
    margin-top: 0 !important;
    margin-bottom: 25px;
}
.hero-stack .hero-peek-bar,
.hero-stack .hero-peek-next-card,
.hero-stack .hero-peek-progress {
    display: none !important;
}
.hero-stack .hero-peek-main { flex: 1 1 100%; }
.hero-stack .hero-swiper {
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
}
.hero-stack .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    height: auto;
}
.hero-stack .swiper-slide {
    width: auto;
    height: auto;
    min-width: 0;
}
.hero-stack.hero-peek .hero-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
}
.hero-stack.hero-peek .hero-body {
    flex: 1 1 auto;
    padding: 18px 20px;
    gap: 6px;
    justify-content: flex-start;
}
.hero-stack.hero-peek .hero-card-title { font-size: 20px; }
.hero-stack.hero-peek .hero-desc {
    display: block;
    font-size: 15px;
}
.hero-stack .hero-line > * {
    transform: none;
    transition: none;
}
.hero-stack .hero-media {
    order: 2;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
}
.hero-stack.hero-peek .hero-liquid { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .home-hero-orb::after { animation: none; }
}

/* homepage services: tinted photo tiles */
.services-section {
    position: relative;
    background: #0a1124;
    overflow: hidden;
}
.services-section > .container {
    position: relative;
    z-index: 1;
}
.services-tile {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--tile-bg);
    border-top: 4px solid var(--tile);
}
.services-tile-sky { --tile: #47a3f2; --tile-bg: #04203f; --tile-tint: rgba(71, 163, 242, .4); }
.services-tile-blue { --tile: #0280ee; --tile-bg: #03173a; --tile-tint: rgba(2, 128, 238, .4); }
.services-tile-indigo { --tile: #3f51b5; --tile-bg: #0d1233; --tile-tint: rgba(63, 81, 181, .45); }
.services-tile-royal { --tile: #122bb5; --tile-bg: #060b33; --tile-tint: rgba(18, 43, 181, .45); }
.services-tile img {
    filter: grayscale(1) contrast(1.15);
    opacity: .8;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.services-tile:hover img {
    transform: scale(1.05);
}
.services-tile-shade {
    background: linear-gradient(180deg, var(--tile-bg) 0%, var(--tile-tint) 30%, var(--tile-tint) 48%, var(--tile-bg) 82%);
}

@media (max-width: 575px) {
    .services-tile { min-height: 430px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .services-tile img { transition: none; }
    .services-tile:hover img { transform: none; }
}

/* homepage trust band: dark backdrop with a soft glow for the glass cards to pick up */
.trust-band {
    background-color: #0b1f33;
    background-image:
        radial-gradient(38% 120% at 12% 10%, rgba(2, 128, 238, .38), transparent 70%),
        radial-gradient(34% 120% at 88% 90%, rgba(77, 163, 255, .26), transparent 70%);
}
.trust-card {
    background-color: rgba(255, 255, 255, .07);
}
.trust-card i {
    color: #4da3ff;
}
.trust-note {
    color: #c5d3e0;
}
@media (hover: hover) {
    .trust-card:hover {
        background-color: rgba(255, 255, 255, .13);
        border-color: rgba(77, 163, 255, .75) !important;
        box-shadow: 0 0 28px rgba(77, 163, 255, .35);
        transform: translateY(-6px);
    }
    .trust-card:hover i {
        color: #fff;
        text-shadow: 0 0 16px rgba(77, 163, 255, .9);
    }
}
@media (prefers-reduced-motion: reduce) {
    .trust-card:hover { transform: none; }
}

/* homepage video testimonials */
.home-video {
    background-color: #004a8b;
}
.home-video lite-youtube {
    display: block;
    max-width: 100%;
    aspect-ratio: 16 / 9;
}
