@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #09090b;
  --surface: #111113;
  --surface-hover: #18181b;
  --border: #1e1e22;
  --border-light: #2a2a30;
  --text: #ececee;
  --text-secondary: #a1a1a8;
  --text-dim: #5a5a63;
  --accent: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.08);
  --blue: #7dd3fc;
  --amber: #fcd34d;
  --yellow: #facc15;
  --red: #f87171;
  --cyan: #22d3ee;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
  text-align: center;
  padding: 100px 24px 72px;
  position: relative;
  overflow: hidden;
}

.nav-link {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
  z-index: 1;
}

.nav-link:hover {
  color: var(--accent);
}

header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.08) 0%, rgba(34, 211, 238, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

h1 {
  font-family: var(--mono);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -3px;
  color: #fff;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.install pre {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 28px;
  transition: border-color 0.2s;
}

.install pre:hover {
  border-color: var(--border-light);
}

/* Main */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
section {
  padding: 52px 0;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

section:last-child::after {
  display: none;
}

.example-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
}

p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.75;
}

p code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--text);
}

.note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* Code blocks */
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  margin-bottom: 14px;
}

code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

/* YAML syntax */
.y-key { color: var(--blue); }
.y-val { color: var(--amber); }
.y-comment { color: var(--text-dim); font-style: italic; }

/* Run line */
.run-line {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  margin-top: 10px;
}

.run-line code {
  color: var(--text-dim);
  font-size: 13px;
}

.run-line code::before {
  content: '$ ';
  color: var(--accent);
  font-weight: 700;
}

/* Result block */
.result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.result-header {
  padding: 10px 20px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.result-body {
  padding: 16px 20px;
  white-space: pre;
  overflow-x: auto;
  color: var(--text-dim);
}

.accent { color: var(--accent); font-weight: 700; }

/* Terminal block */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.titlebar {
  padding: 12px 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--accent); }

.term-content {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}

.t-cmd { color: #fff; font-weight: 700; }
.t-bold { color: #fff; font-weight: 700; }
.t-dim { color: var(--text-dim); }
.t-ts { color: #3a3a42; }
.t-ok { color: var(--accent); }
.t-warn { color: var(--yellow); }
.t-fail { color: var(--red); }
.t-cyan { color: var(--cyan); }

/* Input modes */
.modes {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.mode {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.mode-name {
  color: var(--accent);
  font-weight: 700;
  min-width: 40px;
}

.mode-desc {
  color: var(--text-dim);
}

/* CLI list */
.cli-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cli-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.cli-row:last-child {
  border-bottom: none;
}

.cli-row:hover {
  background: var(--surface-hover);
}

.cli-row code {
  font-family: var(--mono);
  color: var(--text);
  white-space: nowrap;
  min-width: 300px;
  font-size: 12.5px;
}

.cli-row span {
  color: var(--text-dim);
  font-size: 13px;
}

/* Footer */
footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--accent);
}

.sep { color: var(--border); }

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Scrollbar */
::-webkit-scrollbar {
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Mobile */
@media (max-width: 600px) {
  h1 { font-size: 44px; letter-spacing: -2px; }
  header { padding: 64px 24px 48px; }
  section { padding: 36px 0; }
  .cli-row { flex-direction: column; gap: 4px; }
  .cli-row code { min-width: auto; }
}
