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

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0f;
  color: #e8e4df;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #059669;
  color: #fff;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }

code, pre, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;
}

a {
  color: #10b981;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #34d399;
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  min-width: 0;
}

.nav-links a {
  color: #999;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #10b981;
  text-decoration: none;
}

/* Hamburger button -- hidden on desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e8e4df;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  background: linear-gradient(135deg, #0a0a0f 0%, #141420 50%, #0a0a0f 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

.hero-content {
  max-width: 900px;
  padding: 0 24px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .gradient-text {
  background: linear-gradient(135deg, #10b981, #059669, #10b981);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #999;
  margin-bottom: 1.75rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle code {
  color: #10b981;
  font-size: 0.95em;
}

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #14141f;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #e8e4df;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.install-box .prompt {
  color: #10b981;
  user-select: none;
}

.copy-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
  font-size: 1rem;
}

.copy-btn:hover {
  color: #10b981;
}

.cta-btn {
  display: inline-block;
  background: #059669;
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e4df;
}

.cta-btn:hover {
  background: #047857;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.cta-btn.secondary:hover {
  color: #fff;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.hero-proof li {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #bbb;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
}

.hero-code {
  margin-top: 3rem;
  background: #14141f;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #e8e4df;
}

.hero-code .comment {
  color: #555;
}

.hero-code .string {
  color: #98c379;
}

.hero-code .operator {
  color: #10b981;
}

.hero-code .result {
  color: #61afef;
}

/* Features */
.features {
  background: #0a0a0f;
}


.section-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: #999;
  text-align: center;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.5;
}

