/* Home: "AI & Intelligence at Lunaray" over the bg 11 scene photo.
   Desktop: labels, simulator card, value strip and footer sit on the photo at
   percentages of its 1672x941 frame. The photo has no empty space up top for
   the headline, so the headline lives in a band above it that fades into it. */
.hai {
    --hai-navy: #1c2b45;
    --hai-rose: #b5715c;
    --hai-band: #dfe6f5;
    position: relative;
    background: var(--hai-band);
    color: var(--hai-navy);
    overflow: hidden;
}

.hai-head {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(0, 3.2fr) 1fr;
    align-items: start;
    gap: 24px;
    padding: clamp(40px, 4.5vw, 80px) 4vw clamp(8px, 1vw, 16px);
    background: linear-gradient(180deg, #f5f7fc 0%, var(--hai-band) 100%);
}

.hai-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: .5em;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(11px, .95vw, 16px);
    line-height: 1.45;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hai-label i {
    width: 1px;
    height: 2.6em;
    background: rgba(28, 43, 69, .4);
}

.hai-head-center {
    text-align: center;
}

.hai-title {
    margin: 0 0 clamp(10px, 1vw, 18px);
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3vw, 54px);
    line-height: 1.04;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--hai-navy);
}

.hai-title span {
    display: block;
}

.hai-title-accent {
    background: linear-gradient(90deg, #a8604c 0%, #d9a08a 55%, #b06a55 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hai-desc {
    max-width: 50em;
    margin: 0 auto;
    font-family: 'Nexa', sans-serif;
    font-size: clamp(13px, 1vw, 17px);
    line-height: 1.6;
    color: var(--hai-navy);
}

.hai-desc strong {
    font-weight: 700;
}

.hai-micro {
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: .4em;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(9px, .72vw, 12px);
    line-height: 1.35;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ----- Photo stage ----- */
.hai-stage {
    position: relative;
    aspect-ratio: 1672 / 941;
}

.hai-stage::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 16%;
    z-index: 1;
    background: linear-gradient(180deg, var(--hai-band) 0%, rgba(223, 230, 245, 0) 100%);
    pointer-events: none;
}

.hai-photo,
.hai-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.hai-photo {
    position: absolute;
    inset: 0;
}

.hai-photo img {
    object-fit: cover;
}

.hai-layers {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hai-layers li {
    position: absolute;
    z-index: 2;
    left: var(--x);
    top: var(--y);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .55em;
    max-width: 15em;
    padding: .55em .9em;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px -14px rgba(28, 43, 69, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(8px, .66vw, 12px);
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hai-layers svg {
    flex-shrink: 0;
    width: 1.6em;
    height: 1.6em;
}

/* Frosted card over the photo's glass panel; it clears toward the right so
   the face and tiles drawn in the panel still show behind the feature chips. */
.hai-card {
    position: absolute;
    z-index: 2;
    left: 63.2%;
    right: 2.4%;
    top: 26.5%;
    bottom: 23.5%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.2vw;
    padding: 2.2% 1.4% 2.2% 2.2%;
    border-radius: clamp(14px, 1.4vw, 24px);
    background: linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .7) 58%, rgba(255, 255, 255, .22) 100%);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 30px 60px -40px rgba(28, 43, 69, .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hai-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hai-card-title {
    margin: 0 0 .6em;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 1.75vw, 32px);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--hai-navy);
}

.hai-card-title span {
    font-weight: 400;
    color: var(--hai-rose);
}

.hai-card-sub {
    margin: 0 0 .7em;
    font-family: 'Nexa', sans-serif;
    font-size: clamp(11px, 1.05vw, 19px);
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--hai-navy);
}

.hai-card-body {
    margin: 0 0 1.2em;
    font-family: 'Nexa', sans-serif;
    font-size: clamp(10px, .85vw, 15px);
    line-height: 1.55;
    color: var(--hai-navy);
}

.hai-card-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8vw;
}

.hai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6em;
    min-width: 76%;
    padding: .55em .55em .55em 2em;
    border-radius: 999px;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(9px, .85vw, 15px);
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hai-btn i {
    display: grid;
    place-items: center;
    width: 2.3em;
    height: 2.3em;
    border-radius: 50%;
}

