/* ══════════════════════════════════════════════════════════
   SHARED CSS — Kred Landing Pages
   Used by: AgenticID.Kred, Matrix.Kred, Score.Kred
   ══════════════════════════════════════════════════════════ */

/* ── Dark Theme — matched to Kred Domain Token ─────────── */
:root {
  --color-primary: #00E5FF;
  --color-accent: #00E5FF;
  --color-bg: #0E1115;
  --color-surface: #161B22;
  --color-border: #252B37;
  --color-text: #E6FFFF;
  --color-text-secondary: #8B949E;
  --color-text-muted: #484F58;
  --color-code-bg: #0D1117;
  --color-code-text: #E2E8F0;
  --font-heading: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  /* Token card */
  --token-bg: #0E1115;
  --token-card: #161B22;
  --token-border: #252B37;
  --token-text: #E6FFFF;
  --token-muted: #8B949E;
  --token-cyan: #00E5FF;
  --token-gold: #F0B429;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14,17,21,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  max-width: 100%;
  transition: top 0.4s ease, left 0.4s ease, right 0.4s ease,
              max-width 0.4s ease, border-radius 0.4s ease,
              background 0.4s ease, border 0.4s ease,
              box-shadow 0.4s ease, transform 0.4s ease;
}
.navbar.scrolled {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: 1280px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(14,17,21,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  border: 1px solid rgba(0,229,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(0,229,255,0.06);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}
.navbar-brand .domain { color: var(--color-primary); }
.navbar-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-more {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: default;
  padding: 4px 0;
}
.navbar-more:hover { color: var(--color-text-secondary); }
.navbar-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  z-index: 200;
}
.navbar-more:hover .navbar-more-menu { display: block; }
.navbar-more-menu-inner {
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.navbar-more-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.navbar-more-menu a:hover {
  background: rgba(0,229,255,0.06);
  color: var(--color-text);
}
.navbar-more-menu a.active {
  color: var(--color-primary);
}
.navbar-more-menu .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}
.navbar-more-menu .dot-placeholder {
  width: 6px;
  flex-shrink: 0;
}
.navbar-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.navbar-links a:hover { color: var(--color-primary); }
.navbar-links a.btn-primary { color: #0E1115; font-weight: 700; }
.navbar-links a.btn-primary:hover { color: #0E1115; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-accent);
  color: #0E1115;
  font-weight: 700;
}
.btn-primary:hover { background: #33EBFF; }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: #1C222B; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── Hero Section ─────────────────────────────────────── */
.hero {
  padding: 140px 24px 60px;
  background: linear-gradient(180deg, #101820 0%, var(--color-bg) 100%);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(0,229,255,0.1);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--color-primary); }
.hero-sub {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Stats Bar ────────────────────────────────────────── */
.stats-bar {
  max-width: 1280px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}
.stats-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.stats-bar-value {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
}
.stats-bar-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

/* ── Section Layouts ──────────────────────────────────── */
section { padding: 80px 24px; }
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.section-alt { background: var(--color-surface); }
.section-overline {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ── Credentials Banner ────────────────────────────────── */
.credentials-banner {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.credentials-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.credentials-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}
.credentials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}
.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.credential-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
}
.credential-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  max-width: 120px;
  line-height: 1.4;
}

/* ── Problem / Feature Cards ──────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
}
.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(255,107,107,0.1);
  color: #FF6B6B;
}
.problem-icon svg { width: 24px; height: 24px; }
.problem-icon.icon-cyan { background: rgba(0,229,255,0.1); color: var(--color-primary); }
.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.problem-solution {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.04);
}
.problem-solution p {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.problem-solution strong { color: var(--color-primary); }

/* ── How It Works / Steps ────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  margin-bottom: 48px;
}
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step {
  position: relative;
  padding: 32px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #0E1115;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Architecture Diagram ────────────────────────────── */
.architecture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.arch-box {
  padding: 16px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.arch-box-agent {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--color-primary);
}
.arch-box-registry {
  background: var(--color-primary);
  color: #0E1115;
  font-weight: 700;
}
.arch-box-chain {
  background: rgba(128,255,234,0.1);
  border: 1px solid rgba(128,255,234,0.3);
  color: #80FFEA;
}
.arch-arrow {
  padding: 0 16px;
  font-size: 20px;
  color: var(--color-text-muted);
}
.arch-box small {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Skills / Feature Grid ───────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.skill-card:hover {
  box-shadow: 0 0 24px rgba(0,229,255,0.08);
  border-color: var(--color-primary);
}
.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(0,229,255,0.1);
  color: var(--color-primary);
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.skill-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.skill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 12px;
}
.skill-tag-api {
  background: rgba(0,229,255,0.1);
  color: var(--color-primary);
}

/* ── Token Card ──────────────────────────────────────── */
.token-card-wrapper {
  position: relative;
  width: 380px;
  margin: 0 auto;
}
.token-preview-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-primary);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,229,255,0.3);
}
.token-annotation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  pointer-events: none;
  right: auto;
  left: auto;
}
.token-annotation .annotation-line {
  width: 24px;
  height: 1px;
  background: rgba(0,229,255,0.3);
  flex-shrink: 0;
}
.token-annotation .annotation-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,229,255,0.6);
  z-index: 10;
}
.token-annotation.left {
  flex-direction: row;
  right: calc(100% + 8px);
}
.token-annotation.right {
  flex-direction: row-reverse;
  left: calc(100% + 8px);
}
.annotation-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.annotation-label strong {
  color: var(--color-text);
  font-size: 12px;
}
.annotation-label span {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 400;
}
.token-card {
  width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--token-card);
  border: 1px solid var(--token-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0,229,255,0.08), 0 12px 40px rgba(0,0,0,0.3);
}
.token-banner {
  position: relative;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}
