/* ========== IMPORT COLOR VARIABLES ========== */
@import url('/users/landingpage/css/variables.css');

/* ========================================
   LANDING PAGE SPECIFIC STYLES
   ======================================== */

/* Landing Page Background */
body {
    background: var(--bg-darkest);
}

.main-bg {
    background:
        radial-gradient(ellipse 80% 40% at 50% -10%, var(--gradient-emerald-1) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 60%, var(--gradient-emerald-2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, var(--gradient-emerald-3) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 50%, var(--bg-dark-3) 100%);
    min-height: 100vh;
}

/* Glass Morphism Styles */
.glass {
    background: var(--glass-bg-thin);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-light);
}

.glass-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-medium);
    box-shadow: 0 8px 40px var(--shadow-dark);
}

.glass-card-simple {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    backdrop-filter: blur(12px);
}

.glass-dark {
    background: var(--glass-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-thin);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 99px;
}

/* Floating Glow Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ========== LANDING ANIMATIONS ========== */

@keyframes fadeUp-lg {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-em {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.anim-fade-up {
    animation: fadeUp-lg 0.6s ease both;
}

.anim-fade-in {
    animation: fadeIn 0.5s ease both;
}

.float-anim {
    animation: float 5s ease-in-out infinite;
}

.spin-slow {
    animation: spin-slow 20s linear infinite;
}

.pulse-em {
    animation: pulse-em 3s ease-in-out infinite;
}

/* Animation Delay Helpers */
.d1 {
    animation-delay: 0.1s;
}

.d2 {
    animation-delay: 0.2s;
}

.d3 {
    animation-delay: 0.3s;
}

.d4 {
    animation-delay: 0.4s;
}

.d5 {
    animation-delay: 0.5s;
}

.d6 {
    animation-delay: 0.6s;
}

/* ========== LANDING UI COMPONENTS ========== */

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}

/* Timeline Dot */
.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--glow-primary-strong);
    margin-top: 4px;
}

/* Gradient Text */
.grad-text {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--primary-light) 50%,
        var(--primary-lighter) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Blur Effect */
.nav-blur {
    background: rgba(3, 13, 6, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Mobile Menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

#mobileMenu.open {
    max-height: 400px;
}

/* APY Counter */
.apy-num {
    font-variant-numeric: tabular-nums;
}

/* Code Block Syntax Highlighting */
.kw {
    color: var(--primary);
}

.str {
    color: var(--primary-light);
}

.cm {
    color: var(--text-subtle);
    font-style: italic;
}

.nm {
    color: var(--primary-lighter);
}

.fn {
    color: var(--primary-bright);
}

/* ========== LANDING INTERACTIVE EFFECTS ========== */

/* Card Hover Effect */
.card-hover {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow:
        0 20px 60px var(--shadow-darker),
        0 0 30px var(--glow-primary-verylight);
}

/* Chart Bar */
.bar {
    border-radius: 4px 4px 0 0;
    background: linear-gradient(
        180deg,
        var(--glow-primary-heavy) 0%,
        var(--glow-primary-medium) 100%
    );
}

/* Glow Button */
.btn-glow {
    box-shadow: 0 0 20px var(--glow-primary-bright);
}

.btn-glow:hover {
    box-shadow: 0 0 32px var(--glow-primary);
}
