/* ==========================================================================
   Membrane — shared design system
   Used by index.html, architecture.html, docs.html
   ========================================================================== */

:root {
  /* ---- light ---- */
  --paper:        #FBFBF9;
  --paper-2:      #F4F3EE;
  --card:         #FDFDFB;
  --ink:          #15151C;
  --ink-soft:     #54545E;
  --ink-faint:    #909099;
  --line:         #E8E7DE;
  --line-soft:    #F0EFE8;
  --line-strong:  #D5D4C8;

  /* ---- accent: electric indigo ---- */
  --indigo:       #4F46E5;
  --indigo-2:     #6366F1;
  --violet:       #8B5CF6;
  --indigo-deep:  #3A32B8;
  --indigo-glow:  #9B9DFF;
  --indigo-soft:  #C3C2FF;
  --wash:         #EEEDFC;
  --wash-line:    #DEDCFA;

  /* ---- dark ---- */
  --dark:         #09090F;
  --dark-2:       #101019;
  --dark-3:       #16161F;
  --dark-raised:  #1B1B27;
  --dark-ink:     #F1F1F5;
  --dark-soft:    #9B9BAA;
  --dark-faint:   #66667A;
  --dark-line:    rgba(253,253,251,0.085);
  --dark-line-2:  rgba(253,253,251,0.045);

  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad: linear-gradient(125deg, var(--indigo) 0%, var(--violet) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--indigo); color: var(--paper); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
section { position: relative; }
.brk { display: inline; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo));
  display: inline-block;
}
.dark .eyebrow { color: var(--indigo-glow); }
.dark .eyebrow::before { background: linear-gradient(90deg, transparent, var(--indigo-glow)); }

h1, h2, h3 { font-weight: 400; }
.display {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 560;
}
.display em {
  font-style: normal;
  color: var(--indigo);
}
h2.display { font-size: clamp(2.15rem, 4.4vw, 3.6rem); }
p.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.6;
}
.dark p.lead { color: var(--dark-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--grad);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 22px -8px rgba(79,70,229,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 14px 32px -8px rgba(79,70,229,.62); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.dark .btn-ghost { color: var(--dark-ink); border-color: var(--dark-line); background: rgba(253,253,251,.02); }
.dark .btn-ghost:hover { border-color: rgba(253,253,251,.32); background: rgba(253,253,251,.05); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.textlink {
  color: var(--indigo); font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--indigo) 32%, transparent);
  transition: border-color .2s var(--ease);
}
.textlink:hover { border-color: var(--indigo); }
.dark .textlink { color: var(--indigo-glow); border-color: color-mix(in srgb, var(--indigo-glow) 38%, transparent); }
.dark .textlink:hover { border-color: var(--indigo-glow); }

/* crosslink — "read the full page" */
.crosslink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--indigo);
  margin-top: 22px;
  transition: gap .3s var(--ease);
}
.crosslink:hover { gap: 12px; }
.dark .crosslink { color: var(--indigo-glow); }
.crosslink svg { transition: transform .3s var(--ease); }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 15px 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, var(--indigo) 12%);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px -3px rgba(30,107,255,.36);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { width: 34px; height: 34px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--mono); font-size: 8.5px; letter-spacing: .07em; color: var(--ink-faint); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 13.5px; color: var(--ink-soft); font-weight: 450; transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--ink); margin: 4px 0; transition: .3s var(--ease); }

