:root {
    --bg-dark: #0a0d14;
    --bg-card: #121824;
    --bg-card-hover: #172133;
    --bg-alt: #0e131d;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --success: #10b981;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.logo-text {
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-text strong {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #fff;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Hero */
.hero {
    padding: 90px 0 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    color: #fff;
    border-color: #475569;
}

/* Sections */
.section {
    padding: 70px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 36px;
    text-align: center;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: #334155;
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.node-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.metrics {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.metric {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.metric strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.feature-item {
    padding: 20px;
}

.feature-item .icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

.code-box {
    background: #05070a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #38bdf8;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: #05070a;
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-col p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
