:root {
    /* Brand Colors for Luxury Security (Deep, Serious, Refined) */
    --c-bg: #050608;
    --c-surface: #0a0b12;
    --c-surface-hover: #14151e;
    --c-text-main: #f0f0f5;
    --c-text-muted: #8b8f9c;
    --c-accent: #c4a162; /* A sophisticated gold/bronze representing luxury/premium */
    --c-accent-glow: rgba(196, 161, 98, 0.2);
    --c-border: rgba(255, 255, 255, 0.04); /* Softer, barely visible borders */
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    --w-sidebar: 320px;
    
    /* New Smoothed Radii Values */
    --radius-lg: 24px;
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--c-bg); /* Use base dark */
    color: var(--c-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
    background-color: var(--c-bg);
    background-image: url('assets/bg_artemis.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center bottom;
}

/* NEW: Animated Aurora / Mesh Background (Like Stanford) */
/* This simulates a deep digital breathing glow behind everything */
body::before, body::after {
    content: '';
    position: fixed;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    z-index: 0;
    pointer-events: none;
    /* First blurry orb: Deep Tech Blue */
    background: radial-gradient(circle at 30% 40%, rgba(30, 45, 95, 0.15), transparent 50%);
    animation: drift 25s ease-in-out infinite alternate;
}
body::after {
    /* Second blurry orb: Warning Gold/Bronze */
    background: radial-gradient(circle at 70% 60%, rgba(196, 161, 98, 0.08), transparent 50%);
    animation: drift2 30s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 8%) scale(1.15); }
}
@keyframes drift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, -10%) scale(1.1); }
}

::selection {
    background: var(--c-accent);
    color: #000;
}

/* IMPACTFUL HERO SECTION */
.hero-section {
    position: relative;
    width: 100vw;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

/* Smooth fade out at the bottom of hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 35vh;
    background: linear-gradient(to bottom, transparent 0%, var(--c-bg) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Softened linear gradient without harsh stops */
    background: linear-gradient(to bottom, rgba(5,6,8,0.4) 0%, rgba(5,6,8,0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(196, 161, 98, 0.4);
    border-radius: var(--radius-md); /* Softened */
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-hero {
    display: inline-block;
    background: var(--c-accent);
    color: #050608;
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-md); /* Softened */
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero:hover {
    background: #e6c587;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(196, 161, 98, 0.25);
}

/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    /* Using transparent to let the animated body gradients show through */
    background: transparent; 
}

/* Sidebar - Glassmorphism Update */
.sidebar {
    width: var(--w-sidebar);
    /* Soft, translucent surface */
    background-color: rgba(10, 11, 18, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    z-index: 100;
    box-shadow: 10px 0 30px rgba(0,0,0,0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.brand-logo {
    height: 45px;
    width: auto;
    border-radius: var(--radius-md);
}

.brand h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: white;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md); /* Softened */
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    color: white;
    background-color: rgba(255,255,255,0.03);
}

.nav-menu a.active {
    color: var(--c-accent);
    background-color: rgba(196, 161, 98, 0.08); /* Smoother active state */
    border-left-color: var(--c-accent);
}

.sidebar-footer {
    margin-top: auto;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: rgba(196, 161, 98, 0.05); /* Slight glow */
    border: 1px solid rgba(196, 161, 98, 0.4); /* Softer border */
    color: var(--c-accent);
    text-decoration: none;
    padding: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: var(--c-accent);
    color: #050608;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 161, 98, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 5%;
    display: flex;
    justify-content: center;
}

.report-document {
    max-width: 780px;
    width: 100%;
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 5rem;
    scroll-margin-top: 4rem; 
}

.content-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    /* Soften the line */
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.content-section p.lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

/* Redesigned to be smooth cards */
.stat-card {
    background: rgba(10, 11, 18, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--c-border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg); /* Softened from 4px to heavily rounded */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4); /* Softer shadows instead of harsh top border */
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    background: rgba(20, 21, 30, 0.8);
    border-color: rgba(196, 161, 98, 0.3); /* Subtle accent border on hover */
}

.stat-card h3 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    margin: 0;
}

/* Pull Quotes */
.pull-quote {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-style: italic;
    color: white;
    line-height: 1.4;
    padding-left: 2rem;
    border-left: 3px solid var(--c-accent); /* Softened from 4px */
    margin: 3.5rem 0;
}

/* Image Showcase */
.image-showcase {
    margin: 3rem 0;
}

.content-image, .image-placeholder {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg); /* Softened */
    border: 1px solid var(--c-border);
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); /* Replaced harsh borders with floaty shadows */
}

.image-showcase .caption {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Styled Lists */
.styled-list {
    list-style: none;
    margin: 2rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.styled-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--c-accent);
    font-weight: bold;
}

.styled-list li strong {
    color: white;
}

/* Data Tables */
.data-table-container {
    overflow-x: auto;
    margin: 3rem 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg); /* Softened */
    background: rgba(10, 11, 18, 0.4);
    backdrop-filter: blur(10px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--c-border);
}

.data-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td {
    font-size: 1.05rem;
}

/* Numbered Insights */
.numbered-insights {
    counter-reset: insight-counter;
    list-style: none;
    margin: 2rem 0;
}

.numbered-insights li {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
}

.numbered-insights li::before {
    counter-increment: insight-counter;
    content: "0" counter(insight-counter);
    position: absolute;
    left: 0;
    top: -0.2rem;
    color: var(--c-accent);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
    opacity: 0.8; /* Slightly softer */
}

/* CTA Block */
.cta-block {
    position: relative;
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6rem 4rem;
    border-radius: var(--radius-lg); /* Beautiful soft rounding */
    border: 1px solid var(--c-border);
    text-align: center;
    margin-top: 5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); /* Adds floating depth instead of solid flat cut */
}

/* New animated gif background in the CTA */
.cta-animated-bg {
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.25; /* Slightly brighter for better animation visibility */
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(5px); /* Soften the harshness of the GIF */
}

.cta-block h3, .cta-block p, .btn-secondary, .cta-subtext {
    position: relative;
    z-index: 1;
}

.cta-block h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.cta-block p {
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    font-size: 1.2rem;
}

.btn-secondary {
    display: inline-block;
    background: white;
    color: #000;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md); /* Softened */
    font-weight: 700;
    margin-top: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--c-accent);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 161, 98, 0.3);
}

.cta-subtext {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--c-accent);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Softened timing */
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 5%;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg); /* Give the bottom edge a smooth curve on mobile */
    }
    
    .brand {
        margin-bottom: 0;
    }
    
    .nav-label, .nav-menu, .sidebar-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-block {
        padding: 4rem 2rem;
    }
}
