@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b1020;
  --ink-2: #111830;
  --ink-3: #1a2340;
  --amber: #f6a81c;
  --amber-2: #ffc14d;
  --paper: #f7f8fb;
  --white: #ffffff;
  --text: #151a2b;
  --muted: #5c6578;
  --muted-dark: #a7b0c2;
  --line: #e3e7ef;
  --line-dark: rgba(255, 255, 255, 0.12);
  --green: #16a36a;
  --red: #c03434;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1140px;
  --shadow: 0 1px 2px rgba(11, 16, 32, 0.05), 0 12px 36px rgba(11, 16, 32, 0.07);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: inherit;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

strong {
  font-weight: 650;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  left: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.footer-brand .brand-logo {
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: #dfe4ee;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 11px;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.site-nav a[aria-current="page"] {
  color: var(--amber);
}

.site-nav .btn {
  margin-left: 10px;
  padding: 11px 18px;
  font-size: 0.92rem;
}

.nav-toggle,
.nav-burger {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--amber-2);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-3);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(40px, 6vw, 80px) 0;
}

.section-dark {
  background: var(--ink);
  color: #e9edf5;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: var(--muted-dark);
}

.section-tint {
  background: #f0f2f7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a5a00;
  margin-bottom: 18px;
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a5a00;
  box-shadow: 0 0 0 4px rgba(138, 90, 0, 0.14);
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow,
.cta-band .eyebrow {
  color: var(--amber);
}

.hero .eyebrow .pulse,
.page-hero .eyebrow .pulse,
.section-dark .eyebrow .pulse,
.cta-band .eyebrow .pulse {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 168, 28, 0.18);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 38px);
}

.section-head p {
  font-size: 1.08rem;
  color: var(--muted);
}

.section-dark .section-head p {
  color: var(--muted-dark);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted-dark);
  max-width: 580px;
}

