/* ado landing page — modern dark theme, no build step */

/* ── reset & base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #58a6ff;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

code, pre {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

code:not(pre code) {
  background: rgba(110, 118, 129, 0.4);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #f0883e;
}

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

/* ── header / nav ──────────────────────────────────────────── */
header {
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #21262d;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand .logo {
  font-size: 1.4em;
  line-height: 1;
}

.brand .name {
  font-size: 1.3em;
  font-weight: 700;
  color: #f0f6fc;
  letter-spacing: -0.02em;
}

.brand .tagline {
  color: #8b949e;
  font-size: 0.9em;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: #c9d1d9;
  font-size: 0.95em;
}
nav a:hover {
  color: #58a6ff;
  text-decoration: none;
}

/* ── hero ──────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(88, 166, 255, 0.08) 0%, transparent 60%);
}

.hero h1 {
  font-size: 3.2em;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #f0f6fc;
  letter-spacing: -0.03em;
}

.hero h1 em {
  color: #58a6ff;
  font-style: normal;
}

.lede {
  font-size: 1.15em;
  color: #8b949e;
  max-width: 700px;
  margin: 0 auto 40px;
}

.install-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
  max-width: 100%;
}

.install-cmd {
  width: 400px;
  max-width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-cmd .label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b949e;
  padding-left: 4px;
}

/* The shell-block inside an install-cmd is a nested terminal.
   No outer card chrome needed — the install-cmd provides the
   label, and the shell-block provides the terminal styling. */
.install-cmd .shell-block {
  margin: 0;
}

.install-cmd .shell-content {
  font-size: 0.75em;
  padding: 12px 14px;
  white-space: pre;
  overflow-x: auto;
  /* Subtle scrollbar for narrow code blocks that overflow */
  scrollbar-width: thin;
  scrollbar-color: #30363d #161b22;
}

.install-cmd .shell-content::-webkit-scrollbar {
  height: 4px;
}

.install-cmd .shell-content::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 2px;
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.badges img {
  display: inline-block;
  height: 20px;
}

/* ── sections (shared) ────────────────────────────────────── */
section h2 {
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #f0f6fc;
}

section h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #f0f6fc;
}

section {
  padding: 80px 0;
}

.features,
.ai-native,
.llm-agents,
.quickstart {
  border-top: 1px solid #21262d;
}

/* ── grid of cards ────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: #58a6ff;
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 8px;
  color: #f0f6fc;
}

.card p {
  margin: 0;
  color: #8b949e;
  font-size: 0.95em;
}

.card pre {
  margin-top: 12px;
  padding: 12px;
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  font-size: 0.8em;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}

.card pre code {
  color: #c9d1d9;
  background: transparent;
  padding: 0;
}

.card .soon {
  font-size: 0.7em;
  color: #8b949e;
  font-weight: normal;
  font-style: italic;
}

.card .recommended {
  font-size: 0.6em;
  color: #3fb950;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(63, 185, 80, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.card .hint {
  font-size: 0.8em !important;
  color: #6e7681 !important;
  font-style: italic;
  margin-top: 8px !important;
}

/* ── compare table ────────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.compare th,
.compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #21262d;
}

.compare th {
  background: #0d1117;
  font-weight: 600;
  color: #f0f6fc;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare td:first-child {
  font-weight: 600;
  color: #f0f6fc;
  width: 20%;
}

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

.compare tr:hover {
  background: rgba(88, 166, 255, 0.05);
}

/* ── code blocks ──────────────────────────────────────────── */
.code-block {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 24px 0;
  overflow: visible;
}

.code-block pre {
  margin: 0;
  padding: 0;
  color: #c9d1d9;
  font-size: 0.85em;
  line-height: 1.5;
  background: transparent;
  overflow: visible;
}

.code-block code {
  color: #c9d1d9;
  background: transparent;
  padding: 0;
}

.code-block strong {
  color: #58a6ff;
  font-weight: 600;
}

.code-block .comment {
  color: #6e7681;
  font-style: italic;
}

/* ── shell-style block (traffic lights + copy button) ─────── */
.shell-block {
  background: #010409;
  border: 1px solid #30363d;
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shell-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161b22;
  padding: 8px 14px;
  border-bottom: 1px solid #21262d;
  user-select: none;
}

.shell-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

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

.shell-label {
  flex: 1;
  text-align: center;
  font-size: 0.75em;
  color: #8b949e;
  text-transform: lowercase;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: transparent;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.75em;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  min-width: 60px;
}

.copy-btn:hover {
  color: #f0f6fc;
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.08);
}

.copy-btn:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 1px;
}

.copy-btn.copied {
  color: #3fb950;
  border-color: #3fb950;
  background: rgba(63, 185, 80, 0.08);
}

.shell-content {
  margin: 0;
  padding: 16px 20px;
  background: #010409;
  color: #c9d1d9;
  font-size: 0.85em;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

.shell-content code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* The "$ " prompt character in shell commands. Used by authoring the
   <pre> content as: <code><span class="prompt">$</span> command...</code>
   The prompt gets a subtle green tint, the command stays default. */
.shell-content .prompt {
  color: #3fb950;
  font-weight: 600;
  user-select: none;
  margin-right: 0.4em;
}

.shell-content strong {
  color: #58a6ff;
  font-weight: 600;
}

.shell-content .comment {
  color: #6e7681;
  font-style: italic;
}

/* JSON syntax highlighting (applied by assets/highlight.js) */
.shell-content .tok-key   { color: #79c0ff; }   /* JSON keys ("foo":) */
.shell-content .tok-str   { color: #a5d6ff; }   /* string values */
.shell-content .tok-bool  { color: #ffa657; }   /* true/false/null */
.shell-content .tok-num   { color: #d2a8ff; }   /* numbers */
.shell-content .tok-punct { color: #8b949e; }   /* , { } [ ] */

/* ── footer ───────────────────────────────────────────────── */
footer {
  background: #010409;
  border-top: 1px solid #21262d;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-grid h4 {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8b949e;
  margin: 0 0 12px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin: 6px 0;
  font-size: 0.95em;
}

.footer-grid p {
  margin: 6px 0;
  font-size: 0.9em;
  color: #8b949e;
}

/* ── responsive ───────────────────────────────────────────── */
.platform-note {
  text-align: center;
  color: #8b949e;
  font-size: 0.9em;
  margin-top: 32px;
}

/* ── hero refinements ──────────────────────────────────────────── */
.install-row-hero {
  justify-content: center;
  margin: 32px 0 16px;
}

.install-row-hero .install-cmd {
  width: auto;
  min-width: 420px;
}

.recommended-pill {
  font-size: 0.6em;
  color: #3fb950;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(63, 185, 80, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.hero-hint {
  text-align: center;
  color: #8b949e;
  font-size: 0.9em;
  margin: 8px 0 32px;
}

.hero-hint a {
  color: #58a6ff;
}

/* Section lede — a slightly larger intro paragraph under a heading */
.section-lede {
  font-size: 1.05em;
  color: #8b949e;
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-lede a {
  color: #58a6ff;
}
@media (max-width: 700px) {
  .hero h1 { font-size: 2.2em; }
  section { padding: 50px 0; }
  section h2 { font-size: 1.7em; }
  nav { gap: 12px; }
  nav a { font-size: 0.85em; }
  .brand .tagline { display: none; }
  .install-row { flex-direction: column; align-items: stretch; }
  .install-cmd { min-width: 0; }
  .compare { font-size: 0.85em; }
  .compare th, .compare td { padding: 8px 10px; }
}
