/* ============================================================
   e-car.eth — Engineering-grade landing
   Aesthetic: precise / technical / paper-white with electric-lime accent
   Type: Geist (display + body), Geist Mono (labels + code)
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11', 'cv01', 'tnum';
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* paper */
  --paper:   #ffffff;
  --paper-2: #faf9f5;   /* warm off-white section */
  --paper-3: #f3f1ea;   /* slightly deeper */

  /* ink */
  --ink:    #0a0a0a;
  --ink-2:  #1d1d1b;
  --mute:   #6b6a64;
  --mute-2: #98968c;

  /* lines */
  --line:   #e6e4dc;
  --line-2: #d6d3c8;
  --line-3: #c1bdb0;

  /* accent: electric lime */
  --lime:    #d4ff3f;
  --lime-2:  #c9f72e;
  --lime-ink:#1a2900;
  --lime-glow: 0 0 0 1px rgba(212,255,63,0);

  /* status */
  --ok:    #18794e;
  --ok-bg: #ebf5ee;
  --warn:  #a45a16;
  --warn-bg:#fbf2e3;
  --err:   #b42318;

  /* layout */
  --wrap: 1280px;
  --gutter: 28px;
  --nav-h: 56px;

  /* type */
  --font: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* radii */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
}

/* ── Layout ──────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.rule { height: 1px; background: var(--line); }
.rule-thick { height: 1px; background: var(--ink); opacity: .85; }

section { position: relative; }

/* ── Typography ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mute);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(212,255,63,.25); }
.eyebrow .num { color: var(--ink); font-weight: 600; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; }
h1 { font-size: clamp(48px, 7.4vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: .98; }
h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.035em; line-height: 1.02; }
h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
h4 { font-size: 14px; letter-spacing: 0; font-weight: 600; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--mute); max-width: 56ch; line-height: 1.55; }

.mono { font-family: var(--mono); font-feature-settings: 'tnum','zero','ss01'; }
.label-tiny { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn .arrow { width: 14px; height: 14px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-accent { background: var(--lime); color: var(--lime-ink); font-weight: 600; }
.btn-accent:hover { background: var(--lime-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; gap: 6px; }

/* ── Navigation ──────────────────────────────────────────── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 36px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink);
}
.brand .dot-square { display: inline-block; width: 9px; height: 9px; background: var(--lime); margin-right: 9px; transform: translateY(0); }
.brand .eth { color: var(--mute); }
.nav-links {
  display: flex; gap: 26px; margin-left: 8px;
}
.nav-links a {
  font-size: 13.5px; color: var(--ink-2); letter-spacing: -0.005em;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--mute); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px 4px 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--ink-2);
}
.status-pill .pulse {
  width: 6px; height: 6px; background: var(--ok); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(24,121,78,.18);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 96px;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 1px 88px;
  background-position: 0 calc(var(--nav-h) + 64px);
  opacity: .35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px;
  align-items: start;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta .v { color: var(--ink); font-weight: 600; }
.hero-meta .sep { color: var(--line-3); }

h1.hero-h { margin-bottom: 28px; }
h1.hero-h .it { font-style: italic; font-weight: 400; font-family: 'Geist', serif; letter-spacing: -0.045em; }
h1.hero-h .underline { position: relative; white-space: nowrap; }
h1.hero-h .underline::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 14px;
  background: var(--lime); z-index: -1; transform: skewX(-6deg);
  opacity: .9;
}

.hero-sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--mute); max-width: 52ch; margin-bottom: 36px; line-height: 1.55; }

.hero-ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 44px; }

.hero-facts {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-fact { display: flex; flex-direction: column; gap: 4px; }
.hero-fact .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.hero-fact .v .sub { font-size: 13px; color: var(--mute); font-weight: 500; margin-left: 2px; letter-spacing: 0; }
.hero-fact .l { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* Hero visual — concentric ring system diagram */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0%, var(--paper-2) 100%);
  overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(0,0,0,.10) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  opacity: .5;
}
.hv-corners { position: absolute; inset: 10px; pointer-events: none; }
.hv-corners::before, .hv-corners::after,
.hv-corners > span::before, .hv-corners > span::after {
  content: ''; position: absolute; width: 12px; height: 12px; border: 1px solid var(--ink);
}
.hv-corners::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hv-corners::after  { top: 0; right: 0; border-left: none; border-bottom: none; }
.hv-corners > span::before { bottom: 0; left: 0; border-right: none; border-top: none; }
.hv-corners > span::after  { bottom: 0; right: 0; border-left: none; border-top: none; }

