/* ==========================================================================
   NumeroClaw — v4
   White Ollama. Minimal chrome. Content speaks.
   ========================================================================== */

:root {
  --bg:       #fff;
  --text:     #1a1a1a;
  --text-2:   #666;
  --text-3:   #999;
  --border:   #e5e5e5;
  --accent:   #4f6df5;
  --code-bg:  #1a1a1a;

  /* Syntax highlighting (on dark code blocks) — .hl-* classes */
  --hl-kw:    #79b8ff;
  --hl-str:   #a5d6a7;
  --hl-num:   #c4b5fd;
  --hl-bool:  #ffab70;
  --hl-cmt:   #6a737d;
  --hl-url:   #93b4ff;
  --hl-flag:  #8b949e;
  --hl-key:   #79b8ff;
  --hl-op:    #e0e0e0;

  /* Proof sheets */
  --proof-bg:   linear-gradient(176deg, #f5eee3, #ebe0cf 55%, #e4d7c3);
  --proof-ink:  #2c2417;
  --proof-ink-2:#4d3f30;

  --max:      1000px;
  --measure:  720px;
  --r:        12px;
  --r-sm:     8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Geist Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

code, pre {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
}

:not(pre) > code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--accent);
}

/* --- Typography --- */
h1, h2, h3 { margin: 0; }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }

p { margin: 0; }

/* --- Layout --- */
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.container-reading {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
}

/* --- Navigation (Ollama-style: links grouped left with logo) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 140px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-lockup span { display: none; }
.brand-lockup .logo-mark { height: 114px; width: auto; }
.brand-lockup .logo-text { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 200ms ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}
.nav-links a.active::after { width: 100%; }

/* --- Nav dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  position: relative;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 150ms;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 200ms ease;
}

.nav-dropdown:hover .nav-dropdown-trigger { color: var(--text); }
.nav-dropdown:hover .nav-dropdown-trigger::after { width: 100%; }

.nav-dropdown-chevron {
  width: 12px;
  height: 12px;
  transition: transform 200ms;
}

.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -0.75rem;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms, visibility 150ms, transform 150ms;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 1rem;
  text-decoration: none;
  transition: background 100ms;
}

.nav-dropdown-menu a:hover {
  background: #f5f5f5;
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu .dropdown-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.nav-dropdown-menu .dropdown-desc {
  font-size: 0.76rem;
  color: var(--text-3);
  line-height: 1.4;
  margin-top: 0.1rem;
}

.nav-dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}

.lang-link {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--text-3);
  transition: color 150ms;
}

.lang-link:hover { color: var(--text-2); }

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--text-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-button {
  height: 34px;
  padding: 0 0.9rem;
  font-size: 0.82rem;
}

/* Legacy compat for sub-pages */
.button-solid { background: var(--text); color: var(--bg); }
.button-ghost, .button-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto 1rem;
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-code {
  max-width: var(--measure);
  margin: 0 auto;
}

.hero-code pre {
  background: var(--code-bg);
  border-radius: var(--r);
  padding: 1.5rem 1.8rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #aaa;
  margin: 0;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hero-code pre:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
}

/* Terminal Window Chrome */
.terminal-window {
  background: #161616;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.terminal-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.1);
}

