:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
}

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

body {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: lowercase;
}

section {
  margin-bottom: 3rem;
}

/* Terminal demo */
.demo .terminal {
  margin-bottom: 1.5rem;
}

.demo .terminal:last-child {
  margin-bottom: 0;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.terminal-header {
  background: var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1rem 1.25rem;
}

.line {
  margin-bottom: 0.5rem;
}

.line.output {
  margin-bottom: 0.75rem;
}

.line.dimmed {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.prompt {
  color: var(--green);
  margin-right: 0.5rem;
}

.command {
  color: var(--text);
}

.result {
  color: var(--accent);
}

.result-danger {
  color: var(--red);
}

/* Explanation blocks */
.explanation {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.explanation.danger {
  border-left: 2px solid var(--red);
}

.safety-tag {
  font-weight: 600;
  font-size: 0.8rem;
}

.safety-tag.danger {
  color: var(--red);
}

.danger-notice {
  color: var(--red);
}

/* Pseudocode */
.pseudocode {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

/* Python syntax highlighting */
.pseudocode.python .keyword {
  color: #ff79c6;
}

.pseudocode.python .string {
  color: #a5d6ff;
}

.pseudocode.python .number {
  color: #79c0ff;
}

.pseudocode.python .name {
  color: var(--text);
}

.pseudocode.python .builtin {
  color: #d2a8ff;
}

/* Code blocks */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  position: relative;
  overflow-x: auto;
}

.code-block code,
.code-block pre {
  color: var(--text);
  font-size: 0.9rem;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--border);
  border: none;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
}

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

.note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.note code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

.install-option {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.install-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.install-option .code-block {
  margin: 0;
}

.install-option .code-block code {
  font-size: 0.85rem;
}

.install-option .note {
  margin-top: 0.25rem;
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card.featured {
  border-color: var(--accent);
}

.card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.price {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.card li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card li::before {
  content: '+ ';
  color: var(--green);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
}

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

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

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
