/* ==========================================================
   Hero — 100vh Parallax
   ========================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-5xl) 0 var(--space-3xl);
}

/* Parallax Background */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    will-change: transform;
}

img.hero__bg-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
}

/* Fallback when no image loads */
.hero__background {
    background: linear-gradient(135deg, #650028 0%, #AC0540 30%, #C41854 60%, #8F0435 100%);
}

/* Second Parallax Layer — Crimson Gradient Mesh */
.hero__mesh-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(172, 5, 64, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(101, 0, 40, 0.18) 0%, transparent 60%);
    background-size: 200% 200%;
    animation: heroMeshDrift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroMeshDrift {
    0%, 100% { background-position: 0% 50%; }
    33% { background-position: 100% 0%; }
    66% { background-position: 50% 100%; }
}

/* Gradient Overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradient-hero);
    opacity: 0.92;
}

/* Vignette effect */
.hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* CSS-only Floating Particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: var(--radius-circle);
    background: rgba(212, 168, 67, 0.15);
    animation: particleFloat linear infinite;
}

.particle--1 { width: 260px; height: 260px; top: 10%; right: -5%; animation-duration: 18s; animation-delay: 0s; background: rgba(172, 5, 64, 0.23); }
.particle--2 { width: 180px; height: 180px; top: 50%; left: 5%; animation-duration: 22s; animation-delay: -4s; background: rgba(212, 168, 67, 0.20); }
.particle--3 { width: 120px; height: 120px; bottom: 20%; right: 15%; animation-duration: 15s; animation-delay: -8s; background: rgba(212, 168, 67, 0.17); }
.particle--4 { width: 200px; height: 200px; top: 25%; left: 20%; animation-duration: 20s; animation-delay: -2s; background: rgba(172, 5, 64, 0.15); }
.particle--5 { width: 100px; height: 100px; bottom: 30%; left: 40%; animation-duration: 16s; animation-delay: -6s; background: rgba(212, 168, 67, 0.15); }
.particle--6 { width: 150px; height: 150px; top: 60%; right: 30%; animation-duration: 24s; animation-delay: -10s; background: rgba(172, 5, 64, 0.13); }

@keyframes particleFloat {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
    10%  { opacity: 0.85; }
    50%  { opacity: 0.65; }
    90%  { opacity: 0.45; }
    100% { transform: translate(-80px, -150px) rotate(30deg) scale(1.3); opacity: 0; }
}

/* Parallax micro-shimmer on overlay */
.hero__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 50%
    );
    background-size: 300% 300%;
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* ==========================================================
   Hero Content
   ========================================================== */

.hero__content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 850px;
    margin-inline: auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: var(--flow-accent-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Pulsing glow ring behind badge */
.hero__badge::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-pill);
    background: radial-gradient(ellipse, rgba(172, 5, 64, 0.4), transparent 70%);
    z-index: -1;
    animation: badgeGlowPulse 3s ease-in-out infinite;
}

@keyframes badgeGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--flow-accent-light) 60%, #fff 80%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleShimmer 6s ease-in-out infinite;
}

@keyframes heroTitleShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-inline: auto;
}


/* ==========================================================
   Hero Actions
   ========================================================== */

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}


/* ==========================================================
   Scroll Indicator
   ========================================================== */

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-base);
}

.hero__scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.hero__scroll-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hero__scroll-line {
    display: block;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), var(--flow-accent-light));
    animation: scrollBounce 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.4), 0 0 20px rgba(172, 5, 64, 0.2);
    border-radius: 1px;
}

.hero__scroll-text {
    font-size: var(--text-xs);
    letter-spacing: 0;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}


/* Trusted by row */
.hero__trusted {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero__trusted > span {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero__trusted-logos {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.hero__trusted-logos span {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    white-space: nowrap;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero__mesh-layer,
    .hero__badge::before,
    .hero__title,
    .hero__scroll-line,
    .particle {
        animation: none;
    }
    .hero__title {
        background: none;
        -webkit-text-fill-color: #fff;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 100px 0 var(--space-2xl);
    }

    .hero__scroll {
        display: none;
    }

    .hero__trusted { flex-direction: column; gap: var(--space-sm); }
    .hero__trusted-logos { flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
}

@media (max-width: 575px) {
    .hero__title {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
        line-height: 1.35;
        white-space: normal;
        padding: 0 var(--space-sm);
        background: none;
        -webkit-text-fill-color: #fff;
        animation: none;
    }

    .hero__subtitle {
        font-size: var(--text-sm);
        line-height: 1.7;
    }

    .hero__actions {
        flex-direction: row;
    }

    .hero__actions .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: var(--text-sm);
    }
}
