.hero {
    height: 100vh;
    min-height: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: #000;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    contain: strict;
    background: #000;
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
    transform: translateZ(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1
}

.hero-glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    /* Replaced heavy filter: blur() with optimized radial gradients */
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    will-change: transform;
    transform: translateZ(0);
}

.hero-glow-1 {
    top: -100px;
    right: -100px;
    animation: floatGlow1 20s infinite alternate ease-in-out;
}

.hero-glow-2 {
    bottom: 10%;
    left: -200px;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: floatGlow2 25s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

@keyframes floatGlow2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, -50px) rotate(30deg);
    }
}

.hero-container-flex {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Adjusted for navbar height */
    padding-bottom: 110px;
    /* Adjusted for stats banner height */
}

.hero-content-left {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    contain: layout;
}



.hero-tag {
    font-family: var(--font-mono, monospace);
    font-size: .9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #6366F1;
    border-radius: 50%;
    box-shadow: 0 0 10px #6366F1
}

.hero-title-creative {
    font-family: var(--font-headings, sans-serif);
    font-size: clamp(3rem, 5.5vw, 6rem);
    line-height: .95;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.block-solid {
    display: block;
    color: #fff
}

.block-outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all .5s ease
}

.block-outline:hover {
    color: transparent;
    -webkit-text-stroke: 0;
    background: var(--lava-gradient);
    background-size: var(--lava-size);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: var(--lava-anim);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    will-change: background-position;
}

.block-small {
    display: block;
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    font-weight: 400;
    letter-spacing: .3em;
    color: #6366F1;
    margin-top: 10px
}

.gradient-animated {
    background: var(--lava-gradient);
    background-size: var(--lava-size);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: var(--lava-anim);
    position: relative;
    display: inline-block;
    will-change: background-position;
}

.gradient-animated::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(15px);
    opacity: 0.8;
    animation: inherit;
    z-index: -1;
}

@keyframes lavaLamp {
    0% {
        background-position: 0% 0%;
        background-size: 200% 200%;
    }

    33% {
        background-position: 100% 50%;
        background-size: 250% 150%;
    }

    66% {
        background-position: 50% 100%;
        background-size: 150% 250%;
    }

    100% {
        background-position: 100% 100%;
        background-size: 200% 200%;
    }
}

.hero-desc-creative {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 40px
}

.highlight {
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 68, 238, 0.5)
}

.hero-buttons-creative {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Base Hero Button Style */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.02);
}

/* White Primary Button */
.btn-hero-white {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-white .icon {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.btn-hero-white::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lava-gradient);
    background-size: var(--lava-size);
    animation: var(--lava-anim);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-hero-white:hover {
    color: #fff;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-hero-white:hover::after {
    opacity: 1;
}

.btn-hero-white:hover .icon {
    transform: translateX(5px) rotate(-45deg);
}

/* Glass Secondary Button */
.btn-hero-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-bottom-stats {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 5;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    transform: translateZ(0);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-box {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.stat-box:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(30, 30, 30, 0.8);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.1);
}

.stat-val {
    font-family: var(--font-headings, sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-box:hover .stat-val {
    color: transparent;
    background: var(--lava-gradient);
    background-size: var(--lava-size);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: var(--lava-anim);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    will-change: background-position;
}

.stat-lbl {
    font-size: .8rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 500
}

.stat-separator {
    display: none;
}

.stat-action-mobile {
    display: none
}

.fade-in {
    opacity: 0;
    animation: fadeInRight .8s ease forwards
}

.fade-up {
    opacity: 0;
    animation: fadeInUp .8s ease forwards
}

.delay-1 {
    animation-delay: .1s
}

.delay-2 {
    animation-delay: .3s
}

.delay-3 {
    animation-delay: .5s
}

.delay-4 {
    animation-delay: .7s
}

.delay-5 {
    animation-delay: 1.0s
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px)
    }

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

@media(max-width:1440px) {
    .hero-title-creative {
        font-size: clamp(3.5rem, 5vw, 5.5rem);
    }

    .hero-desc-creative {
        font-size: 1.05rem;
        max-width: 480px;
    }
}

@media(max-width:1200px) {
    .hero-title-creative {
        font-size: clamp(3rem, 5.2vw, 5rem);
    }

    /* Improved stats visibility */
    .stat-box {
        display: flex;
    }
}

@media(max-width:1024px) {
    .hero-container-flex {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-title-creative {
        font-size: clamp(2.8rem, 6vw, 4.2rem);
        margin-bottom: 24px;
    }

    .hero-desc-creative {
        font-size: 1rem;
        max-width: 450px;
        margin-bottom: 35px;
    }

    .hero-buttons-creative {
        gap: 25px;
    }

    .btn-creative-primary {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .stats-grid {
        padding: 25px 0;
        gap: 15px;
    }

    .stat-val {
        font-size: 2.2rem;
    }

    .stat-lbl {
        font-size: 0.75rem;
    }
}

@media(max-width: 1024px) {
    .stats-grid {
        justify-content: space-between;
        gap: 20px;
    }
}

@media(max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .hero-container-flex {
        padding-top: 100px;
        padding-bottom: 240px;
        /* Space for stacked buttons and stats */
        height: auto;
    }

    .hero-title-creative {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        margin-bottom: 20px;
    }

    .hero-desc-creative {
        font-size: 0.95rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero-buttons-creative {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-hero {
        width: 100%;
        padding: 16px 20px;
        font-size: 0.85rem;
    }

    /* Floating Stats Bar for Mobile */
    .hero-bottom-stats {
        position: absolute;
        bottom: 20px;
        padding: 0;
    }

    .stats-grid {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 12px;
        justify-content: center;
    }

    .stat-box {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px;
        padding: 12px 15px;
        border-radius: 16px;
        gap: 10px;
    }

    .stat-val {
        font-size: 1.5rem;
    }

    .stat-lbl {
        font-size: 0.7rem;
        white-space: nowrap;
    }
}

@media(max-width: 480px) {
    .hero-title-creative {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }
}