/* ==================== GSAP CINEMATIC HERO - OPTIMIZED CSS ==================== */
:root {
    --gold: #FFD700;
    --gold-light: #FFF8DC;
    --gold-dark: #B8860B;
    --green: #1A4D2E;
    --green-dark: #0F2E1B;
    --green-light: #2D6A4F;
}

/* ==================== CRISP TEXT RENDERING ==================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==================== CINEMATIC HERO SECTION ==================== */
.cinematic-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #0a1f17 100%);
    overflow: hidden;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.cinematic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at var(--x, 50%) var(--y, 50%), 
        rgba(255, 215, 0, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 1;
    will-change: background;
}

/* ==================== SVG BACKGROUND ==================== */
.hero-svg-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    will-change: transform;
}

/* ==================== PARTICLE CANVAS ==================== */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    will-change: auto;
}

/* ==================== FLOATING ICONS - FIXED POSITIONING ==================== */
.floating-icons {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.float-icon {
    position: fixed;
    font-size: 2.5rem;
    will-change: transform, opacity;
    opacity: 0.7;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    transform-style: preserve-3d;
}

.float-icon:nth-child(1) { left: 10%; top: 20%; }
.float-icon:nth-child(2) { right: 15%; top: 30%; }
.float-icon:nth-child(3) { left: 20%; bottom: 25%; }
.float-icon:nth-child(4) { right: 10%; bottom: 20%; }
.float-icon:nth-child(5) { left: 50%; top: 15%; }
.float-icon:nth-child(6) { right: 30%; top: 60%; }

/* ==================== SPOTLIGHT & EFFECTS ==================== */
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(600px ellipse at var(--x, 50%) var(--y, 50%), 
        transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    will-change: background;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='400' height='400' fill='%23ffffff' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    opacity: 0.04;
    pointer-events: none;
    will-change: background-position;
}

.hero-scan-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 215, 0, 0.012),
        rgba(255, 215, 0, 0.012) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    will-change: transform;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    will-change: opacity;
}

/* ==================== CONTENT WRAPPER ==================== */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==================== BADGE - INITIAL STATE (HIDDEN) ==================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
    transform: translateY(-100px) scale(0) rotateZ(-5deg);
    opacity: 0;
    filter: blur(20px);
}

.badge-icon {
    font-size: 1.2rem;
    display: inline-block;
    will-change: transform;
}

/* ==================== TITLE - CRISP TEXT, NO BLUR ==================== */
.cinematic-title {
    font-size: 5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: white;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
    will-change: auto;
    -webkit-font-smoothing: antialiased;
}

.title-word {
    display: inline-block;
    margin: 0 10px;
    will-change: transform, opacity;
    transform: translateY(100px);
    opacity: 0;
}

.title-word:nth-child(2) {
    transform: translateY(100px) rotateX(90deg);
}

.title-word:nth-child(3) {
    transform: translateY(100px) scale(0.5);
}

.title-word:nth-child(4) {
    transform: translateY(100px);
}

.gold-word {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    background-size: 1000px 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--gold);
    color: var(--gold);
    will-change: text-shadow, color;
}

/* ==================== TITLE LINE BREAK ==================== */
.title-line-break {
    display: block;
    width: 100%;
    height: 0;
}

/* ==================== UNDERLINE ==================== */
.title-underline {
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    margin: 20px auto 30px;
    max-width: 150px;
    will-change: width, opacity;
    width: 0;
    opacity: 0;
}

/* ==================== SUBTITLE - CRISP TEXT ==================== */
.cinematic-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
    transform: translateY(100px);
    opacity: 0;
    letter-spacing: 10px;
}

/* ==================== BUTTONS ==================== */
.cinematic-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    will-change: transform, box-shadow, background;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateY(80px) scale(0.8);
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    color: var(--green);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--gold);
    color: var(--gold);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--green);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4);
}

/* ==================== STATS ==================== */
.cinematic-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-card {
    will-change: transform, opacity;
    transform: translateY(80px);
    opacity: 0;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
    -webkit-font-smoothing: antialiased;
    will-change: auto;
}

.stat-plus, .stat-percent {
    font-size: 1.5rem;
    display: inline-block;
    will-change: transform;
}

.stat-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .cinematic-title {
        font-size: 3.5rem;
    }
    
    .cinematic-subtitle {
        font-size: 1.1rem;
    }
    
    .float-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .cinematic-hero {
        perspective: none;
    }

    .hero-spotlight,
    .hero-grain,
    .hero-scan-lines {
        display: none;
    }

    .floating-icons {
        display: none;
    }

    .cinematic-title {
        font-size: 2.5rem;
    }
    
    .cinematic-subtitle {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .cinematic-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .cinematic-stats {
        gap: 30px;
        flex-direction: column;
    }
    
    .float-icon {
        font-size: 1.5rem;
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .cinematic-title {
        font-size: 1.8rem;
        letter-spacing: 0;
    }
    
    .title-word {
        margin: 0 5px;
    }
    
    .cinematic-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .float-icon {
        display: none;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== GPU ACCELERATION ==================== */
.hero-badge,
.title-word,
.cinematic-subtitle,
.btn-primary,
.btn-secondary,
.stat-card,
.float-icon {
    transform: translate3d(0, 0, 0);
}
