/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  /* Palette */
  --ink:          #0d1f1b;
  --ink-mid:      #1a3530;
  --muted:        #627870;
  --muted-light:  #94aca5;

  --bg:           #f5f8f6;
  --surface:      #ffffff;
  --surface-alt:  #eef4f1;

  --border:       #dfe8e3;
  --border-mid:   #c4d5cc;

  --teal:         #0b8f7a;
  --teal-bright:  #14b8a6;
  --teal-dim:     rgba(20, 184, 166, 0.15);
  --teal-dark:    #065f52;

  --indigo:       #6366f1;
  --amber:        #f59e0b;
  --pink:         #ec4899;
  --green:        #22c55e;

  /* Hero dark palette */
  --hero-bg:      #060f0c;
  --hero-surface: #0c1e19;
  --hero-border:  rgba(20, 184, 166, 0.14);
  --hero-text:    #dff0eb;
  --hero-muted:   #7fa89f;

  /* Typography */
  --font:      'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:      'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --container: 1200px;
  --gutter:    clamp(20px, 5vw, 72px);
  --section-v: 96px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,31,27,.07), 0 1px 2px rgba(13,31,27,.05);
  --shadow-md: 0 4px 16px rgba(13,31,27,.10), 0 2px 6px rgba(13,31,27,.06);
  --shadow-lg: 0 16px 48px rgba(13,31,27,.14), 0 4px 16px rgba(13,31,27,.07);
  --shadow-panel: 0 24px 64px rgba(0,0,0,.32), 0 4px 16px rgba(0,0,0,.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
img { display: block; }
svg { display: block; }

/* ==========================================================
   Layout helpers
   ========================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-v) 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 10px 0 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ==========================================================
   Typography atoms
   ========================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.eyebrow-light { color: var(--teal-bright); }

.gradient-text {
  background: linear-gradient(120deg, #14b8a6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.14s, box-shadow 0.14s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--teal); }

.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(11,143,122,.38);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--ink); }

.btn-user {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  gap: 8px;
}
.btn-user:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost-light {
  background: rgba(255,255,255,.08);
  color: var(--hero-text);
  border-color: rgba(255,255,255,.12);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.13); }

.btn-white {
  background: #fff;
  color: var(--ink);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,0,0,.14); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ==========================================================
   Header
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 246, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav a {
  padding: 6px 13px;
  font-size: 0.88rem;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.12s, background 0.12s;
}

.nav a:hover { color: var(--ink); background: var(--surface-alt); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  background: var(--hero-bg);
  overflow: hidden;
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
}

/* Grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Radial teal glow */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: 5%;
  width: 65%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(20,184,166,.13) 0%, transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-content { max-width: 560px; }

/* Pill badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-bright);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--teal-bright);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(.82); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--hero-muted);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: #3d5e58;
}

.hero-meta .sep { color: #1f3530; }

/* ==========================================================
   Hero visual panels
   ========================================================== */
.hero-visual { width: 100%; }

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: start;
}

.panel {
  background: #0c1d19;
  border: 1px solid var(--hero-border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-panel);
}

.panel-score {
  grid-column: 1;
  grid-row: 1;
  margin-top: 28px;
}

.panel-api {
  grid-column: 2;
  grid-row: 1 / 3;
}

.panel-usage {
  grid-column: 1;
  grid-row: 2;
}

.panel-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-bright);
  margin-bottom: 14px;
}

/* Score panel */
.score-display {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.score-name {
  font-size: 0.82rem;
  color: var(--hero-muted);
  padding-top: 6px;
}

.score-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-bar {
  height: 7px;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #06b6d4);
  border-radius: inherit;
}

.score-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #325550;
  margin-bottom: 14px;
}

.badge-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.tag-green {
  background: rgba(20,184,166,.12);
  color: var(--teal-bright);
  border: 1px solid rgba(20,184,166,.22);
}

/* API panel */
.json-preview {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.85;
}

.json-line { display: flex; gap: 4px; white-space: pre; }
.json-line.indent { padding-left: 14px; }