.hv-label-tl, .hv-label-tr, .hv-label-bl, .hv-label-br {
  position: absolute; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
  z-index: 2;
}
.hv-label-tl { top: 22px; left: 30px; }
.hv-label-tr { top: 22px; right: 30px; }
.hv-label-bl { bottom: 22px; left: 30px; }
.hv-label-br { bottom: 22px; right: 30px; }
.hv-label-tr .v { color: var(--ink); }

.hv-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hv-spin { transform-origin: 50% 50%; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-spin-rev { transform-origin: 50% 50%; animation: spin 60s linear infinite reverse; }

.hv-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 162px; height: 162px;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 3;
  box-shadow: 0 18px 40px -8px rgba(0,0,0,.25);
  padding: 0 14px;
}
.hv-core .k { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.hv-core .n { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.hv-core .n span { color: var(--mute-2); }
.hv-core .h { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-2); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); width: 84%; text-align: center; white-space: nowrap; }

.hv-orbit-node {
  position: absolute; z-index: 2;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 9px 4px 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--ink); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.08);
  transform: translate(-50%, -50%);
}
.hv-orbit-node .d { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; flex: none; }
.hv-orbit-node.lime .d { background: var(--lime); }

@media (max-width: 1000px) {
  .hero-visual { max-width: 520px; margin: 0 auto; }
}

/* Hero curl demo (compact, below) */
.hero-demo {
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--mono);
  overflow: hidden;
}
.hero-demo-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--mute);
  background: var(--paper);
}
.hero-demo-head .dot-row { display: inline-flex; gap: 5px; }
.hero-demo-head .dot-row span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hero-demo-head .grow { flex: 1; }
.hero-demo-head .latency { color: var(--ok); font-weight: 500; }
.hero-demo-body { padding: 14px 16px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); white-space: pre; overflow-x: auto; }
.hero-demo-body .cmt { color: var(--mute); }
.hero-demo-body .ok { color: var(--ok); }
.hero-demo-body .num { color: var(--ink); }
.hero-demo-body .str { color: var(--ink-2); }
.hero-demo-body .key { color: var(--mute); }
.hero-demo-body .accent { background: rgba(212,255,63,.45); padding: 0 3px; }

