/* =========================================================
   ChainLabel — styles.css
   Faithful reproduction of chainlabel.ai (light theme)
   Design tokens extracted from original rendered output.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg:        #faf8f4;
  --bg2:       #f1ede4;
  --card:      #ffffff;
  --card2:     #fffdf8;
  --text:      #241f17;
  --muted:     #6e675c;
  --line:      rgba(35,28,15,.13);
  --accent:    #d97706;
  --accent2:   #7c3aed;
  --glow:      rgba(217,119,6,.20);
  --glow2:     rgba(124,58,237,.14);
  --codebg:    #1b1811;
  --navbg:     rgba(250,248,244,.82);

  /* hero background tints */
  --heroA:     rgba(245,165,36,.14);
  --heroB:     rgba(192,132,252,.10);

  --maxw:      1180px;

  /* risk colors */
  --risk-high: #ef4444;
  --risk-med:  #d97706;
  --risk-low:  #22c55e;
  --ofac:      #dc2626;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--navbg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 18px var(--glow);
}
.brand-mark-sm {
  width: 26px; height: 26px;
  border-radius: 7px;
  font-size: 13px;
}
.brand-word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-lang {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color .2s;
}
.nav-theme {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: border-color .2s, transform .3s;
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 0 20px var(--glow);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 16vh, 170px) clamp(16px, 5vw, 64px) 0;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--heroA), transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 30%, var(--heroB), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.hero-title {
  font-size: clamp(34px, 6.2vw, 72px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-gradient {
  background-image: linear-gradient(
    90deg,
    var(--accent),
    var(--accent2),
    var(--accent),
    var(--accent2)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueShift 6s ease-in-out infinite;
}
@keyframes hueShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
}
.btn-glow { box-shadow: 0 0 28px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  border-color: var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--accent); }

/* ---------- Demo / Query Card ---------- */
.demo-card {
  position: relative;
  width: min(760px, 100%);
  margin: 56px auto 0;
  text-align: left;
}
.demo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: .8;
}
.demo-dot-red { background: #ef4444; }
.demo-dot-amber { background: var(--accent); }
.demo-dot-green { background: #22c55e; }
.demo-label {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.query-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.addr-input {
  flex: 1 1 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s;
}
.addr-input::placeholder { color: var(--muted); opacity: .6; }
.addr-input:focus { border-color: var(--accent); }

.btn-scan {
  cursor: pointer;
  border: medium none currentcolor;
  border-image: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 12px;
  box-shadow: 0 0 18px var(--glow);
  transition: transform .15s;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-scan:hover { transform: translateY(-1px); }
.btn-scan:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(12,10,8,.35);
  border-top-color: #0c0a08;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-scan.is-loading .spinner { display: block; }

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

.usage-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin: 10px 0 0;
}

.warn-inline {
  font-size: 12.5px;
  color: var(--risk-med);
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(217,119,6,.06);
  border: 1px solid rgba(217,119,6,.2);
}
.error-inline {
  font-size: 12.5px;
  color: var(--risk-high);
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
}

.results { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }

.result-card {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.result-card.not-found { opacity: .55; }
.result-card.not-found .entity-name { color: var(--muted); }

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.result-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}

.risk-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  min-width: 64px;
  border: 1px solid transparent;
}
.risk-score { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 1.4rem; line-height: 1; }
.risk-label { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .1em; margin-top: 4px; font-weight: 500; }

.risk-low  { color: var(--risk-low);  background: rgba(34,197,94,.07);  border-color: rgba(34,197,94,.25); }
.risk-med  { color: var(--risk-med);  background: rgba(217,119,6,.07);  border-color: rgba(217,119,6,.25); }
.risk-high { color: var(--risk-high); background: rgba(239,68,68,.07);  border-color: rgba(239,68,68,.25); }

.entity-name {
  font-weight: 600;
  font-size: 17px;
  margin: 14px 0 10px;
  color: var(--text);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg2);
}
.chip-label { border-color: rgba(124,58,237,.3); color: var(--accent2); background: rgba(124,58,237,.07); }
.chip-risk  { border-color: rgba(239,68,68,.3); color: var(--risk-high); background: rgba(239,68,68,.06); }

.ofac-banner {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.4);
  color: var(--ofac);
  font-weight: 500;
  font-size: 13px;
}

.stats-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.stat-mini {
  background: var(--card2);
  padding: 10px 12px;
}
.stat-mini-k { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.stat-mini-v { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text); }

/* ---------- Chain Marquee ---------- */
.chain-marquee-wrap {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding: 34px 0 26px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.chain-marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--muted);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.chain-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.chain-item i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.stat-num {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-plus { font-size: .6em; vertical-align: super; }
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- Sections common ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) clamp(16px, 4vw, 48px);
}
.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .12em;
}
.section-header h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin: 14px 0 12px;
}
.section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15.5px;
}

/* Alternating section backgrounds */
.section-capabilities,
.section-scoring,
.section-api { /* default bg = var(--bg) */ }
.section-features,
.section-scenarios,
.section-pricing {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}