.terminal-header {
  background: #222;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

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

.terminal-dots .red { background: #ff5f57; }
.terminal-dots .yellow { background: #ffbd2e; }
.terminal-dots .green { background: #28c840; }

.terminal-title {
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: #666;
  flex: 1;
  text-align: center;
  margin-right: 40px;
}

.terminal-body pre {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 1.5rem 1.8rem !important;
  color: #aaa !important;
  transition: none !important;
}


/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section h2 {
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 50ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

/* --- Code syntax tokens (.hl-* per design system) --- */
.hl-kw     { color: var(--hl-kw); }
.hl-str    { color: var(--hl-str); }
.hl-num    { color: var(--hl-num); }
.hl-bool   { color: var(--hl-bool); }
.hl-cmt    { color: var(--hl-cmt); font-style: italic; }
.hl-url    { color: var(--hl-url); }
.hl-flag   { color: var(--hl-flag); }
.hl-key    { color: var(--hl-key); }
.hl-op     { color: var(--hl-op); }

/* --- Use cases --- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.usecase-card {
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.usecase-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79, 109, 245, 0.08);
  transform: translateY(-2px);
}

.usecase-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.usecase-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.usecase-card p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 860px) {
  .usecase-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* --- Samples --- */
.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

a.sample-card {
  text-decoration: none;
  color: inherit;
}

.sample-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
  cursor: pointer;
}

.sample-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79,109,245,0.10);
  transform: translateY(-2px);
}

.sample-locale {
  display: inline-block;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(79,109,245,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.sample-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.sample-card .sample-type {
  font-size: 0.86rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.sample-excerpt {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.7;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.sample-downloads {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sample-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 150ms;
}

.sample-dl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79,109,245,0.04);
}

.sample-dl-btn svg {
  width: 13px;
  height: 13px;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79,109,245,0.10);
  transform: translateY(-2px);
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.pricing-card .plan-desc {
  color: var(--text-3);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}

.pricing-card .price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-3);
}

.pricing-card .plan-detail {
  color: var(--text-2);
  font-size: 0.86rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.pricing-card .per-reading {
  color: var(--accent);
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.pricing-card-accent {
  border-color: var(--border);
}

.pricing-badge {
  position: absolute;
  top: -0.6rem;
  left: 1.2rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.enterprise-row {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.5rem;
}

.enterprise-row p {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* --- CTA --- */
.section-cta {
  padding: 5rem 0;
  text-align: center;
}

.section-cta h2 {
  margin-bottom: 1rem;
}

.section-cta p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cta-email {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.84rem;
  color: var(--text-3);
  margin-top: 0.8rem;
}

/* --- CLI page --- */
.cli-eyebrow {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.cli-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cli-install-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  background: var(--bg);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.cli-install-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79, 109, 245, 0.08);
  transform: translateY(-2px);
}

.cli-install-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cli-install-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.cli-install-note {
  font-size: 0.78rem;
  color: var(--text-3);
  margin: 0.2rem 0 0;
}

.cli-install-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cli-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7f7f7;
  color: var(--text);
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 150ms, border-color 150ms, transform 150ms;
}

.cli-download-link:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cli-install-steps {
  display: grid;
  gap: 0.6rem;
}

.cli-install-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.cli-install-step-number {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(79, 109, 245, 0.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.cli-install-card .code-wrap {
  margin: 0;
}

.cli-install-card .code-wrap pre {
  background: var(--code-bg);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #aaa;
  margin: 0;
}

.cli-commands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cli-command-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.3rem;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.cli-command-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79, 109, 245, 0.08);
  transform: translateY(-2px);
}

.cli-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cli-cmd {
  display: inline-block;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(79, 109, 245, 0.06);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  margin-bottom: 0;
}

.cli-command-card p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* CLI homepage banner */
.cli-banner {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.cli-banner:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79, 109, 245, 0.08);
  transform: translateY(-2px);
}

.cli-banner-text {
  flex: 1;
}

.cli-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.cli-banner-text p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

.cli-banner-code {
  flex: 1;
  min-width: 0;
}

.cli-banner-code pre {
  background: var(--code-bg);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #aaa;
  margin: 0;
}

@media (max-width: 860px) {
  .cli-install-grid { grid-template-columns: 1fr; }
  .cli-commands-grid { grid-template-columns: 1fr; }
  .cli-install-card {
    padding: 1.2rem;
  }
  .cli-install-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .cli-banner {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--text-2);
  transition: color 150ms;
}

.footer-links a:hover { color: var(--text); }

/* --- Scroll reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  /* === NAVIGATION — compact two-row header === */
  .nav-row {
    height: auto;
    padding: 0.6rem 0;
    flex-wrap: wrap;
  }

  /* display:contents lets children participate in nav-row flex directly */
  .nav-left {
    display: contents;
  }

  .brand-lockup {
    order: 1;
  }

  .brand-lockup .logo-mark { height: 36px; }
  .brand-lockup .logo-text { height: 20px; }

  .nav-right {
    order: 2;
    gap: 0.6rem;
    margin-left: auto;
  }

  /* Nav links become a full-width second row */
  .nav-links {
    order: 3;
    width: 100%;
    padding-top: 0.55rem;
    margin-top: 0.55rem;
    border-top: 1px solid var(--border);
    gap: 0;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0.15rem 0;
  }

  /* === HERO === */
  .hero {
    padding: 2.5rem 0 2rem;
    text-align: left;
  }

  .hero h1 { margin: 0 0 0.6rem; }

  h1 { font-size: 1.75rem; line-height: 1.15; }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    justify-content: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-actions .button {
    font-size: 0.84rem;
    height: 38px;
    padding: 0 1rem;
  }

  .hero-code pre {
    font-size: 0.7rem;
    padding: 0.9rem 1rem;
    line-height: 1.6;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  }

  .hero-code pre:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  }

  /* === SECTIONS === */
  .section { padding: 2.5rem 0; }

  .section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .section-sub {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* === USE CASE CARDS === */
  .usecase-card {
    padding: 1.1rem 1rem;
  }

  .usecase-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 0.5rem;
  }

  .usecase-card h3 { font-size: 0.9rem; }
  .usecase-card p { font-size: 0.82rem; }

  /* === SAMPLE CARDS === */
  .sample-card {
    padding: 1.2rem 1.1rem;
  }

  .sample-card h3 { font-size: 1rem; }

  .sample-excerpt {
    font-size: 0.84rem;
    line-height: 1.6;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
  }

  .sample-dl-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.7rem;
  }

  /* === PRICING === */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.4rem 1.2rem;
  }

  .pricing-card-accent {
    margin-top: 0.4rem;
  }

  .pricing-card .price { font-size: 1.5rem; }

  .pricing-card .plan-desc { font-size: 0.84rem; }

  .enterprise-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.1rem 1.2rem;
  }

  .enterprise-row p { font-size: 0.86rem; }

  /* === CTA === */
  .section-cta {
    text-align: left;
    padding: 2.5rem 0 3rem;
  }

  .section-cta h2 { font-size: 1.3rem; }

  .section-cta p {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
  }

  /* === FOOTER === */
  .site-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .footer-links {
    gap: 0.6rem 1rem;
  }

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

  /* === SUB-PAGE HEROES === */
  .doc-hero, .legal-hero, .hero-simple {
    padding: 2rem 0 1.2rem;
  }

  .doc-hero h1, .legal-hero h1, .hero-simple h1 {
    font-size: 1.5rem;
  }

  .hero-lede { font-size: 0.88rem; }

  /* === LEGAL PAGES === */
  .legal-copy section { padding: 1rem 1.1rem; }
  .legal-copy h2 { font-size: 1.15rem; }
  .legal-copy p { font-size: 0.88rem; }

  /* === TAG ROW (docs overview) === */
  .tag-row { gap: 0.35rem; }
  .tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Sub-page support (docs, legal, examples, support)
   ========================================================================== */

