krait-cli 0.1.2

Code intelligence CLI for AI agents
Documentation
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #00D4A8;
  --bg: #0C0E14;
  --surface: #13161F;
  --border: rgba(0, 212, 168, 0.15);
  --text: #E2E8F0;
  --muted: #64748B;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  font-size: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(0, 212, 168, 0.1);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.logo-text { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--accent); }
.version-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(0, 212, 168, 0.1);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 20px;
}
.nav-links { display: flex; gap: 24px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 100px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }
.hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0C0E14;
}
.btn-primary:hover { background: #33DDB8; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Terminal */
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }
.terminal-title {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.terminal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.terminal-line { display: flex; gap: 8px; }
.prompt { color: var(--accent); user-select: none; }
.cmd { color: var(--text); }
.terminal-output { padding-left: 18px; color: #94A3B8; }
.terminal-output.muted { color: var(--muted); }
.terminal-output.error { color: #F87171; }
.terminal-output.success { color: var(--accent); }

/* Sections */
section { padding: 80px 0; }
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Features */
.features { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon-box {
  width: 36px;
  height: 36px;
  background: rgba(0, 212, 168, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* How it works */
.arch-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 32px;
}
.arch-ascii {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #94A3B8;
  white-space: pre;
  line-height: 1.7;
}
.how-steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 168, 0.1);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

/* Performance */
.performance { background: var(--surface); }
.table-wrapper { overflow-x: auto; margin-top: 8px; }
.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bench-table th {
  text-align: left;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.bench-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 212, 168, 0.05);
}
.bench-table tr:last-child td { border-bottom: none; }
.bench-table tr:hover td { background: rgba(0, 212, 168, 0.03); }
.project-name { font-family: var(--font-mono); font-weight: 600; }
.center { text-align: center; }
.perf { font-family: var(--font-mono); color: var(--accent); }

/* Languages */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 40px 0 24px;
}
.lang-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  transition: border-color 0.2s;
}
.lang-card:hover { border-color: var(--accent); }
.lang-dot { width: 12px; height: 12px; border-radius: 50%; }
.lang-name { font-weight: 600; font-size: 15px; }
.lang-server { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.lang-note { text-align: center; color: var(--muted); font-size: 13px; }

/* Install */
.install { background: var(--surface); }
.install-tabs {
  display: flex;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.install-option {
  flex: 1;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}
.install-label { color: var(--muted); font-size: 12px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.install-cmd code {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
}
.install-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.install-link:hover { text-decoration: underline; }
.install-next { text-align: center; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-license { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .install-tabs { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}