:root {
  --bg: #0b1121;
  --bg-light: #162032;
  --card: rgba(22, 32, 50, 0.6);
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --muted: #94a3b8;
  --white: #f8fafc;
  --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top right, rgba(45, 212, 191, 0.05), transparent 400px),
                    radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.03), transparent 400px);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.brand-icon { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 0.9rem; font-weight: 500;}
.main-nav a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.main-nav a:hover { color: var(--white); }
.nav-github { display: flex; align-items: center; gap: 6px; }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.badge { display: inline-block; padding: 6px 12px; background: rgba(45, 212, 191, 0.1); color: var(--accent); border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(45, 212, 191, 0.2);}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin: 0 0 20px; line-height: 1.1; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { color: var(--muted); font-size: 1.25rem; max-width: 680px; margin: 0 auto 32px; }
.hero .lead b { color: var(--white); }
.cta-group { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 4px 14px rgba(45, 212, 191, 0.2); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3); }
.btn-secondary { background: var(--card); color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

/* Hero Image */
.hero-image { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 80px rgba(0,0,0,0.4); max-width: 860px; margin: 0 auto; background: var(--bg-light); }
.hero-image img { width: 100%; height: auto; display: block; }

/* Sections */
.section { padding: 80px 0; }
.alt-bg { background-color: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 2rem; font-weight: 700; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card); padding: 32px; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(45, 212, 191, 0.4); }
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Lists */
.features-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.features-list li { display: flex; align-items: flex-start; gap: 16px; background: var(--card); padding: 24px; border-radius: 12px; border: 1px solid var(--border); }
.f-icon { font-size: 1.8rem; background: rgba(255,255,255,0.05); width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.features-list strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: var(--white); }
.features-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Architecture */
.arch-box { display: flex; flex-direction: column; gap: 16px; max-width: 700px; margin: 0 auto; }
.arch-layer { background: var(--card); border-radius: 12px; padding: 20px; text-align: center; border: 1px solid var(--accent); }
.arch-layer h4 { margin: 0 0 8px; color: var(--accent); font-size: 1.1rem;}
.arch-layer p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.arch-layer code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; color: var(--accent); }

/* Code Window */
.code-window { max-width: 720px; margin: 0 auto; background: #010409; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.window-header { display: flex; align-items: center; padding: 12px 16px; background: #0d1117; border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.window-title { margin-left: auto; margin-right: auto; padding-right: 48px; color: #8b949e; font-size: 0.8rem; font-family: monospace; }
.code-window pre { margin: 0; padding: 24px; overflow-x: auto; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 0.9rem; line-height: 1.5; color: #c9d1d9; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 40px; background: var(--bg-light); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* Responsive responsive responsive */
@media (max-width: 768px) {
  .main-nav { display: none; width: 100%; position: absolute; top: 64px; left: 0; background: var(--bg); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); }
  .main-nav.show { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .features-list { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; }
}

/* Language Switcher */
.lang-switcher { display: flex; gap: 8px; margin: 0 16px; border-left: 1px solid var(--border); padding-left: 16px; }
.lang-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.lang-btn:hover { color: var(--white); border-color: var(--muted); }
.lang-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

@media (max-width: 768px) {
  .lang-switcher { margin: 0; border: none; padding: 16px 0; order: -1; width: 100%; border-bottom: 1px solid var(--border); }
}
