/* ============================================================
   HIGHLANDS STUDIO — LIQUID GLASS DESIGN SYSTEM
   Palette: #030303 · #080808 · #333333 · #DFE6EC · #F4F7FA · #0057FF
   ============================================================ */

/* ---- LIQUID BACKGROUND BLOBS ---- */

/* The blob canvas sits fixed behind everything */
.hl-blob-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hl-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    will-change: transform;
    mix-blend-mode: screen;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

/* Primary electric-blue blob — largest */
.hl-blob-1 {
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, #0057FF 0%, rgba(0, 87, 255, 0) 70%);
    top: -180px;
    left: -140px;
    animation: blobDrift1 22s ease-in-out infinite alternate;
}

/* Secondary accent blob — top-right */
.hl-blob-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #0099FF 0%, rgba(0, 153, 255, 0) 70%);
    top: 10vh;
    right: -160px;
    animation: blobDrift2 18s ease-in-out infinite alternate;
}

/* Mid-page accent blob */
.hl-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #003FCC 0%, rgba(0, 63, 204, 0) 70%);
    top: 50vh;
    left: 30%;
    animation: blobDrift3 26s ease-in-out infinite alternate;
}

/* Bottom whisper blob */
.hl-blob-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0057FF 0%, rgba(0, 87, 255, 0) 70%);
    bottom: -100px;
    right: 10%;
    animation: blobDrift4 20s ease-in-out infinite alternate;
}

/* ---- INVERSE LIQUID BLOBS (For Light Sections) ---- */
.hl-blob-inverse {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.10;
    will-change: transform;
    mix-blend-mode: multiply;
    z-index: 1;
    transform: translateZ(0);
    contain: layout style paint;
}

.hl-blob-inv-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #333333 0%, rgba(51, 51, 51, 0) 70%);
    top: -100px;
    right: -100px;
    animation: blobDrift1 25s ease-in-out infinite alternate-reverse;
}

.hl-blob-inv-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #0057FF 0%, rgba(0, 87, 255, 0) 70%);
    bottom: -50px;
    left: 10%;
    animation: blobDrift2 20s ease-in-out infinite alternate-reverse;
}

@keyframes blobDrift1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }

    33% {
        transform: translate(80px, 60px) scale(1.12);
        opacity: 0.16;
    }

    66% {
        transform: translate(40px, 120px) scale(0.95);
        opacity: 0.10;
    }

    100% {
        transform: translate(120px, 40px) scale(1.08);
        opacity: 0.14;
    }
}

@keyframes blobDrift2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.10;
    }

    50% {
        transform: translate(-90px, 70px) scale(1.15);
        opacity: 0.14;
    }

    100% {
        transform: translate(-40px, 140px) scale(0.92);
        opacity: 0.12;
    }
}

@keyframes blobDrift3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.08;
    }

    40% {
        transform: translate(-60px, -80px) scale(1.2);
        opacity: 0.12;
    }

    100% {
        transform: translate(80px, -40px) scale(0.9);
        opacity: 0.10;
    }
}

@keyframes blobDrift4 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.10;
    }

    60% {
        transform: translate(-70px, 50px) scale(1.18);
        opacity: 0.14;
    }

    100% {
        transform: translate(50px, -60px) scale(0.95);
        opacity: 0.12;
    }
}

/* ==============================
   PARALLAX GLASS LAYERS
   (Depth effect between sections)
============================== */

/* Full-width separator with liquid glass */
.hl-glass-divider {
    position: relative;
    height: 180px;
    margin: -2px 0;
    overflow: hidden;
}

.hl-glass-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 87, 255, 0.08) 0%,
            rgba(8, 8, 8, 0.6) 40%,
            rgba(0, 87, 255, 0.06) 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Parallax-tracked section background */
.hl-parallax-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hl-parallax-section::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: inherit;
    transform: translateZ(0);
    will-change: transform;
    z-index: -1;
}

/* ==============================
   PREMIUM SECTION BACKGROUNDS
============================== */

