/* Strike SCF — Institutional Fintech */
/* Type system: Space Grotesk (display), DM Sans (body), IBM Plex Mono (data/labels) */

:root {
  --white: #FFFFFF;
  --offwhite: #F7F8FA;
  --ink: #111318;
  --ink-soft: #1A1D24;
  --gray: #6B7280;
  --gray-soft: #9AA0AB;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --blue: #1428CC;
  --blue-hover: #1020AA;
  --blue-dim: #0E1E7A;
  --blue-light: #EEF0FF;
  --gold: #C9A84C;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  --container: 1320px;
  --gutter: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); color: var(--ink); }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
video, svg { max-width: 100%; height: auto; }

::selection { background: rgba(20, 40, 204, 0.14); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Type primitives ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 7.4vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow-ink { color: var(--ink); }
.eyebrow-blue { color: var(--blue); }
.lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0;
}
.body { font-size: 16px; line-height: 1.65; color: var(--ink); font-weight: 300; }
.body-gray { color: var(--gray); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- Page badge ---------- */
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(20, 40, 204, 0.22);
  padding: 7px 16px;
  margin-bottom: 48px;
  background: rgba(20, 40, 204, 0.03);
}
.page-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(20, 40, 204, 0.18);
  animation: badge-pulse 2.4s ease infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(20, 40, 204, 0.18); }
  50%       { box-shadow: 0 0 0 5px rgba(20, 40, 204, 0.07); }
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-tight { padding: 60px 0; border-top: 1px solid var(--border); }
.section.bare { border-top: 0; }
.section.off, .section-xl.off { background: var(--offwhite); }
.section.dark, .section-xl.dark {
  background: linear-gradient(155deg, #0c1118 0%, #111318 45%, #0a0f1a 100%);
  color: var(--white);
  border-top: 0;
}
.section.dark .eyebrow, .section-xl.dark .eyebrow { color: var(--gray-soft); }
.section.dark .body, .section-xl.dark .body { color: #C8CDD6; }

/* Grid */
.row { display: flex; gap: 40px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease;
}
.site-header:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}
.nav {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img {
  height: 26px; width: 26px; object-fit: contain;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header:hover .brand img { height: 36px; width: 36px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--blue);
  white-space: nowrap;
  transform: translateY(-1px);
  transition: font-size 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header:hover .brand-word { font-size: 21px; }
.nav-links {
  display: flex; gap: 6px; align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}
.nav-links a { color: inherit; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nav-item > a,
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 0;
  color: var(--ink);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-item:hover > a,
.nav-item:hover .nav-trigger { color: var(--ink); background: var(--offwhite); }
.nav-item.active > a,
.nav-item.active .nav-trigger { color: var(--blue); }
.nav-caret {
  width: 8px; height: 8px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.15s ease;
  opacity: 0.45;
}
.nav-item:hover .nav-caret { transform: rotate(225deg) translate(-2px, -1px); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 300px;
  z-index: 100;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 48px -12px rgba(13,27,62,0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  transition: background 0.12s ease;
}
.nav-dropdown a:hover { background: var(--offwhite); }
.nav-dropdown a:hover .nav-dd-title { color: var(--blue); }
.nav-dd-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.12s ease;
}
.nav-dd-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--gray);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-login {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  padding: 7px 12px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-login:hover { background: var(--offwhite); }
.nav-mono { font-family: var(--font-mono); font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- Hamburger / mobile drawer ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-burger .bar {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open .bar:nth-child(2) { opacity: 0; }
.nav-burger.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 49;
  overflow-y: auto;
  padding: 32px 24px;
}
.nav-drawer .drawer-link {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.nav-drawer .drawer-link:hover { color: var(--blue); }
.nav-drawer .drawer-link-indent {
  padding-left: 24px;
  font-size: 18px;
}
.drawer-section-header {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 24px;
  padding-bottom: 8px;
}
.nav-drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.nav-drawer-ctas .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background .15s ease, color .15s ease, border-color .15s ease,
              box-shadow .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 1px 4px rgba(20, 40, 204, 0.22);
}
.btn-blue:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: 0 6px 22px rgba(20, 40, 204, 0.38);
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- Hairline cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  transition: box-shadow 0.25s ease;
}
.card.dark { background: var(--ink); color: var(--white); border-color: var(--ink-soft); }

/* ---------- Stat ---------- */
.stat {
  padding: 32px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease;
}
.stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat:hover { background: #fafbff; }
.stat:hover::after { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num.blue { color: var(--blue); }
.stat-label {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.stat-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 300;
  max-width: 28ch;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 0;
  border-top: 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
/* Hero atmosphere — experimental, remove this block to go back to flat.
   Three soft blue auras (asymmetric, low alpha) + a faint dot grid masked
   from the top. Nothing saturated, nothing moving. */
.hero::before {
  content: '';
  position: absolute;
  inset: -180px 0 auto 0;
  height: 980px;
  background:
    radial-gradient(ellipse 640px 480px at 16% 6%, rgba(20, 40, 204, 0.085) 0%, transparent 64%),
    radial-gradient(ellipse 720px 520px at 86% -4%, rgba(100, 130, 255, 0.10) 0%, transparent 66%),
    radial-gradient(ellipse 1000px 620px at 50% 104%, rgba(20, 40, 204, 0.055) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  background-image: radial-gradient(circle, rgba(17, 19, 24, 0.085) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-headline { max-width: 16ch; }
.hero-center .hero-headline { margin: 0 auto; }
.hero-sub {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray);
}
.hero-cta-row { margin-top: 34px; display: flex; gap: 12px; justify-content: center; }

/* Desktop: size the hero text block so the top of the product frame
   sits clearly above the fold and invites the scroll. */
@media (min-width: 981px) {
  .hero-center {
    min-height: max(340px, calc(100svh - 136px - 36vh));
    padding-bottom: 12px;
  }
}

/* ---------- Animated hero headline (deal pipeline) ----------
   Every word reserves its space from the start (no layout shift); the JS
   state machine flips .in on each stage in sequence, then .leaving clears
   the line before the loop restarts. */
.hero-seq-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-seq {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: clamp(8px, 1.1vw, 14px);
  row-gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-seq-item {
  display: inline-flex;
  align-items: baseline;
  column-gap: clamp(8px, 1.1vw, 14px);
}
.hero-seq-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    filter 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    color 0.45s ease;
}
.hero-seq-word.in { opacity: 1; transform: none; filter: blur(0); }
.hero-seq-word.hot { color: var(--blue); }
.hero-seq-arrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.5em;
  color: var(--gray-soft);
  opacity: 0;
  transform: translate(-0.5em, -0.2em);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-seq-arrow.in { opacity: 1; transform: translate(0, -0.2em); }
.hero-seq-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: -0.015em;
  color: var(--gray);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.hero-seq-sub.in { opacity: 1; transform: none; }

/* Exit: everything lifts and dissolves together before the loop restarts */
.hero-seq-block.leaving .hero-seq-word.in {
  opacity: 0;
  transform: translateY(-0.4em);
  filter: blur(8px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}
.hero-seq-block.leaving .hero-seq-arrow.in {
  opacity: 0;
  transform: translate(0, -0.6em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-seq-block.leaving .hero-seq-sub.in {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- Product frame (hero demo) ---------- */
.pframe-wrap {
  position: relative;
  margin: 56px auto 0;
  max-width: 1180px;
}
.pframe-wrap::before {
  content: '';
  position: absolute;
  inset: -80px -100px -110px;
  background:
    radial-gradient(ellipse 52% 55% at 50% 42%, rgba(20, 40, 204, 0.14) 0%, rgba(20, 40, 204, 0.05) 48%, transparent 74%),
    radial-gradient(ellipse 34% 40% at 22% 70%, rgba(255, 255, 255, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 34% 40% at 80% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
}
.pframe {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65),
    0 2px 6px rgba(13, 27, 62, 0.06),
    0 44px 96px -32px rgba(13, 27, 62, 0.3);
  overflow: hidden;
}
.pframe-chrome {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
}
.pframe-dots { display: flex; gap: 6px; flex-shrink: 0; }
.pframe-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.pframe-url {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
}
.pframe-body {
  position: relative;
  display: flex;
  height: 600px;
}
.pframe-side {
  width: 196px;
  flex-shrink: 0;
  background: var(--offwhite);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pframe-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 16px;
}
.pframe-side-brand img { width: 18px; height: 18px; object-fit: contain; }
.pframe-side-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.pframe-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--gray);
}
.pframe-nav-item svg { flex-shrink: 0; opacity: 0.75; }
.pframe-nav-item.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 500;
}
.pframe-nav-item.active svg { opacity: 1; }
.pframe-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pframe-topbar {
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--gray-soft);
  white-space: nowrap;
  overflow: hidden;
}
.pframe-content { flex: 1; display: flex; min-height: 0; }
.pframe-work {
  flex: 1;
  min-width: 0;
  padding: 18px;
  background: #FAFBFC;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.pframe-chat {
  width: 296px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Section pacing ---------- */
.section-xl { padding: 128px 0; border-top: 1px solid var(--border); }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ---------- Homepage narrative grids ---------- */
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 88px;
}
.home-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 80px;
}
@media (max-width: 980px) {
  .home-stats { grid-template-columns: 1fr; gap: 36px; margin-top: 52px; }
  .home-loop { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; }
}

/* ---------- Operating loop: title + small product mockups ---------- */
.loop-head {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}
.loop-mocks {
  display: flex;
  flex-direction: column;
  max-width: 380px;
  margin-left: auto;
}
.mock-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(13, 27, 62, 0.04), 0 16px 44px -20px rgba(13, 27, 62, 0.2);
}
.mock-listing {
  transform: translateX(-28px);
  position: relative;
  z-index: 1;
}
.mock-passport {
  transform: translateX(20px);
  margin-top: -12px;
  position: relative;
  z-index: 2;
}
.mock-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mock-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.mock-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 999px;
  padding: 3px 10px;
}
.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.mock-live .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  animation: badge-pulse 2.2s ease infinite;
}
.mock-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.mock-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11.5px;
  color: var(--gray);
  margin-top: 3px;
}
.mock-passport-body {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mock-score { width: 56px; height: 56px; flex-shrink: 0; }
.mock-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.mock-rows span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-soft);
}
.mock-rows strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 3px;
}
.mock-rows strong.g { color: #059669; }
.mock-foot {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-soft);
}
@media (max-width: 980px) {
  .loop-head { grid-template-columns: 1fr; gap: 40px; }
  .loop-mocks { margin: 0 auto; width: 100%; }
  .mock-listing { transform: translateX(-8px); }
  .mock-passport { transform: translateX(8px); }
}

/* ---------- Product frame inner grids (responsive) ---------- */
.pf-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}
.pf-activity-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px 80px;
  gap: 12px;
  align-items: center;
}
.ai-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #222730;
}
@media (max-width: 640px) {
  .pf-fields { grid-template-columns: repeat(2, 1fr); }
  .pf-activity-row { grid-template-columns: 1fr 84px 70px; gap: 8px; }
  .pf-activity-id { display: none; }
  .pf-topbar-right { display: none; }
  .ai-tiles { grid-template-columns: 1fr; }
}