.hai-btn--primary {
    color: #fff;
    background: linear-gradient(180deg, #c98a72 0%, #a9644f 100%);
    box-shadow: 0 14px 28px -16px rgba(169, 100, 79, .8);
}

.hai-btn--primary i {
    background: rgba(255, 255, 255, .85);
    color: var(--hai-rose);
}

.hai-btn--ghost {
    color: var(--hai-navy);
    background: rgba(255, 255, 255, .35);
    border: 1px solid rgba(28, 43, 69, .35);
}

.hai-btn--ghost i {
    border: 1px solid rgba(28, 43, 69, .3);
}

.hai-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.hai-btn--primary:hover {
    color: #fff;
    box-shadow: 0 18px 32px -16px rgba(169, 100, 79, .9);
}

.hai-btn--ghost:hover {
    color: var(--hai-navy);
    background: rgba(255, 255, 255, .7);
}

.hai-card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .7vw;
}

.hai-card-features li {
    display: flex;
    align-items: center;
    gap: .7em;
    min-width: 8.5em;
    padding: .9em 1em;
    border-radius: 10px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 10px 22px -16px rgba(28, 43, 69, .5);
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: clamp(8px, .66vw, 12px);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hai-card-features svg {
    width: 1.6em;
    height: 1.6em;
    flex-shrink: 0;
}

.hai-values {
    position: absolute;
    z-index: 2;
    left: 25.5%;
    right: 24%;
    top: 81.5%;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 1.1% 1.5%;
    list-style: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hai-values li {
    display: flex;
    align-items: center;
    gap: .8em;
    padding: 0 1.2em;
    font-family: 'Nexa', sans-serif;
    font-size: clamp(9px, .85vw, 15px);
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hai-values li + li {
    border-left: 1px solid rgba(28, 43, 69, .3);
}

.hai-values svg {
    width: 2.2em;
    height: 2.2em;
    flex-shrink: 0;
    color: var(--hai-navy);
}

.hai-foot {
    position: absolute;
    z-index: 2;
    left: 4vw;
    right: 4vw;
    bottom: 3.2%;
    display: flex;
    align-items: center;
    gap: 3vw;
    font-family: 'Nexa', sans-serif;
    font-size: clamp(9px, .85vw, 15px);
    line-height: 1.45;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hai-foot i {
    flex: 1;
    height: 1px;
    background: rgba(28, 43, 69, .3);
}

.hai-foot-brand {
    letter-spacing: .14em;
}

/* ----- Below 1024px the photo shows on its own and everything stacks under it ----- */
@media (max-width: 1023px) {
    .hai-head {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
        padding: 48px 20px 8px;
    }

    .hai-label {
        justify-content: center;
    }

    .hai-micro {
        display: none;
    }

    .hai-stage {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 40px;
    }

    .hai-photo {
        position: relative;
        aspect-ratio: 1672 / 941;
    }

    .hai-stage::before {
        height: 9%;
    }

    .hai-layers {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 20px;
    }

    .hai-layers li {
        position: static;
        transform: none;
        font-size: 10.5px;
    }

    .hai-card,
    .hai-values,
    .hai-foot {
        position: static;
        margin: 0 20px;
    }

    .hai-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
        background: rgba(255, 255, 255, .8);
    }

    .hai-card-title {
        font-size: 24px;
    }

    .hai-card-sub {
        font-size: 15px;
    }

    .hai-card-body {
        font-size: 14px;
    }

    .hai-card-cta {
        gap: 10px;
    }

    .hai-btn {
        width: 100%;
        font-size: 12px;
    }

    .hai-card-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hai-card-features li {
        min-width: 0;
        flex: 1 1 40%;
        font-size: 10.5px;
    }

    .hai-values {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 0;
        padding: 16px 8px;
    }

    .hai-values li {
        font-size: 11.5px;
        padding: 0 10px;
    }

    .hai-values li + li {
        border-left: 0;
    }

    .hai-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 11px;
    }

    .hai-foot i {
        display: none;
    }
}
