/* Crypto Modern Stack — Pro JS Framework + Solana Vibe */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-bold {
    font-family: 'Inter', 'Satoshi', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Buttons, prices — punchy tech feel */
button,
.btn,
[class*="bg-"] {
    font-family: 'Satoshi', Space Grotesk, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-action {
    background: #9945FF;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(153, 69, 255, 0.39);
}

/* Solana Glow Effect (Phase 3.3) - Dual Mode Strategy */
.btn-galactic {
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Clean edge for light mode */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #0052FF !important;
    /* Coinbase Blue */
    color: #FFFFFF !important;
    border: 2px solid #0F172A !important;
    /* Industrial Slate Shell */
    border-radius: 9999px !important;
    /* Force Pill Shape */
    box-shadow: 0 4px 6px -1px rgba(0, 82, 255, 0.1), 0 2px 4px -1px rgba(0, 82, 255, 0.06) !important;
    font-weight: 700;
}

/* Internal Shimmer Layer - Subtle in Light Mode */
.btn-galactic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 3s infinite linear;
    /* Faster cycle */
    pointer-events: none;
    z-index: 2;
    border-radius: 9999px !important;
}

/* Dark Mode Intensity - "Nuclear Neon Solana" */
.dark .btn-galactic {
    overflow: visible !important;
    /* Allow glow to bleed out */
    border: 2px solid #ffffff !important;
    background: transparent !important;
    box-shadow:
        0 0 35px rgba(147, 51, 234, 0.9),
        0 0 70px rgba(147, 51, 234, 0.4),
        0 0 100px rgba(147, 51, 234, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.4) !important;
    animation: aura-nuclear-pulse-dark 4s infinite ease-in-out;
}

.dark .btn-galactic::before {
    inset: -2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
}

@keyframes aura-nuclear-pulse-dark {

    0%,
    100% {
        box-shadow: 0 0 25px rgba(147, 51, 234, 0.8), 0 0 50px rgba(147, 51, 234, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 55px rgba(147, 51, 234, 1), 0 0 100px rgba(147, 51, 234, 0.6);
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    40% {
        transform: translateX(150%);
        opacity: 1;
    }

    50%,
    100% {
        transform: translateX(150%);
        opacity: 0;
    }
}

.btn-galactic:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 82, 255, 0.2) !important;
    filter: brightness(1.1);
}

.dark .btn-galactic:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 30px 60px rgba(147, 51, 234, 0.9) !important;
}

/* UX Overhaul: Section Depth & Flow */
.section-flow-bg {
    position: relative;
    background-color: #ffffff;
    transition: background-color 0.5s ease;
}

.dark .section-flow-bg {
    background-color: #020617;
}

/* Layered Depth Gradient for Dark Mode */
.dark .section-depth-gradient {
    background: radial-gradient(circle at center bottom, rgba(153, 69, 255, 0.08) 0%, transparent 70%);
}

.dark .section-depth-gradient-top {
    background: radial-gradient(circle at center top, rgba(20, 241, 149, 0.05) 0%, transparent 60%);
}

/* Subtle Glass Card Fallback for Light Mode (Coinbase Crisp) */
.glass-card {
    background: #ffffff;
    border: 1px solid #F1F5F9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Subtle Glass Card for Dark Mode */
.dark .glass-card {
    background: rgba(21, 25, 33, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section Dividers with Gradient */
.dark .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 69, 255, 0.2), transparent);
}

/* Hero Energy Mesh */
.hero-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(153, 69, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
    opacity: 0.5;
}

/* Premium Hero Effects — High Impact */
@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-35px);
    }
}

@keyframes aura-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.animate-hero-float {
    animation: hero-float 7s ease-in-out infinite;
}

.hero-aura {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(0, 82, 255, 0.3) 0%, transparent 70%);
    filter: blur(100px);
    border-radius: 100%;
    animation: aura-pulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.dark .hero-aura {
    background: radial-gradient(circle at center, rgba(153, 69, 255, 0.45) 0%, transparent 70%);
    filter: blur(140px);
}

.hero-aura-secondary {
    animation-delay: -5s;
    background: radial-gradient(circle at center, rgba(20, 241, 149, 0.25) 0%, transparent 70%);
}

.btn-action:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 69, 255, 0.23);
}

/* Wallet addresses, codes, IDs — monospace tech */
.font-mono,
code,
.wallet,
.id {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Subtle crypto glow on focus/hover */
button:focus,
button:hover,
.wallet:focus {
    text-shadow: 0 0 8px rgba(153, 69, 255, 0.2);
    /* Solana Purple glow */
}

.the-color {
    color: #9945FF;
}

.bg-coinbase-gradient {
    background: radial-gradient(circle at top right, #f5f8ff 0%, #ffffff 100%);
}

.dark .bg-coinbase-gradient {
    background: radial-gradient(circle at top right, #1a1f2e 0%, #0B0E14 100%);
}

.bg-vibrant-gradient {
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
}

.dark .bg-vibrant-gradient {
    background: linear-gradient(135deg, #4c1d95 0%, #064e3b 100%);
}

.translate-x-full {
    transform: translateX(100%);
}

/* For Intersection Observer highlighting */
.nav-active {
    color: #0052FF !important;
    font-weight: 900 !important;
    border-bottom: 2px solid #0052FF;
}

/* Sidebar specific layout adjustments */
@media (min-width: 768px) {
    .sidebar-content {
        margin-left: 240px;
    }
}
/* Mobile Stability: Modulate high-intensity glows */
@media (max-width: 767px) {
    .dark .btn-galactic {
        box-shadow: 
            0 0 15px rgba(147, 51, 234, 0.8),
            0 0 30px rgba(147, 51, 234, 0.3) !important;
        animation: none !important;
    }
}

/* reCAPTCHA Stabilization: Ensure badge doesn't cause layout jumps or overlap issues */
.grecaptcha-badge { 
    z-index: 9999 !important;
    transition: transform 0.3s ease !important;
}

/* Ensure mobile menu brand stays above high-intensity glows */
#mobile-menu .z-30, #mobile-menu .z-40 {
    pointer-events: auto !important;
}

/* Deep Fix: Kill mobile jitter and sticky hover */
@media (max-width: 767px) {
    /* Stop font-weight shift from changing element width */
    .nav-active {
        font-weight: 600 !important;
        border-bottom: 2px solid #0052FF !important;
    }
    
    /* Disable all transforms and scaling on mobile buttons */
    .btn-galactic, .btn-action, .btn-galactic:hover, .btn-action:hover {
        transform: none !important;
        transition: none !important;
    }

    /* Kill the sticky hover/glow interception */
    .btn-galactic::before, .btn-galactic::after {
        pointer-events: none !important;
        display: none !important; /* Fully hide shimmer in high-collision areas like mobile menu */
    }

    /* Prevent text selection and browser-specific blue highlights during rapid tapping */
    #mobile-menu-toggle, #mobile-menu-close, .mobile-nav-link {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
}
