/* ── tokens (DESIGN-BIBLE §2) ── */
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #111114;
  --surface-2: #16161a;
  --border: #1f1f24;
  --border-2: #2a2a33;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #878790;
  --accent-violet: #a78bfa;
  --accent-violet-hover: #b9a3fb;
  --accent-muted: rgba(167, 139, 250, 0.12);
  --success: #a78bfa;
  --warning: #eab308;
  --error: #ef4444;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1120px;
  --nav-h: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 18% -8%, rgba(167, 139, 250, 0.1), transparent 55%),
    var(--bg);
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 20% 0%, black, transparent 72%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 88%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

a {
  color: var(--accent-violet);
}
a:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── hero flagship (§2.3 · §2.5) ── */
.hero-flagship {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 96px) 24px 40px;
  text-align: left;
}
.pill-announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.75);
  font-size: var(--fs-xs);
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: clamp(32px, 5vw, 48px);
  transition:
    border-color 120ms ease-out,
    background 120ms ease-out,
    transform 120ms ease-out;
  line-height: var(--lh-xs);
}
.pill-announce:hover {
  border-color: var(--border-2);
  background: var(--surface);
  transform: translateY(-2px);
}
.pill-announce:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}
.pill-tag {
  font: 600 var(--fs-xs) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-violet);
  background: var(--accent-muted);
  padding: 3px 8px;
  border-radius: 999px;
}
.pill-announce .arrow {
  color: var(--text-3);
  transition:
    transform 150ms ease-out,
    color 120ms ease-out;
}
.pill-announce:hover .arrow {
  transform: translateX(2px);
  color: var(--accent-violet);
}

.hero-flagship h1 {
  font-size: clamp(48px, 8vw, var(--fs-6xl));
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 11ch;
  color: var(--text);
}
.hero-flagship h1 .accent {
  color: var(--accent-violet);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-2);
  max-width: 42ch;
  margin: 0 0 36px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-violet);
  color: var(--bg);
  border: none;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 140ms ease-out,
    transform 80ms ease-out;
}
/* Bat shared.css .home-flagship main a.link-arrow { color: text-2 !important } */
.home-flagship main a.btn-primary,
.home-flagship main a.btn-primary.link-arrow,
.home-flagship main a.btn-primary:hover,
.home-flagship main a.btn-primary.link-arrow:hover {
  color: var(--bg) !important;
}
.btn-primary:hover {
  background: var(--accent-violet-hover);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary .arrow {
  display: inline-block;
  color: inherit;
  transition: transform 150ms ease-out;
}
.btn-primary:hover .arrow {
  transform: translateX(2px);
}
.btn-primary {
  font-size: var(--fs-sm);
  padding: 12px 22px;
  border-radius: 8px;
  line-height: var(--lh-sm);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hero-ctas a.transition-premium {
  transition:
    color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-ctas a:hover {
  background-color: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-1px);
}
.hero-ctas a .arrow,
.hero-ctas a::after {
  display: inline-block;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-ctas a:hover .arrow,
.hero-ctas a:hover::after {
  transform: translateX(4px);
}

/* stat bar — brief §5 */
.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  letter-spacing: 0.02em;
  line-height: var(--lh-xs);
}

.stat-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.stat-bar .stat-num {
  color: var(--text);
  font-weight: 500;
}

.stat-bar .stat-sep {
  margin: 0 16px;
  color: var(--text-3);
}

@media (max-width: 768px) {
  .stat-bar {
    font-size: var(--fs-xs);
    padding: 14px 12px;
    line-height: var(--lh-xs);
  }
  .stat-bar .stat-sep {
    margin: 0 8px;
  }
}

.stat-bar + .section-breathe {
  padding-top: 48px;
}

/* editorial sections (structurel convention) */
.editorial-wide {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  color: var(--text-2);
}

.section-header .eyebrow {
  margin: 0 0 12px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, var(--fs-3xl));
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 28ch;
  color: var(--text);
  line-height: var(--lh-3xl);
}

.section-header h2 .accent {
  color: var(--accent-violet);
}

#cross-chain .section-lede .accent {
  color: var(--accent-violet);
  font-weight: 500;
}

