/* ======================================================================
   XYLO MARKETS - Landing Theme Stylesheet
   ====================================================================== */

:root {
    --background: #f1f5f9;
    --foreground: #0f172a;
    --navy: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(15, 23, 42, 0.08);
    --card-bg: #ffffff;
    --muted: #475569;
}

.dark {
    --background: #010409;
    --foreground: #f8fafc;
    --navy: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --card-bg: rgba(255, 255, 255, 0.01);
    --muted: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

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

.glass-dark {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-accent {
    background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(34,197,94,0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34,197,94,0.15);
}

/* ===== GLOW EFFECTS ===== */
.glow-green {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1), 0 0 60px rgba(34, 197, 94, 0.05);
}
.glow-green-strong {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.2), 0 0 80px rgba(34, 197, 94, 0.1);
}
.dark .glow-green {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15), 0 0 60px rgba(34, 197, 94, 0.05);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 40%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GRID PATTERN ===== */
.grid-pattern {
    background-image:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 60px 60px;
    color: rgba(148, 163, 184, 0.05);
}

.dark .grid-pattern {
    color: rgba(255, 255, 255, 0.02);
}

/* ===== TICKER ANIMATION ===== */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-ticker { animation: ticker-scroll 40s linear infinite; }

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

/* ===== FLOAT ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }

/* ===== PULSE DOT ===== */
.pulse-dot {
    position: relative;
    display: inline-flex;
    width: 10px;
    height: 10px;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #22c55e;
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #22c55e;
    border-radius: 50%;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===== HEADER STICKY ===== */
#xylo-header {
    transition: all 0.3s ease;
}
#xylo-header.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: rgba(1, 4, 9, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ===== MEGA MENU ===== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 480px;
    background: rgba(1, 4, 9, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 50;
}

.group\/nav:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ===== HOVER LIFT ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-6px);
}

/* ===== UTILITY ===== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ===== AOS Overrides ===== */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .mega-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
}

/* ===== CANDLESTICK COLORS ===== */
.candle-up { background-color: rgba(34, 197, 94, 0.3); border-color: #22c55e; }
.candle-down { background-color: rgba(248, 113, 113, 0.3); border-color: #f87171; }

/* ===== FORM FIELD VISIBILITY FIX (both light & dark modes) ===== */
select, input, textarea {
    color: var(--foreground) !important;
    color-scheme: dark;
}
.dark select, .dark input, .dark textarea {
    color-scheme: dark;
}
select option {
    background-color: #0f172a;
    color: #f8fafc;
}
.dark select option {
    background-color: #0f172a;
    color: #f8fafc;
}
/* Light-mode option */
:root:not(.dark) select option {
    background-color: #ffffff;
    color: #0f172a;
}
input::placeholder, textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
}
