:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --success: #10b981;
  --radius: 0.5rem;
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

/* Navbar */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
}

.nav-brand .emoji { font-size: 1.5rem; }

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }

.nav-link {
  color: var(--text-muted); text-decoration: none; font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--primary); }
.nav-link.external::after { content: "↗"; margin-left: 0.25rem; font-size: 0.875rem; }

/* Hero */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.hero-content { text-align: center; margin-bottom: 3rem; }

.hero-title {
  font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .emoji { font-size: 4rem; display: block; margin-bottom: 0.5rem; }

.hero-subtitle {
  font-size: 1.25rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 2rem;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Terminal */
.terminal {
  background: #1e1e1e; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}

.terminal-header {
  background: #323233; padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}

.terminal-buttons { display: flex; gap: 0.5rem; }
.terminal-buttons span { width: 12px; height: 12px; border-radius: 50%; }
.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }
.terminal-title { color: #d4d4d4; font-size: 0.875rem; font-weight: 500; }

.terminal-body { padding: 1rem; font-family: var(--mono); font-size: 0.875rem; line-height: 1.5; }
.terminal-line { margin-bottom: 0.25rem; }
.prompt { color: #569cd6; margin-right: 0.5rem; }
.output { color: #d4d4d4; }
.output.success { color: #4ec9b0; }
.output.cyan { color: #4fc1ff; }
.output.dim { opacity: 0.7; }
.output.bright { color: #e0e0e0; font-weight: 600; }
.output.green { color: #4ec9b0; }
.output.yellow { color: #dcdcaa; }

/* Sections */
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }

.features { padding: 5rem 0; background: var(--bg-secondary); }

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

.feature-card {
  background: var(--bg); padding: 2rem; border-radius: var(--radius);
  text-align: center; border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); }

/* Installation */
.installation { padding: 5rem 0; }

.install-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.install-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}

.install-card.featured {
  grid-column: 1 / -1;
  background: var(--bg);
  border: 2px solid var(--primary);
  margin-bottom: 2rem;
}

.install-card.featured h2 { font-size: 1.5rem; }

.install-card.featured .badge { background: var(--success); color: white; }

.install-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}

.install-header h3 { font-size: 1.25rem; font-weight: 600; }

.badge {
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}

.badge.recommended { background: var(--success); color: white; }
.badge.development { background: var(--primary); color: white; }

.install-code {
  background: #1e1e1e; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem;
  font-family: var(--mono); font-size: 0.875rem; overflow-x: auto;
}

.install-code code { color: #d4d4d4; white-space: pre-line; overflow-wrap: anywhere; display: block; line-height: 1.6; }

.install-card p { color: var(--text-muted); font-size: 0.875rem; }
.install-card p a { color: var(--primary); text-decoration: none; }
.install-card p a:hover { text-decoration: underline; }
.install-card code { background: var(--bg-secondary); padding: 0.125rem 0.25rem; border-radius: 0.25rem; font-size: 0.75rem; }

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

.platform-section h4 {
  font-size: 1rem; margin-bottom: 0.5rem; color: var(--text);
}

.install-notes { margin-top: 3rem; }
.install-notes h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }

/* Footer */
.footer {
  background: var(--text); color: var(--bg); padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}

.footer-section h4 { font-weight: 600; margin-bottom: 1rem; color: var(--bg); }
.footer-section p { color: #475569; font-size: 0.875rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #475569; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-section ul li a:hover { color: var(--bg); }

.footer-bottom { border-top: 1px solid #475569; padding-top: 1rem; text-align: center; }
.footer-bottom p { color: #475569; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-title .emoji { font-size: 3rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .install-options { grid-template-columns: 1fr; }
  .nav-menu { gap: 1rem; flex-wrap: wrap; }
}
