:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e4e4ed;
    --muted: #8888a0;
    --accent: #6c63ff;
    --accent-glow: rgba(108, 99, 255, 0.15);
    --green: #34d399;
    --orange: #f59e0b;
}

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

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

/* ── Nav ────────────────────────────────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover { opacity: 0.9; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}

.hero-badge {
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    max-width: 800px;
}

h1 .highlight { color: var(--accent); }

.hero-sub {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

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

/* ── Stats ──────────────────────────────────────────────────────────────────── */

.stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */

section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ── Feature grid ───────────────────────────────────────────────────────────── */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

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

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

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

/* ── Architecture grid ──────────────────────────────────────────────────────── */

.arch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.arch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
}

.arch-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.arch-card ul { list-style: none; }

.arch-card li {
    padding: 0.3rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.arch-card li::before {
    content: "\2192\00a0";
    color: var(--accent);
}

/* ── Principles ─────────────────────────────────────────────────────────────── */

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.principle {
    border-left: 3px solid var(--accent);
    padding: 1.2rem 1.5rem;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
}

.principle h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.principle p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── CTA ────────────────────────────────────────────────────────────────────── */

.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: radial-gradient(ellipse at 50% 100%, var(--accent-glow) 0%, transparent 60%);
}

.cta-section h2 { margin-bottom: 1rem; }

.cta-section p {
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .arch-grid { grid-template-columns: 1fr; }
    nav a:not(.nav-cta) { display: none; }
    .stats { gap: 1.5rem; }
}
