/* DYNAMIC SPLIT-SCREEN HERO STYLES */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Inter:wght@400;500;600&display=swap');

.hero-split {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: var(--dark);
    font-family: 'Inter', sans-serif;
}

/* LEFT SIDE: Content */
.hero-split-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 6% 100px 8%;
    position: relative;
    z-index: 10;
}

/* RIGHT SIDE: Visuals */
.hero-split-visual {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    background: #050a14;
}

/* THE CONTINUOUS KEN BURNS ANIMATION */
.hero-split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform-origin: center 40%;
    animation: kenburns 35s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1.0) rotate(0deg); }
    100% { transform: scale(1.18) rotate(1deg); }
}

/* Gradient overlay on image for depth */
.hero-split-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--dark) 0%, rgba(15,23,42,0.4) 30%, transparent 70%);
    pointer-events: none;
}

/* FLOATING TRUST BADGE OVERLAP */
.hero-overlap-badge {
    position: absolute;
    top: 50%;
    right: -140px; /* Overlap the visual side */
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 20;
    box-shadow: -15px 30px 60px rgba(0,0,0,0.6);
    width: 340px;
    
    /* Entry animation */
    opacity: 0;
    animation: fadeSlideLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.overlap-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overlap-stat .val {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -1.5px;
}

.overlap-stat .lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e2e8f0;
    font-weight: 600;
}

/* STAGGERED REVEALS FOR CONTENT */
.stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5 {
    opacity: 0;
    transform: translateY(40px);
}
.stagger-1 { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.stagger-2 { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; }
.stagger-3 { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards; }
.stagger-4 { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards; }
.stagger-5 { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    0% { opacity: 0; transform: translate(50px, -50%); }
    100% { opacity: 1; transform: translate(0, -50%); }
}

/* TYPOGRAPHY OVERHAUL */
.hero-split-content .badge-premium {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    background: rgba(245, 117, 57, 0.1);
    color: var(--orange);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(245, 117, 57, 0.3);
    display: inline-block;
    margin-bottom: 2rem;
    width: max-content;
}

.hero-split-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -2px;
}

.hero-split-content h1 .text-gradient {
    background: linear-gradient(135deg, var(--orange), #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-split-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: #94a3b8;
    max-width: 580px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

/* MAGNETIC/DYNAMIC BUTTONS */
.hero-actions-dynamic {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.btn-dynamic {
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-dynamic-primary {
    background: var(--orange);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(245, 117, 57, 0.4);
}

.btn-dynamic-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: all 0.5s ease;
    z-index: -1;
    transform: skewX(-20deg);
}

.btn-dynamic-primary:hover::before {
    left: 100%;
}

.btn-dynamic-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -5px rgba(245, 117, 57, 0.6);
    color: #fff;
}

.btn-dynamic-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-dynamic-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
}

/* QUICK PATHS */
.hero-quick-paths {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}
.hero-quick-paths span {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-quick-paths a {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hero-quick-paths a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}


/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .hero-overlap-badge { right: -60px; width: 300px; padding: 2rem 1.5rem; }
    .overlap-stat .val { font-size: 2.5rem; }
}

@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        justify-content: center;
    }
    
    /* Make the visual act as a full background on mobile */
    .hero-split-visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        flex: none;
        clip-path: none !important;
        z-index: 0;
    }
    
    .hero-split-visual img {
        opacity: 0.4; /* Darken image heavily for text readability */
    }
    
    .hero-split-visual::after {
        background: radial-gradient(circle at center, rgba(15,23,42,0.3) 0%, var(--dark) 100%);
    }

    /* Content sits on top */
    .hero-split-content {
        position: relative;
        z-index: 10;
        flex: none;
        width: 100%;
        padding: 120px 5% 40px 5%;
        text-align: center;
        align-items: center;
    }
    
    .hero-split-content h1 {
        font-size: clamp(2.8rem, 8vw, 4rem);
    }
    
    .hero-split-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions-dynamic {
        justify-content: center;
        width: 100%;
    }
    
    .hero-quick-paths {
        justify-content: center;
    }
    
    /* Adjust glass badge for mobile overlay */
    .hero-overlap-badge {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 500px;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
        background: rgba(15, 23, 42, 0.65); /* slightly darker glass on mobile */
    }
}





@media (max-width: 600px) {
    .hero-split-content {
        padding-top: 100px;
    }
    .hero-actions-dynamic { flex-direction: column; width: 100%; max-width: 350px; margin: 0 auto 2rem auto; }
    .btn-dynamic { width: 100%; }
    .hero-overlap-badge { flex-direction: column; text-align: center; gap: 1.5rem; padding: 1.5rem; }
    .hero-quick-paths span { width: 100%; margin-bottom: 0.5rem; }
}