/* ---------- Centered closing CTA ---------- */
.cta-strip.cta-xl { padding: 128px 0; }
@media (max-width: 980px) { .cta-strip.cta-xl { padding: 72px 0; } }
@media (max-width: 480px) { .cta-strip.cta-xl { padding: 56px 0; } }
.cta-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-center h2 { max-width: 18ch; margin: 0 auto; }
.cta-center .lead { max-width: 52ch; margin: 24px auto 0; }
.cta-center .cta-actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; }
.cta-center .cta-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-soft);
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.section-head .side .eyebrow { display: block; }
.section-head h2 { max-width: 22ch; }

/* ---------- Feature lists ---------- */
.flist { border-top: 1px solid var(--border); }
.flist .row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.flist .row .num { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.14em; padding-top: 4px; }
.flist .row .title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.flist .row .desc { color: var(--gray); font-size: 15px; line-height: 1.6; font-weight: 300; }

/* ---------- Data table ---------- */
.dtable { border: 1px solid var(--border); }
.dtable .row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr 80px;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}
.dtable .row:last-child { border-bottom: 0; }
.dtable .row.head { background: var(--offwhite); color: var(--gray); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; }
.dtable .id { color: var(--gray); }
.dtable .amt { font-weight: 500; color: var(--ink); font-family: var(--font-mono); }
.dtable .status { display: inline-flex; align-items: center; gap: 8px; }
.dtable .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.dtable .dot.gray { background: var(--gray-soft); }
.dtable .dot.ink { background: var(--ink); }

