:root {
    --bg-color: #050505;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-3: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    animation-delay: -5s;
}

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

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Common Layout */
section {
    padding: 40px 10%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    padding-top: 120px;
    text-align: center;
    align-items: center;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 5s linear infinite;
}

@keyframes gradientFlow {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s, transform 0.3s;
}

.btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Architecture Diagram */
.diagram-container {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.mermaid {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mermaid svg {
    max-width: 100% !important;
    max-height: 500px !important;
    height: auto !important;
    width: auto !important;
}

/* Metrics Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.metric-card {
    text-align: center;
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.metric-card h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(180deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    white-space: nowrap;
}

.metric-value .unit {
    font-size: 1rem;
    margin-left: 3px;
}

.metric-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Synthesis Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    flex-grow: 1;
}

.caption {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

/* Footer */
footer {
    position: relative;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-icons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-2);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.icon-link:hover {
    background: var(--accent-2);
    color: white;
    border-color: var(--accent-2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.footer-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    border: none;
    background: var(--glass-border);
    margin-bottom: 1.5rem;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.scroll-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    section { padding: 80px 5%; }
    .gallery { grid-template-columns: 1fr; }
}
