/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Minimal documentation color palette */
  --primary: #1a1a1a;
  --primary-hover: #000000;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-code: #f5f5f5;
  --border: #e1e5e9;
  --border-light: #f0f0f0;
}

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

/* Header */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

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

.logo-icon {
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.language-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Main content */
main {
  margin-top: 0;
  padding-top: 80px;
  background: var(--bg-secondary);
}

/* Hero section */
.hero {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--primary);
  border-color: var(--primary);
}

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

/* Code demo */
.code-demo {
  background: var(--bg-code);
  border: 1px solid var(--border);
  overflow-x: auto;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.code-demo pre {
  margin: 0;
  padding: 1rem;
  background: transparent;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-align: center;
}

/* Remove the $ prefix for hero command */

/* AI Agent section */
.ai-agent {
  padding: 4rem 2rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

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

.ai-prompt h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.prompt-content {
  font-size: 0.9rem;
  line-height: 1.6;
}

.prompt-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.prompt-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-primary);
}

.prompt-content ul, .prompt-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prompt-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.prompt-content code {
  background: var(--bg-code);
  padding: 0.125rem 0.25rem;
  border: 1px solid var(--border);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.85em;
  color: var(--text-primary);
}

/* Features section */
.features {
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg-primary);
  padding: 2rem;
  border: none;
}

.feature-card:hover {
  background: var(--bg-secondary);
}

.feature-icon {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: white;
  letter-spacing: 0.05em;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Programmatic usage section */
.programmatic {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.usage-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.usage-example {
  background: var(--bg-primary);
  padding: 1.5rem;
}

.usage-example h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.usage-example pre {
  background: var(--bg-code);
  padding: 1rem;
  border: 1px solid var(--border);
  margin: 0;
  overflow-x: auto;
}

.usage-example code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
  font-size: 0.72rem !important;
  color: var(--text-primary);
  line-height: 1.4;
}


/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

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

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: var(--primary);
}

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

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-medium);
  cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .feature-card, .step, .install-option {
    padding: 1.5rem;
  }
}

/* Code syntax highlighting - Prism.js overrides */
pre[class*="language-"] {
  background: var(--bg-code) !important;
  border: 1px solid var(--border) !important;
  margin: 0 !important;
  padding: 1rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

code[class*="language-"] {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
  text-shadow: none !important;
}

/* Specific font size for usage examples */
.usage-example code[class*="language-"] {
  font-size: 0.72rem !important;
}

/* Syntax highlighting colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--text-muted) !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #1a1a1a !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #007700 !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--text-primary) !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #aa0066 !important;
}

.token.function,
.token.class-name {
  color: #cc6600 !important;
}

/* Utility classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none; }