/* ---------- Counterparty cards ---------- */
.counterparty-card {
  background: var(--white);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: box-shadow 0.25s ease;
}
.counterparty-card:hover {
  box-shadow: inset 0 0 0 1px rgba(20, 40, 204, 0.18),
              0 8px 40px rgba(20, 40, 204, 0.07);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: #0a0e18;
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  right: -150px; top: 50%;
  transform: translateY(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(20, 40, 204, 0.14) 0%, transparent 58%);
  pointer-events: none;
}
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: var(--white); }
.cta-strip .lead { color: #C8CDD6; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 60px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.foot-grid h4 { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; font-weight: 400; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-grid a { font-size: 14px; color: var(--ink); transition: color .15s ease; }
.foot-grid a:hover { color: var(--blue); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Transaction Flow diagram ---------- */
.flow {
  border: 1px solid var(--border);
  padding: 40px 28px 36px;
  background: var(--white);
  overflow-x: auto;
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  align-items: stretch;
  min-width: 1100px;
}
.flow-step { position: relative; padding: 0 14px; }
.flow-step:first-child { padding-left: 0; }
.flow-step:last-child { padding-right: 0; }
.flow-step .step-num {
  font-family: var(--font-mono); font-size: 10px; color: var(--gray);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
}
.flow-box {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  padding: 22px 18px;
  height: 110px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: default;
}
.flow-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}
.flow-box .label {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.15;
}
.flow-box .meta { font-family: var(--font-mono); font-size: 10px; color: var(--gray); letter-spacing: 0.12em; text-transform: uppercase; }
.flow-box.ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.flow-box.ink .meta { color: var(--gray-soft); }
.flow-box.ink:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.flow-box.blue {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--blue);
  outline: 1px solid var(--blue); outline-offset: -3px;
}
.flow-box.blue .label { color: var(--blue); }
.flow-box.blue:hover { box-shadow: 0 8px 28px rgba(20, 40, 204, 0.2); }
.flow-step .desc {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
}
.flow-arrow {
  position: absolute;
  right: -7px; top: 70px;
  width: 14px; height: 1px;
  background: var(--ink);
  z-index: 2;
}
.flow-arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  transform: rotate(45deg);
}
.flow-step:last-child .flow-arrow { display: none; }