.container-narrow {
  width: min(calc(100% - 2rem), 860px);
  margin: 0 auto;
}

.doc-hero, .legal-hero, .hero-simple {
  padding: 4rem 0 2rem;
}

.doc-hero h1, .legal-hero h1, .hero-simple h1 {
  text-align: left;
  margin: 0 0 0.8rem;
  max-width: none;
}

.hero-lede {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 50ch;
  line-height: 1.65;
}

.doc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.doc-index {
  position: sticky;
  top: 5rem;
}

.doc-index h3 {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.doc-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.doc-index a {
  color: var(--text-2);
  font-size: 0.88rem;
}

.doc-index a:hover { color: var(--text); }

.doc-stack { display: grid; gap: 1rem; }

.doc-block {
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.doc-block h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.doc-block h3 { margin-top: 1rem; }

.doc-block p, .doc-block ul, .doc-block ol {
  margin: 0.4rem 0;
  font-size: 0.93rem;
  color: var(--text-2);
}

.doc-block pre {
  margin: 0.6rem 0;
  padding: 1rem;
  background: var(--code-bg);
  border-radius: var(--r-sm);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #aaa;
}

.doc-block table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.88rem;
}

.doc-block th, .doc-block td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.doc-block th {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}

.doc-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tag {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.74rem;
}

.legal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.legal-copy { display: grid; gap: 1rem; }

.legal-copy section {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.legal-copy h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.legal-copy p { margin: 0.4rem 0; font-size: 0.93rem; color: var(--text-2); }

.link-list, .plain-list { margin: 0.4rem 0; padding-left: 1rem; }
.link-list li, .plain-list li { font-size: 0.9rem; color: var(--text-2); margin-bottom: 0.3rem; }
.link-list a { color: var(--text); }
.link-list a:hover { color: var(--accent); }

.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.rail-grid article {
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.rail-grid article h3 { margin-bottom: 0.3rem; }
.rail-grid article p { margin: 0; font-size: 0.9rem; color: var(--text-2); }

.split-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.access-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.access-form {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: grid;
  gap: 0.7rem;
}

.access-form label { font-size: 0.86rem; font-weight: 600; }
.form-note, .form-status { font-size: 0.84rem; color: var(--text-3); }

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.pricing-table th {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}

.table-shell {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow-x: auto;
}

@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-index { position: static; }
  .legal-hero { grid-template-columns: 1fr; }
  .split-headline { grid-template-columns: 1fr; }
  .access-shell { grid-template-columns: 1fr; }
  .rail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .rail-grid { grid-template-columns: 1fr; }

  .doc-block { padding: 1.1rem 1rem; }
  .doc-block h2 { font-size: 1.3rem; }
  .doc-block pre { font-size: 0.76rem; padding: 0.8rem; }
  .doc-block table { font-size: 0.82rem; }
  .doc-block th, .doc-block td { padding: 0.45rem 0.5rem; }
}

/* ==========================================================================
   Docs — Ollama-style 3-column layout
   ========================================================================== */

.eyebrow {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.3rem;
}

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  gap: 0 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  align-items: start;
}

/* Offset scroll targets so the sticky nav doesn't cover them */
.docs-content h2,
.docs-content h3[id] {
  scroll-margin-top: 160px;
}

/* --- Left sidebar --- */
.docs-sidebar {
  position: sticky;
  top: 156px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  padding-right: 1.5rem;
}

.docs-sidebar-group {
  margin-bottom: 1.5rem;
}

.docs-sidebar-group h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
  padding: 0;
}

