:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a28;
  --border: #2a2a3e;
  --text: #e0e0e8;
  --dim: #888899;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --cyan: #22d3ee;
  --magenta: #c084fc;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ─── Hero ─── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 20px;
  color: var(--dim);
  max-width: 600px;
  margin: 0 auto 32px;
}

.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--dim);
  margin: 0 4px;
}

.badge code {
  color: var(--accent2);
}

/* ─── Sections ─── */
section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

section .subtitle {
  color: var(--dim);
  margin-bottom: 32px;
  font-size: 15px;
}

/* ─── Architecture Diagram ─── */
.diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
  color: var(--dim);
}

.diagram .highlight { color: var(--accent); }
.diagram .tool { color: var(--cyan); }
.diagram .flow { color: var(--yellow); }

/* ─── Tools Grid ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.tool-card h3 {
  font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--dim);
}

/* ─── Tables ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  color: var(--dim);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--green);
}

.data-table .cost {
  font-family: 'JetBrains Mono', monospace;
  color: var(--yellow);
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* ─── Demo Terminals ─── */
.demo-section {
  margin-bottom: 40px;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.demo-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.demo-tab:hover { border-color: var(--accent); color: var(--text); }
.demo-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

.terminal-body {
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
}

.terminal-body .prompt { color: var(--green); }
.terminal-body .user-input { color: var(--text); }
.terminal-body .claude-label { color: var(--magenta); }
.terminal-body .claude-text { color: var(--text); }
.terminal-body .tool-call { color: var(--cyan); font-weight: bold; }
.terminal-body .tool-result { color: var(--dim); }
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--text);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.demo-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.demo-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--dim);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.demo-btn:hover { border-color: var(--accent); color: var(--text); }

/* ─── Latency ─── */
.latency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.latency-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.latency-card .value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.latency-card .label {
  font-size: 13px;
  color: var(--dim);
  margin-top: 4px;
}

/* ─── Footer ─── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

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

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 16px; }
  section h2 { font-size: 22px; }
  .diagram { font-size: 11px; padding: 16px; }
}