/* ---------- Architecture diagram ---------- */
.arch {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 48px 40px;
  position: relative;
}
.arch-grid {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 40px;
  align-items: center;
}
.arch-ai {
  border: 1px solid var(--blue);
  padding: 22px 26px;
  background: var(--white);
  max-width: 320px;
  margin: 0 auto;
  transition: box-shadow 0.2s ease;
}
.arch-ai:hover { box-shadow: 0 4px 20px rgba(20, 40, 204, 0.12); }
.arch-ai .l { font-family: var(--font-mono); font-size: 10px; color: var(--blue); letter-spacing: 0.18em; text-transform: uppercase; }
.arch-ai .t { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 8px; letter-spacing: -0.01em; }
.arch-engine {
  background: var(--ink); color: var(--white);
  padding: 36px 40px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.arch-engine .l { font-family: var(--font-mono); font-size: 10px; color: var(--gray-soft); letter-spacing: 0.18em; text-transform: uppercase; }
.arch-engine .t { font-family: var(--font-display); font-weight: 700; font-size: 32px; margin-top: 10px; letter-spacing: -0.02em; }
.arch-engine .s { color: #C8CDD6; font-size: 13px; margin-top: 8px; font-weight: 300; }
.arch-participants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 880px; margin: 0 auto; width: 100%; }
.arch-part {
  border: 1px solid var(--border);
  padding: 22px 24px;
  background: var(--white);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.arch-part:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(20, 40, 204, 0.1);
}
.arch-part .l { font-family: var(--font-mono); font-size: 10px; color: var(--gray); letter-spacing: 0.18em; text-transform: uppercase; }
.arch-part .t { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-top: 8px; letter-spacing: -0.015em; }
.arch-part .d { font-size: 12px; color: var(--gray); margin-top: 6px; font-weight: 300; }
.arch-line {
  height: 24px;
  background-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 100%);
  background-size: 1px 24px;
  background-repeat: no-repeat;
  background-position: center;
}
.arch-connectors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 880px; margin: 0 auto; width: 100%;
  height: 28px;
}
.arch-connectors > div {
  border-left: 1px solid var(--ink);
  height: 100%;
  position: relative;
  margin-left: 50%;
}