.section-header .lede {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0;
  line-height: 1.6;
}

/* two rails — brief §6 */
.two-rails-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 32px;
}

.two-rails-grid .cell {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.two-rails-grid .cell-title {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: var(--lh-xs);
}

.two-rails-grid .cell-title.center {
  color: var(--accent-violet);
}

.two-rails-grid .cell-body {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-2);
}

.two-rails-tagline {
  text-align: center;
  margin-top: 24px;
  font-style: italic;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

@media (max-width: 768px) {
  .two-rails-grid {
    grid-template-columns: 1fr;
  }
}

/* bridge x402 ↔ AP2 — brief §7 */
.bridge-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 32px;
}

.bridge-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}

.bridge-box.center {
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(167, 139, 250, 0.04);
}

.bridge-box-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: 4px;
  line-height: var(--lh-sm);
}

.bridge-box.center .bridge-box-title {
  color: var(--accent-violet);
}

.bridge-box-sub {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: var(--lh-xs);
}

.bridge-connector {
  width: 32px;
  height: 1px;
  background: var(--border);
  position: relative;
}

.bridge-trust-line {
  text-align: center;
  margin-top: 24px;
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: var(--lh-xs);
}

.section-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* seller deep dive — brief §8 + structurel §6 */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
}

.stats-grid-4 .stat {
  background: var(--surface);
  padding: 20px 16px;
  text-align: center;
}

.stats-grid-4 .stat-k {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
  line-height: var(--lh-xs);
}

.stats-grid-4 .stat-v {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.stats-grid-4 .stat-meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: 4px;
  line-height: var(--lh-xs);
}

.stat-v .stat-unit {
  font-size: 0.65em;
  color: var(--text-2);
  margin-left: 2px;
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 24px;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
}

.code-block-header .code-lang {
  color: var(--accent-violet);
  font-weight: 500;
}

.code-block-header .code-meta {
  color: var(--text-3);
}

.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text);
}

.mini-comparator {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
}

.mini-comparator .cmp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.6fr;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.mini-comparator .cmp-row:last-of-type {
  border-bottom: none;
}

.mini-comparator .cmp-header {
  background: var(--surface-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--lh-xs);
}

.mini-comparator .cmp-us {
  background: rgba(167, 139, 250, 0.04);
  color: var(--text);
  font-weight: 500;
}

.mini-comparator .cmp-cheap {
  text-align: center;
  padding: 14px;
  color: var(--accent-violet);
  font-weight: 500;
  background: rgba(167, 139, 250, 0.06);
}

@media (max-width: 768px) {
  .stats-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .mini-comparator .cmp-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .mini-comparator .cmp-header {
    display: none;
  }
}