.token-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.token-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--token-card), rgba(22,27,34,0.4), transparent);
}
.token-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -48px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.token-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--token-card);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}
.token-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.token-body {
  padding: 4px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
}
.token-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, var(--token-cyan), #80FFEA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.token-desc {
  font-size: 11px;
  color: var(--token-muted);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}
.token-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--token-border);
  margin-bottom: 10px;
}
.token-wallet svg { width: 12px; height: 12px; color: var(--token-cyan); flex-shrink: 0; }
.token-wallet span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--token-muted);
}
.token-wallet .link-icon { margin-left: auto; }
.token-wallet .link-icon svg { width: 10px; height: 10px; color: var(--token-muted); }
.token-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.token-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--token-border);
}
.token-stat svg { width: 12px; height: 12px; color: var(--token-cyan); }
.token-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--token-text);
}
.token-stat-label {
  font-size: 10px;
  color: var(--token-muted);
}
.token-stat-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--token-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}
.token-stat-link svg { width: 10px; height: 10px; }
a.token-stat {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.token-stat:hover {
  border-color: var(--token-cyan);
  background: rgba(0,229,255,0.06);
}
.token-score {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--token-border);
}
.token-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.token-score-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--token-text);
}
.token-score-label svg { width: 12px; height: 12px; color: var(--token-gold); }
.token-score-value {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--token-cyan), #80FFEA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.token-score-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.token-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--token-cyan), #80FFEA);
  transition: width 1s ease;
}
a.token-score-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.token-score-link .token-score {
  transition: border-color 0.2s, background 0.2s;
}
a.token-score-link:hover .token-score {
  border-color: var(--token-cyan);
  background: rgba(0,229,255,0.06);
}

