:root {
    --bg-color: #09090b;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --glass-bg: rgba(24, 24, 27, 0.4);
    --glass-border: rgba(63, 63, 70, 0.4);
    --card-bg: rgba(24, 24, 27, 0.6);
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --secondary: rgba(255, 255, 255, 0.1);
    --secondary-hover: rgba(255, 255, 255, 0.15);
}

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

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

/* Background Noise overlay */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-content .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-text {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 2rem;
    font-weight: 400;
}

.authors {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn.secondary {
    background-color: var(--secondary);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn.secondary:hover {
    background-color: var(--secondary-hover);
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Background Gradient blobs */
.hero-bg-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, rgba(9,9,11,0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.text-block {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #d4d4d8;
}

.text-block p {
    margin-bottom: 1.5rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
}

/* Methodology Grid */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.method-grid .glass-card {
    padding: 2rem;
}

.method-grid h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.method-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interactive Code Section */
.code-example-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.example-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.example-header h3 {
    font-family: 'Space Mono', monospace;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.code-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.description-box {
    padding: 1rem 2rem;
    background: rgba(56, 189, 248, 0.05);
    color: #cbd5e1;
    font-style: italic;
    border-bottom: 1px solid var(--glass-border);
}

.code-panels {
    position: relative;
}

.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

pre[class*="language-"] {
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Charts Container placeholder */
.charts-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bibtex-container {
    max-width: 800px;
    width: 100%;
    margin-bottom: 3rem;
}

.bibtex-block {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.bibtex-block pre {
    margin: 0;
    font-family: 'Space Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary);
    color: #000;
}

/* Responsive constraints */
@media (max-width: 900px) {
    .stats-container, .method-grid {
        grid-template-columns: 1fr;
    }
    
    .glow-text {
        font-size: 3.5rem;
    }
    
    .nav-links {
        display: none;
    }
}
