:root {
    --bg-color: #020617;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --primary: #D4AF37;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
    --gold-rgb: 212, 175, 55;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(to bottom, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 12rem 0;
    position: relative;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(var(--gold-rgb), 0.1);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background-color: #E5C158;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 1000;
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.5);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.nav-floating {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-floating.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-item {
    padding: 0.75rem;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header-logo {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1.5rem;
    z-index: 50;
}

.header-logo img {
    height: 4.5rem;
    width: auto;
}

.investor-login {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hero */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Charts */
.chart-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    height: 500px;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Badges */
.badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
    display: inline-block;
}

/* Clickable Images */
.clickable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.clickable-image:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active {
    display: flex;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* Responsive Overhaul */
@media (max-width: 1400px) {
    h1 {
        font-size: 5.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .section {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 6rem 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .nav-floating {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 0.25rem;
    }

    .nav-item {
        padding: 0.5rem;
    }

    /* Force all grids to stack */
    [style*="grid-template-columns"],
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Exception for performance metrics grid */
    #performance div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .header-logo img {
        height: 3rem;
    }

    .investor-login {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.4rem 0.75rem;
        letter-spacing: 0.5px;
    }

    /* Team Section Responsive Adjustments */
    .team-card-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem !important;
    }

    .team-member-img {
        width: 60px !important;
        height: 60px !important;
    }

    .team-member-name {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Stacking for narrower screens */
@media (max-width: 640px) {
    .team-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .team-member-img {
        width: 80px !important;
        height: 80px !important;
    }

    .team-member-name {
        font-size: 1.5rem !important;
    }
}