.section-dark .lead {
  color: var(--muted-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(246, 168, 28, 0.16), transparent 60%),
    radial-gradient(700px 420px at 8% 92%, rgba(56, 96, 220, 0.14), transparent 60%),
    var(--ink);
  color: #fff;
  padding: clamp(46px, 7vw, 96px) 0 clamp(46px, 6vw, 88px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
}

.hero h1 .hl {
  color: var(--amber);
  white-space: nowrap;
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: #fff;
  opacity: 0.94;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: #c9d0de;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.hero-points svg {
  width: 15px;
  height: 15px;
  color: var(--amber);
  flex: 0 0 auto;
}

/* Dashboard mockup */
.terminal {
  background: linear-gradient(180deg, #182142, #121a33);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
  max-width: 430px;
  margin-left: auto;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.terminal-top span {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa5bb;
  font-weight: 600;
}

.terminal-balance {
  padding: 2px 4px 16px;
}

.terminal-balance small {
  display: block;
  font-size: 0.74rem;
  color: #9aa5bb;
  letter-spacing: 0.04em;
}

.terminal-balance strong {
  display: block;
  font-size: 1.95rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.terminal-balance .delta {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #6fe0ac;
  background: rgba(22, 163, 106, 0.14);
  border: 1px solid rgba(22, 163, 106, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
}

.txn {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.txn li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

.op {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.op::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.op-mpesa {
  color: #ff6b6b;
  background: rgba(224, 71, 71, 0.12);
}

.op-orange {
  color: #ffb04d;
  background: rgba(255, 140, 0, 0.12);
}

.op-airtel {
  color: #ff8b8b;
  background: rgba(224, 71, 71, 0.1);
}

.op-afrimoney {
  color: #5fd0c0;
  background: rgba(47, 158, 143, 0.14);
}

.txn .ref {
  color: #b9c2d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txn .amt {
  color: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.txn .ok {
  color: #6fe0ac;
  font-size: 0.68rem;
  display: block;
  text-align: right;
}

.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  font-size: 0.7rem;
  color: #9aa5bb;
}

.terminal-foot b {
  color: #dfe4ee;
  font-weight: 600;
}

/* ---------- Trust strip ---------- */
.trust {
  background: #080d1a;
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 34px;
  color: #9aa5bb;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-inner span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Operators ---------- */
.operators {
  background: #080d1a;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 24px 0 20px;
}

.operators-title {
  text-align: center;
  color: #9aa5bb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100px;
  padding: 14px 12px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.operator-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
}

.operator-logo img {
  display: block;
  max-height: 44px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.operator-name {
  color: #e7ebf3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operators-note {
  text-align: center;
  color: #8f9ab0;
  font-size: 0.78rem;
  margin-top: 16px;
}

.bank-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: #8f9ab0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bank-partner img {
  height: 24px;
  width: auto;
}

.bank-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bank-logo span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bank-logo img {
  height: 24px;
  width: auto;
}

.operator-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.operator-inline-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operator-inline img {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  justify-self: start;
}

.operator-inline img.operator-inline-square {
  height: 40px;
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 16px;
}

.grid > * {
  min-width: 0;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-dark {
  background: var(--ink-2);
  border-color: var(--line-dark);
  box-shadow: none;
}

.card-dark p {
  color: var(--muted-dark);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(246, 168, 28, 0.13);
  color: #b97a06;
  margin-bottom: 16px;
}

.card-dark .card-icon {
  color: var(--amber);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card-number {
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Pain / solution */
.pain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pain > div {
  background: var(--white);
  padding: 26px;
}

.pain h3 {
  font-size: 1.02rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pain h3 span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
}

.pain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.callout p {
  margin: 0;
  max-width: 640px;
  color: #d9dfea;
}

.callout strong {
  color: var(--amber);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.035);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.12rem;
}

.step p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Sectors ---------- */
.sector {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.sector:first-child {
  border-top: 0;
  padding-top: 0;
}

.sector svg {
  width: 22px;
  height: 22px;
  color: #b97a06;
  flex: 0 0 auto;
  margin-top: 3px;
}

.sector h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.sector p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Code / developers ---------- */
.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.code {
  background: #060a14;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.code-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.code-bar span {
  margin-left: auto;
  color: #8f9ab0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #d6def0;
  line-height: 1.7;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  tab-size: 2;
}

.code .k {
  color: #ffb454;
}

.code .s {
  color: #9adfa8;
}

.code .c {
  color: #7f8ca6;
}

.code .f {
  color: #7fb7ff;
}

/* ---------- Feature list ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(246, 168, 28, 0.16);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.checklist.dark-on-light li {
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--ink);
  padding: 22px 18px;
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted-dark);
}

.stat small {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  color: #77839b;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 650;
  position: relative;
  font-size: 1.02rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--amber), #ffbf45);
  color: var(--ink);
  padding: clamp(40px, 6vw, 64px) 0;
}

.cta-band h2 {
  color: var(--ink);
  max-width: 20ch;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(11, 16, 32, 0.75);
  max-width: 620px;
}

.cta-band .btn-dark {
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070b15;
  color: #b7c0d0;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand p {
  max-width: 32ch;
  color: #8f9ab0;
  font-size: 0.88rem;
  margin-top: 14px;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #b7c0d0;
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  color: #77839b;
  font-size: 0.78rem;
}

.footer-bottom a {
  color: #9aa5bb;
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background:
    radial-gradient(700px 340px at 85% 0%, rgba(246, 168, 28, 0.12), transparent 65%),
    var(--ink);
  color: #fff;
  padding: clamp(38px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line-dark);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 20ch;
}

.page-hero p {
  color: var(--muted-dark);
  max-width: 640px;
  font-size: 1.08rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.76rem;
  color: #8f9ab0;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #b7c0d0;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb span {
  margin: 0 7px;
  opacity: 0.5;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 2.2em;
}

.prose h3 {
  font-size: 1.18rem;
  margin-top: 1.6em;
}

.prose p,
.prose li {
  color: #2a3247;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose a {
  color: #9a5e00;
  text-decoration-color: rgba(154, 94, 0, 0.35);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--amber);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}

.prose blockquote p {
  margin: 0;
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article .container > *,
.dev-grid > * {
  min-width: 0;
}

.code,
.prose pre {
  min-width: 0;
  max-width: 100%;
}

.prose pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  display: block;
  min-width: max-content;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: #eef1f6;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose .note {
  padding: 16px 20px;
  background: #fff7e6;
  border: 1px solid #f4d699;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #5c430c;
}

.article-head {
  max-width: 760px;
}

.article-head .breadcrumb {
  color: var(--muted);
}

.article-head .breadcrumb a {
  color: var(--muted);
  text-decoration: underline;
}

.article-head .breadcrumb span[aria-current="page"] {
  opacity: 1;
  color: var(--muted);
}

.article-head .eyebrow {
  color: #8a5a00;
}

.article-head .eyebrow .pulse {
  background: #8a5a00;
  box-shadow: 0 0 0 4px rgba(138, 90, 0, 0.14);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 22px;
}

.article-meta .tag {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: #9a5e00;
  font-weight: 600;
}

.article {
  padding: clamp(34px, 5vw, 60px) 0;
}

.article .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-width: 0;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.article-aside h3 {
  font-size: 0.95rem;
}

.article-aside p {
  font-size: 0.86rem;
  color: var(--muted);
}

.article-aside .btn {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.88rem;
}

/* ---------- Blog index ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(11, 16, 32, 0.1);
}

.post-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5e00;
  background: #fff4de;
  border-radius: 999px;
  padding: 3px 9px;
}

.post-card h2,
.post-card h3 {
  font-size: 1.16rem;
  margin: 4px 0 0;
}

.post-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.post-card time {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid #ccd3df;
  border-radius: 9px;
  padding: 11px 12px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  outline: 2px solid rgba(246, 168, 28, 0.25);
  outline-offset: 0;
  background: #fff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 10px;
}

.contact-point {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-point:first-of-type {
  border-top: 0;
}

.contact-point svg {
  width: 18px;
  height: 18px;
  color: #b97a06;
  margin-top: 3px;
  flex: 0 0 auto;
}

.contact-point strong {
  display: block;
  font-size: 0.85rem;
}

.contact-point a,
.contact-point span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Legal ---------- */
.legal {
  max-width: 820px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.legal p,
.legal li {
  color: #2a3247;
  font-size: 0.95rem;
}

.placeholder {
  background: #fff1d6;
  border: 1px dashed #d9a441;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  color: #6b4a00;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .dev-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .terminal {
    margin: 10px auto 0;
    transform: none;
    width: 100%;
    max-width: 460px;
  }

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

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .article .container {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 840px) {
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
  }

  .nav-burger > span:not(.sr-only) {
    display: block;
    height: 2px;
    background: #e7ebf3;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100vw;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    background: #0b1020;
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .site-nav a {
    padding: 12px 10px;
    font-size: 1rem;
  }

  .site-nav .btn {
    margin: 8px 0 0;
  }

  #nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  #nav-toggle:checked ~ .nav-burger > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  #nav-toggle:checked ~ .nav-burger > span:nth-child(3) {
    opacity: 0;
  }

  #nav-toggle:checked ~ .nav-burger > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-inner {
    position: relative;
  }

}

@media (max-width: 820px) {
  .grid-3,
  .pain,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .cta-row .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .prose table {
    display: table;
    table-layout: auto;
    min-width: 560px;
  }

  .table-wrap .api-table {
    min-width: 0;
  }

  .prose th,
  .prose td {
    padding: 8px 10px;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .prose th {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .prose td {
    hyphens: auto;
  }

  .api-table,
  .api-table tbody,
  .api-table tr,
  .api-table td {
    display: block;
    width: 100%;
  }

  .api-table thead {
    display: none;
  }

  .api-table tr {
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
  }

  .api-table td {
    padding: 2px 0;
    border: 0;
    hyphens: none;
  }

  .api-table td:first-child {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .api-table td:nth-child(2) {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--ink);
  }

  .api-table td:nth-child(3) {
    font-size: 0.85rem;
    color: var(--muted);
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .info-table td {
    padding: 0 !important;
    border: 0 !important;
  }

  .info-table td:first-child {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .card {
    padding: 20px;
  }

  .grid {
    gap: 14px;
  }

  .section-head p,
  .page-hero p {
    font-size: 1rem;
  }

  .stat {
    padding: 18px 14px;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    gap: 24px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .field-row {
    grid-template-columns: 1fr;
  }

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

  .hero-points {
    font-size: 0.82rem;
  }

  .terminal {
    padding: 14px;
  }

  .txn .ref {
    max-width: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .article-aside {
    display: none;
  }

  body {
    background: #fff;
  }
}