/* ── Live stats ribbon ───────────────────────────────────── */
.ribbon {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
}
.ribbon-inner {
  display: grid; grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
}
@media (max-width: 880px) { .ribbon-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .ribbon-inner { grid-template-columns: repeat(2, 1fr); } }
.ribbon-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.ribbon-cell:last-child { border-right: none; }
.ribbon-cell .l { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.ribbon-cell .l .d { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.ribbon-cell .v { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.ribbon-cell .v .suf { color: var(--mute); font-weight: 500; font-size: 18px; margin-left: 2px; letter-spacing: 0; }
.ribbon-cell.dim .v { color: var(--mute); }
@media (max-width: 880px) {
  .ribbon-cell { border-right: 1px solid var(--line); }
  .ribbon-cell:nth-child(3n) { border-right: none; }
}
@media (max-width: 540px) {
  .ribbon-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .ribbon-cell:nth-child(2n) { border-right: none; }
}

/* ── Section scaffolding ─────────────────────────────────── */
.section { padding: 120px 0; }
.section.tight { padding: 80px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.sec-head .left { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 880px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}

/* Section index ribbon (e.g. "§02 · ARCHITECTURE") */
.sec-id {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.sec-id .hash { color: var(--ink); font-weight: 600; }

/* ── Reserved OEM namespaces ─────────────────────────────── */
.ns-section { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ns-top {
  display: flex; align-items: end; justify-content: space-between; gap: 40px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.ns-top h3 { font-size: clamp(22px, 2vw, 28px); max-width: 28ch; }
.ns-top p { color: var(--mute); font-size: 14px; max-width: 44ch; }

.ns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ns-cell {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: var(--paper);
  transition: background .15s ease;
}
.ns-cell:hover { background: var(--paper-2); }
.ns-mono {
  width: 22px; height: 22px; flex: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.ns-mono img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
/* Monogram letters — fallback when Brandfetch returns no logo */
.ns-mono.fallback {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
}
.ns-cell .ns-eth { color: var(--mute); }
.ns-cell.reserved { background: var(--paper-2); color: var(--mute); }
.ns-cell.claimed .ns-mono { background: var(--lime); border-color: var(--lime); }
.ns-cell.claimed .ns-mono.fallback { color: var(--lime-ink); }
.ns-cell .ns-status { margin-left: auto; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-2); }
.ns-cell.claimed .ns-status { color: var(--ok); }

/* ── Architecture stack ──────────────────────────────────── */
.stack-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .stack-wrap { grid-template-columns: 1fr; gap: 40px; } }
.stack-copy h2 { margin-bottom: 24px; }
.stack-copy p { color: var(--mute); font-size: 16px; max-width: 48ch; margin-bottom: 16px; }
.stack-copy p strong { color: var(--ink); font-weight: 500; }

.stack-diag { border: 1px solid var(--ink); background: var(--paper); position: relative; }
.stack-diag::before {
  content: 'FIG.02 · PROTOCOL STACK';
  position: absolute; top: -1px; left: -1px;
  padding: 5px 10px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
}
.stack-row {
  padding: 30px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stack-row:last-child { border-bottom: none; }
.stack-row .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.stack-row .ttl { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 14px; }
.stack-row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.stack-row .tag { font-family: var(--mono); font-size: 11px; color: var(--ink-2); padding: 3px 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }

.stack-row.top { background: var(--paper); padding-top: 50px; }
.stack-row.mid { background: var(--lime); }
.stack-row.mid .lbl { color: rgba(26,41,0,.7); }
.stack-row.mid .ttl { color: var(--lime-ink); }
.stack-row.mid .tag { background: rgba(26,41,0,.1); border-color: transparent; color: var(--lime-ink); }
.stack-row.bot { background: var(--ink); color: var(--paper); }
.stack-row.bot .lbl { color: rgba(255,255,255,.5); }
.stack-row.bot .ttl { color: var(--paper); }
.stack-row.bot .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

/* ── Features grid ───────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feat {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  display: flex; flex-direction: column;
  position: relative;
  min-height: 320px;
  transition: background .15s ease;
}
.feat:hover { background: var(--paper-2); }
.feat .ix {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--mono); font-size: 10px; color: var(--mute-2); letter-spacing: .12em;
}
.feat .icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: var(--paper);
  margin-bottom: 24px;
}
.feat .icon svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.015em; }
.feat p { font-size: 13.5px; color: var(--mute); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.feat .api {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
}
.feat .api .k {
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 3px;
  color: var(--ink-2);
  background: var(--paper);
}
.feat .api .k.live { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.feat .api .k.q { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }

/* ── Use cases ───────────────────────────────────────────── */
.uc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .uc-list { grid-template-columns: 1fr; } }
.uc {
  padding: 36px 0 36px;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 90px 1fr;
  gap: 30px;
  padding-right: 32px;
}
.uc:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 48px; padding-left: 0; }
.uc:nth-child(even) { padding-left: 32px; padding-right: 0; }
@media (max-width: 800px) {
  .uc:nth-child(odd), .uc:nth-child(even) { border-right: none; padding: 32px 0; }
}
.uc .uc-num {
  font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .14em;
}
.uc .uc-num strong { display: block; color: var(--ink); font-size: 32px; letter-spacing: -0.03em; font-weight: 500; font-family: var(--font); margin-bottom: 4px; }
.uc h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.02em; }
.uc h3 .role { color: var(--mute); font-size: 13px; font-family: var(--mono); display: block; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.uc p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 56ch; }
.uc p code { font-family: var(--mono); font-size: 12.5px; background: var(--paper-3); padding: 1px 5px; border-radius: 3px; color: var(--ink); }

/* ── OEM Path ────────────────────────────────────────────── */
.oem-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch;
}
@media (max-width: 960px) { .oem-wrap { grid-template-columns: 1fr; gap: 32px; } }
.oem-left h2 { margin-bottom: 24px; }
.oem-left p { color: var(--mute); font-size: 16px; max-width: 50ch; margin-bottom: 32px; }
.oem-left p strong { color: var(--ink); font-weight: 500; }
.oem-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin-bottom: 32px;
}
.oem-metric {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 22px 22px;
  background: var(--paper);
}
.oem-metric.accent { background: var(--lime); }
.oem-metric .v { font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.oem-metric .v .u { font-size: 18px; color: var(--mute); margin-left: 4px; font-weight: 500; }
.oem-metric.accent .v { color: var(--lime-ink); }
.oem-metric.accent .v .u { color: rgba(26,41,0,.6); }
.oem-metric .l {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); margin-top: 8px;
}
.oem-metric.accent .l { color: rgba(26,41,0,.7); }

.code-block {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 11px; color: rgba(255,255,255,.55);
  letter-spacing: .04em;
}
.code-head .method {
  font-weight: 600; padding: 2px 6px; border-radius: 3px;
  background: var(--lime); color: var(--lime-ink); font-size: 10px; letter-spacing: .08em;
}
.code-head .endpoint { color: rgba(255,255,255,.85); }
.code-head .copy { margin-left: auto; cursor: pointer; color: rgba(255,255,255,.55); }
.code-head .copy:hover { color: var(--lime); }
.code-body { padding: 22px 22px 26px; font-size: 13px; line-height: 1.75; overflow-x: auto; }
.code-body .cmt   { color: #7e7e75; }
.code-body .kw    { color: var(--lime); }
.code-body .str   { color: #e7e3d2; }
.code-body .num   { color: #ffd166; }
.code-body .prop  { color: #cfd6e8; }
.code-body .bool  { color: var(--lime); }

/* ── Contracts datasheet ─────────────────────────────────── */
.contracts {
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.contracts-head {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.contracts-head .meta { color: rgba(255,255,255,.55); margin-left: auto; }
.contracts-head .meta strong { color: var(--lime); }
table.contracts-table { width: 100%; border-collapse: collapse; }
table.contracts-table th {
  text-align: left; padding: 14px 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
table.contracts-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}
table.contracts-table tr:last-child td { border-bottom: none; }
table.contracts-table tr:hover td { background: var(--paper-2); }
.contract-name { font-weight: 600; color: var(--ink); }
.contract-name .role { display: block; color: var(--mute); font-size: 11px; font-weight: 400; margin-top: 2px; letter-spacing: 0; }
.contract-addr {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.contract-addr a { color: var(--ink); border-bottom: 1px dotted var(--mute); }
.contract-addr a:hover { color: var(--mute); }
.contract-std { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.contract-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok); font-weight: 500;
}
.contract-status .d { width: 6px; height: 6px; background: var(--ok); border-radius: 50%; box-shadow: 0 0 0 2px rgba(24,121,78,.18); }

@media (max-width: 720px) {
  table.contracts-table th:nth-child(3), table.contracts-table td:nth-child(3) { display: none; }
}

/* ── Voice SDK ───────────────────────────────────────────── */
.voice-wrap {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
}
@media (max-width: 960px) { .voice-wrap { grid-template-columns: 1fr; gap: 32px; } }
.voice-copy h2 { margin-bottom: 22px; }
.voice-copy p { color: var(--mute); font-size: 16px; max-width: 48ch; margin-bottom: 28px; }
.voice-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 24px; max-width: 440px; }
.voice-platform {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-family: var(--mono);
  display: flex; align-items: center; gap: 8px;
}
.voice-platform .ok { color: var(--ok); font-weight: 600; }

.voice-log {
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  overflow: hidden;
}
.voice-log-head {
  background: var(--ink); color: var(--paper);
  padding: 11px 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.voice-log-head .live { margin-left: auto; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.voice-log-head .live .d { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.voice-log-body { padding: 8px 0; }
.vl-row { display: grid; grid-template-columns: 90px 28px 1fr; gap: 0; padding: 12px 18px; align-items: start; border-bottom: 1px dashed var(--line); }
.vl-row:last-child { border-bottom: none; }
.vl-time { color: var(--mute); font-size: 11px; }
.vl-from { font-weight: 600; }
.vl-from.driver { color: var(--ink); }
.vl-from.car { color: var(--ok); }
.vl-msg { color: var(--ink-2); line-height: 1.6; font-family: var(--font); font-size: 14px; }
.vl-msg .accent { background: var(--lime); color: var(--lime-ink); padding: 0 4px; }
.vl-msg .tx { font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.vl-msg.car { color: var(--ink); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.tier {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 36px 32px 32px;
  background: var(--paper);
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured { background: var(--lime); }
.tier.featured .tier-name { color: var(--lime-ink); }
.tier.featured .tier-price { color: var(--lime-ink); }
.tier.featured .tier-price .u { color: rgba(26,41,0,.6); }
.tier.featured .tier-sub { color: rgba(26,41,0,.7); }
.tier.featured .tier-feat { color: rgba(26,41,0,.85); border-color: rgba(26,41,0,.12); }
.tier.featured .tier-feat.na { color: rgba(26,41,0,.4); }
.tier.featured .btn-tier { background: var(--ink); color: var(--paper); }
.tier.featured .featured-tag {
  position: absolute; top: 16px; right: 18px;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px;
}
.tier-name { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 24px; }
.tier-price { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.tier-price .u { font-size: 18px; color: var(--mute); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.tier-sub { font-size: 13px; color: var(--mute); margin-bottom: 30px; min-height: 38px; }
.tier-divider { height: 1px; background: var(--line); margin: 0 0 24px; }
.tier.featured .tier-divider { background: rgba(26,41,0,.15); }
.tier-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.tier-feat {
  font-size: 13.5px; color: var(--ink-2);
  display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.tier-feat:last-child { border-bottom: none; padding-bottom: 0; }
.tier-feat .mark { color: var(--ok); font-weight: 600; font-family: var(--mono); margin-top: 1px; }
.tier-feat.na { color: var(--mute); }
.tier-feat.na .mark { color: var(--line-3); }
.btn-tier {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500;
}
.btn-tier:hover { transform: translateY(-1px); }
.tier.ghost .btn-tier { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* On-chain fees */
.fees-section { padding: 80px 0 0; }
.fees-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.fees-head h3 { font-size: 22px; }
.fees-head p { color: var(--mute); font-size: 14px; max-width: 40ch; }
.fees-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .fees-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .fees-grid { grid-template-columns: repeat(2, 1fr); } }
.fee {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.fee .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.fee .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ── Apply form ──────────────────────────────────────────── */
.apply-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  border-top: 1px solid var(--ink);
}
@media (max-width: 960px) { .apply-wrap { grid-template-columns: 1fr; gap: 0; } }
.apply-left {
  padding: 56px 48px 56px 0;
  border-right: 1px solid var(--ink);
  position: relative;
}
@media (max-width: 960px) { .apply-left { padding: 48px 0; border-right: none; border-bottom: 1px solid var(--ink); } }
.apply-left h2 { margin-bottom: 18px; }
.apply-left p { color: var(--mute); font-size: 15px; max-width: 36ch; margin-bottom: 26px; }
.apply-feats { display: flex; flex-direction: column; gap: 12px; max-width: 36ch; }
.apply-feat { display: flex; gap: 12px; align-items: start; font-size: 13.5px; color: var(--ink-2); }
.apply-feat .mark { color: var(--ok); font-family: var(--mono); margin-top: 2px; }

.apply-right { padding: 56px 0; }
@media (max-width: 960px) { .apply-right { padding: 48px 0; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field label .req { color: var(--err); margin-left: 3px; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 14px;
  padding: 11px 12px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 3px;
  color: var(--ink); outline: none;
  transition: border-color .15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; font-family: var(--font); }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%230a0a0a' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--mute); max-width: 48ch; }
.btn-submit {
  background: var(--ink); color: var(--paper);
  padding: 14px 24px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 3px; cursor: pointer;
  transition: transform .15s ease;
  border: none;
}
.btn-submit:hover { transform: translateY(-1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ── Footer ──────────────────────────────────────────────── */
footer.foot {
  background: var(--ink); color: var(--paper);
  padding: 80px 0 32px;
  position: relative;
}
footer.foot::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--ink);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  margin-bottom: 60px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand .brand-big { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--paper); display: inline-flex; align-items: baseline; }
.foot-brand .brand-big .dot-square { width: 11px; height: 11px; background: var(--lime); margin-right: 12px; display: inline-block; }
.foot-brand .brand-big .eth { color: rgba(255,255,255,.45); }
.foot-brand p { color: rgba(255,255,255,.55); font-size: 13.5px; max-width: 32ch; line-height: 1.6; }
.foot-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; font-weight: 500; }
.foot-col ul { display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 13.5px; color: rgba(255,255,255,.85); transition: color .15s ease; }
.foot-col a:hover { color: var(--lime); }
.foot-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .04em;
}

/* ── Fade in on scroll ───────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