@media (max-width: 768px) {
  .bridge-diagram {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bridge-connector {
    width: 1px;
    height: 16px;
    margin: 0 auto;
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 120ms ease-out,
    background 120ms ease-out,
    transform 80ms ease-out;
  line-height: var(--lh-sm);
}
.btn-ghost:hover {
  border-color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: scale(0.98);
}
.btn-ghost .arrow {
  transition: transform 150ms ease-out;
}
.btn-ghost:hover .arrow {
  transform: translateX(2px);
}

/* runtime tabs — buyer brief §9 */
.runtime-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
  overflow-x: auto;
}

.runtime-tabs button {
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition:
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
  line-height: var(--lh-xs);
}

.runtime-tabs button:hover {
  color: var(--text);
}

.runtime-tabs button.active {
  color: var(--accent-violet);
  border-bottom-color: var(--accent-violet);
}

.runtime-snippet[hidden] {
  display: none;
}

/* cost calculator — structurel §7 */
.cost-calc {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.cost-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
}

.cost-calc-header .cost-calc-title {
  color: var(--accent-violet);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cost-calc-header .cost-calc-meta {
  color: var(--text-3);
}

.cost-calc-rows {
  display: flex;
  flex-direction: column;
}

.cost-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: var(--lh-sm);
}

.cost-calc-row.cmp-us {
  color: var(--text);
  font-weight: 500;
  background: rgba(167, 139, 250, 0.04);
}

.cost-calc-amount {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: var(--lh-sm);
}

.cost-calc .cmp-cheap {
  text-align: center;
  padding: 14px;
  color: var(--accent-violet);
  font-weight: 500;
  background: rgba(167, 139, 250, 0.06);
}

@media (max-width: 768px) {
  .cost-calc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* moat ops — brief §10 */
.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
}

.stats-grid-5 .stat {
  background: var(--surface);
  padding: 20px 12px;
  text-align: center;
}

.stats-grid-5 .stat-k {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
  line-height: var(--lh-xs);
}

.stats-grid-5 .stat-v {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}

.moat-substats {
  text-align: center;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: var(--lh-xs);
}

@media (max-width: 768px) {
  .stats-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid-5 .stat:last-child {
    grid-column: span 2;
  }
}

/* cta bottom — structurel §9 */
.cta-bottom {
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.cta-bottom h2 {
  font-size: clamp(28px, 4vw, var(--fs-4xl));
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 24ch;
  color: var(--text);
  line-height: var(--lh-4xl);
}

.cta-bottom h2 .accent {
  color: var(--accent-violet);
}

.cta-bottom .hero-sub {
  margin-bottom: 28px;
}

.proof-tx {
  margin: -16px 0 28px;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}
.proof-tx .link-arrow {
  margin-top: 0;
}
.cross-chain-note {
  font: 500 var(--fs-xs) var(--mono);
  color: var(--text-3);
  margin: 0 0 24px;
  max-width: 62ch;
  line-height: 1.55;
}
.cross-chain-note strong {
  color: var(--text-2);
  font-weight: 600;
}

/* ── rhythm sections (§2.2) — ~88px entre blocs, jamais 128+128 adjacents ── */
.section-breathe {
  padding: 48px 24px 32px;
}
.section-dense {
  padding: 48px 24px 24px;
}
.hero-flagship + .section-breathe,
.hero-flagship + .section-dense {
  padding-top: 48px;
}
.section-breathe + .section-dense {
  padding-top: 48px;
}
.section-dense + .section-breathe {
  padding-top: 64px;
}
.section-breathe + .section-breathe {
  padding-top: 56px;
}
.section-dense + .section-dense {
  padding-top: 48px;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-eyebrow {
  font: 600 var(--fs-xs) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(24px, 3vw, var(--fs-3xl));
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 24ch;
  line-height: var(--lh-3xl);
}
.section-lede {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* product frame */
.product-frame {
  padding-bottom: 0;
}
.frame-outer {
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.65);
}
.frame-inner {
  border-radius: 15px;
  background: var(--bg-2);
  overflow: hidden;
}
.frame-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.9);
}
.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.frame-dot.live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}
.frame-url {
  flex: 1;
  margin-left: 8px;
  font: var(--fs-xs) var(--mono);
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums lining-nums;
}
.frame-body {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 280px;
}
.frame-flow {
  padding: 24px;
  border-right: 1px solid var(--border);
}
.frame-flow h3 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
  line-height: var(--lh-2xl);
}
.flow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-bottom: 8px;
  pointer-events: none;
  user-select: none;
  transition:
    border-color 400ms ease-in-out,
    background 400ms ease-in-out;
  line-height: var(--lh-xs);
}
.flow-step.on {
  border-color: rgba(167, 139, 250, 0.42);
  background: rgba(167, 139, 250, 0.11);
}
.flow-step span:last-child {
  font: 500 var(--fs-xs) var(--mono);
  color: var(--text-3);
  transition: color 400ms ease-in-out;
}
.flow-step.on span:last-child {
  color: var(--accent-violet);
}
.frame-term {
  padding: 24px;
  font: 500 var(--fs-xs)/1.6 var(--mono);
  color: var(--text-2);
  background: #080809;
  overflow: auto;
}
.frame-term .kw {
  color: var(--accent-violet);
}
.frame-term .num {
  color: var(--text);
}