.docs-sidebar-group a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.87rem;
  color: var(--text-2);
  transition: color 150ms;
}

.docs-sidebar-group a:hover {
  color: var(--text);
}

.docs-sidebar-group a.active {
  color: var(--text);
  font-weight: 600;
}

/* --- Docs search --- */
.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.docs-search-icon {
  position: absolute;
  left: 0.6rem;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
}

.docs-search-input {
  width: 100%;
  height: 34px;
  padding: 0 2.8rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text);
  outline: none;
  transition: border-color 150ms;
}

.docs-search-input::placeholder { color: var(--text-3); }
.docs-search-input:focus { border-color: var(--text-3); }

.docs-search-kbd {
  position: absolute;
  right: 0.5rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-3);
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  pointer-events: none;
  line-height: 1.4;
}

.docs-search-input:focus + .docs-search-kbd { display: none; }

/* Search result states */
.docs-content > section.search-dim { opacity: 0.2; transition: opacity 200ms; }
.docs-content > section.search-hit { opacity: 1; transition: opacity 200ms; }

/* --- Integrate tabs --- */
.integrate-tabs { margin: 1.2rem 0; }

.integrate-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  overflow-x: auto;
}

.integrate-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 1rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: color 150ms, border-color 150ms;
  white-space: nowrap;
}

.integrate-tab:hover { color: var(--text-2); }

.integrate-tab.active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}

.integrate-panel { display: none; padding-top: 1rem; }
.integrate-panel.active { display: block; }

.docs-sidebar-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.docs-sidebar-bottom a {
  font-size: 0.84rem;
  color: var(--text-3);
  transition: color 150ms;
}

.docs-sidebar-bottom a:hover { color: var(--text); }

/* --- Center content --- */
.docs-content {
  min-width: 0;
}

.docs-content > section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.docs-content > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.docs-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.8rem;
  max-width: none;
  text-align: left;
}

.docs-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.docs-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.2rem 0 0.4rem;
}