/* ---------- hero (landing) ---------- */
.hero { padding: 172px 0 110px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 30%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 56% at 50% 30%, #000 0%, transparent 76%);
  opacity: .7; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.13) 0%, rgba(139,92,246,.06) 35%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1.display {
  font-size: clamp(3rem, 7.2vw, 6rem);
  margin: 24px auto 0;
  max-width: 15ch;
  letter-spacing: -0.022em;
}
.hero .lead { margin: 24px auto 0; text-align: center; font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 60ch; }
.hero-cta { margin-top: 36px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px; font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-faint); letter-spacing: .04em;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center;
}
.hero-trust b { color: var(--ink-soft); font-weight: 500; }
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* ---------- sub-page hero ---------- */
.page-hero { padding: 160px 0 64px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 26% 12%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 26% 12%, #000 0%, transparent 72%);
  opacity: .6; pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero h1.display {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin: 18px 0 0; max-width: 18ch; letter-spacing: -0.022em;
}
.page-hero .lead { margin-top: 20px; }
.page-hero .hero-trust { justify-content: flex-start; margin-top: 24px; }

/* ---------- proof bundle visual ---------- */
.bundle {
  position: relative; margin: 80px auto 0; max-width: 900px;
  background: linear-gradient(180deg, var(--card) 0%, #FCFCFE 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 2px 4px rgba(20,20,40,.04),
    0 22px 44px -18px rgba(20,20,40,.14),
    0 50px 110px -45px rgba(79,70,229,.26);
  overflow: hidden;
}
.bundle::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-soft), transparent);
}
.bundle-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--card));
}
.bundle-head .t { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.bundle-head .t .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--wash); }
.bundle-head .verified {
  font-family: var(--mono); font-size: 11px; color: var(--indigo);
  display: flex; align-items: center; gap: 6px;
  background: var(--wash); padding: 5px 10px; border-radius: 100px;
  border: 1px solid var(--wash-line);
}
.bundle-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.bundle-row {
  display: flex; align-items: center; gap: 13px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  transition: background .25s var(--ease);
}
.bundle-row:hover { background: var(--paper-2); }
.bundle-row:nth-child(2n) { border-right: none; }
.bundle-row:nth-last-child(-1n+2) { border-bottom: none; }
.bundle-ic {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px;
  background: var(--wash); border: 1px solid var(--wash-line);
  display: grid; place-items: center; color: var(--indigo);
}
.bundle-row .label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.bundle-row .val { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }
.bundle-row.final .bundle-ic { background: var(--grad); border-color: transparent; color: var(--paper); }
.bundle-row.final .label { color: var(--indigo-deep); }

/* ---------- section scaffold ---------- */
.section { padding: clamp(82px, 9vw, 120px) 0; }
.section-sm { padding: clamp(60px, 7vw, 92px) 0; }
.section-head { max-width: 680px; }
.section-head .display { margin-top: 16px; }
.section-head p.lead { margin-top: 18px; }
.light-2 { background: var(--paper-2); }
.light-2 .bundle-row:hover { background: var(--card); }

/* ---------- why / stats ---------- */
.stats {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--card);
  box-shadow: 0 1px 2px rgba(20,20,40,.03), 0 20px 50px -30px rgba(20,20,40,.16);
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line); position: relative; transition: background .3s var(--ease); }
.stat:last-child { border-right: none; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s var(--ease);
}
.stat:hover { background: var(--paper-2); }
.stat:hover::before { opacity: 1; }
.stat .big {
  font-family: var(--display); font-size: clamp(2.3rem, 3.5vw, 3rem);
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.stat .big em {
  font-style: normal;
  color: var(--indigo);
}
.stat .desc { margin-top: 15px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.stat .src { margin-top: 12px; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); letter-spacing: .02em; }

/* ---------- chips ---------- */
.chips { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 11px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 17px;
  border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--card); font-size: 13.5px; font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover { transform: translateY(-3px); border-color: var(--indigo); box-shadow: 0 12px 26px -14px rgba(79,70,229,.45); }
.chip .n { font-family: var(--mono); font-size: 10.5px; color: var(--indigo); }
.pull {
  margin-top: 52px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.32; letter-spacing: -0.015em;
  max-width: 24ch; color: var(--ink);
}
.pull em {
  font-style: normal;
  color: var(--indigo);
}

/* ---------- DARK band ---------- */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark::selection { background: var(--indigo-glow); color: var(--dark); }
.dark .section-head .display { color: var(--dark-ink); }
.dark-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--dark-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line-2) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.band-enter { border-top: 1px solid var(--dark-line); }
.band-enter::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1000px, 90%); height: 320px;
  background: radial-gradient(ellipse at center top, rgba(99,102,241,.28) 0%, rgba(139,92,246,.08) 40%, transparent 72%);
  pointer-events: none;
}
.band-enter .hairline {
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-glow), transparent);
  opacity: .55;
}
.aurora {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(40px); opacity: .5;
}