/* ── Code Blocks ──────────────────────────────────────── */
.code-block {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.code-endpoint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--token-cyan);
  font-weight: 500;
}
.code-body {
  padding: 16px;
  overflow-x: auto;
}
.code-body pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-code-text);
  white-space: pre;
}
.code-body .kw { color: #C792EA; }
.code-body .str { color: #C3E88D; }
.code-body .key { color: #89DDFF; }
.code-body .cm { color: #546E7A; }
.code-body .fn { color: #82AAFF; }
.code-body .num { color: #F78C6C; }

/* ── Use Cases ────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.usecase-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.usecase-card:hover {
  box-shadow: 0 0 24px rgba(0,229,255,0.08);
  border-color: var(--color-primary);
}
.usecase-header {
  padding: 24px 24px 16px;
  flex: 1;
}
.usecase-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.usecase-header p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Pricing Section ─────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.pricing-card-featured {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 40px rgba(0,229,255,0.08);
}
.pricing-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.pricing-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Cost Calculator ─────────────────────────────────── */
.calculator-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.calculator-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.calculator-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.calc-row { margin-bottom: 20px; }
.calc-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}
.calc-row label span {
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 13px;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 10px rgba(0,229,255,0.4);
}
.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 10px rgba(0,229,255,0.4);
}
.calc-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-total-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.calc-total-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
}
.calc-total-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
}
.calc-breakdown {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  line-height: 1.8;
}

/* ── API Quick Reference ──────────────────────────────── */
.api-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.api-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.api-card-header { padding: 20px 24px 12px; }
.api-card > .code-block { flex: 1; display: flex; flex-direction: column; }
.api-card > .code-block > .api-tab-panel.active { flex: 1; display: flex; flex-direction: column; }
.api-card > .code-block > .api-tab-panel.active > .code-body { flex: 1; }
.api-method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.api-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
}
.api-meta code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-primary);
  background: rgba(0,229,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}