/* Base dark section */
.hl-section-dark {
    background: linear-gradient(180deg,
            #030303 0%,
            #050810 40%,
            #080808 80%,
            #030303 100%);
    position: relative;
}

/* Blue-tinted mid section */
.hl-section-blue {
    background: linear-gradient(180deg,
            #080808 0%,
            #050a18 35%,
            #060d20 65%,
            #080808 100%);
    position: relative;
}

/* Subtle highlight section */
.hl-section-accent {
    background: linear-gradient(135deg,
            rgba(0, 87, 255, 0.05) 0%,
            #030303 30%,
            #080808 70%,
            rgba(0, 87, 255, 0.04) 100%);
    position: relative;
}

/* ==============================
   ELEVATED GLASS CARDS (v2)
============================== */

.hl-card {
    background: linear-gradient(145deg,
            rgba(15, 22, 40, 0.72) 0%,
            rgba(5, 8, 16, 0.88) 100%);
    backdrop-filter: blur(36px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(36px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top-color: rgba(255, 255, 255, 0.14);
    border-left-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 16px 60px rgba(0, 0, 0, 0.65),
        0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Inner glow shard */
.hl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 87, 255, 0.5) 50%,
            transparent 100%);
    border-radius: 1px;
}

/* Radial blue tint in corner */
.hl-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 87, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hl-card:hover {
    border-color: rgba(0, 87, 255, 0.3);
    border-top-color: rgba(0, 87, 255, 0.5);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 87, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-8px) scale(1.01);
}

/* ==============================
   WORD-BY-WORD TITLE REVEAL
============================== */

.hl-reveal-title {
    overflow: hidden;
    line-height: 1.1;
}

.hl-reveal-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: 0.22em;
}

.hl-reveal-title .word-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s ease;
}

.hl-reveal-title.in-view .word-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger delays for up to 12 words */
.hl-reveal-title.in-view .word-wrap:nth-child(1) .word-inner {
    transition-delay: 0.00s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(2) .word-inner {
    transition-delay: 0.08s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(3) .word-inner {
    transition-delay: 0.16s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(4) .word-inner {
    transition-delay: 0.24s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(5) .word-inner {
    transition-delay: 0.32s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(6) .word-inner {
    transition-delay: 0.40s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(7) .word-inner {
    transition-delay: 0.48s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(8) .word-inner {
    transition-delay: 0.56s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(9) .word-inner {
    transition-delay: 0.64s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(10) .word-inner {
    transition-delay: 0.72s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(11) .word-inner {
    transition-delay: 0.80s;
}

.hl-reveal-title.in-view .word-wrap:nth-child(12) .word-inner {
    transition-delay: 0.88s;
}

/* Reverse: when out of view from above (scroll up) */
.hl-reveal-title.out-view-up .word-wrap:nth-child(1) .word-inner {
    transition-delay: 0.08s;
    opacity: 0;
    transform: translateY(-110%);
}

.hl-reveal-title.out-view-up .word-wrap:nth-child(2) .word-inner {
    transition-delay: 0.06s;
    opacity: 0;
    transform: translateY(-110%);
}

.hl-reveal-title.out-view-up .word-wrap:nth-child(3) .word-inner {
    transition-delay: 0.04s;
    opacity: 0;
    transform: translateY(-110%);
}

.hl-reveal-title.out-view-up .word-wrap:nth-child(n+4) .word-inner {
    transition-delay: 0.00s;
    opacity: 0;
    transform: translateY(-110%);
}

/* ==============================
   HIGHLIGHT ACCENT TEXT
============================== */

.hl-accent {
    color: #0057FF;
}

.hl-accent-glow {
    color: #0057FF;
    text-shadow:
        0 0 25px rgba(0, 87, 255, 0.5),
        0 0 50px rgba(0, 87, 255, 0.25);
}

/* ==============================
   PREMIUM BADGE / LABEL
============================== */

.hl-badge {
    display: inline-block;
    background: rgba(0, 87, 255, 0.12);
    border: 1px solid rgba(0, 87, 255, 0.35);
    color: #4488FF;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

/* ==============================
   NEON GLOW LINE
============================== */

.hl-glow-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0057FF, #0099FF);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 87, 255, 0.7);
    margin: 1.25rem 0;
}

.hl-glow-line.center {
    margin-left: auto;
    margin-right: auto;
}

/* ==============================
   SCROLL CUE INDICATOR
============================== */

.hl-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    animation: scrollCueFade 2.5s ease-in-out infinite;
}

.hl-scroll-cue span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #DFE6EC;
}

.hl-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #0057FF, transparent);
    animation: scrollLineGrow 2.5s ease-in-out infinite;
}

@keyframes scrollCueFade {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes scrollLineGrow {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==============================
   HIGH-CONTRAST TEXT UTILITIES
============================== */

.hl-text-hero {
    color: #F4F7FA;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
}

.hl-text-main {
    color: #F4F7FA;
}

.hl-text-muted {
    color: #DFE6EC;
}

.hl-text-sub {
    color: #8A9BB0;
}

/* ==============================
   SECTION BORDER GRADIENT TOP
============================== */
.hl-border-top-gradient {
    border-top: 1px solid;
    border-image: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 87, 255, 0.35) 30%,
            rgba(0, 87, 255, 0.5) 50%,
            rgba(0, 87, 255, 0.35) 70%,
            transparent 100%) 1;
}