:root {
    --bg-primary: #0a0a16;
    --bg-secondary: #131426;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

/* Animations */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: var(--accent-primary); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent-secondary); bottom: 100px; right: 0; }
.orb-3 { width: 500px; height: 500px; background: var(--accent-tertiary); top: 30%; left: 30%; opacity: 0.2;}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -50px) scale(1.1); }
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5%;
    backdrop-filter: blur(16px);
    background: rgba(10, 10, 22, 0.7);
    border-bottom: 1px solid var(--glass-border);
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.nav-brand { font-weight: bold; font-size: 1.25rem; color: #fff; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a, .github-link { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .github-link:hover { color: var(--text-primary); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem;
}
.badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}
h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); }

/* Container */
.container { max-width: 900px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; gap: 3rem; }
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}
.panel-header h2 { margin-bottom: 1.5rem; color: var(--text-primary); }
p { color: var(--text-secondary); }

/* Code blocks */
.code-window { background: #0f111a; border-radius: 0.75rem; border: 1px solid var(--glass-border); overflow: hidden; }
pre, .code-block { padding: 1.5rem; color: #a5b4fc; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; background: #0f111a; border-radius: 0.5rem;}
.code-block { border: 1px solid var(--glass-border); margin-top: 1rem; }

/* Footer */
footer { text-align: center; padding: 2rem; border-top: 1px solid var(--glass-border); margin-top: 4rem; }
.author-link { color: var(--accent-secondary); text-decoration: none; }

/* Diagrams & Images */
.diagram-container {
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.diagram-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-primary);
}
.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}
.diagram-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1.25rem;
    font-weight: 500;
}
