/* ================================================
   INVEST INLINE STYLES
   Extracted from index.html for maintainability
   ================================================ */

/* Subtle Breathing Animation */
@keyframes softBreathe {
    0% {
        filter: brightness(1) opacity(1);
    }

    50% {
        filter: brightness(1.5) opacity(0.7);
    }

    100% {
        filter: brightness(1) opacity(1);
    }
}

/* Ambient Soft Light Lines Effect + Dynamic Scroll Color (Extended for Loading Screen) */
.energy-line {
    position: fixed;
    background: transparent !important;
    z-index: 99999999;
    /* High z-index to show over loading screen initially */
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease-in-out, box-shadow 3s ease-in-out;
    /* INCREASED FADE OUT TIME TO 3 SECONDS FOR EXTREME SMOOTHNESS */
    animation: softBreathe 4s infinite ease-in-out;
    --line-color: rgba(212, 175, 55, 0.45);
}

/* Wide, barely visible atmospheric glow areas rotated like lines */
.line-1 {
    top: -20%;
    left: 15%;
    width: 20px;
    height: 140%;
    transform: rotate(18deg);
    animation-delay: 0s;
}

.line-2 {
    top: -20%;
    left: 82%;
    width: 30px;
    height: 140%;
    transform: rotate(-12deg);
    animation-delay: 1s;
}

.line-3 {
    top: 25%;
    left: -20%;
    width: 140%;
    height: 20px;
    transform: rotate(6deg);
    animation-delay: 2s;
}

.line-4 {
    top: 75%;
    left: -20%;
    width: 140%;
    height: 30px;
    transform: rotate(-22deg);
    animation-delay: 3s;
}

.line-5 {
    top: -20%;
    left: 45%;
    width: 15px;
    height: 140%;
    transform: rotate(-35deg);
    animation-delay: 1.5s;
}

/* Active class when scrolling */
.pulse-line-active {
    opacity: 0.22 !important;
    box-shadow: 0 0 160px 80px var(--line-color) !important;
}

/* Specific class for the loading phase - MORE VISIBLE AND ASYMMETRIC */
.pulse-line-loading {
    opacity: 0.45 !important;
    /* MUCH MORE VISIBLE DURING LOAD */
    box-shadow: 0 0 180px 100px rgba(79, 125, 243, 0.6) !important;
    animation: loadingBreatheAsym 3s infinite ease-in-out alternate !important;
    /* IRREGULAR PULSE */
}

/* Irregular pulse for loading */
@keyframes loadingBreatheAsym {
    0% {
        transform: scale(1) rotate(var(--rot));
        opacity: 0.1;
        filter: brightness(0.8);
    }

    30% {
        transform: scale(1.15) rotate(calc(var(--rot) + 2deg));
        opacity: 0.5;
        filter: brightness(1.2);
    }

    70% {
        transform: scale(0.9) rotate(calc(var(--rot) - 1deg));
        opacity: 0.2;
        filter: brightness(0.9);
    }

    100% {
        transform: scale(1.2) rotate(var(--rot));
        opacity: 0.6;
        filter: brightness(1.5);
    }
}

/* ================================================
   SCARCITY OVERLAY POPUP
   ================================================ */
.scarcity-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 8, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease
}

.scarcity-overlay.active {
    opacity: 1;
    visibility: visible
}

.scarcity-box {
    background: linear-gradient(145deg, #0A0F18, #020408);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 44px 36px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.06)
}

.scarcity-overlay.active .scarcity-box {
    transform: translateY(0) scale(1)
}

.scarcity-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease
}

.scarcity-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff
}

.scarcity-icon {
    margin-bottom: 16px
}

.scarcity-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 4px;
    color: #A78BFA;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px
}

.scarcity-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #F0F4F8;
    margin-bottom: 10px;
    line-height: 1.3
}

.scarcity-subtitle {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px
}

.scarcity-countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px
}

.scarcity-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px
}

.scarcity-countdown-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #F0F4F8;
    background: rgba(240, 244, 248, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1
}

.scarcity-countdown-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8
}

.scarcity-spots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #94A3B8
}

.scarcity-spots-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: scarcity-pulse 1.5s ease-in-out infinite
}

.scarcity-spots strong {
    color: #F0F4F8;
    font-weight: 700
}

@keyframes scarcity-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.scarcity-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none
}

.scarcity-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
    color: #fff
}

.scarcity-disclaimer {
    margin-top: 14px;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.5)
}

/* ================================================
   LANG GLOBE SIDEBAR
   ================================================ */
.lang-globe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-right: none;
    border-radius: 6px 0 0 0;
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    animation: globePulse 3s ease-in-out infinite;
}

@keyframes globePulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
}

.lang-globe-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.4);
    width: 44px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.lang-dropdown {
    position: absolute;
    right: calc(100% + 8px);
    top: 0;
    background: rgba(10, 10, 20, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 99999;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-option.lang-active {
    color: #8B5CF6;
}

/* ================================================
   TYPING REVEAL - Letter Animation
   ================================================ */
@keyframes letterIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(10px) scale(0.8);
    }

    50% {
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0) scale(1);
    }
}