/* MoltSpeak Documentation Styles */

:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #12121a;
  --color-surface: #1a1a24;
  --color-border: #2a2a3a;
  --color-text: #e4e4e7;
  --color-text-muted: #a1a1aa;
  --color-primary: #FF4D4D;
  --color-primary-hover: #FF6B6B;
  --color-primary-dim: rgba(255, 77, 77, 0.15);
  --color-coral: #FF4D4D;
  --color-coral-dim: #CC3D3D;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #eab308;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* Navigation */
nav, .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-content, .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 18px;
}

.logo-icon {
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-github {
  padding: 8px 16px;
  background: var(--color-surface);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

/* Hero */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

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

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, var(--color-primary), #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

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

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

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Features */
.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Comparison */
.comparison {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.comparison h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-side {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.comparison-side h4 {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.comparison-side pre {
  background: var(--color-bg);
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 16px;
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
}

.comparison-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
}

.comparison-list.bad li::before {
  content: '✗';
  color: var(--color-error);
}

.comparison-list.good li::before {
  content: '✓';
  color: var(--color-success);
}

/* Ecosystem */
.ecosystem {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.ecosystem h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
}

.ecosystem-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.ecosystem-diagram {
  max-width: 900px;
  margin: 0 auto;
}

.ecosystem-layer {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
}

.layer-label {
  width: 120px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius) 0 0 var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
}

.layer-content {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.component-box {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

.component-box:hover {
  border-color: var(--color-primary);
}

.component-box.main {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 140, 66, 0.1));
  border-color: var(--color-primary);
}

.component-box h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.component-box p {
  font-size: 12px;
  color: var(--color-text-muted);
}

.ecosystem-cta {
  text-align: center;
  margin-top: 32px;
}

/* Quick Start */
.quick-start {
  padding: 80px 0;
}

.quick-start h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.tab {
  padding: 8px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--color-text);
}

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

.tab-content {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.tab-content.active {
  display: block;
}

.tab-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}

/* Protocol */
.protocol {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.protocol h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.protocol h3 {
  font-size: 24px;
  margin: 48px 0 24px;
}

.protocol h3:first-of-type {
  margin-top: 0;
}

.protocol > .container > pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.operation {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.operation code {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-primary);
}

.operation p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.classification-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.classification-table th,
.classification-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.classification-table th {
  background: var(--color-surface);
  font-weight: 600;
  font-size: 14px;
}

.classification-table td {
  font-size: 14px;
}

.classification-table code {
  font-family: var(--font-mono);
  background: var(--color-bg);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color-primary);
}

/* Security */
.security {
  padding: 80px 0;
}

.security h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.security h3 {
  font-size: 24px;
  margin: 48px 0 24px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.security-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.security-item h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.security-item p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.golden-rule {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.1), rgba(255, 140, 66, 0.1));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.golden-rule p:first-child {
  font-size: 18px;
  margin-bottom: 8px;
}

.golden-rule p:last-child {
  color: var(--color-text-muted);
}

/* SDK */
.sdk {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.sdk h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.sdk-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.sdk-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.sdk-card pre {
  background: var(--color-bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 16px;
}

.sdk-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.sdk-card li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.sdk-card li::before {
  content: '→ ';
  color: var(--color-primary);
}

/* For AI Agents */
.for-agents {
  padding: 100px 0;
  background: var(--color-bg);
}

.for-agents h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 12px;
}

.for-agents .section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

.for-agents h3 {
  font-size: 24px;
  margin: 48px 0 16px;
}

.agent-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.benefit-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.benefit-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
}

.benefit-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.benefit-card code {
  font-family: var(--font-mono);
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--color-primary);
}

.agent-code-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.agent-code-example pre {
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.agent-cta {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.1), rgba(255, 140, 66, 0.05));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.agent-cta h4 {
  font-size: 20px;
  margin-bottom: 16px;
}

.agent-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Page Header */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-nav-section {
  margin-bottom: 24px;
}

.docs-nav-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  padding-left: 12px;
}

.docs-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.docs-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.docs-nav a.active {
  color: var(--color-primary);
  background: rgba(255, 77, 77, 0.1);
}

.docs-content {
  max-width: 800px;
}

.docs-content h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.docs-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 48px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.docs-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.docs-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--color-text);
}

.docs-content ul, .docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.docs-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary);
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.docs-content th,
.docs-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.docs-content th {
  background: var(--color-surface);
  font-weight: 600;
}

/* Use Cases */
.use-cases-nav {
  padding: 24px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 64px;
  z-index: 50;
}