/* ---------- AI terminal panel (compact) ---------- */
.ai-panel {
  background: var(--ink);
  border: 1px solid var(--ink-soft);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(20, 40, 204, 0.1), 0 24px 80px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  width: 100%;
  margin-left: auto;
}
.ai-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink-soft);
  color: var(--gray-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ai-topbar .dots { display: flex; gap: 6px; }
.ai-topbar .dots span { width: 7px; height: 7px; background: #2A2E37; }
.ai-body { padding: 18px 20px 16px; }
.ai-section-title { font-family: var(--font-mono); font-size: 9px; color: var(--gray-soft); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.ai-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.ai-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
}
.ai-meta > div { padding: 10px 12px; border-right: 1px solid var(--ink-soft); }
.ai-meta > div:last-child { border-right: 0; }
.ai-meta .k { font-size: 8.5px; color: var(--gray-soft); letter-spacing: 0.14em; text-transform: uppercase; }
.ai-meta .v { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--white); margin-top: 5px; letter-spacing: -0.005em; }
.ai-meta .v.blue { color: var(--blue); }
.ai-rows { margin-top: 14px; }
.ai-row {
  display: grid;
  grid-template-columns: 66px 1fr 96px 92px;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed #2A2E37;
  font-size: 10.5px;
  align-items: center;
}
.ai-row:last-child { border-bottom: 0; }
.ai-row .k { color: var(--gray-soft); text-transform: uppercase; letter-spacing: 0.12em; font-size: 9px; }
.ai-row .v { color: var(--white); }
.ai-row .v.dim { color: #9AA0AB; }
.ai-row .v.blue { color: var(--blue); }
.ai-flag {
  margin-top: 14px;
  border: 1px solid rgba(20, 40, 204, 0.4);
  background: rgba(20, 40, 204, 0.04);
  padding: 11px 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
}
.ai-flag .tag { color: var(--blue); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }
.ai-flag .msg { color: var(--white); font-family: var(--font-mono); font-size: 10.5px; }
.ai-flag .meta { color: var(--gray-soft); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.ai-input {
  margin-top: 14px;
  border: 1px solid var(--ink-soft);
  padding: 10px 13px;
  display: flex; align-items: center; gap: 11px;
  background: #0A0C10;
}
.ai-input .prompt { color: var(--blue); font-family: var(--font-mono); }
.ai-input .typed { color: var(--white); font-family: var(--font-mono); font-size: 11px; }
.ai-input .caret { width: 7px; height: 12px; background: var(--blue); display: inline-block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); width: 100%; }
.kv-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; padding: 32px 0; border-top: 1px solid var(--border); }
.kv-block .k { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.14em; text-transform: uppercase; }
.kv-block .v { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); margin-top: 8px; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.form .full { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-family: var(--font-mono); font-size: 11px; color: var(--gray); letter-spacing: 0.14em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 0;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 40, 204, 0.08);
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); }

