/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

/* Base styles - Dark Mode */
body {
    font-family: 'Inter', sans-serif;
    background-color: #050505;
    /* Deep black */
    color: #e2e8f0;
    /* Light gray text */
    overflow-x: hidden;
}

/* Navigation */
header {
    background-color: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #f59e0b;
    /* Amber/Gold */
    border-bottom: 2px solid #f59e0b;
}

.nav-link:hover {
    color: #f59e0b;
}

/* Animations */
.content-section {
    display: none;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Cards - Glassmorphism */
.card {
    background-color: rgba(30, 41, 59, 0.4);
    /* Slate-800 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    border-color: #f59e0b;
}

.card-title {
    color: #f59e0b;
    /* Amber */
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.39);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.23);
    filter: brightness(1.1);
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 450px;
    padding: 1.5rem;
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typography */
h1 {
    font-size: 5rem;
    /* Increased from 3.5rem */
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 3.5rem;
    /* Increased from 2.5rem */
    line-height: 1.2;
    font-weight: 800;
    color: #f1f5f9;
    margin-top: 3rem;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.75rem;
    /* Increased from 1.5rem */
    color: #38bdf8;
    /* Sky blue accent */
    margin-top: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.15rem;
    /* Slightly larger readability */
}

.section-intro {
    font-size: 1.5rem;
    /* Increased from 1.4rem */
    color: #94a3b8;
    margin-bottom: 3rem;
    border-left: 5px solid #f59e0b;
    padding-left: 2rem;
    font-weight: 300;
    max-width: 900px;
    /* Slightly wider */
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
#hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -64px;
    /* Counteract header height */
    padding-top: 64px;
}

#highlights-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 2rem;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Interactive Elements */
.tab-button {
    background-color: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    border-color: #f59e0b;
}

.agent-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.agent-card-details.expanded {
    max-height: 500px;
}

/* Tab content visibility */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Highlights section flex layout */
#highlights-section {
    flex-direction: column;
}