/* statevec — shared styles */

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

body {
  background: #0d1117;
  color: #e6edf3;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px;
}

/* Typography */
h1 { font-size: 2.8em; margin-bottom: 8px; color: #58a6ff; letter-spacing: -1px; }
h2 { color: #58a6ff; font-size: 1.2em; margin-bottom: 16px; }
p  { color: #8b949e; line-height: 1.7; margin-bottom: 16px; font-size: 0.9em; }
a  { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Colors */
.green  { color: #3fb950; }
.blue   { color: #58a6ff; }
.dim    { color: #484f58; }
.orange { color: #f39c12; }

/* Layout */
.subtitle { color: #8b949e; font-size: 1em; margin-bottom: 48px; }
.section  { max-width: 600px; width: 100%; margin-bottom: 40px; }
.links    { display: flex; gap: 24px; justify-content: center; margin-top: 48px; font-size: 0.9em; }

/* Buttons */
.btn {
  background: #238636;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.1em;
  cursor: pointer;
  margin: 4px;
  transition: background 0.2s;
}
.btn:hover     { background: #2ea043; }
.btn.red       { background: #da3633; }
.btn.red:hover { background: #f85149; }

/* Cards */
.card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.card:hover { border-color: #58a6ff; }
.card .name { color: #e6edf3; font-size: 0.9em; margin-bottom: 6px; }
.card .desc { color: #484f58; font-size: 0.75em; line-height: 1.5; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.tag { display: inline-block; background: #21262d; color: #8b949e; padding: 2px 6px; border-radius: 3px; font-size: 0.65em; margin-top: 8px; }

/* Badge */
.badge {
  display: inline-block;
  background: #238636;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75em;
  margin-left: 8px;
  vertical-align: middle;
}

/* Code */
pre {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.85em;
  color: #c9d1d9;
  margin-bottom: 16px;
}

/* Panels */
.panel {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  max-width: 600px;
  width: 100%;
}

/* Demo box (counter) */
.demo-box {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-bottom: 48px;
  max-width: 500px;
  width: 100%;
}
.demo-label { color: #484f58; font-size: 0.8em; margin-top: 16px; }

/* Capability diagram */
.cap {
  display: flex; gap: 40px; justify-content: center; margin: 24px 0;
  font-size: 0.85em;
}
.cap div { text-align: center; }
.cap .label { color: #484f58; font-size: 0.8em; margin-top: 4px; }

/* API reference */
.api-ref {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 16px;
  max-width: 600px;
  width: 100%;
  margin-bottom: 40px;
  font-size: 0.8em;
}
.api-ref table { width: 100%; border-collapse: collapse; }
.api-ref td { padding: 6px 0; color: #8b949e; vertical-align: top; }
.api-ref td:first-child { color: #c9d1d9; white-space: nowrap; width: 200px; }
.api-ref .method { color: #3fb950; }

/* Grid (demos page) */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  width: 100%;
}
.section-title { color: #58a6ff; font-size: 1em; margin: 32px 0 16px; max-width: 720px; width: 100%; }

/* Pricing models */
.model-title { color: #e6edf3; font-size: 1em; margin-bottom: 8px; }
.model-desc  { color: #8b949e; font-size: 0.85em; line-height: 1.6; }
.model-price { color: #3fb950; font-size: 0.9em; margin-top: 8px; }