/* ---------- Page transition ---------- */
.page { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

/* ---------- SVG flow diagram animations ---------- */
@keyframes flow-pulse {
  0%, 100% { opacity: 1; r: 34px; }
  50% { opacity: 0.5; r: 42px; }
}
@keyframes flow-packet {
  0% { opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes flow-pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes flow-check {
  0% { stroke-dashoffset: 40; opacity: 0; }
  40% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.flow-diagram-wrap {
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}
.flow-diagram-topbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flow-diagram-topbar span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--blue);
  animation: badge-pulse 2.4s ease infinite;
}

/* Responsive */
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 64px 0 0; }
  .hero-headline { max-width: 100%; }
  .hero-sub { font-size: 17px; max-width: 100%; }
  .hero-cta-row { flex-wrap: wrap; gap: 12px; }
  .pframe-wrap { margin-top: 52px; }
  .pframe-side { display: none; }
  .pframe-body { height: 540px; }
  .section-xl { padding: 72px 0; }
  .section { padding: 60px 0; }
  .section-tight { padding: 44px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; padding-bottom: 32px; margin-bottom: 32px; }

  .row-2 { grid-template-columns: 1fr; gap: 32px; }
  .row-3 { grid-template-columns: 1fr; }
  .row-4 { grid-template-columns: 1fr 1fr; }

  .flist .row { grid-template-columns: 40px 1fr; gap: 16px; }
  .flist .row .desc { grid-column: span 2; padding-left: 56px; }

  .dtable .row { grid-template-columns: 50px 1fr 80px; gap: 12px; }
  .dtable .col-hide { display: none; }

  .counterparty-card { padding: 28px; }
  .stat { padding: 24px; }
  .stat-num { font-size: clamp(44px, 10vw, 72px); }

  .arch { padding: 32px 20px; }
  .arch-participants { grid-template-columns: 1fr; gap: 16px; }

  .ai-meta { grid-template-columns: 1fr 1fr; }
  .ai-rows { display: none; }
  .ai-flag { grid-template-columns: 1fr; gap: 8px; }
  .ai-row { grid-template-columns: 60px 1fr 80px; }
  .ai-row .col-hide { display: none; }

  .cta-strip { padding: 52px 0; }
  .cta-strip .row-2 { gap: 36px; }
  .cta-strip h2 { font-size: clamp(32px, 8vw, 56px); }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer { padding: 48px 0 24px; }

  .form { grid-template-columns: 1fr; }
  .form .full { grid-column: span 1; }

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

  /* Layout tightening */
  .section { padding: 52px 0; }
  .section-tight { padding: 36px 0; }
  .hero { padding: 48px 0 0; }

  /* row-4 must go single column on tablet/mobile — 2-col is too tight */
  .row-4 { grid-template-columns: 1fr; }

  /* Footer: single column on mobile */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 0 20px; }

  /* Feature list rows: hide desc on mobile */
  .flist .row .desc { display: none; }

  /* CTA strip: more breathing room */
  .cta-strip { padding: 44px 0; }
  .cta-strip .row-2 { gap: 40px; }

  /* Stat blocks */
  .stat { padding: 20px; }
  .stat-num { font-size: clamp(40px, 10vw, 68px); }

  /* Counterparty cards */
  .counterparty-card { padding: 24px 20px; }

  /* section-head: tighter */
  .section-head { padding-bottom: 28px; margin-bottom: 28px; }

  /* Typography scale for tablet */
  .display-xl { font-size: clamp(36px, 8vw, 64px); }
  .display-lg { font-size: clamp(28px, 7vw, 48px); }
  .display-md { font-size: clamp(24px, 6vw, 38px); }
  .display-sm { font-size: clamp(20px, 5vw, 28px); }

  /* Hero sub text */
  .hero-sub { font-size: 16px; line-height: 1.55; }

  /* Buttons: full width on mobile in CTA contexts */
  .cta-strip .btn { width: 100%; justify-content: center; }
  .hero-cta-row .btn { min-width: 0; flex: 1; }

  /* Nav drawer: update touch targets */
  .nav-drawer .drawer-link { min-height: 56px; display: flex; align-items: center; padding: 0; border-bottom: 1px solid var(--border); font-size: 20px; }
  .nav-drawer .drawer-link-indent { padding-left: 20px; font-size: 17px; min-height: 48px; }
  .nav-drawer-ctas .btn { height: 52px; font-size: 15px; }

  /* About page: row-3 founder cards → single column */
  .row-3 { grid-template-columns: 1fr; }

  /* Marquee: ensure it doesn't overflow */
  .marquee-track { white-space: nowrap; }
}