/* gradient-bordered dark card */
.gcard { position: relative; background: var(--dark-2); border-radius: 15px; }
.gcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(253,253,251,.14), rgba(253,253,251,.02) 50%, rgba(99,102,241,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* steps */
.steps {
  margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; position: relative; z-index: 1;
}
.step {
  position: relative; background: var(--dark-2); border-radius: 14px;
  padding: 26px 24px 28px; overflow: hidden;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(165deg, rgba(253,253,251,.13), rgba(253,253,251,.015));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.step:hover { transform: translateY(-4px); background: var(--dark-3); }
.step .num {
  font-family: var(--mono); font-size: 11px; color: var(--indigo-glow);
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.22);
}
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; margin-top: 20px; color: var(--dark-ink); letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: 13px; color: var(--dark-soft); line-height: 1.55; }
.step .mono { font-family: var(--mono); font-size: 12px; color: var(--indigo-glow); }

/* multi-chain */
.chain {
  margin-top: 50px; display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.chain-copy h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--dark-ink); margin-bottom: 9px; letter-spacing: -0.01em; }
.chain-copy > p { font-size: 13.5px; color: var(--dark-soft); margin-bottom: 24px; max-width: 44ch; }
.chain-points { list-style: none; }
.chain-points li {
  font-size: 13px; color: var(--dark-soft);
  padding: 14px 0; border-top: 1px solid var(--dark-line-2);
  display: flex; gap: 13px; line-height: 1.5;
}
.chain-points li:last-child { border-bottom: 1px solid var(--dark-line-2); }
.chain-points b { color: var(--dark-ink); font-weight: 600; }
.chain-points .mk {
  color: var(--indigo-glow); flex-shrink: 0;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 6px; background: rgba(99,102,241,.1); margin-top: 1px;
}
.chain-diagram { padding: 34px; border-radius: 17px; }
.mono-inline { font-family: var(--mono); font-size: 12px; color: var(--indigo-glow); }
.light .mono-inline, .mono-inline.on-light { color: var(--indigo); }

/* developers */
.dev-grid { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; position: relative; z-index: 1; }
.terminal { border-radius: 14px; overflow: hidden; font-family: var(--mono); }
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; border-bottom: 1px solid var(--dark-line-2);
  background: var(--dark-3);
}
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--dark-raised); display: block; }
.terminal-bar .tt { margin-left: 10px; font-size: 11px; color: var(--dark-faint); }
.terminal-body { padding: 22px 20px; font-size: 12.5px; line-height: 1.95; background: var(--dark-2); overflow-x: auto; }
.terminal-body .cmt { color: var(--dark-faint); }
.terminal-body .cmd { color: var(--dark-ink); }
.terminal-body .ok { color: #5fd6a0; }
.terminal-body .key { color: var(--indigo-glow); }
.terminal-body .prompt { color: var(--indigo-glow); }
.terminal-body .pass { color: #5fd6a0; }
.terminal-body .str { color: #e6c073; }
.terminal-body .kw { color: #c98fff; }
.dev-features { display: flex; flex-direction: column; gap: 12px; }
.dev-feature { padding: 21px 22px; transition: transform .3s var(--ease); }
.dev-feature:hover { transform: translateX(3px); }
.dev-feature .h { display: flex; align-items: center; gap: 11px; }
.dev-feature h3 { font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--dark-ink); letter-spacing: -0.01em; }
.dev-feature p { font-size: 12.5px; color: var(--dark-soft); margin-top: 6px; line-height: 1.55; }
.dev-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2);
  display: grid; place-items: center; color: var(--indigo-glow);
}
.dev-meta {
  margin-top: 22px; font-family: var(--mono); font-size: 11.5px;
  color: var(--dark-faint); display: flex; gap: 11px; flex-wrap: wrap; align-items: center;
}
.dev-meta .pass { color: #5fd6a0; }
.dev-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dark-line); }

