/* BlockHavers — African Blockchain Earners
   Official Master Brand Identity & Design System
   Exact Spec: Poppins font, #0066FF Primary Blue, #0B1B3D Navy Black, #00D4FF Cyan, #F4F7FF Off-White
*/

:root {
    --primary: #0066FF;        /* Official BlockHavers Primary Blue */
    --navy-black: #0B1B3D;     /* Official Navy / Obsidian Black */
    --accent-cyan: #00D4FF;    /* Official Electric Sky Blue / Cyan */
    --off-white: #F4F7FF;      /* Official Crisp Off-White */
    --surface-white: #FFFFFF;
    --border-light: rgba(11, 27, 61, 0.08);
}

/* Universal Mobile Viewport & Overflow Protection */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100vw;
    width: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--off-white);
    color: var(--navy-black);
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
    background-image:
        radial-gradient(circle at 80% 10%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 60%, rgba(0, 212, 255, 0.07) 0%, transparent 45%);
    background-size: 100% 100%;
    background-attachment: scroll;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Strict Zero Horizontal Scroll & Anti-Shake Guarantee on Mobile Devices */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        max-width: 100vw !important;
        width: 100% !important;
        background-attachment: scroll !important;
        overscroll-behavior-y: none;
    }

    header, main, section, footer {
        max-width: 100vw !important;
        overflow-x: clip !important;
        overflow-x: hidden !important;
    }
}

code,
pre,
.font-mono,
.hash-code {
    font-family: 'JetBrains Mono', monospace;
}

/* White Clean Fintech Card & Panels */
.fintech-card,
.glass-card,
.glass-panel {
    background: #FFFFFF;
    border: 1px solid rgba(11, 27, 61, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.08), 0 4px 6px -2px rgba(11, 27, 61, 0.03);
    border-radius: 1.5rem;
    color: #0B1B3D;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fintech-card:hover,
.glass-card:hover,
.glass-panel:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 102, 255, 0.15), 0 0 0 1px rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

/* Relief Tier Pills matching Master Design */
.relief-pill {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
    border: 1px solid rgba(0, 102, 255, 0.18);
    box-shadow: 0 4px 14px -3px rgba(0, 102, 255, 0.1);
    border-radius: 1.25rem;
    transition: all 0.25s ease;
}

.relief-pill:hover {
    border-color: #0066FF;
    box-shadow: 0 8px 24px -4px rgba(0, 102, 255, 0.2);
    transform: translateY(-1px);
}

/* Primary Action Glow Button */
.btn-primary-glow {
    background: linear-gradient(135deg, #0052FF 0%, #0066FF 60%, #0088FF 100%);
    box-shadow: 0 8px 24px -4px rgba(0, 102, 255, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #0045DC 0%, #0059E0 60%, #0077EE 100%);
    box-shadow: 0 14px 32px -4px rgba(0, 102, 255, 0.6);
    transform: translateY(-2px);
}

/* Ambient Soft Lighting Orbs */
.glow-orb-primary {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(0, 212, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.glow-orb-secondary {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(0, 102, 255, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #0B1B3D 30%, #0066FF 70%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F4F7FF;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 255, 0.6);
}

/* Surface & Brand Utilities */
.bg-surface-alt {
    background-color: #F4F7FF !important;
}
.bg-brand-surface {
    background-color: #F4F7FF !important;
}
.border-surface-alt {
    border-color: #E2E8F0 !important;
}

/* Hero Artwork Precision Sizing */
.hero-models-artwork {
    height: 480px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 102, 255, 0.35));
}

@media (max-width: 1024px) {
    .hero-models-artwork {
        height: 380px;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-models-artwork {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
        margin: 0 auto;
        display: block;
    }
}

/* Mobile-first smoothness */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}
