/* ══════════════════════════════════════════════
   idemapi Docs — style.css
   "Any signal. One anchor. Zero storage."
   ══════════════════════════════════════════════ */

/* ── Reset & tokens ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #050510;
  --bg-2:        #090920;
  --bg-3:        #0d0d2a;
  --surface:     rgba(255,255,255,.035);
  --surface-2:   rgba(255,255,255,.06);
  --border:      rgba(255,255,255,.08);
  --border-2:    rgba(255,255,255,.14);

  --purple:      #8b7cf8;
  --purple-dim:  rgba(139,124,248,.18);
  --blue:        #4da6f8;
  --blue-dim:    rgba(77,166,248,.18);
  --cyan:        #22d3ee;
  --cyan-dim:    rgba(34,211,238,.18);
  --green:       #34d399;
  --green-dim:   rgba(52,211,153,.18);
  --pink:        #e879a0;
  --pink-dim:    rgba(232,121,160,.18);
  --orange:      #fb923c;
  --orange-dim:  rgba(251,146,60,.18);

  --text:        #e2e8f0;
  --text-2:      #94a3b8;
  --text-3:      #64748b;
  --text-inv:    #0a0a1a;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --nav-h: 64px;
  --max-w: 1180px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 2rem);
  background:
    radial-gradient(circle at top, rgba(77,166,248,.12), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(139,124,248,.16), transparent 28%),
    var(--bg);
}

.legal-shell {
  max-width: 920px;
}

.legal-hero {
  padding-top: 2rem;
}

.legal-header {
  margin-bottom: 1.5rem;
}

.legal-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.028));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.2);
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-card h2 {
  font-size: 1.05rem;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}

.legal-card p + p {
  margin-top: .8rem;
}

.legal-list {
  padding-left: 1.2rem;
  color: var(--text);
}

.legal-list li + li {
  margin-top: .7rem;
}

/* ── Utilities ───────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.ic { font-family: var(--font-mono); font-size: .875em; color: var(--cyan); }

/* ── Reveal animation ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-sans); font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; white-space: nowrap;
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: 8px;
  padding: .6rem 1.2rem;
  font-size: .925rem;
  box-shadow: 0 4px 20px rgba(139,124,248,.35);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 28px rgba(139,124,248,.5); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: .6rem 1.2rem;
  font-size: .925rem;
}
.btn-ghost:hover { border-color: var(--border); color: var(--text); background: var(--surface); }

.btn-lg  { padding: .8rem 1.6rem; font-size: 1rem; border-radius: 10px; }
.btn-sm  { padding: .45rem .9rem; font-size: .825rem; }

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(5,5,16,.85);
  backdrop-filter: blur(20px) saturate(150%);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.logo-icon {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-icon--nav {
  width: 72px;
  height: 48px;
}
.logo-icon--hero {
  width: 520px;
  height: 347px;
}
.logo-icon--footer {
  width: 72px;
  height: 48px;
}
.nav-links {
  display: flex; gap: .25rem; margin-left: .5rem;
}
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: .875rem;
  font-weight: 500; padding: .4rem .7rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.nav-status {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--green); font-weight: 500;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(52,211,153,.25);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 2px rgba(52,211,153,.25); }
  50%      { box-shadow: 0 0 0 5px rgba(52,211,153,.1); }
}
.hamburger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 820px) {
  .nav-links, .nav-status { display: none; }
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; background: none; border: none; cursor: pointer;
    margin-left: auto; padding: 0 4px;
  }
  .hamburger span {
    display: block; height: 2px; background: var(--text-2); border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    display: none; flex-direction: column; gap: .25rem;
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: rgba(9,9,32,.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    color: var(--text-2); text-decoration: none; font-size: .9rem; font-weight: 500;
    padding: .6rem .75rem; border-radius: 8px; transition: color .15s, background .15s;
  }
  .mobile-menu a:hover { color: var(--text); background: var(--surface); }
  .nav-right .btn-sm { display: none; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  min-height: 100vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .45; animation: float-orb 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: -15%; left: -10%; animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: 20%; right: -8%; animation-delay: -4s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -10%; left: 35%; opacity: .25; animation-delay: -8s;
}
@keyframes float-orb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-30px) scale(1.05); }
  66%      { transform: translate(-15px,20px) scale(.96); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 3rem; align-items: center;
}

/* Hero text */
.hero-brand-mark {
  margin-bottom: 1.9rem;
}
.hero-brand-mark .logo-icon--hero {
  filter: drop-shadow(0 32px 72px rgba(0,0,0,.38));
}
.hero-eyebrow { margin-bottom: 1.5rem; }
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(139,124,248,.12);
  border: 1px solid rgba(139,124,248,.3);
  color: var(--purple); border-radius: 999px;
  padding: .3rem .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple); animation: pulse-dot 2s ease infinite;
  box-shadow: 0 0 0 2px rgba(139,124,248,.25);
}