/* ---------- compliance ---------- */
.comply-grid { margin-top: 50px; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 52px; align-items: start; }
.deadline-card {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--paper);
  border-radius: 18px; padding: 36px 34px;
}
.deadline-card::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(99,102,241,.55) 0%, transparent 68%);
  filter: blur(8px);
}
.deadline-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(253,253,251,.18), rgba(99,102,241,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.deadline-card .inner { position: relative; }
.deadline-card .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo-glow); }
.deadline-card .d { font-family: var(--display); font-size: clamp(2.8rem, 5vw, 3.9rem); line-height: 1; margin-top: 14px; letter-spacing: -0.02em; }
.deadline-card .sub { font-size: 13.5px; color: rgba(253,253,251,.66); margin-top: 15px; max-width: 32ch; line-height: 1.55; }
.deadline-card .pen {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(253,253,251,.13);
  font-size: 12.5px; color: rgba(253,253,251,.55); line-height: 1.55;
}
.deadline-card .pen b { color: var(--paper); font-weight: 600; }
.comply-list { list-style: none; }
.comply-list li {
  padding: 19px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 15px; align-items: flex-start;
}
.comply-list li:first-child { padding-top: 4px; }
.comply-list li:last-child { border-bottom: none; }
.comply-list .ci {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--wash); border: 1px solid var(--wash-line);
  color: var(--indigo); display: grid; place-items: center; margin-top: 1px;
}
.comply-list .lt { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.comply-list .lp { font-size: 13px; color: var(--ink-soft); margin-top: 3px; line-height: 1.55; }

/* ---------- wedge demo flow ---------- */
.flow { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow-step {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; background: var(--card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--wash-line); box-shadow: 0 16px 36px -20px rgba(79,70,229,.3); }
.flow-step .fn {
  font-family: var(--mono); font-size: 10px; color: var(--indigo); letter-spacing: .1em;
  display: inline-flex; padding: 4px 9px; border-radius: 6px;
  background: var(--wash); border: 1px solid var(--wash-line);
}
.flow-step h3 { font-family: var(--sans); font-weight: 600; font-size: 15px; margin-top: 14px; letter-spacing: -0.01em; }
.flow-step p { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }
.flow-final {
  margin-top: 16px; border-radius: 14px; padding: 22px 26px;
  background: var(--grad); color: var(--paper);
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 18px 44px -20px rgba(79,70,229,.5);
}
.flow-final .chk {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(253,253,251,.18); display: grid; place-items: center;
  border: 1px solid rgba(253,253,251,.25);
}
.flow-final .ft { font-family: var(--mono); font-size: 13px; }
.flow-final .ft b { font-weight: 500; }

/* ---------- roadmap ---------- */
.road { margin-top: 48px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.road-phase {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 16px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.road-phase:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(20,20,40,.3); }
.road-phase .when {
  font-family: var(--mono); font-size: 10px; color: var(--indigo);
  letter-spacing: .04em; display: flex; align-items: center; gap: 6px;
}
.road-phase .when::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.road-phase .what { font-size: 12px; color: var(--ink); margin-top: 11px; font-weight: 450; line-height: 1.45; }
.road-phase.is-now { background: var(--wash); border-color: var(--wash-line); }
.road-phase.is-now .when { color: var(--indigo-deep); }
.road-phase.is-now .what { color: var(--indigo-deep); font-weight: 500; }

/* ---------- final CTA ---------- */
.cta { padding: clamp(110px, 13vw, 160px) 0; text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 56% 64% at 50% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 56% 64% at 50% 50%, #000 0%, transparent 72%);
  opacity: .7;
}
.cta::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 760px; height: 460px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.16), rgba(139,92,246,.06) 40%, transparent 72%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2.display { font-size: clamp(2.5rem, 5.4vw, 4.3rem); max-width: 16ch; margin: 20px auto 0; letter-spacing: -0.022em; }
.cta .lead { margin: 22px auto 0; text-align: center; max-width: 52ch; }
.cta-btns { margin-top: 34px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--dark-soft); padding: 70px 0 38px; position: relative; border-top: 1px solid var(--dark-line); }
.foot-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand .brand-mark { background: color-mix(in srgb, var(--dark) 72%, var(--indigo) 28%); }
.foot-brand .brand-name { color: var(--dark-ink); }
.foot-brand .brand-sub { color: var(--dark-faint); }
.foot-brand p { font-size: 13px; max-width: 32ch; color: var(--dark-soft); line-height: 1.6; }
.foot-brand .tag { font-family: var(--display); font-size: 17px; color: var(--dark-ink); margin-top: 16px; font-style: normal; letter-spacing: -0.02em; }
.foot-col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--dark-faint); margin-bottom: 15px; font-weight: 500; }
.foot-col a { display: block; font-size: 13px; color: var(--dark-soft); padding: 6px 0; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--dark-ink); }
.foot-bot {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--dark-line-2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--dark-faint);
  flex-wrap: wrap; gap: 10px;
}
.foot-bot .credit b { color: var(--dark-soft); font-weight: 400; }

