:root {
    --gold: #D4AF37;
    --gold-bright: #F5D161;
    --black: #0A0A0B;
    --charcoal: #1A1A1C;
    --wine: #722F37;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

main {
    padding-top: 80px; /* Exact offset for fixed header */
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Slightly more compact header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid var(--gold);
    background: #0A0A0B; /* Force solid black */
    backdrop-filter: none; /* Remove blur to ensure opacity */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-portal {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 25px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
}

section {
    padding: 100px 80px;
    scroll-margin-top: 120px; /* Offset for fixed header */
}

.btn-portal:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 80px 40px;
    position: relative;
    background: linear-gradient(to right, rgba(10,10,11,1) 40%, rgba(10,10,11,0)), url('hero.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
    z-index: 2;
}

.badge {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    border-left: 2px solid var(--gold);
    padding-left: 15px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #fff, #d4af37);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.hero-stats {
    margin-top: 60px;
    display: flex;
    gap: 80px;
    animation: fadeInUp 1.2s ease forwards;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--gold);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

/* Global Section */
.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
}

.map-dot::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: pulse 2s infinite;
}

.map-dot span {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
    background: rgba(0,0,0,0.8);
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.map-dot:hover span {
    opacity: 1;
    top: 25px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* Investors Section */
.investors-section {
    padding: 140px 0;
    background: var(--charcoal);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

.investor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.stock-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.stock-card canvas {
    flex-grow: 1;
    width: 100% !important;
    height: 300px !important;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 4px;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.stock-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.stock-price i {
    font-size: 1rem;
    margin-left: 5px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.data-item span {
    color: #888;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}

/* Innovations Grid */
.innovations-section {
    padding: 140px 0;
}

.grid-10 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tech-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 35px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.tech-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.tech-card:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.tech-card:hover::before {
    opacity: 1;
}

.btn-small {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
}

/* B2B Section */
.b2b-section {
    padding: 140px 80px;
    background: linear-gradient(rgba(10,10,11,0.9), rgba(10,10,11,0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.b2b-content {
    max-width: 900px;
    margin: 0 auto;
}

.b2b-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.b2b-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}

.f-item i {
    color: var(--gold);
    margin-right: 10px;
}

/* Footer */
footer {
    padding: 100px 80px 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-info p {
    margin: 20px 0;
    color: #888;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav h4 {
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-nav a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: #555;
    font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    min-height: 600px;
    padding: 60px;
    position: relative;
    border: 1px solid var(--gold);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Updates */
    @media (max-width: 1200px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.75rem; }
}

@media (max-width: 1050px) {
    header {
        padding: 0 30px;
    }
    .nav-links { 
        display: none !important; 
    }
    .mobile-menu-btn { 
        display: block !important; 
    }
    .hero {
        padding: 120px 30px 40px;
        height: auto;
        min-height: 100vh;
        text-align: center;
        background-position: 70% center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        position: relative;
        bottom: 0;
        left: 0;
        justify-content: center;
        margin-top: 40px;
        gap: 40px;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 50px; }
    .investor-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

@media (max-width: 480px) {
    header {
        padding: 0 20px;
        height: 70px;
    }
    
    .logo {
        font-size: 1.2rem;
    }

    .header-actions .btn-secondary {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .hero {
        padding: 60px 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 20px;
    }

    .modal-content table, 
    .modal-content thead, 
    .modal-content tbody, 
    .modal-content th, 
    .modal-content td, 
    .modal-content tr { 
        display: block !important; 
    }
    
    .modal-content thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .modal-content tr { border: 1px solid var(--glass-border); margin-bottom: 10px; }
    
    .modal-content td { 
        border: none;
        border-bottom: 1px solid var(--glass-border); 
        position: relative;
        padding-left: 50%; 
        padding-top: 10px;
        padding-bottom: 10px;
        text-align: left;
    }

    .modal-content td::before { 
        position: absolute;
        top: 10px;
        left: 10px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        font-weight: bold;
        color: var(--gold);
        content: attr(data-label);
    }

    /* Move watermark behind modals or to corner */
    #splash {
        z-index: 500; /* Behind modal overlay 1000 and modals 2000 */
    }
    
    .brand-signature {
        margin-top: 40px;
        transform: scale(0.9);
    }
}

/* Branding & Splash Screen (Integrated from Basico) */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease-out;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 200px;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s forwards;
}

.splash-text {
    color: white;
    margin-top: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1.5s 0.5s forwards;
    font-family: 'Outfit';
}

@keyframes fadeInScale {
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.brand-signature {
    margin-top: 60px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
}

.brand-badge {
    padding: 12px 25px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-badge strong {
    color: var(--gold);
}

.brand-badge:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    border-color: var(--gold);
}