.docs-lede {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 55ch;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.docs-content p {
  margin: 0.5rem 0;
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.7;
}

.docs-content ul, .docs-content ol {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.docs-content li {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

.docs-content section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 150ms;
}

.docs-content section a:hover {
  text-decoration-color: var(--text);
}

/* Code blocks with copy button */
.code-label {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.code-wrap {
  position: relative;
  margin: 0.8rem 0;
}

.code-label + .code-wrap {
  margin-top: 0;
}

.code-label + .code-wrap pre {
  border-top-left-radius: 0;
}

.docs-callout {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.docs-callout > * {
  min-width: 0;
}

.docs-callout .code-wrap {
  margin: 0;
}

.docs-callout a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-callout a:hover {
  color: var(--text);
}

.code-wrap pre {
  background: var(--code-bg);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  padding-right: 3rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #aaa;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.42rem;
  cursor: pointer;
  color: #666;
  transition: all 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #d7d7d7;
  transform: translateY(-1px);
}

.copy-btn:focus-visible {
  outline: 2px solid rgba(147, 180, 255, 0.6);
  outline-offset: 2px;
}

.copy-btn.copied { color: var(--hl-str); }
.copy-btn svg { width: 16px; height: 16px; }

.copy-btn.copy-btn-inline {
  position: static;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-3);
  flex: 0 0 auto;
}

.copy-btn.copy-btn-inline:hover {
  background: #f7f7f7;
  color: var(--text);
  border-color: var(--accent);
}

/* Tables */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 0.88rem;
}

.docs-content th, .docs-content td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.docs-content th {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}

.docs-content td {
  color: var(--text-2);
  font-size: 0.88rem;
}

/* --- Right sidebar — Integrate --- */
.docs-toc {
  position: sticky;
  top: 156px;
}

.docs-toc h4 {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 0.6rem;
  font-family: "Geist Mono", "JetBrains Mono", monospace;
}

.docs-toc a {
  display: block;
  padding: 0.18rem 0 0.18rem 0.7rem;
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color 150ms, border-left-color 150ms;
  border-left: 1.5px solid var(--border);
  cursor: pointer;
}

.docs-toc a:hover { color: var(--text); }

.docs-toc a.active {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--accent);
}

.docs-toc .toc-no-code {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* --- Docs responsive --- */
@media (max-width: 960px) {
  .docs-shell {
    grid-template-columns: 200px 1fr;
  }
  .docs-toc { display: none; }
}

@media (max-width: 768px) {
  .docs-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
  }

  /* Collapse sidebar groups into horizontal flow on mobile */
  .docs-sidebar-group {
    margin-bottom: 0.8rem;
  }

  .docs-sidebar-group a {
    font-size: 0.82rem;
    padding: 0.15rem 0;
  }

  .docs-search-input { height: 38px; font-size: 0.86rem; }

  /* Content improvements */
  .docs-content h1 { font-size: 1.5rem; }
  .docs-content h2 { font-size: 1.15rem; }
  .docs-content p { font-size: 0.88rem; }
  .docs-content li { font-size: 0.88rem; }
  .docs-lede { font-size: 0.92rem; }

  .docs-content > section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Code blocks: reduce right padding for copy button */
  .code-wrap pre {
    padding: 0.8rem 1rem;
    padding-right: 2.5rem;
    font-size: 0.76rem;
    line-height: 1.6;
  }

  /* Tables: scrollable wrapper behavior */
  .docs-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.82rem;
  }

  .docs-content th, .docs-content td {
    padding: 0.4rem 0.55rem;
    white-space: nowrap;
  }

  .docs-content th { font-size: 0.68rem; }

  /* Callout */
  .docs-callout {
    font-size: 0.84rem;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  /* Tab bar */
  .integrate-tab {
    font-size: 0.74rem;
    padding: 0.45rem 0.7rem;
  }
}

/* ==========================================================================
   About page — editorial prose layout
   ========================================================================== */

.about-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}

.about-hero h1 {
  max-width: 18ch;
  margin: 0 auto 1.2rem;
  line-height: 1.2;
}

.about-hero-lede {
  color: var(--text-2);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0 auto;
}

.about-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.about-body section {
  margin-bottom: 3.5rem;
}

.about-body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.about-body p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0.6rem 0;
}

.about-body p + p {
  margin-top: 0.8rem;
}

.about-highlight {
  margin: 2rem 0;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: rgba(79,109,245,0.03);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.about-highlight p {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

.about-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.about-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.about-stat:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(79,109,245,0.10);
  transform: translateY(-2px);
}

.about-stat .stat-num {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
}

.about-stat .stat-label {
  font-size: 0.84rem;
  color: var(--text-3);
}

.about-roadmap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.about-roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text-2);
}

.about-roadmap-item .roadmap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.roadmap-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.roadmap-name {
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.roadmap-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
}