/* ==========================================================================
   Sub-page components (architecture.html, docs.html)
   ========================================================================== */

/* doc layout: sticky TOC + content */
.doc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 60px; align-items: start; }
.toc { position: sticky; top: 104px; }
.toc h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; margin-bottom: 14px;
}
.toc a {
  display: block; font-size: 13px; color: var(--ink-soft); padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line); transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--indigo); border-color: var(--indigo); font-weight: 500; }
.doc-content { min-width: 0; }

/* prose blocks */
.prose { max-width: 720px; }
.prose-block { margin-bottom: 56px; scroll-margin-top: 100px; }
.prose-block:last-child { margin-bottom: 0; }
.prose-block .kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--indigo); font-weight: 500;
}
.prose-block h2 {
  font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.015em; line-height: 1.1; margin-top: 12px; color: var(--ink);
}
.prose-block h3 {
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; margin-top: 30px; color: var(--ink);
}
.prose-block p { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.68; }
.prose-block p.intro { font-size: 16px; color: var(--ink-soft); margin-top: 16px; }
.prose-block ul { margin: 16px 0 0; padding-left: 0; list-style: none; }
.prose-block ul li {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  padding: 7px 0 7px 24px; position: relative;
}
.prose-block ul li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--indigo); opacity: .55;
}
.prose-block ul li b { color: var(--ink); font-weight: 600; }
.prose-block strong { color: var(--ink); font-weight: 600; }
.prose-block .mono-inline { color: var(--indigo); }