/* stats — cartes distinctes (proof = liens · sell = métriques statiques) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.stat-card,
.stat-tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
}
.stat-card {
  cursor: pointer;
  transition:
    transform 120ms ease-out,
    border-color 120ms ease-out;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.stat-card:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}
.stats-row--static .stat-tile {
  cursor: default;
}
.stat-card .stat-v,
.stat-tile .stat-v {
  color: var(--text);
}
.stat-k {
  font: 600 var(--fs-xs) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.stat-v {
  font: 600 var(--fs-2xl)/1 var(--sans);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-v small {
  font: 500 var(--fs-xs) var(--mono);
  color: var(--text-3);
  margin-left: 4px;
}

.pull-quote {
  font-family: var(--sans);
  font-size: clamp(24px, 3.5vw, var(--fs-3xl));
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 22ch;
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--border-2);
}

/* bento cards */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
a.card-lift,
.card-lift[href] {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-lift {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 24px;
  transition:
    transform 120ms ease-out,
    border-color 120ms ease-out;
}
a.card-lift:hover,
.card-lift[href]:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
a.card-lift:active,
.card-lift[href]:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}
.card-lift:not([href]):hover {
  transform: none;
  border-color: var(--border);
  cursor: default;
}
.card-tag {
  font: 600 var(--fs-xs) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.card-lift h3 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: var(--lh-2xl);
}
.card-lift p {
  font-size: var(--fs-base);
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}
.card-lift.wide {
  grid-column: span 2;
}
.card-lift.tall {
  grid-row: span 2;
}
.card-lift code {
  font: 500 var(--fs-xs) var(--mono);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--accent-violet);
  text-decoration: none;
  margin-top: 12px;
  line-height: var(--lh-xs);
}
.link-arrow .arrow {
  transition: transform 150ms ease-out;
}
.link-arrow:hover .arrow {
  transform: translateX(3px);
}
.chain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chain-tag {
  font: 500 var(--fs-xs) var(--mono);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.02);
}

/* cta band */
.cta-band {
  text-align: left;
  border-top: 1px solid var(--border);
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, var(--fs-4xl));
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 16ch;
  line-height: var(--lh-4xl);
}
.cta-band p {
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 40ch;
}

/* footer — brand gauche · colonnes au bord droit (Linear/Vercel) */
.footer {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}
.footer-brand {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
}
.footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -0.02em;
  color: inherit;
  line-height: var(--lh-sm);
}
.footer .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  font: 600 var(--fs-xs) var(--mono);
  color: var(--text);
}
.footer-tagline {
  font: var(--fs-sm)/1.55 var(--sans);
  color: var(--text-2);
  margin: 14px 0 0;
}
.footer-copy {
  font: var(--fs-xs) var(--mono);
  color: var(--text-3);
  line-height: 1.6;
  margin: 14px 0 0;
}
.footer-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 48px;
}
.footer-nav > div {
  flex: 0 0 auto;
  width: max-content;
  min-width: 0;
  max-width: 200px;
}
.footer h2 {
  font: 600 var(--fs-xs) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li {
  margin-bottom: 8px;
}
.footer a {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-xs);
  transition: color 120ms ease-out;
  line-height: var(--lh-xs);
}
.footer a:hover {
  color: var(--accent-violet);
}

.preview-banner {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 200;
  font: 500 var(--fs-xs) var(--mono);
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  pointer-events: none;
}

/* mobile */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .card-lift.wide,
  .card-lift.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .frame-body {
    grid-template-columns: 1fr;
  }
  .frame-flow {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .footer-brand {
    flex: 1 1 100%;
    width: auto;
    max-width: none;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 32px 40px;
  }
  .hero-flagship h1 {
    max-width: none;
    letter-spacing: var(--tracking-tight);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .frame-dot.live {
    animation: none;
  }
  .card-lift:hover {
    transform: none;
  }
}
