:root {
    --bg-color: #05070a;
    --text-color: #e2e8f0;
    --accent-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

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

header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

nav a:hover {
    color: var(--accent-blue);
}

.hero {
    padding: 10rem 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.4rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.4);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-5deg);
}

.features {
    padding: 8rem 0;
}

.features h3 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.feature-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--accent-yellow);
    font-weight: 700;
}

.feature-card p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.architecture {
    padding: 8rem 0;
    background: radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
}

.architecture h3 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
    font-weight: 800;
}

.architecture-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.mermaid {
    background: transparent !important;
}

/* Mermaid Custom Overrides */
.mermaid svg {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}

.mermaid .node rect,
.mermaid .node circle,
.mermaid .node polygon,
.mermaid .node path {
    stroke-width: 2px !important;
    transition: filter 0.3s, transform 0.3s;
}

.mermaid .node:hover rect,
.mermaid .node:hover circle,
.mermaid .node:hover polygon,
.mermaid .node:hover path {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.mermaid .edgePath path {
    stroke: #475569 !important;
    stroke-width: 2px !important;
}

.mermaid .edgeLabel {
    background-color: var(--bg-color) !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

.mermaid .cluster rect {
    fill: rgba(255, 255, 255, 0.03) !important;
    stroke: rgba(255, 255, 255, 0.1) !important;
    stroke-dasharray: 5, 5;
    rx: 15 !important;
    ry: 15 !important;
}

.architecture-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    color: #94a3b8;
}

footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: #64748b;
    font-size: 1rem;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual img {
        transform: none;
    }
}