/* code block */
.code {
  margin-top: 18px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--dark-line); background: var(--dark-2);
  font-family: var(--mono);
}
.code-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px; border-bottom: 1px solid var(--dark-line-2); background: var(--dark-3);
}
.code-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-raised); }
.code-bar .ct { margin-left: 8px; font-size: 10.5px; color: var(--dark-faint); }
.code pre { margin: 0; padding: 18px 18px; font-size: 12.3px; line-height: 1.85; color: var(--dark-ink); overflow-x: auto; }
.code .cmt { color: var(--dark-faint); }
.code .key { color: var(--indigo-glow); }
.code .str { color: #e6c073; }
.code .kw  { color: #c98fff; }
.code .ok  { color: #5fd6a0; }
.code .prompt { color: var(--indigo-glow); }
.code .num { color: #79c0ff; }

/* spec / definition rows */
.spec { margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); }
.spec-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.spec-row:last-child { border-bottom: none; }
.spec-row .sk { font-family: var(--mono); font-size: 12px; color: var(--indigo); }
.spec-row .sk .ty { display: block; color: var(--ink-faint); font-size: 10.5px; margin-top: 3px; }
.spec-row .sv { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.spec-row .sv b { color: var(--ink); font-weight: 600; }

/* table */
.tbl { margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--card); font-size: 13px; }
.tbl-row { display: grid; border-bottom: 1px solid var(--line-soft); }
.tbl-row:last-child { border-bottom: none; }
.tbl-row.head { background: var(--paper-2); }
.tbl-row.head .tc { font-weight: 600; color: var(--ink); font-size: 12px; }
.tbl-row.t2 { grid-template-columns: 1fr 1.4fr; }
.tbl-row.t3 { grid-template-columns: 1fr 1fr 1.3fr; }
.tc { padding: 13px 16px; color: var(--ink-soft); line-height: 1.5; border-right: 1px solid var(--line-soft); }
.tc:last-child { border-right: none; }
.tc b { color: var(--ink); font-weight: 600; }
.tc .mono-inline { color: var(--indigo); }

/* callout */
.callout {
  margin-top: 20px; border-radius: 12px; padding: 18px 20px;
  background: var(--wash); border: 1px solid var(--wash-line);
  display: flex; gap: 13px;
}
.callout .ci {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--wash-line);
  color: var(--indigo); display: grid; place-items: center; margin-top: 1px;
}
.callout .cx { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.callout .cx b { color: var(--indigo-deep); font-weight: 600; }

/* feature/card grid for sub-pages */
.card-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lcard {
  border: 1px solid var(--line); border-radius: 13px; padding: 22px 22px;
  background: var(--card); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.lcard:hover { transform: translateY(-3px); border-color: var(--wash-line); box-shadow: 0 14px 32px -20px rgba(79,70,229,.28); }
.lcard .lh { display: flex; align-items: center; gap: 11px; }
.lcard .lic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--wash); border: 1px solid var(--wash-line); color: var(--indigo);
  display: grid; place-items: center;
}
.lcard h3 { font-family: var(--sans); font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; margin: 0; }
.lcard p { font-size: 13px; color: var(--ink-soft); margin-top: 9px; line-height: 1.6; }
.lcard .meta { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

/* mini CTA band for sub-pages */
.page-cta { padding: clamp(80px, 10vw, 120px) 0; text-align: center; overflow: hidden; }
.page-cta::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 640px; height: 380px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.14), transparent 70%);
  pointer-events: none;
}
.page-cta .inner { position: relative; }
.page-cta h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; max-width: 20ch; margin: 0 auto; }
.page-cta p { margin: 16px auto 0; max-width: 48ch; color: var(--ink-soft); font-size: 15px; }
.page-cta .cta-btns { margin-top: 30px; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .chain, .dev-grid, .comply-grid { grid-template-columns: 1fr; gap: 38px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: repeat(3, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .doc-layout { grid-template-columns: 1fr; gap: 36px; }
  .toc {
    position: static; display: flex; flex-wrap: wrap; gap: 4px;
    padding-bottom: 20px; border-bottom: 1px solid var(--line);
  }
  .toc h4 { width: 100%; }
  .toc a { border-left: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
  .toc a.active { background: var(--wash); border-color: var(--wash-line); }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .brk { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
    position: absolute; top: 66px; left: 14px; right: 14px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 14px; padding: 16px; box-shadow: 0 20px 50px -20px rgba(20,20,40,.25);
  }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 138px; }
  .page-hero { padding-top: 122px; }
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-row { border-right: none !important; }
  .bundle-row:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 30px; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
  .tbl-row.t3 { grid-template-columns: 1fr; }
  .tbl-row.t2 { grid-template-columns: 1fr; }
  .tc { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .tbl-row.head { display: none; }
}