.use-cases {
  background: radial-gradient(circle at top center, rgba(16, 185, 129, 0.08), transparent 50%), #0d0d14;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.use-case-card {
  background: linear-gradient(180deg, rgba(20, 20, 31, 0.95), rgba(16, 16, 26, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 28px;
}

.use-case-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.use-case-card h3 {
  margin-bottom: 10px;
}

.use-case-card p {
  color: #a6a6aa;
  margin-bottom: 16px;
}

.use-case-code {
  display: block;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 16px;
  color: #61afef;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.production-grade {
  background: #0a0a0f;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.comparison-card {
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 28px;
}

.comparison-title {
  margin-bottom: 10px;
}

.comparison-copy {
  color: #a6a6aa;
}

/* Playground */
/* ── Quick Try (homepage) ──────────────────────────────────── */
.quick-try {
  background: #0d0d14;
  text-align: center;
}

.quick-try h2 {
  margin-bottom: 0.5rem;
}

.quick-try-sub {
  color: #777;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.quick-try-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}

.quick-try-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-preset {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: transparent;
  color: #bbb;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-preset:hover,
.quick-preset.active {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.quick-open-link {
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.quick-try-panel {
  max-width: 900px;
  margin: 0 auto;
  background: #14141f;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
}

.quick-try-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.quick-try-editor textarea {
  flex: 1;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  color: #e8e4df;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: none;
  height: 52px;
  caret-color: #10b981;
  outline: none;
  transition: border-color 0.2s ease;
}

.quick-try-editor textarea:focus {
  border-color: rgba(16, 185, 129, 0.4);
}

.quick-try-arrow {
  flex-shrink: 0;
  color: #555;
}

.quick-try-result {
  flex: 1;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #34d399;
  text-align: left;
  min-height: 52px;
  white-space: pre-wrap;
  word-break: break-word;
}

.quick-try-result.quick-try-error {
  color: #e06c6c;
}

.quick-try-context-wrap {
  text-align: left;
  background: #0f0f16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
}

.quick-try-context-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #777;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-try-context {
  margin: 0;
  color: #8f95a3;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Playground (inline - legacy, kept for compat) ────────── */

.playground-panel {
  background: #14141f;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

/* Toolbar: pills + share */
.playground-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.example-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.example-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  background: transparent;
  color: #10b981;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.example-pill:hover,
.example-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  color: #888;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-btn:hover {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.share-btn.copied {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

/* Grid */
.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.playground-col {
  padding: 20px;
}

.playground-input {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.playground-col label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-bottom: 8px;
}

/* ── Expression editor with highlighting ── */
.expr-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.expr-label-row label {
  margin-bottom: 0;
}

.ctx-inline-add {
  background: none;
  border: none;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.ctx-inline-add:hover {
  color: #10b981;
}

/* Hide inline add when context has vars */
.playground-ctx-wrap:not(.is-empty) ~ .playground-expr-wrap .ctx-inline-add {
  display: none;
}

.playground-expr-wrap {
  margin-bottom: 0;
}

.playground-ctx-wrap {
  margin-bottom: 16px;
}

.expr-editor {
  position: relative;
}

.expr-highlight {
  position: absolute;
  inset: 0;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
  color: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.expr-highlight .hl-var {
  color: transparent;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 3px;
  padding: 1px 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#expr-input {
  width: 100%;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  color: #e8e4df;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  caret-color: #10b981;
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 52px;
  field-sizing: content;
}

#expr-input:focus {
  border-color: rgba(16, 185, 129, 0.4);
}

/* ── Context variable editor ── */
/* (ctx-wrap rules consolidated above) */

.ctx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ctx-header label {
  margin-bottom: 0;
}

.ctx-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: transparent;
  color: #777;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ctx-add-btn:hover {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.ctx-vars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 260px;
}

.ctx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  transition: border-color 0.15s ease;
}

.ctx-row:focus-within {
  border-color: rgba(16, 185, 129, 0.25);
}

.ctx-row-name {
  width: 160px;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 4px;
  outline: none;
}

.ctx-row-name::placeholder {
  color: #555;
  font-weight: 400;
}

.ctx-row-sep {
  color: #444;
  font-size: 0.8rem;
  flex-shrink: 0;
  user-select: none;
}

.ctx-row-value {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: #e8e4df;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  padding: 6px 4px;
  outline: none;
}

.ctx-row-value::placeholder {
  color: #444;
}

.ctx-row-type {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  user-select: none;
}

.ctx-type-string  { background: rgba(52, 211, 153, 0.1); color: #34d399; }
.ctx-type-number  { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }
.ctx-type-boolean { background: rgba(192, 132, 252, 0.1); color: #c084fc; }
.ctx-type-array   { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.ctx-type-object  { background: rgba(244, 114, 182, 0.1); color: #f472b6; }
.ctx-type-null    { background: rgba(255, 255, 255, 0.05); color: #666; }

.ctx-row-delete {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.ctx-row-delete:hover {
  color: #e06c6c;
  background: rgba(220, 50, 50, 0.1);
}

.playground-ctx-wrap.is-empty .ctx-header,
.playground-ctx-wrap.is-empty .ctx-vars,
.playground-ctx-wrap.is-empty .ctx-empty {
  display: none;
}

.playground-ctx-wrap.is-empty {
  margin-bottom: 0;
}

.ctx-empty {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: #444;
  font-size: 0.75rem;
}

.ctx-empty-add {
  background: none;
  border: none;
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ctx-empty-add:hover {
  color: #34d399;
}

/* ── Result pane ── */
.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.result-toggle {
  display: inline-flex;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-toggle.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

#result-output {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  min-height: 200px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e8e4df;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Color-coded result values */
#result-output .r-string { color: #34d399; }
#result-output .r-number { color: #60a5fa; }
#result-output .r-boolean { color: #c084fc; }
#result-output .r-null { color: #666; font-style: italic; }
#result-output .r-key { color: #10b981; }
#result-output .r-bracket { color: #888; }
#result-output .r-punct { color: #555; }

#result-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  margin-left: auto;
}

#error-output {
  display: none;
  background: rgba(220, 50, 50, 0.08);
  border: 1px solid rgba(220, 50, 50, 0.3);
  border-radius: 8px;
  padding: 14px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #e06c6c;
  white-space: pre-wrap;
}

/* Syntax Reference & API Docs */
.syntax-ref,
.api-docs,
.stdlib-docs {
  background: #0a0a0f;
}

.syntax-ref h2,
.api-docs h2,
.stdlib-docs h2 {
  text-align: center;
  margin-bottom: 2rem;
}

details {
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

details[open] {
  border-color: rgba(16, 185, 129, 0.2);
}

summary {
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  user-select: none;
  transition: color 0.2s ease;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '\203A';
  display: inline-block;
  margin-right: 10px;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
  color: #10b981;
}

details[open] summary::before {
  transform: rotate(90deg);
}

summary:hover {
  color: #10b981;
}

details .content {
  padding: 0 20px 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #ccc;
}

td code {
  background: #0a0a0f;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #e8e4df;
}

pre {
  background: #14141f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.api-table {
  margin-top: 1rem;
}

.api-section {
  margin-bottom: 2.5rem;
}

.api-section h3 {
  margin-bottom: 0.5rem;
}

.api-section p {
  color: #999;
  margin-bottom: 1rem;
}

.stdlib-group {
  margin-bottom: 2rem;
}

.stdlib-group h3 {
  color: #10b981;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

td .example-result {
  display: block;
  margin-top: 4px;
  color: #61afef;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.api-example {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e8e4df;
}

.api-example .comment {
  color: #555;
}

.api-example .result {
  color: #61afef;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
  text-align: center;
  color: #555;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  list-style: none;
  flex-wrap: wrap;
}

/* Animations */
@keyframes steam {
  0% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-4px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 0.6; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.steam {
  animation: steam 3s ease-in-out infinite;
}

section {
  animation: fadeInUp 0.6s ease both;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .hero-code {
    font-size: 0.8rem;
    padding: 16px;
    margin-top: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-case-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .quick-try-editor {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-try-arrow {
    display: none;
  }

  .playground-toolbar {
    flex-wrap: wrap;
  }

  .playground-grid {
    grid-template-columns: 1fr;
  }

  .playground-input {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .cta-btn {
    padding: 12px 26px;
    font-size: 0.95rem;
  }

  .hero-proof li {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .quick-try-presets {
    justify-content: center;
  }

  .quick-preset {
    padding: 7px 12px;
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }

  section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
  }

  .hero-proof {
    gap: 8px;
    margin-bottom: 1.5rem;
  }

  .hero-proof li {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .hero-code {
    font-size: 0.75rem;
    padding: 16px;
    line-height: 1.7;
    margin-top: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    height: 50px;
  }

  .nav-brand {
    font-size: 1rem;
  }

  .nav-brand img {
    width: 24px;
    height: 24px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
    color: #999;
  }

  .nav-links a:hover {
    background: rgba(16, 185, 129, 0.06);
  }

  .install-box {
    font-size: 0.75rem;
    padding: 10px 14px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .hero-actions .cta-btn {
    padding: 11px 22px;
    font-size: 0.85rem;
  }

  .hero-proof {
    justify-content: flex-start;
    text-align: left;
  }

  .hero-proof li {
    font-size: 0.7rem;
    padding: 5px 10px;
    white-space: nowrap;
  }

  .quick-try-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .quick-try-presets {
    justify-content: center;
  }

  .quick-preset {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .quick-try-panel {
    padding: 14px;
  }

  .quick-try-editor textarea {
    font-size: 0.82rem;
    padding: 12px;
    height: 48px;
  }

  .quick-try-result {
    font-size: 0.82rem;
    padding: 12px;
    min-height: 48px;
  }

  .quick-try-context-wrap {
    padding: 12px;
  }

  .quick-try-context {
    font-size: 0.75rem;
  }

  .quick-try-sub {
    font-size: 0.85rem;
  }

  .example-pills {
    padding: 12px;
  }

  .container {
    padding: 0 16px;
  }
}
