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

:root {
  --primary: #4F46E5;
  --primary-light: #6366f1;
  --cyan: #06B6D4;
  --bg: #0A0A0A;
  --surface: #111118;
  --surface-light: #1a1a24;
  --text: #f1f5f9;
  --text-muted: #64748b;
  --border: #1e293b;
}

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

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

/* Nav */
nav {
  background: var(--surface);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

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

.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 20px; }
.logo svg { flex-shrink: 0; }

.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 32px; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 24px; }

.lang-switch { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 6px; border: 1px solid var(--border); }
.lang-btn { background: transparent; border: none; color: var(--text-muted); padding: 4px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--primary); color: white; }

/* Hero */
#hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

#hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

#hero .subtitle {
  font-size: 20px;
  color: var(--cyan);
  margin-bottom: 24px;
  font-weight: 500;
}

#hero .description {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

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

/* Features */
#features { padding: 80px 0; }
#features h2 { text-align: center; font-size: 32px; margin-bottom: 48px; }

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

.feature-card {
  background: var(--surface);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--primary); }

.feature-icon { margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Architecture */
#architecture { padding: 80px 0; background: var(--surface); }
#architecture h2 { text-align: center; font-size: 32px; margin-bottom: 48px; }

.arch-diagram {
  background: var(--bg);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.arch-diagram pre {
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre;
}

.arch-stats { display: flex; justify-content: center; gap: 48px; text-align: center; flex-wrap: wrap; }

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--cyan);
}
.stat-label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* CTA */
#cta { padding: 80px 0; text-align: center; }
#cta h2 { font-size: 28px; margin-bottom: 32px; }

.code-block {
  background: var(--surface);
  padding: 24px 32px;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto 32px;
  border: 1px solid var(--border);
}

.code-block code {
  color: #22c55e;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
}

.cta-links { display: flex; gap: 16px; justify-content: center; }

/* Footer */
footer {
  background: var(--surface);
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; font-weight: 600; }

footer p { color: var(--text-muted); font-size: 13px; }
footer .copyright { margin-top: 16px; opacity: 0.6; }

/* Responsive */
@media (max-width: 768px) {
  #hero h1 { font-size: 32px; }
  #hero .subtitle { font-size: 16px; }
  .nav-links { display: none; }
  .arch-stats { gap: 32px; }
  .arch-diagram { padding: 24px; font-size: 12px; }
}