.scale-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.scale-tab {
  padding: 10px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.scale-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.scale-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.use-case-section {
  padding: 60px 0;
}

.use-case {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.use-case h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.use-case-problem {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.architecture-diagram {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.architecture-diagram pre {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.components-used {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.component-tag {
  padding: 4px 12px;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  font-size: 12px;
  color: var(--color-primary);
}

.badge {
  font-size: 14px;
  padding: 4px 12px;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  margin-left: 12px;
  font-weight: 500;
}

/* Notice boxes */
.notice {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.notice-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.notice-title {
  font-weight: 600;
  margin-bottom: 8px;
}

/* ASCII Diagrams */
.diagram {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  color: var(--color-text-muted);
  margin: 24px 0;
}

/* Code blocks with headers */
.code-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.code-lang {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.code-copy {
  padding: 4px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.code-block pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
}

.code-block code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

/* Benefits section */
.benefits {
  margin: 24px 0;
}

.benefits h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.benefits ul {
  list-style: none;
  padding: 0;
}

.benefits li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text-muted);
}

.benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
}

/* Community section */
.community {
  padding: 60px 0;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.community-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
}

.community-link:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.community-icon {
  font-size: 32px;
}

/* Commit format styling */
.commit-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.commit-type {
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.commit-type code {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 600;
}

.commit-format {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.commit-format pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Code of conduct */
.code-of-conduct {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
}

.code-of-conduct h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.code-of-conduct h3:first-child {
  margin-top: 0;
}

/* Contribute page */
.contribute-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.contribute-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.contribute-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.contribute-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contribute-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Conduct grid */
.conduct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.conduct-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.conduct-card.do {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.conduct-card.dont {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.conduct-card h4 {
  margin-bottom: 16px;
}

.conduct-card ul {
  list-style: none;
  padding: 0;
}

.conduct-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.conduct-report {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}

/* Example commits */
.example-commit, .format-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 12px 0;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Getting started steps */
.steps {
  margin: 32px 0;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 12px;
}

.step-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-x: auto;
}

/* Ways to contribute section */
.ways-to-contribute {
  padding: 60px 0;
}

.getting-started {
  padding: 60px 0;
  background: var(--color-bg-alt);
}

/* Examples page */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.example-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.example-header {
  padding: 16px 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}

.example-body {
  padding: 20px;
}

.example-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
}

/* Playground page */
.playground {
  padding: 60px 0;
  min-height: calc(100vh - 64px);
}

.playground-header {
  text-align: center;
  margin-bottom: 40px;
}

.playground-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.playground-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.panel-title {
  font-weight: 600;
  font-size: 14px;
}

.panel-actions {
  display: flex;
  gap: 8px;
}

.panel-content {
  padding: 20px;
}

.playground-textarea {
  width: 100%;
  min-height: 300px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text);
  resize: vertical;
}

.playground-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.playground-output {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 300px;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.validation-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
}

.validation-status.pending {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-icon {
  font-size: 18px;
}

.status-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* RFC Process */
.rfc-process {
  margin: 32px 0;
}

.rfc-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rfc-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.rfc-step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.rfc-step-content {
  flex: 1;
}

.rfc-step-content h4 {
  margin-bottom: 8px;
}

.rfc-step-content p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.rfc-arrow {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 24px;
  margin-left: 24px;
}

.rfc-when {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Security page extras */
.security-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.security-reports {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.security-reports a {
  color: var(--color-primary);
}

/* Notice variants */
.notice-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Feature cards (alternate style) */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

/* Logo text */
.logo-text {
  font-weight: 600;
  font-size: 18px;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* Syntax highlighting placeholders */
.language-json,
.language-python,
.language-javascript {
  color: var(--color-text);
}

/* Text utilities */
.text-center {
  text-align: center;
}

/* Pending state */
.pending {
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .agent-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .operation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .security-grid {
    grid-template-columns: 1fr;
  }
  
  .sdk-grid {
    grid-template-columns: 1fr;
  }
  
  .agent-benefits {
    grid-template-columns: 1fr;
  }
  
  .agent-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }
  
  .docs-sidebar {
    display: none;
  }
  
  .docs-content h1 {
    font-size: 32px;
  }
  
  .docs-content h2 {
    font-size: 24px;
  }
  
  .page-header h1 {
    font-size: 36px;
  }
  
  .scale-tabs {
    flex-wrap: wrap;
  }
  
  .nav-links {
    display: none;
  }
  
  .ecosystem-layer {
    flex-direction: column;
  }
  
  .layer-label {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  
  .layer-content {
    border-left: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius) var(--radius);
    flex-wrap: wrap;
  }
  
  .component-box {
    min-width: calc(50% - 6px);
  }
  
  .playground-grid {
    grid-template-columns: 1fr;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
  
  .community-grid {
    grid-template-columns: 1fr;
  }
  
  .contribute-grid {
    grid-template-columns: 1fr;
  }
  
  .conduct-grid {
    grid-template-columns: 1fr;
  }
  
  .rfc-step {
    flex-direction: column;
    text-align: center;
  }
  
  .rfc-arrow {
    margin-left: 0;
  }
}