.j-brace  { color: #7eaaa3; }
.j-key    { color: #6fcec5; }
.j-punct  { color: #7eaaa3; }
.j-bool   { color: #e07f70; }
.j-num    { color: #f0a060; }
.j-str    { color: #8ac46b; }

/* Usage panel */
.usage-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.usage-sub {
  font-size: 0.78rem;
  color: var(--hero-muted);
  margin: 4px 0 16px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--teal-bright);
  opacity: .5;
  transition: opacity .2s;
}

.bar-col-active .bar { opacity: 1; background: #2dd4bf; }

/* ==========================================================
   Stats band
   ========================================================== */
.stats-band {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px var(--gutter);
  gap: 4px;
}

.stat strong {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat span {
  font-size: 0.86rem;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* ==========================================================
   Features
   ========================================================== */
.features { background: var(--bg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}

.feature-card:hover {
  border-color: var(--teal-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.ficon-teal   { background: rgba(20,184,166,.1);  color: #14b8a6; }
.ficon-indigo { background: rgba(99,102,241,.1);  color: #6366f1; }
.ficon-amber  { background: rgba(245,158,11,.1);  color: #f59e0b; }
.ficon-pink   { background: rgba(236,72,153,.1);  color: #ec4899; }

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.68;
}

/* ==========================================================
   Workflow
   ========================================================== */
.workflow {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.workflow-copy {
  position: sticky;
  top: 96px;
}

.workflow-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 10px 0 16px;
}

.workflow-copy p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 32px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.step-connector {
  width: 2px;
  height: 20px;
  background: var(--border-mid);
  margin-left: 36px;
  border-radius: 2px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 7px;
  padding-top: 8px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================
   Docs / terminal
   ========================================================== */
.docs {
  background: #080f0d;
  color: var(--hero-text);
}

.docs-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: start;
}

.docs-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 10px 0 16px;
}

.docs-copy p {
  font-size: 0.98rem;
  color: var(--hero-muted);
  line-height: 1.72;
  margin-bottom: 28px;
}

.docs-copy code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(20,184,166,.12);
  color: var(--teal-bright);
  padding: 2px 6px;
  border-radius: 4px;
}

.docs-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #9abfb8;
}

.docs-checklist li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%2314b8a6' stroke-width='1.5'/%3E%3Cpolyline points='5 8 7 10 11 6' stroke='%2314b8a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.terminal {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 32px 80px rgba(0,0,0,.45);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  background: #111f1b;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.76rem;
  color: #425e58;
  font-family: var(--mono);
}

.terminal-body {
  margin: 0;
  padding: 24px 26px;
  background: #080f0d;
  overflow-x: auto;
}

.terminal-body code {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.85;
  color: #b8d8d2;
  white-space: pre;
}

.t-dim     { color: #2e4f4a; }
.t-cmd     { color: var(--teal-bright); font-weight: 600; }
.t-str     { color: #8ac46b; }
.t-comment { color: #2e4f4a; font-style: italic; }
.t-brace   { color: #7eaaa3; }
.t-key     { color: #6fcec5; }
.t-punct   { color: #7eaaa3; }
.t-bool    { color: #e07f70; }
.t-num     { color: #f0a060; }

/* ==========================================================
   Pricing
   ========================================================== */
.pricing { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px);
  gap: 18px;
  justify-content: center;
}

.pricing-card {
  padding: 36px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11,143,122,.07), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-top { margin-bottom: 18px; }

.pricing-top h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.price-amount {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 24px;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
}

.pricing-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%230b8f7a' stroke-width='1.5'/%3E%3Cpolyline points='5 8 7 10 11 6' stroke='%230b8f7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  padding: 100px var(--gutter);
  background: linear-gradient(130deg, #065f52 0%, #0b8f7a 55%, #0d9e87 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.cta .eyebrow { margin-bottom: 14px; }

.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 14px;
}

.cta p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: var(--ink);
  padding: 40px var(--gutter);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.footer-brand .logo-mark {
  background: rgba(255,255,255,.1);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.86rem;
  color: #4a6e68;
  transition: color .14s;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: #334f4a;
}

/* ==========================================================
   Responsive — tablet (≤ 1080px)
   ========================================================== */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: unset;
  }

  .hero-visual { display: none; }

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

  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .workflow-copy { position: static; }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-grid { max-width: 100%; }
}

/* ==========================================================
   Responsive — mobile (≤ 720px)
   ========================================================== */
@media (max-width: 720px) {
  :root { --section-v: 64px; }

  .header-inner { height: 60px; }

  .nav,
  .header-actions .btn-ghost { display: none; }

  .hero-title { font-size: 2.7rem; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .stats-band { flex-wrap: wrap; }

  .stat {
    flex: 0 0 50%;
    border-top: 1px solid var(--border);
  }

  .stat-divider { display: none; }

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

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer-nav { gap: 16px; }
}

/* ==========================================================
   Utilities
   ========================================================== */
.hidden { display: none; }

/* Landing page demo panel — static decorative values */
.score-fill-sample { width: 83%; }
.bar-h-40 { height: 40%; }
.bar-h-65 { height: 65%; }
.bar-h-52 { height: 52%; }
.bar-h-82 { height: 82%; }
.bar-h-70 { height: 70%; }
.bar-h-95 { height: 95%; }

/* ==========================================================
   API Docs page
   ========================================================== */
.docs-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: calc(100vh - 68px);
}

.docs-sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 40px 24px 40px 0;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}

.docs-sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  padding: 0 10px;
  margin: 20px 0 6px;
}

.docs-sidebar-label:first-child { margin-top: 0; }

.docs-sidenav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.docs-sidenav a {
  display: block;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.12s, background 0.12s;
}

.docs-sidenav a:hover { color: var(--ink); background: var(--surface-alt); }
.docs-sidenav a.active { color: var(--teal); background: var(--teal-dim); font-weight: 600; }

.docs-sidenav-sub a {
  padding-left: 20px;
  font-size: 0.82rem;
}

.docs-main {
  padding: 48px 0 96px 56px;
  min-width: 0;
}

.docs-article {
  max-width: 740px;
}

.docs-article > h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.docs-article > .docs-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.docs-section {
  padding-top: 48px;
  margin-bottom: 0;
}

.docs-section + .docs-section {
  border-top: 1px solid var(--border);
}

.docs-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  scroll-margin-top: 88px;
}

.docs-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--ink);
  scroll-margin-top: 88px;
}

.docs-section p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.docs-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.docs-section ul li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.docs-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted-light);
}

.docs-section code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-alt);
  color: var(--teal-dark);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.docs-section pre {
  background: #0d1e1a;
  border-radius: var(--r-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 12px 0 24px;
  border: 1px solid rgba(20,184,166,.12);
}

.docs-section pre code {
  background: none;
  color: #a8d5c8;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  border: none;
}

.docs-table-wrap { overflow-x: auto; margin: 12px 0 24px; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.docs-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.docs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.55;
}

.docs-table td:first-child {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--teal-dark);
  white-space: nowrap;
}

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

.docs-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font);
  white-space: nowrap;
}

.docs-badge-yes { background: rgba(34,197,94,.1); color: #15803d; }
.docs-badge-no  { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }

.docs-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.docs-verb {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
}

.docs-verb-post { background: rgba(99,102,241,.12); color: var(--indigo); }
.docs-verb-get  { background: rgba(34,197,94,.12);  color: #15803d; }

.docs-path {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.docs-callout {
  background: var(--surface-alt);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 4px 0 20px;
}

.docs-callout p { margin: 0; font-size: 0.88rem; }

.docs-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.docs-status-4 { background: rgba(245,158,11,.1); color: #b45309; }
.docs-status-5 { background: rgba(239,68,68,.1);  color: #b91c1c; }
.docs-status-2 { background: rgba(34,197,94,.1);  color: #15803d; }

@media (max-width: 1080px) {
  .docs-page { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-main { padding: 40px 0 64px; }
}

@media (max-width: 720px) {
  .docs-main { padding: 32px 0 48px; }
}