.method-post { background: rgba(0,229,255,0.1); color: var(--color-primary); }
.method-get { background: rgba(128,255,234,0.1); color: #80FFEA; }
.api-card h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.api-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── API Reference Module — Enhanced ─────────────────── */
.api-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.method-put    { background: rgba(240,180,41,0.1); color: #F0B429; }
.method-delete { background: rgba(255,107,107,0.1); color: #FF6B6B; }
.method-patch  { background: rgba(200,146,234,0.1); color: #C892EA; }

/* Tab bar within each card */
.api-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.api-tab {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
  text-transform: uppercase;
}
.api-tab:hover {
  color: var(--color-text-secondary);
}
.api-tab.active {
  color: var(--color-primary);
}
.api-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px 1px 0 0;
}

/* Tab panels */
.api-tab-panel {
  display: none;
}
.api-tab-panel.active {
  display: block;
}

/* Copy button in code header */
.api-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.api-copy-btn:hover {
  color: var(--color-text-secondary);
  border-color: var(--color-text-muted);
  background: rgba(255,255,255,0.06);
}
.api-copy-btn.copied {
  color: var(--color-primary);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}
.api-copy-btn svg {
  width: 12px;
  height: 12px;
}

/* Responsive: 4-column grid */
@media (max-width: 1024px) {
  .api-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .api-grid-4 { grid-template-columns: 1fr; }
}

/* ── API Parameter Tables ────────────────────────────── */
.api-params {
  padding: 0 24px 16px;
  overflow-x: auto;
}
.api-params table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: var(--font-mono);
}
.api-params th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.api-params td {
  padding: 5px 8px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}
.api-params td:first-child {
  color: var(--color-primary);
  font-weight: 500;
}
.api-params .param-type { color: #C792EA; }
.api-params .param-required { color: #F78C6C; font-size: 10px; font-weight: 600; }
.api-params .param-optional { color: var(--color-text-muted); font-size: 10px; }
.api-params .param-desc {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-text-secondary);
  white-space: normal;
  max-width: 180px;
}

/* ── API Status Badge ────────────────────────────────── */
.api-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.api-status-2xx { background: rgba(128,255,234,0.1); color: #80FFEA; }
.api-status-4xx { background: rgba(255,107,107,0.1); color: #FF6B6B; }

/* ── API Error Responses (collapsible) ───────────────── */
.api-error-responses {
  margin-top: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.api-error-responses summary {
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.api-error-responses summary::-webkit-details-marker { display: none; }
.api-error-responses summary::before {
  content: '\25B6';
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
.api-error-responses[open] summary::before { transform: rotate(90deg); }
.api-error-responses summary:hover { color: var(--color-text); }
.api-error-responses .error-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 24px 24px;
}
.api-error-responses .error-example {
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.api-error-responses .error-example .code-header { padding: 8px 12px; }
.api-error-responses .error-example .code-body { padding: 12px; }
.api-error-responses .error-example pre {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-code-text);
  white-space: pre;
}
@media (max-width: 768px) {
  .api-error-responses .error-grid { grid-template-columns: 1fr; }
  .api-params .param-desc { max-width: 120px; }
}

/* ── Quickstart ──────────────────────────────────────── */
.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.quickstart-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.quickstart-text p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ── CTA Section ──────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 80px 24px;
}
.cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.cta-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.cta-links a:hover { color: var(--color-text); }

/* ── Footer ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-inner p {
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-primary); }

/* ── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--color-primary);
}
.form-input::placeholder {
  color: var(--color-text-muted);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B949E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Comparison Table ────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.comparison-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  background: var(--color-surface);
}
.comparison-table td {
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.comparison-table td:last-child {
  color: var(--color-text);
}
.comparison-table tr:last-child td { border-bottom: none; }

/* ── Tier Cards ──────────────────────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tier-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
}
.tier-abbr {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.tier-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tier-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .stats-bar { flex-direction: column; gap: 12px; }
  .stats-bar-divider { width: 40px; height: 1px; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps.steps-4 { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .quickstart-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .token-card { width: 100%; max-width: 380px; margin: 0 auto; }
  .token-card-wrapper { width: 100%; max-width: 380px; }
  .token-annotation { display: none; }
  .architecture { flex-direction: column; gap: 0; }
  .arch-arrow { transform: rotate(90deg); padding: 8px 0; }
  .navbar-links a:not(.btn-primary) { display: none; }
  .navbar-links { gap: 0; }
  .navbar.scrolled {
    max-width: 100%;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    top: 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .cta-links { flex-wrap: wrap; gap: 12px 20px; }
  .comparison-table { font-size: 12px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 16px 48px; }
  section { padding: 48px 16px; }
  .hero h1 { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; text-align: center; justify-content: center; }
  .tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .token-annotation { display: none; }
}

/* ══════════════════════════════════════════════════════════
   API PLAYGROUND — Try It Console
   ══════════════════════════════════════════════════════════ */

/* ── Mode Toggle in section header ───────────────────────── */
.api-playground-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.playground-mode-toggle {
  display: inline-flex;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.playground-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-code-bg);
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.playground-mode-btn:first-child {
  border-right: 1px solid var(--color-border);
}

.playground-mode-btn:hover {
  color: var(--color-text-secondary);
  background: var(--color-surface);
}

.playground-mode-btn.active {
  color: var(--color-primary);
  background: rgba(0, 229, 255, 0.08);
}

.playground-mode-btn svg { width: 14px; height: 14px; }

/* ── API Key Input Row ───────────────────────────────────── */
.playground-api-key { max-width: 360px; }

.playground-api-key .form-label {
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.playground-key-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.playground-key-row .form-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 12px;
}

.playground-key-toggle {
  padding: 8px 10px !important;
  flex-shrink: 0;
  background: var(--color-code-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 4px !important;
  color: var(--color-text-muted) !important;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.playground-key-toggle:hover {
  color: var(--color-text-secondary) !important;
  border-color: var(--color-text-muted) !important;
}

/* ── Try It Tab Arrow ────────────────────────────────────── */
.api-try-arrow {
  font-size: 9px;
  margin-left: 2px;
  color: var(--color-primary);
}

/* ── Playground Panel (inside card) ──────────────────────── */
.playground-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* ── Playground Form ─────────────────────────────────────── */
.playground-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playground-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playground-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.playground-field-label .param-required {
  color: #F78C6C;
  font-size: 9px;
  font-weight: 600;
}

.playground-field-label .param-optional {
  color: var(--color-text-muted);
  font-size: 9px;
}

.playground-field-label .param-type {
  color: #C792EA;
  font-size: 10px;
}

.playground-field-input {
  width: 100%;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text);
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.playground-field-input:focus {
  border-color: var(--color-primary);
}

.playground-field-input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Send Button ─────────────────────────────────────────── */
.playground-send {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #0E1115;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.playground-send:hover { opacity: 0.9; }
.playground-send:active { transform: scale(0.98); }

.playground-send.loading {
  pointer-events: none;
  opacity: 0.7;
}

.playground-send svg { width: 14px; height: 14px; }

.playground-send.loading svg {
  animation: playground-spin 0.8s linear infinite;
}

@keyframes playground-spin {
  to { transform: rotate(360deg); }
}

/* ── Response Area ───────────────────────────────────────── */
.playground-response {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.playground-response-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.playground-response-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}

.playground-response-status.status-2xx {
  background: rgba(128, 255, 234, 0.1);
  color: #80FFEA;
}

.playground-response-status.status-4xx {
  background: rgba(255, 107, 107, 0.1);
  color: #FF6B6B;
}

.playground-response-status.status-5xx {
  background: rgba(255, 107, 107, 0.15);
  color: #FF6B6B;
}

.playground-response-status.status-err {
  background: rgba(255, 107, 107, 0.1);
  color: #FF6B6B;
}

.playground-response-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.playground-response .code-body {
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--color-code-bg);
  border-radius: var(--radius);
}

.playground-response .code-body pre {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-code-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.playground-copy-response { margin-left: auto; }

/* ── Demo mode badge ─────────────────────────────────────── */
.playground-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Flex fix for Try It panel ────────────────────────────── */
.api-card > .code-block > .api-tab-panel[data-panel="try"].active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.api-tab-panel[data-panel="try"] .playground-panel {
  flex: 1;
}

/* ══════════════════════════════════════════════════════════
   RECIPES SECTION
   ══════════════════════════════════════════════════════════ */

.recipe-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 860px;
  margin: 0 auto;
}

/* Timeline container */
.recipe-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 24px;
}

/* Vertical connector line */
.recipe-steps::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(0, 229, 255, 0.15));
  border-radius: 1px;
}

/* Individual step */
.recipe-step {
  position: relative;
  padding: 20px 0 20px 32px;
}

/* Step number circle */
.recipe-step-num {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #0E1115;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.recipe-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.recipe-step-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.recipe-step-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.recipe-step-endpoint .method { font-weight: 600; }
.recipe-step-endpoint .method-post { color: var(--color-primary); }
.recipe-step-endpoint .method-get  { color: #80FFEA; }
.recipe-step-endpoint .method-put  { color: #F0B429; }

.recipe-step-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Request/Response code blocks within recipe steps */
.recipe-step-code {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.recipe-step-code .code-block { font-size: 12px; }
.recipe-step-code .code-block .code-header { padding: 6px 12px; }
.recipe-step-code .code-block .code-body { padding: 10px 12px; }
.recipe-step-code .code-block pre {
  font-size: 11px;
  line-height: 1.5;
}

/* ── Responsive for playground + recipes ─────────────────── */
@media (max-width: 768px) {
  .recipe-card { padding: 24px 20px; }
  .recipe-step-code { grid-template-columns: 1fr; }
  .playground-mode-toggle { width: 100%; }
  .playground-mode-btn { flex: 1; justify-content: center; }
  .api-playground-controls { flex-direction: column; }
  .playground-api-key { max-width: 100%; width: 100%; }
}