.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em; color: #fff; margin-bottom: 1.25rem;
}
.grad-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead {
  font-size: 1.18rem; color: var(--text); max-width: 480px;
  margin-bottom: 1.15rem; line-height: 1.45; font-weight: 600;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

/* Chips */
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 999px; border: 1px solid;
}
.chip--face  { color: var(--purple); border-color: rgba(139,124,248,.3); background: rgba(139,124,248,.08); }
.chip--voice { color: var(--blue);   border-color: rgba(77,166,248,.3);  background: rgba(77,166,248,.08); }
.chip--doc   { color: var(--green);  border-color: rgba(52,211,153,.3);  background: rgba(52,211,153,.08); }
.chip--risk  { color: var(--pink);   border-color: rgba(232,121,160,.3); background: rgba(232,121,160,.08); }
.chip--iot   { color: var(--orange); border-color: rgba(251,146,60,.3);  background: rgba(251,146,60,.08); }
.chip--any   { color: var(--cyan);   border-color: rgba(34,211,238,.3);  background: rgba(34,211,238,.08); }

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Hero diagram */
.hero-diagram { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.diagram-card {
  width: 100%; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
  backdrop-filter: blur(12px);
}
.diagram-card--compare {
  display: block;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}
.diagram-card--pipeline {
  display: block;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(139,124,248,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}
.diag-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .75rem;
}
.hero-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
}
.pipeline-stage {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pipeline-stage--input {
  background: linear-gradient(180deg, rgba(232,121,160,.08), rgba(0,0,0,.14));
  border-color: rgba(232,121,160,.16);
}
.pipeline-stage--input {
  padding: 1rem 1.1rem;
}
.pipeline-stage--output {
  background: linear-gradient(180deg, rgba(34,211,238,.08), rgba(0,0,0,.14));
  border-color: rgba(34,211,238,.16);
}
.pipeline-note {
  color: var(--text-2);
  font-size: .84rem;
  line-height: 1.5;
  max-width: 28ch;
}
.pipeline-stage--input .pipeline-note {
  max-width: 38ch;
}
.embedding-cloud,
.id-circuit {
  position: relative;
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.045), rgba(255,255,255,.015));
  overflow: hidden;
}
.embedding-cloud::before,
.id-circuit::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.04);
}
.embedding-variant {
  position: absolute;
  width: 106px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(232,121,160,.12);
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.embedding-variant::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232,121,160,.22), rgba(139,124,248,.42), transparent);
  transform-origin: left center;
  animation: variant-flow 2.6s ease-in-out infinite;
}
.embedding-variant--1 {
  top: 18px;
  left: 18px;
  animation: variant-drift 5.2s ease-in-out infinite;
}
.embedding-variant--1::after {
  top: 58px;
  left: 86px;
  transform: rotate(22deg);
}
.embedding-variant--2 {
  top: 72px;
  left: 52px;
  animation: variant-drift 5.2s ease-in-out infinite -1.2s;
}
.embedding-variant--2::after {
  top: 35px;
  left: 90px;
  transform: rotate(0deg);
}
.embedding-variant--3 {
  top: 130px;
  left: 18px;
  animation: variant-drift 5.2s ease-in-out infinite -2.4s;
}
.embedding-variant--3::after {
  top: 10px;
  left: 86px;
  transform: rotate(-22deg);
}
.embedding-variant-label {
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.embedding-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff, rgba(232,121,160,.95) 55%, rgba(232,121,160,.18) 100%);
  box-shadow: 0 0 18px rgba(232,121,160,.28);
  animation: embedding-jitter 4.6s ease-in-out infinite;
}
.embedding-dot--a { top: 24px; left: 20px; animation-delay: -.4s; }
.embedding-dot--b { top: 28px; left: 46px; animation-delay: -1.4s; }
.embedding-dot--c { top: 45px; left: 28px; animation-delay: -2.1s; }
.embedding-dot--d { top: 42px; left: 60px; animation-delay: -.8s; }
.embedding-dot--e { top: 22px; left: 22px; animation-delay: -1.9s; }
.embedding-dot--f { top: 31px; left: 49px; animation-delay: -2.6s; }
.embedding-dot--g { top: 46px; left: 30px; animation-delay: -3.3s; }
.embedding-dot--h { top: 43px; left: 64px; animation-delay: -1.1s; }
.embedding-dot--i { top: 26px; left: 19px; animation-delay: -2.9s; }
.embedding-dot--j { top: 30px; left: 51px; animation-delay: -3.8s; }
.embedding-dot--k { top: 47px; left: 27px; animation-delay: -1.7s; }
.embedding-dot--l { top: 40px; left: 59px; animation-delay: -2.4s; }
.embedding-converge {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(139,124,248,.22);
  background: radial-gradient(circle, rgba(139,124,248,.18), rgba(34,211,238,.08));
  box-shadow: 0 0 32px rgba(139,124,248,.16);
}
.embedding-converge span {
  position: absolute;
  inset: 13px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(34,211,238,.45) 55%, rgba(34,211,238,.08));
  animation: converge-pulse 2.2s ease-in-out infinite;
}
.pipeline-core-wrap {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipeline-core {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}
.pipeline-core-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(139,124,248,.18);
  animation: core-spin 12s linear infinite;
}
.pipeline-core-ring--outer {
  inset: 0;
  box-shadow: 0 0 40px rgba(139,124,248,.12);
}
.pipeline-core-ring--inner {
  inset: 18px;
  border-color: rgba(34,211,238,.18);
  animation-direction: reverse;
  animation-duration: 9s;
}
.pipeline-core-chip {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(139,124,248,.28);
  background: linear-gradient(180deg, rgba(139,124,248,.18), rgba(34,211,238,.12));
  box-shadow: 0 20px 50px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12);
  display: grid;
  place-items: center;
}
.pipeline-core-chip span {
  color: #fff;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pipeline-beam {
  position: absolute;
  top: 50%;
  width: 130px;
  height: 2px;
  transform: translateY(-50%);
  overflow: hidden;
}
.pipeline-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(139,124,248,.85), rgba(34,211,238,.85), transparent);
  animation: beam-flow 2.2s linear infinite;
}
.pipeline-beam--left {
  right: calc(50% + 84px);
}
.pipeline-beam--right {
  left: calc(50% + 84px);
}
.pipeline-beam--right::before {
  animation-direction: reverse;
}
.id-circuit-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.18);
}
.id-circuit-ring--outer {
  inset: 28px;
  box-shadow: 0 0 34px rgba(34,211,238,.12);
}
.id-circuit-ring--inner {
  inset: 52px;
  border-color: rgba(34,211,238,.28);
}
.id-circuit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(34,211,238,.55);
  animation: node-pulse 1.9s ease-in-out infinite;
}
.id-circuit-node--top { top: 24px; left: 50%; transform: translateX(-50%); }
.id-circuit-node--right { right: 24px; top: 50%; transform: translateY(-50%); animation-delay: -.4s; }
.id-circuit-node--bottom { bottom: 24px; left: 50%; transform: translateX(-50%); animation-delay: -.8s; }
.id-circuit-node--left { left: 24px; top: 50%; transform: translateY(-50%); animation-delay: -1.2s; }
.id-circuit-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 110px;
  height: 48px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(34,211,238,.24);
  background: linear-gradient(180deg, rgba(34,211,238,.16), rgba(34,211,238,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.id-repeat-stack {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.id-repeat {
  min-width: 72px;
  height: 24px;
  padding: 0 .55rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.16);
  background: rgba(34,211,238,.06);
  display: inline-grid;
  place-items: center;
  color: rgba(226,232,240,.86);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  animation: id-repeat-pulse 2.4s ease-in-out infinite;
}
.id-repeat--2 { animation-delay: -.8s; }
.id-repeat--3 { animation-delay: -1.6s; }
.diagram-caption {
  font-size: .78rem;
  color: var(--text-3);
  text-align: center;
  max-width: 48ch;
}
@keyframes embedding-jitter {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .78; }
  20% { transform: translate(8px, -10px) scale(1.08); opacity: 1; }
  45% { transform: translate(-10px, 8px) scale(.94); opacity: .86; }
  70% { transform: translate(7px, 10px) scale(1.04); opacity: 1; }
}
@keyframes variant-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -3px); }
}
@keyframes variant-flow {
  0%, 100% { opacity: .28; }
  50% { opacity: .95; }
}
@keyframes core-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes beam-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes converge-pulse {
  0%, 100% { transform: scale(.9); opacity: .82; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes node-pulse {
  0%, 100% { opacity: .75; box-shadow: 0 0 10px rgba(34,211,238,.32); }
  50% { opacity: 1; box-shadow: 0 0 24px rgba(34,211,238,.72); }
}
@keyframes id-repeat-pulse {
  0%, 100% { opacity: .34; transform: translateX(0); }
  50% { opacity: .92; transform: translateX(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .embedding-variant,
  .embedding-variant::after,
  .embedding-dot,
  .embedding-converge span,
  .pipeline-core-ring,
  .pipeline-beam::before,
  .id-circuit-node,
  .id-repeat {
    animation: none;
  }
}

.diag-section { flex: 1; }
.diag-signal-list { display: flex; flex-direction: column; gap: .4rem; }
.diag-signal {
  display: flex; align-items: center; gap: .55rem;
  font-size: .78rem; color: var(--text-3); padding: .4rem .6rem;
  border-radius: 8px; border: 1px solid transparent;
  transition: color .3s, border-color .3s, background .3s;
}
.diag-signal.active {
  color: var(--text); border-color: var(--border-2);
  background: var(--surface-2);
}
.signal-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
}
.diag-arrow-col { flex: 0 0 auto; display: flex; justify-content: center; }
.diag-arrow-block {
  display: flex; flex-direction: column; align-items: center; gap: 0; width: 110px;
}
.diag-arrow-line {
  width: 2px; height: 20px;
  background: linear-gradient(to bottom, transparent, var(--border-2), transparent);
}
.diag-step-box {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 10px; padding: .6rem .9rem; min-width: 90px; width: 100%;
  font-size: .72rem; font-weight: 600; color: var(--text-2); text-align: center;
}
.diag-encoder  { border-color: rgba(139,124,248,.3); }
.diag-ironmask { border-color: rgba(34,211,238,.3); }
.diag-step-icon {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 .45rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.diag-step-box code { font-family: var(--font-mono); font-size: .68rem; color: var(--cyan); }
.diag-anchor-box {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 10px; padding: .85rem; text-align: center;
}
.diag-anchor-bytes { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-bottom: .5rem; }
.anchor-byte {
  font-family: var(--font-mono); font-size: .68rem;
  background: rgba(139,124,248,.12); color: var(--purple);
  padding: .2rem .4rem; border-radius: 4px;
  border: 1px solid rgba(139,124,248,.2);
}
.anchor-byte--dim { color: var(--text-3); background: rgba(255,255,255,.04); border-color: var(--border); }
.diag-anchor-label { font-size: .7rem; color: var(--text-3); margin-bottom: .55rem; }
.diag-props { display: flex; flex-direction: column; gap: .2rem; }
.diag-prop { font-size: .68rem; color: var(--green); font-weight: 600; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-diagram { display: none; }
}

@media (max-width: 1120px) {
  .hero-pipeline {
    grid-template-columns: 1fr;
    gap: .9rem;
  }
  .pipeline-core-wrap {
    min-height: 180px;
  }
  .pipeline-beam {
    display: none;
  }
}

/* ── SECTIONS ────────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-2); }
.section-insight { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
#api-reference { padding-bottom: 3rem; }
#privacy { padding-top: 3.5rem; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-label {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--purple); margin-bottom: .75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -.025em; color: #fff; margin-bottom: .75rem; line-height: 1.2;
}
.h2-code {
  font-family: var(--font-mono); font-size: .8em;
  background: rgba(34,211,238,.12); color: var(--cyan);
  padding: .1rem .4rem; border-radius: 4px; border: 1px solid rgba(34,211,238,.2);
}
.section-sub { color: var(--text-2); font-size: 1rem; line-height: 1.65; }

/* ── INSIGHT ─────────────────────────────────── */
.problem-solution {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}
.problem-solution h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
  margin: .3rem 0 1rem;
  letter-spacing: -.03em;
}
.problem-solution p {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto .7rem;
}
.problem-solution-accent {
  color: #fff !important;
  font-size: 1.15rem !important;
  font-weight: 800;
}

/* ── STRICTNESS GUIDE ───────────────────────── */
.strictness-lab {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.strictness-panel,
.strictness-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.strictness-panel {
  padding: 1.4rem;
}
.strictness-panel--main {
  grid-column: 1 / -1;
}
.strictness-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.strictness-panel-head h3 {
  color: #fff;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 24ch;
}
.strictness-kicker {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  font-weight: 800;
  margin-bottom: .55rem;
}
.strictness-value-wrap {
  min-width: 126px;
  text-align: right;
}
.strictness-value-label {
  display: block;
  color: var(--text-3);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}
.strictness-value {
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
}
.strictness-slider-wrap {
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1rem 1rem;
  margin-bottom: 1rem;
}
.strictness-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  outline: none;
  background:
    linear-gradient(90deg,
      rgba(251,146,60,.9) 0%,
      rgba(251,146,60,.55) 16%,
      rgba(34,211,238,.75) 50%,
      rgba(139,124,248,.72) 84%,
      rgba(232,121,160,.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.strictness-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  cursor: pointer;
}
.strictness-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  cursor: pointer;
}
.strictness-scale,
.strictness-meter-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.strictness-scale {
  margin-top: .7rem;
  color: var(--text-3);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.strictness-scale span:nth-child(2),
.strictness-meter-notes span:nth-child(2) {
  text-align: center;
}
.strictness-scale span:last-child,
.strictness-meter-notes span:last-child {
  text-align: right;
}
.strictness-sweetspot {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(34,211,238,.22);
  background: linear-gradient(135deg, rgba(34,211,238,.11), rgba(139,124,248,.08));
}
.strictness-sweetspot.is-highlighted {
  border-color: rgba(34,211,238,.36);
  box-shadow: 0 0 0 1px rgba(34,211,238,.12), 0 16px 34px rgba(34,211,238,.08);
}
.strictness-sweetspot[data-state="lenient"] {
  border-color: rgba(251,146,60,.24);
  background: linear-gradient(135deg, rgba(251,146,60,.12), rgba(255,255,255,.04));
}
.strictness-sweetspot[data-state="minimum"] {
  border-color: rgba(251,146,60,.34);
  background: linear-gradient(135deg, rgba(251,146,60,.18), rgba(255,255,255,.05));
  box-shadow: 0 0 0 1px rgba(251,146,60,.12), 0 16px 34px rgba(251,146,60,.08);
}
.strictness-sweetspot[data-state="balanced"] {
  border-color: rgba(139,124,248,.24);
  background: linear-gradient(135deg, rgba(139,124,248,.11), rgba(77,166,248,.07));
}
.strictness-sweetspot[data-state="exact"] {
  border-color: rgba(232,121,160,.24);
  background: linear-gradient(135deg, rgba(232,121,160,.11), rgba(255,255,255,.04));
}
.strictness-sweetspot[data-state="maximum"] {
  border-color: rgba(232,121,160,.34);
  background: linear-gradient(135deg, rgba(232,121,160,.18), rgba(255,255,255,.05));
  box-shadow: 0 0 0 1px rgba(232,121,160,.12), 0 16px 34px rgba(232,121,160,.08);
}
.strictness-sweetspot-top {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.strictness-sweetspot-badge {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  height: 28px;
  padding: 0 .7rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.28);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.strictness-sweetspot-badge[data-state="lenient"] {
  border-color: rgba(251,146,60,.28);
  color: var(--orange);
}
.strictness-sweetspot-badge[data-state="minimum"] {
  border-color: rgba(251,146,60,.38);
  color: var(--orange);
  background: rgba(251,146,60,.08);
}
.strictness-sweetspot-badge[data-state="balanced"] {
  border-color: rgba(139,124,248,.28);
  color: var(--purple);
}
.strictness-sweetspot-badge[data-state="exact"] {
  border-color: rgba(232,121,160,.28);
  color: var(--pink);
}
.strictness-sweetspot-badge[data-state="maximum"] {
  border-color: rgba(232,121,160,.38);
  color: var(--pink);
  background: rgba(232,121,160,.08);
}
.strictness-sweetspot-title {
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
}
.strictness-sweetspot-copy {
  color: var(--text);
  font-size: .9rem;
  line-height: 1.6;
}
.strictness-sweetspot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.strictness-state-risk {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.strictness-state-risk--accept {
  border-color: rgba(251,146,60,.22);
  color: var(--orange);
}
.strictness-state-risk--reject {
  border-color: rgba(52,211,153,.22);
  color: var(--green);
}
.strictness-meter {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.strictness-meter-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.strictness-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--cyan) 50%, var(--pink));
  transition: width .18s ease;
}
.strictness-meter-marker {
  position: absolute;
  top: 2px;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,.25);
}
.strictness-meter-marker--left { left: 14%; }
.strictness-meter-marker--mid { left: 50%; }
.strictness-meter-marker--right { left: 86%; }
.strictness-meter-notes {
  margin-top: .65rem;
  color: var(--text-3);
  font-size: .72rem;
  font-weight: 600;
}
.strictness-readout {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}
.strictness-mode {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}
.strictness-summary {
  color: var(--text-2);
  font-size: .92rem;
}
.strictness-card-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.strictness-card {
  padding: 1.15rem;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.strictness-card:hover {
  transform: translateY(-2px);
}
.strictness-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.strictness-card-label,
.strictness-card-range {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.strictness-card-label { color: var(--text); }
.strictness-card-range { color: var(--text-3); }
.strictness-card h4 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: .45rem;
}
.strictness-card p {
  color: var(--text-2);
  font-size: .88rem;
}
.strictness-card--featured {
  background: linear-gradient(180deg, rgba(34,211,238,.08), rgba(139,124,248,.06));
  border-color: rgba(34,211,238,.22);
}
.strictness-card.is-active {
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.strictness-card[data-strictness-card="lenient"].is-active {
  border-color: rgba(251,146,60,.32);
  background: linear-gradient(180deg, rgba(251,146,60,.09), rgba(255,255,255,.02));
}
.strictness-card[data-strictness-card="balanced"].is-active {
  border-color: rgba(34,211,238,.28);
  background: linear-gradient(180deg, rgba(34,211,238,.11), rgba(139,124,248,.05));
}
.strictness-card[data-strictness-card="exact"].is-active {
  border-color: rgba(232,121,160,.32);
  background: linear-gradient(180deg, rgba(232,121,160,.09), rgba(255,255,255,.02));
}

@media (max-width: 980px) {
  .strictness-lab {
    grid-template-columns: 1fr;
  }

@media (max-width: 640px) {
  .logo-icon--nav {
    width: 60px;
    height: 40px;
  }
  .logo-icon--hero {
    width: 340px;
    height: 227px;
  }
}
  .strictness-panel--main,
  .strictness-card-grid {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .strictness-panel-head {
    flex-direction: column;
  }
  .strictness-value-wrap {
    text-align: left;
  }
  .strictness-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── USE CASES ───────────────────────────────── */
.capability-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.capability-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.capability-label {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.capability-grid { display: grid; gap: 1rem; }
.capability-grid--actions { grid-template-columns: repeat(2, 1fr); }
.capability-grid--domains { grid-template-columns: repeat(3, 1fr); }
.capability-card,
.capability-domain {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.capability-card h3,
.capability-domain strong { color: #fff; font-size: 1rem; }
.capability-card p,
.capability-domain em { color: var(--text-2); font-size: .9rem; font-style: normal; }
.capability-domain {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.capability-domain span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (max-width: 860px) {
  .capability-grid--actions,
  .capability-grid--domains { grid-template-columns: 1fr; }
}

.uc-footer-note {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.2);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  font-size: .9rem; color: var(--text-2);
}
.ufn-icon {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 28px;
  padding: 0 .7rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.25);
  background: rgba(34,211,238,.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  flex-shrink: 0;
  margin-top: .05rem;
}
.uc-footer-note code { font-family: var(--font-mono); color: var(--cyan); font-size: .875em; }

/* ── HOW IT WORKS ────────────────────────────── */
.hiw-steps {
  display: flex; align-items: stretch; gap: 0;
  margin-bottom: 3rem;
}
.hiw-step {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  position: relative;
}
.hiw-step--accent { background: rgba(34,211,238,.04); border-color: rgba(34,211,238,.25); }
.hiw-step-num {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: .75rem; font-weight: 800; color: var(--text-3); letter-spacing: .04em; font-family: var(--font-mono);
}
.hiw-step-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: color-mix(in srgb, var(--c) 85%, white 15%);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.hiw-step h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.hiw-step p  { font-size: .875rem; color: var(--text-2); line-height: 1.65; }
.hiw-step p code { font-family: var(--font-mono); color: var(--cyan); font-size: .875em; }
.hiw-connector {
  flex: 0 0 auto; align-self: center; padding: 0 1rem;
  font-size: 1.25rem; color: var(--text-3);
}

@media (max-width: 820px) {
  .hiw-steps { flex-direction: column; }
  .hiw-connector { padding: .5rem 0; transform: rotate(90deg); }
}

.flow-code-title,
.api-snapshot-label {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.examples-intro {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.examples-intro h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.examples-intro p {
  color: var(--text-2);
  font-size: .98rem;
  max-width: 60ch;
  margin: 0 auto;
}

.flow-api {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.flow-api--secondary {
  margin-top: 1.25rem;
}
.flow-api-header {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.flow-api-header h3 {
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.flow-api-header p {
  color: var(--text-2);
  font-size: .95rem;
  max-width: 42ch;
}
.flow-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.flow-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,.02), rgba(255,255,255,.14), rgba(255,255,255,.02));
}
.flow-event {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
}
.flow-node {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139,124,248,.28), rgba(34,211,238,.22));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
}
.flow-body {
  background: rgba(0,0,0,.16);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
}
.flow-meta {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  font-weight: 800;
  margin-bottom: .45rem;
}
.flow-body h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .35rem;
}
.flow-body p {
  color: var(--text-2);
  font-size: .9rem;
  margin-bottom: .9rem;
}
.flow-body p code {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: .875em;
}
.flow-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.flow-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.flow-panel--wide {
  max-width: 100%;
  margin-bottom: .9rem;
}
.flow-panel--wide + .flow-panels {
  margin-top: .9rem;
}
.flow-panel-label {
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .68rem;
  font-weight: 800;
}
.flow-panel pre,
.api-snapshot pre {
  margin: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.flow-panel pre {
  border: none;
  border-radius: 0;
}

.why-not-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139,124,248,.2);
  background: linear-gradient(135deg, rgba(139,124,248,.08), rgba(34,211,238,.05));
}
.why-not-tag {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 78px;
  height: 28px;
  padding: 0 .65rem;
  border-radius: 999px;
  border: 1px solid rgba(139,124,248,.28);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.why-not-body h3 {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: .3rem;
}
.why-not-body p {
  color: var(--text-2);
  font-size: .92rem;
  max-width: 72ch;
}

@media (max-width: 860px) {
  .flow-api-header,
  .flow-panels {
    grid-template-columns: 1fr;
  }
  .why-not-callout {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .flow-track::before { left: 17px; }
  .flow-event {
    grid-template-columns: 34px 1fr;
    gap: .8rem;
  }
  .flow-node {
    width: 34px;
    height: 34px;
    font-size: .7rem;
  }
}

/* ── QUICKSTART ──────────────────────────────── */
.api-snapshot {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.api-snapshot h3 { color: #fff; font-size: 1.15rem; line-height: 1.25; max-width: 28ch; }
.lang-tab-wrap { margin-bottom: 1.5rem; }
.lang-tabs {
  display: flex; gap: .25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .25rem; width: fit-content;
}
.lang-tab {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600;
  color: var(--text-3); background: none; border: none; cursor: pointer;
  padding: .45rem .9rem; border-radius: 7px;
  transition: color .15s, background .15s;
}
.lang-tab.active { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }
.lang-tab:hover:not(.active) { color: var(--text-2); }

.pricing-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.pricing-intro-pill {
  display: inline-grid;
  place-items: center;
  min-width: 128px;
  height: 28px;
  padding: 0 .8rem;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,.2);
  background: rgba(34,211,238,.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pricing-intro p {
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.65;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.pricing-card--featured {
  border-color: rgba(139,124,248,.28);
  background: linear-gradient(180deg, rgba(139,124,248,.1), rgba(255,255,255,.03));
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.pricing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}
.pricing-plan {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}
.pricing-price {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-top: .35rem;
}
.pricing-price span {
  color: var(--text-3);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: .25rem;
}
.pricing-badge {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pricing-badge--featured {
  border-color: rgba(139,124,248,.24);
  color: var(--purple);
  background: rgba(139,124,248,.08);
}
.pricing-allowance {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.pricing-copy {
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.6;
  min-height: 5.2em;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  padding: 0;
}
.pricing-features li {
  color: var(--text);
  font-size: .84rem;
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34,211,238,.35);
}
.pricing-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(52,211,153,.18);
  background: rgba(52,211,153,.06);
  color: var(--text-2);
  font-size: .9rem;
  line-height: 1.6;
}
.pricing-note strong {
  color: var(--text);
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pricing-intro {
    flex-direction: column;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-copy {
    min-height: 0;
  }
}

.qs-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem;
}
.qs-card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.qs-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; font-size: .8rem; font-weight: 800;
  display: grid; place-items: center; font-family: var(--font-mono);
}
.qs-card-header h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.qs-card-header p  { font-size: .875rem; color: var(--text-2); }
.qs-card-header p .ic { font-size: .8em; }

.code-tabs-body { }
.lang-block { display: none; }
.lang-block.active { display: block; }
.cb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 1.25rem;
  background: rgba(0,0,0,.2); border-bottom: 1px solid var(--border);
}
.cb-head span { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); font-weight: 600; }
.cpbtn {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  color: var(--text-3); background: none; border: 1px solid var(--border);
  cursor: pointer; padding: .2rem .55rem; border-radius: 5px;
  transition: color .15s, background .15s, border-color .15s;
}
.cpbtn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.cpbtn.copied { color: var(--green); border-color: rgba(52,211,153,.3); }

.code-tabs-body pre { margin: 0 !important; border-radius: 0; }
.code-tabs-body pre code { font-size: .84rem !important; }
.code-tabs-body .hljs { background: rgba(0,0,0,.35) !important; padding: 1.25rem !important; }

@media (max-width: 860px) {
  .api-snapshot { grid-template-columns: 1fr; }
}

/* ── API REFERENCE ───────────────────────────── */
.auth-callout {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(251,146,60,.06); border: 1px solid rgba(251,146,60,.25);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: .875rem; color: var(--text-2); margin-bottom: 1.75rem;
}
.auth-callout svg { flex-shrink: 0; color: var(--orange); margin-top: .15rem; }
.auth-callout code { font-family: var(--font-mono); color: var(--cyan); font-size: .85em; }

.ep-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem;
}
.ep-header {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.15);
}
.method-badge {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 5px;
}
.method-post { background: rgba(139,124,248,.2); color: var(--purple); }
.method-get  { background: rgba(52,211,153,.2); color: var(--green); }
.ep-path { font-family: var(--font-mono); font-size: .9rem; font-weight: 600; color: #fff; }
.ep-desc { font-size: .82rem; color: var(--text-3); flex: 1; }
.status-pill { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 5px; }
.status-200 { background: rgba(52,211,153,.15); color: var(--green); }
.status-201 { background: rgba(77,166,248,.15); color: var(--blue); }
.ep-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ep-col { padding: 1.25rem 1.5rem; }
.ep-col + .ep-col { border-left: 1px solid var(--border); }
.ep-col-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .75rem; }
.ep-col pre { border-radius: 8px; margin-bottom: .75rem !important; }
.ep-col .hljs { background: rgba(0,0,0,.35) !important; font-size: .82rem !important; padding: .85rem !important; }
.ep-fields { display: flex; flex-direction: column; gap: .5rem; }
.ep-field { display: flex; align-items: baseline; gap: .5rem; font-size: .82rem; flex-wrap: wrap; }
.fn { font-family: var(--font-mono); color: var(--text); font-size: .8rem; font-weight: 600; }
.ft { font-family: var(--font-mono); color: var(--blue); font-size: .75rem; }
.ep-field span { color: var(--text-2); flex: 1; min-width: 120px; }

@media (max-width: 640px) { .ep-body { grid-template-columns: 1fr; } .ep-col + .ep-col { border-left: none; border-top: 1px solid var(--border); } }

.errors-section { margin-top: 2rem; }
.errors-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.errors-tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
.errors-tbl th { text-align: left; padding: .6rem 1rem; background: rgba(255,255,255,.03); color: var(--text-3); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.errors-tbl td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: baseline; }
.errors-tbl td:last-child { color: var(--text-2); }
.errors-tbl code { font-family: var(--font-mono); font-size: .82em; color: var(--cyan); }
.epill { font-size: .72rem; font-weight: 700; font-family: var(--font-mono); padding: .2rem .5rem; border-radius: 5px; }
.e401 { background: rgba(251,146,60,.15); color: var(--orange); }
.e400 { background: rgba(232,121,160,.15); color: var(--pink); }
.e413 { background: rgba(232,121,160,.15); color: var(--pink); }

/* ── ANCHOR ANATOMY ─────────────────────────── */
.anc-diagram {
  display: flex; gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); margin-bottom: 2rem;
}
.anc-seg {
  flex: 1; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .4rem;
  min-width: 0; text-align: center;
}
.anc-seg + .anc-seg { border-left: 1px solid var(--border); }
.anc-seg--alpha  { background: rgba(139,124,248,.06); }
.anc-seg--v      { background: rgba(77,166,248,.06); flex: 3; }
.anc-seg--commit { background: rgba(34,211,238,.06); }
.anc-bytes { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--text-3); }
.anc-seg-name { font-size: .95rem; font-weight: 700; color: #fff; }
.anc-seg--alpha .anc-seg-name { color: var(--purple); }
.anc-seg--v     .anc-seg-name { color: var(--blue); }
.anc-seg--commit .anc-seg-name { color: var(--cyan); }
.anc-seg-desc { font-size: .78rem; color: var(--text-3); }
.anc-hex { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); margin-top: .25rem; }
@media (max-width: 600px) { .anc-diagram { flex-direction: column; } .anc-seg + .anc-seg { border-left: none; border-top: 1px solid var(--border); } }

.anc-formula {
  text-align: center; padding: 1.25rem; font-size: .95rem;
  background: rgba(0,0,0,.2); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 2rem;
}
.anc-formula code { font-family: var(--font-mono); color: var(--cyan); }
.anc-formula-note { font-size: .82rem; color: var(--text-3); margin-top: .4rem; display: inline-block; }
.anc-formula-note strong { color: var(--text); }

.anc-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.anc-prop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.anc-prop-title { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.anc-prop-card p { font-size: .825rem; color: var(--text-2); }
@media (max-width: 640px) { .anc-props { grid-template-columns: 1fr; } }

/* ── PRIVACY ─────────────────────────────────── */
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .priv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .priv-grid { grid-template-columns: 1fr; } }

.priv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
  transition: border-color .2s, transform .2s;
}
.priv-card:hover { transform: translateY(-2px); }
.priv-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ic) 45%, transparent);
  background: color-mix(in srgb, var(--ic) 12%, transparent);
  color: var(--ic);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.priv-card h4 { font-size: .95rem; font-weight: 700; color: #fff; }
.priv-card p  { font-size: .85rem; color: var(--text-2); line-height: 1.6; }
.priv-badge {
  font-size: .72rem; font-weight: 700; color: var(--green);
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2);
  padding: .3rem .7rem; border-radius: 999px; align-self: flex-start; margin-top: auto;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--bg-3); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: flex; gap: 3rem; justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 260px; }
.footer-brand p { font-size: .875rem; color: var(--text-2); margin-bottom: 1rem; }
.footer-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-tags span {
  font-size: .72rem; font-weight: 600; color: var(--text-3);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: .2rem .6rem; border-radius: 999px;
}
.footer-links-group { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.fc-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .35rem; }
.footer-col a { font-size: .875rem; color: var(--text-2); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
  font-size: .8rem; color: var(--text-3);
}
.footer-bottom code { font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); }

/* ── Code block overrides ────────────────────── */
.hljs { background: transparent !important; }
pre code.hljs { border-radius: 0; }