@media (max-width: 480px) {
  /* Root adjustments */
  :root { --gutter: 16px; }
  .container { padding: 0 16px; }

  /* Typography */
  .display-xl { font-size: clamp(32px, 9vw, 48px); }
  .display-lg { font-size: clamp(26px, 8vw, 36px); }
  .display-md { font-size: clamp(22px, 6.5vw, 30px); }
  .display-sm { font-size: clamp(18px, 5vw, 24px); }
  .hero-sub { font-size: 15px; }
  .lead { font-size: 15px; }

  /* Section spacing */
  .section { padding: 44px 0; }
  .section-tight { padding: 32px 0; }
  .section-xl { padding: 56px 0; }
  .hero { padding: 40px 0 0; }

  /* Animated headline: tighter pipeline on phones */
  .hero-seq { font-size: clamp(28px, 9.5vw, 40px); column-gap: 9px; row-gap: 6px; }
  .hero-seq-item { column-gap: 9px; }
  .hero-seq-sub { font-size: 18px; }
  .hero-seq-block { gap: 14px; }
  .hero-sub { font-size: 15px; }

  /* Product frame: hide the chat rail, keep the working surface */
  .pframe-wrap { margin-top: 40px; }
  .pframe-chat { display: none; }
  .pframe-body { height: 480px; }
  .pframe-url { display: none; }
  .pframe-chrome { height: 38px; }
  .pframe-topbar { padding: 0 14px; }
  .pframe-work { padding: 12px; gap: 10px; }
  .pframe { border-radius: 14px; }

  /* Mockup cards: full-bleed stack */
  .mock-listing { transform: none; }
  .mock-passport { transform: none; margin-top: 12px; }

  /* Grids: everything single column */
  .row-2 { grid-template-columns: 1fr; gap: 24px; }
  .row-3 { grid-template-columns: 1fr; }
  .row-4 { grid-template-columns: 1fr; }

  /* Section head: single col, tighter */
  .section-head { grid-template-columns: 1fr; gap: 14px; padding-bottom: 24px; margin-bottom: 24px; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 0 16px; }

  /* CTA strip */
  .cta-strip { padding: 36px 0; }
  .cta-strip .row-2 { gap: 28px; }
  .cta-strip .btn { width: 100%; justify-content: center; }

  /* Stat blocks: compact */
  .stat { padding: 18px 16px; }
  .stat-num { font-size: clamp(36px, 10vw, 56px); }

  /* Hero CTA row: stack buttons */
  .hero-cta-row { flex-direction: column; gap: 10px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }

  /* Feature list: simplified */
  .flist .row { grid-template-columns: 32px 1fr; gap: 12px; padding: 20px 0; }
  .flist .row .num { font-size: 10px; padding-top: 2px; }
  .flist .row .title { font-size: 17px; }
  .flist .row .desc { display: none; }

  /* Data table: minimal */
  .dtable .row { grid-template-columns: 1fr 80px; gap: 8px; padding: 14px 16px; }
  .dtable .id { display: none; }
  .dtable .col-hide { display: none; }

  /* Nav drawer */
  .nav-drawer { padding: 24px 16px; }
  .nav-drawer .drawer-link { font-size: 19px; min-height: 52px; }
  .nav-drawer-ctas { margin-top: 24px; gap: 12px; }
  .nav-drawer-ctas .btn { height: 50px; }

  /* Counterparty card */
  .counterparty-card { padding: 20px 16px; }

  /* Page badge */
  .page-badge { margin-bottom: 32px; font-size: 9px; padding: 6px 12px; }

  /* AI flag */
  .ai-flag { grid-template-columns: 1fr; gap: 8px; }
  .ai-meta { grid-template-columns: 1fr; }

  /* Buttons: ensure minimum tap target */
  .btn { min-height: 48px; padding: 0 18px; font-size: 13px; }
  .btn-sm { min-height: 40px; }

  /* Form fields */
  .form { grid-template-columns: 1fr; gap: 16px; }
  .form .full { grid-column: span 1; }

  /* Contact key-value block: single column */
  .kv-block { grid-template-columns: 1fr; gap: 20px; }
  .kv-block .v { font-size: 19px; }

  /* Credential bar */
  .cred-bar-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Arch participants */
  .arch-participants { grid-template-columns: 1fr; gap: 12px; }
  .arch { padding: 24px 16px; }
}

@media (max-width: 390px) {
  :root { --gutter: 14px; }
  .container { padding: 0 14px; }

  .display-xl { font-size: clamp(28px, 9.5vw, 40px); }
  .display-lg { font-size: clamp(24px, 8vw, 32px); }
  .display-md { font-size: clamp(20px, 6.5vw, 26px); }
  .display-sm { font-size: clamp(16px, 5vw, 21px); }

  .hero { padding: 36px 0 32px; }
  .section { padding: 36px 0; }
  .hero-sub { font-size: 14px; line-height: 1.6; }
  .lead { font-size: 14px; }

  .nav { height: 60px; }
  .nav-drawer { top: 60px; padding: 20px 14px; }

  .stat-num { font-size: clamp(32px, 10.5vw, 44px); }
  .btn { min-height: 46px; font-size: 12.5px; padding: 0 16px; gap: 8px; }

  .section-head { padding-bottom: 20px; margin-bottom: 20px; }
  .cta-strip { padding: 28px 0; }
  .foot-grid { gap: 20px; }
  .site-footer { padding: 28px 0 12px; }
}

.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;
}

@media (min-width: 981px) and (max-width: 1280px) {
  .row-2 { gap: 48px; }
  .section { padding: 72px 0; }
  .section-xl { padding: 96px 0; }
  .hero { padding: 84px 0 0; }
  .display-xl { font-size: clamp(48px, 6vw, 88px); }
  .arch-participants { gap: 20px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