.about-roadmap-item.shipped .roadmap-dot {
  background: var(--hl-str);
}

.about-roadmap-item.shipped .roadmap-name {
  color: var(--text);
}

@media (max-width: 640px) {
  .about-stat-row { grid-template-columns: 1fr; }
  .about-roadmap { grid-template-columns: 1fr; }
  .about-hero { padding: 2rem 0 1.5rem; text-align: left; }
  .about-hero h1 { margin: 0 0 0.8rem; font-size: 1.6rem; }
  .about-hero-lede { margin: 0; font-size: 1rem; }
  .about-body { padding: 0 1rem 3rem; }
  .about-body section { margin-bottom: 2.5rem; }
  .about-body h2 { font-size: 1.2rem; }
  .about-body p { font-size: 0.9rem; }
  .about-highlight { padding: 1.2rem 1.3rem; margin: 1.5rem 0; }
  .about-highlight p { font-size: 0.92rem; }
  .about-stat .stat-num { font-size: 1.6rem; }
  .about-stat .stat-label { font-size: 0.8rem; }
  .about-roadmap-item { padding: 0.8rem 0.9rem; font-size: 0.84rem; }
  .roadmap-desc { font-size: 0.76rem; }
}

/* ==========================================================================
   Changelog page — version timeline
   ========================================================================== */

.changelog-feed {
  max-width: 640px;
}

.changelog-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:first-child {
  padding-top: 0;
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.changelog-version {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(79,109,245,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.changelog-date {
  font-size: 0.82rem;
  color: var(--text-3);
}

.changelog-entry h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.changelog-entry p {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0.3rem 0;
}

@media (max-width: 640px) {
  .changelog-entry { padding: 1.5rem 0; }
  .changelog-entry h2 { font-size: 1.05rem; }
  .changelog-entry p { font-size: 0.88rem; }
}

/* ==========================================================================
   Proof / Examples page — browser window mockup
   ========================================================================== */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: 0;
}

.proof-browser {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms;
}

.proof-browser:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.browser-bar span:first-child { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #ffbd2e; }
.browser-bar span:nth-child(3) { background: #28c840; }

.browser-bar p {
  margin: 0 0 0 auto;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.proof-meta {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.proof-meta strong {
  font-size: 0.95rem;
  color: var(--text);
}

.proof-meta span {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: "Geist Mono", monospace;
}

.proof-sheet {
  background: var(--bg);
  padding: 1.5rem 1.4rem;
}

.proof-sheet h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.proof-sheet p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0.5rem 0;
}

.proof-downloads {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.text-link {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  color: var(--accent);
  border-top: 1px solid var(--border);
  transition: background 150ms;
}

.text-link:hover {
  background: rgba(79,109,245,0.03);
}

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .proof-browser { grid-row: auto; display: flex; flex-direction: column; }
  .proof-sheet { flex: 1; }
}

@media (max-width: 640px) {
  .proof-meta { padding: 0.8rem 1rem; }
  .proof-meta strong { font-size: 0.88rem; }
  .proof-sheet { padding: 1.2rem 1.1rem; }
  .proof-sheet h3 { font-size: 0.95rem; }
  .proof-sheet p { font-size: 0.84rem; line-height: 1.7; }
  .text-link { font-size: 0.78rem; padding: 0.6rem 1rem; }
  .proof-downloads { padding: 0.6rem 1rem; }
}

/* ==========================================================================
   Small-screen refinements (very narrow phones)
   ========================================================================== */

@media (max-width: 380px) {
  .brand-lockup .logo-mark { height: 32px; }
  .brand-lockup .logo-text { display: none; }

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

  .nav-button {
    height: 30px;
    padding: 0 0.7rem;
    font-size: 0.76rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }

  .hero { padding: 2rem 0 1.5rem; }
  .hero-sub { font-size: 0.88rem; }

  .hero-code pre {
    font-size: 0.65rem;
    padding: 0.75rem 0.8rem;
    line-height: 1.55;
    border-radius: 8px;
  }

  .hero-actions .button {
    height: 36px;
    font-size: 0.8rem;
    padding: 0 0.85rem;
  }

  .section { padding: 2rem 0; }

  .pricing-card .price { font-size: 1.35rem; }

  .sample-card { padding: 1rem 0.9rem; }
  .usecase-card { padding: 1rem 0.9rem; }
}
