:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text: #c9d1d9;
  --text-secondary: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --border: #30363d;
  --success: #3fb950;
  --terminal-bg: #0d1117;
  --terminal-text: #c9d1d9;
  --font-mono: "SF Mono", "Consolas", "Liberation Mono", "Menlo", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica",
    "Arial", sans-serif;
}

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

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

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

/* Header */
header {
  padding: 4rem 0 3rem;
  text-align: center;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.github-badge {
  margin-top: 1rem;
}

.github-badge img {
  height: 24px;
}

/* Video Section */
.video {
  margin-bottom: 3rem;
}

.video-container {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}

/* Main sections */
main {
  padding: 4rem 0;
}

section {
  margin-bottom: 5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

/* Hero - Terminal Demo */
.hero {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.terminal-demo {
  width: 100%;
  max-width: 700px;
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.terminal-body {
  padding: 1.5rem;
}

.terminal-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.terminal-body code {
  color: var(--terminal-text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Installation */
.install-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.code-block {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.code-block code {
  color: var(--text);
  flex: 1;
}

.copy-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--accent-hover);
}

.note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.note code {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--accent);
}

.download-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.download-link:hover {
  color: var(--accent-hover);
}

/* Usage */
.usage p {
  margin-bottom: 1rem;
}

.usage code {
  background: var(--bg-tertiary);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.controls {
  margin-top: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.controls ul {
  list-style: none;
}

.controls li {
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

kbd {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: 0 2px 0 var(--border);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

footer p {
  margin: 0.25rem 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .terminal-body pre {
    font-size: 0.85rem;
  }

  .code-block {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    width: 100%;
  }
}