/* ---------- Four Layers ---------- */
.layers-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.layer-card {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 22px clamp(16px, 3vw, 30px);
  transition: border-color .25s;
}
.layer-card.layer-active {
  border-color: var(--accent);
  background: var(--card2);
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.layer-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  width: 34px;
  flex-shrink: 0;
}
.layer-name {
  font-size: 19px;
  font-weight: 700;
}
.layer-desc-desktop {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.layer-chevron {
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  transition: transform .3s;
  display: inline-block;
}
.layer-active .layer-chevron { transform: rotate(180deg); }

.layer-body {
  margin-top: 18px;
}
.layer-sub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.layer-sub-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.6;
}
.layer-sub-title { font-weight: 600; margin-bottom: 4px; }
.layer-sub-desc { color: var(--muted); }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card2);
  border-radius: 18px;
  padding: 26px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.feature-glow {
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  pointer-events: none;
}
.feature-glow-amber .feature-glow {
  background: radial-gradient(circle, var(--glow), transparent 70%);
}
.feature-glow-violet .feature-glow {
  background: radial-gradient(circle, var(--glow2), transparent 70%);
}
.feature-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---------- Scoring / Evidence Chain ---------- */
.scoring-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  align-items: start;
}

.risk-factors { display: flex; flex-direction: column; gap: 20px; }

.factor-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}
.factor-name { font-weight: 600; font-size: 15px; }
.factor-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
}
.bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--bg2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: var(--w, 45%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px var(--glow);
  animation: barGrow 1.2s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes barGrow {
  from { width: 0; }
}
.factor-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.code-panel {
  border: 1px solid var(--line);
  background: var(--codebg);
  border-radius: 18px;
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #e7e0d2;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.code-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #8f8876;
}
.code-dots { display: flex; gap: 6px; }
.cd {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  opacity: .7;
}
.cd-red { background: #ef4444; }
.cd-amber { background: var(--accent); }
.cd-green { background: #22c55e; }
.code-title {
  margin-left: 8px;
  font-size: 11.5px;
}
.code-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  color: #e7e0d2;
}

/* ---------- Scenarios ---------- */
.scenario-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.scenario-tab {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: .25s;
  border-color: var(--line);
  background: var(--card);
  color: var(--muted);
}
.scenario-tab.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
}
.scenario-tab:hover:not(.active) {
  border-color: var(--muted);
}

.scenario-content {
  border: 1px solid var(--line);
  background: var(--card2);
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.scenario-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.scenario-text {
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}
.scenario-text-muted { color: var(--muted); }

/* ---------- API Demo ---------- */
.api-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 18px;
  align-items: start;
}
.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.api-endpoint {
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  transition: .2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  background: transparent;
}
.api-endpoint.active {
  border-color: var(--accent);
  background: var(--card2);
}
.ep-method {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}
.ep-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--accent);
}
.ep-label {
  font-size: 13.5px;
  font-weight: 600;
}

.api-code-block {
  border: 1px solid var(--line);
  background: var(--codebg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.api-code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.api-method-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #8f8876;
}
.api-method-badge strong { color: var(--accent); }
.copy-btn {
  margin-left: auto;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: #c9c1b0;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color .2s;
}
.copy-btn:hover { border-color: rgba(255,255,255,.3); }

.api-code-pre {
  margin: 0;
  padding: 20px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.85;
  color: #e7e0d2;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card2);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-3px); }
.price-featured {
  border-color: var(--accent);
}
.price-badge {
  position: absolute;
  top: -11px; left: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.price-audience { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.price-features li span:first-child {
  color: var(--accent);
  flex-shrink: 0;
}

.price-btn {
  margin-top: auto;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
  transition: transform .2s;
  display: block;
}
.price-btn-outline {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}
.price-btn-outline:hover { transform: translateY(-2px); }
.price-btn-accent {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
}
.price-btn-accent:hover { transform: translateY(-2px); }

.pricing-note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.section-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, var(--heroA), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-inner h2 {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
.cta-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 540px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.btn-glow-lg {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 0 30px var(--glow);
}
.btn-secondary-lg {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 16px;
  transition: border-color .2s;
}
.btn-secondary-lg:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px clamp(16px, 4vw, 48px) 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-nav a { color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.footer-disclaimer { max-width: 680px; text-wrap: pretty; }
.footer-copy { flex-shrink: 0; }

/* =========================================================
   Responsive — <= 720px
   ========================================================= */
@media (max-width: 720px) {
  .nav-links, .nav-actions:not(:has(+ *)) {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav-links.open {
    display: flex !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--navbg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px;
    z-index: 60;
  }
  .nav-links.open > a { padding: 10px 0; width: 100%; }

  .scoring-layout {
    grid-template-columns: 1fr;
  }

  .api-layout {
    grid-template-columns: 1fr;
  }
  .api-endpoints {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .api-endpoint { min-width: 160px; }

  .scenario-content {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .query-form { flex-direction: column; }
  .btn-scan { width: 100%; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .chain-marquee { gap: 32px; font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-gradient, .bar-fill { animation: none; }
  .chain-marquee { animation: none; }
  .eyebrow-dot { animation: none; }
  .spinner { animation: none; }
}
