@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,650..900,28,1&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --ink: #10211d;
  --ink-2: #1c342e;
  --paper: #f8eedc;
  --cream: #fff8eb;
  --sand: #ead6b4;
  --clay: #c8643d;
  --clay-soft: rgba(200, 100, 61, 0.12);
  --sage: #d9e9bf;
  --sage-2: #a8c28e;
  --blue: #b6d8dd;
  --gold: #e0b64c;
  --muted: rgba(16, 33, 29, 0.68);
  --muted-on-dark: rgba(248, 238, 220, 0.72);
  --line: rgba(16, 33, 29, 0.13);
  --line-strong: rgba(16, 33, 29, 0.24);
  --line-light: rgba(248, 238, 220, 0.16);
  --shadow: 0 30px 90px rgba(16, 33, 29, 0.18);
  --shadow-soft: 0 18px 60px rgba(16, 33, 29, 0.08);
  --radius-xl: clamp(2rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Dark sections need inverted selection so highlighted text stays visible */
.section--dark ::selection,
.closing-section ::selection,
.client--flagship ::selection,
.foundation ::selection,
.code-block ::selection,
footer ::selection {
  background: var(--sage);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

p, h1, h2, h3 { margin-top: 0; }
p { line-height: 1.64; }

main { overflow: hidden; }
section { scroll-margin-top: 5rem; }

code, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes orbit-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbit-ccw {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes pulse-core {
  0%, 100% { box-shadow: 0 24px 70px rgba(16, 33, 29, 0.32), 0 0 0 0 rgba(217, 233, 191, 0.42); }
  50%      { box-shadow: 0 30px 80px rgba(16, 33, 29, 0.42), 0 0 0 22px rgba(217, 233, 191, 0); }
}

@keyframes flow-line {
  0%   { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@keyframes blink-status {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@keyframes drift-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(2%, -1%) scale(1.04); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes packet-right {
  0%   { left: 4%; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

@keyframes packet-left {
  0%   { left: 92%; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 4%; opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}

@keyframes scan-down {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(60%); opacity: 0.9; }
}

@keyframes chain-grow {
  0%   { opacity: 0; transform: translateY(4px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes plus-spin {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(90deg); }
}

/* Reveal-on-scroll is opt-in so the page remains readable without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal--stagger > * {
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 560ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal--stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 60ms; }
.js .reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 140ms; }
.js .reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 220ms; }
.js .reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.js .reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 380ms; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.6rem;
  padding: 0.85rem clamp(1.1rem, 3.2vw, 3rem);
  border-bottom: 1px solid rgba(16, 33, 29, 0.08);
  background: rgba(248, 238, 220, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 18px 40px rgba(16, 33, 29, 0.22);
  transition: transform 220ms ease;
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.brand__label { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.02rem; }
.brand__tag {
  margin-top: 0.32rem;
  color: var(--clay);
  font: 700 0.6rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  align-items: center;
  color: rgba(16, 33, 29, 0.56);
  font: 700 0.74rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav nav a:not(.button):hover { color: var(--ink); }

.site-nav .button {
  min-height: 2.55rem;
  padding: 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  margin-bottom: 1rem;
  color: var(--clay);
  font: 700 0.76rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--sage { color: var(--sage); }

.serif {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
}

.gradient-accent { color: var(--clay); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font: 800 0.8rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button--dark { background: var(--ink); color: var(--paper); box-shadow: 0 18px 46px rgba(16, 33, 29, 0.22); }
.button--dark:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: 0 22px 52px rgba(16, 33, 29, 0.32); }
.button--light { border: 1px solid var(--line-strong); background: rgba(255, 248, 235, 0.64); }
.button--light:hover { background: rgba(255, 248, 235, 0.95); transform: translateY(-2px); }
.button--sage { background: var(--sage); color: var(--ink); box-shadow: 0 18px 46px rgba(168, 194, 142, 0.32); }
.button--sage:hover { background: var(--sage-2); transform: translateY(-2px); }
.button--ghost {
  background: rgba(248, 238, 220, 0.08);
  border: 1px solid rgba(248, 238, 220, 0.18);
  color: var(--paper);
}
.button--ghost:hover { background: rgba(248, 238, 220, 0.16); transform: translateY(-2px); }
.button svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(26rem, 1.06fr);
  gap: clamp(2rem, 6vw, 6.4rem);
  min-height: 100svh;
  align-items: center;
  padding: clamp(7rem, 10vw, 9rem) clamp(1.15rem, 4vw, 4rem) clamp(5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 18% 30%, rgba(224, 182, 76, 0.28), transparent 26rem),
    radial-gradient(circle at 80% 32%, rgba(182, 216, 221, 0.42), transparent 28rem),
    linear-gradient(135deg, var(--paper), #f0dfbf 100%);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 33, 29, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 29, 0.07) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 30%, rgba(224, 182, 76, 0.18), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(182, 216, 221, 0.22), transparent 36%);
  animation: drift-orb 14s ease-in-out infinite;
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 7.4vw, 7.4rem);
  line-height: 0.94;
}

.hero__lede {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 248, 235, 0.62);
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(200, 100, 61, 0.18);
  animation: blink-status 2.4s ease-in-out infinite;
}

/* ---------- Hero mesh visualization ---------- */
.hero-visual { animation: rise 720ms ease both; }

.network-card {
  min-height: min(64svh, 42rem);
  padding: clamp(1rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 48%, rgba(217, 233, 191, 0.78), transparent 13rem),
    linear-gradient(145deg, rgba(255, 248, 235, 0.94), rgba(255, 248, 235, 0.5));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.network-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  color: rgba(16, 33, 29, 0.54);
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.network-card__top .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
}
.network-card__top .live-dot::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 999px;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(200, 100, 61, 0.2);
  animation: blink-status 2.2s ease-in-out infinite;
}

.mesh-stage {
  position: relative;
  min-height: min(54svh, 34rem);
  border: 1px solid rgba(16, 33, 29, 0.09);
  border-radius: calc(var(--radius-xl) - 1rem);
  background:
    linear-gradient(rgba(16, 33, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 29, 0.04) 1px, transparent 1px),
    rgba(255, 248, 235, 0.28);
  background-size: 2.5rem 2.5rem;
  overflow: hidden;
}

.mesh-ring, .mesh-line { position: absolute; pointer-events: none; }
.mesh-ring {
  border: 1px dashed rgba(16, 33, 29, 0.2);
  border-radius: 999px;
  transform-origin: center;
}
.mesh-ring--outer { inset: 8%; animation: orbit-cw 120s linear infinite; }
.mesh-ring--inner { inset: 25%; animation: orbit-ccw 90s linear infinite; }

.mesh-line {
  top: 50%; left: 50%;
  width: 62%; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(16, 33, 29, 0.18) 20%,
    rgba(200, 100, 61, 0.55) 50%,
    rgba(16, 33, 29, 0.18) 80%,
    transparent 100%);
  background-size: 220% 100%;
  transform-origin: center;
  animation: flow-line 6.5s linear infinite;
}
.mesh-line--one   { transform: translate(-50%, -50%) rotate(12deg); }
.mesh-line--two   { transform: translate(-50%, -50%) rotate(88deg); animation-duration: 7.2s; animation-direction: reverse; }
.mesh-line--three { transform: translate(-50%, -50%) rotate(-42deg); animation-duration: 5.8s; }

.mesh-core {
  position: absolute;
  z-index: 3;
  top: 50%; left: 50%;
  display: grid;
  width: min(17rem, 48%);
  min-height: 11rem;
  place-items: center;
  padding: 1.2rem;
  border-radius: 2rem;
  background: rgba(16, 33, 29, 0.94);
  color: var(--paper);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: pulse-core 4.5s ease-in-out infinite;
}
.mesh-core span {
  color: var(--sage);
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mesh-core strong {
  display: block;
  margin-block: 0.3rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 760;
}
.mesh-core p {
  max-width: 13rem;
  margin: 0;
  color: rgba(248, 238, 220, 0.72);
  font-size: 0.86rem;
  line-height: 1.35;
}

.device-node {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  min-width: 11rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 33, 29, 0.14);
  border-radius: 1.2rem;
  background: rgba(255, 248, 235, 0.92);
  box-shadow: 0 16px 42px rgba(16, 33, 29, 0.12);
  backdrop-filter: blur(16px);
  animation: float-bob 7s ease-in-out infinite;
}

.device-node__icon {
  display: grid;
  width: 2rem; height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--ink);
  color: var(--sage);
}
.device-node__icon svg { width: 1.05rem; height: 1.05rem; }

.device-node__copy span {
  display: block;
  color: rgba(16, 33, 29, 0.54);
  font: 700 0.62rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.device-node__copy strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 720;
  font-size: 1rem;
  letter-spacing: 0;
}

.device-node::after {
  content: "";
  position: absolute;
  top: 0.65rem; right: 0.7rem;
  width: 0.45rem; height: 0.45rem;
  border-radius: 999px;
  background: var(--sage-2);
  box-shadow: 0 0 0 3px rgba(168, 194, 142, 0.22);
  animation: blink-status 2.4s ease-in-out infinite;
}

.device-node--family { top: 11%; left: 6%; animation-delay: -0.2s; }
.device-node--family::after { animation-delay: 0s; }
.device-node--studio { top: 13%; right: 6%; animation-delay: -1.4s; }
.device-node--studio::after { animation-delay: 0.6s; }
.device-node--club { bottom: 17%; left: 7%; animation-delay: -3.1s; }
.device-node--club::after { animation-delay: 1.2s; }
.device-node--home { right: 7%; bottom: 15%; animation-delay: -4.6s; }
.device-node--home::after { animation-delay: 1.8s; }

.no-server {
  position: absolute;
  z-index: 5;
  left: 50%; bottom: 5%;
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.05rem 0 0.75rem;
  border: 1px solid rgba(16, 33, 29, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.92);
  color: rgba(16, 33, 29, 0.74);
  font: 800 0.74rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 20px 52px rgba(16, 33, 29, 0.15);
}
.no-server::before {
  content: "";
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: 0.6rem;
  border: 2px solid var(--clay);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 45%, var(--clay) 46%, var(--clay) 54%, transparent 55%),
    rgba(200, 100, 61, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.15rem, 5vw, 5rem);
  position: relative;
}
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper {
  background:
    radial-gradient(circle at 12% 0%, rgba(224, 182, 76, 0.16), transparent 22rem),
    var(--paper);
}
.section--sand {
  background:
    radial-gradient(circle at 82% 12%, rgba(182, 216, 221, 0.28), transparent 24rem),
    var(--sand);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(19rem, 0.88fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}

.section-heading h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.94;
}

.section-heading p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.section--dark .section-heading p:not(.eyebrow) { color: var(--muted-on-dark); }
.section-heading--split { align-items: start; }
.section-heading--split p:not(.eyebrow) { color: var(--muted); }

/* ---------- Value cards (product, dark bg) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: clamp(1rem, 2.3vw, 1.45rem);
  border: 1px solid var(--line-light);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top right, rgba(217, 233, 191, 0.18), transparent 13rem),
    rgba(248, 238, 220, 0.06);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), border-color 360ms ease, background 360ms ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 238, 220, 0.28);
}

.value-card h3 {
  margin-bottom: 0.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 720;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: 0;
  color: var(--paper);
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted-on-dark);
  font-size: 0.96rem;
}

.value-card__visual {
  position: relative;
  display: grid;
  min-height: 10rem;
  margin-bottom: auto;
  place-items: center;
  overflow: hidden;
  border-radius: 1.1rem;
}

/* --- Circle visual (Small by design) --- */
.visual--circle .ring {
  position: absolute;
  border: 1px dashed rgba(217, 233, 191, 0.42);
  border-radius: 999px;
  transform-origin: center;
}
.visual--circle .ring-1 { width: 8.5rem; height: 8.5rem; animation: orbit-cw 60s linear infinite; }
.visual--circle .ring-2 { width: 5.6rem; height: 5.6rem; animation: orbit-ccw 80s linear infinite; }

.visual--circle .person {
  position: absolute;
  width: 0.72rem; height: 0.72rem;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(217, 233, 191, 0.2);
}
.visual--circle .person.p1 { top: 18%; left: 50%; transform: translateX(-50%); }
.visual--circle .person.p2 { top: 50%; right: 18%; transform: translateY(-50%); }
.visual--circle .person.p3 { bottom: 18%; left: 50%; transform: translateX(-50%); background: var(--gold); }
.visual--circle .person.p4 { top: 50%; left: 18%; transform: translateY(-50%); }
.visual--circle .person.p5 { top: 30%; right: 28%; background: var(--clay); }

.visual--circle .center {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.8rem; height: 2.8rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink);
  font: 800 0.78rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

/* --- Devices visual (Your data stays) --- */
.visual--devices {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  padding: 0.7rem;
  place-items: end center;
}
.visual--devices .dev {
  display: grid;
  place-items: end center;
  gap: 0.3rem;
  width: 100%;
}
.visual--devices .dev-shape {
  width: 80%;
  border: 1px solid rgba(248, 238, 220, 0.32);
  background: rgba(248, 238, 220, 0.06);
  border-radius: 0.4rem;
  position: relative;
}
.visual--devices .dev-shape::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(217, 233, 191, 0.18) 50%, transparent 100%),
    linear-gradient(rgba(248, 238, 220, 0.18) 1px, transparent 1px);
  background-size: 100% 100%, 100% 0.5rem;
  border-radius: 0.2rem;
}
.visual--devices .dev-shape.phone   { height: 4.4rem; aspect-ratio: 9 / 16; width: auto; }
.visual--devices .dev-shape.laptop  { height: 3.2rem; aspect-ratio: 16 / 10; width: auto; border-bottom-width: 3px; border-bottom-color: rgba(248, 238, 220, 0.55); }
.visual--devices .dev-shape.home    { height: 3rem; aspect-ratio: 1; width: auto; border-radius: 0.6rem; }
.visual--devices .dev label {
  color: rgba(248, 238, 220, 0.55);
  font: 700 0.6rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- VPN tunnel visual (Private by network design) --- */
.visual--vpn {
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0 0.8rem;
}
.visual--vpn .end {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(248, 238, 220, 0.28);
  background: rgba(248, 238, 220, 0.08);
  color: var(--paper);
}
.visual--vpn .end svg { width: 1rem; height: 1rem; }

.visual--vpn .tunnel {
  position: relative;
  height: 1.6rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(217, 233, 191, 0.18), rgba(217, 233, 191, 0.05) 50%, rgba(217, 233, 191, 0.18));
  border: 1px solid rgba(217, 233, 191, 0.28);
  overflow: hidden;
}
.visual--vpn .tunnel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 30%,
    rgba(224, 182, 76, 0.6) 50%,
    transparent 70%,
    transparent 100%);
  background-size: 250% 100%;
  animation: flow-line 3.6s linear infinite;
}
.visual--vpn .lock {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.4rem; height: 1.4rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink);
}
.visual--vpn .lock svg { width: 0.7rem; height: 0.7rem; }

/* --- Tools visual (More than chat) --- */
.visual--tools {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  padding: 0.4rem;
  place-items: stretch;
}
.visual--tools .feat {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(248, 238, 220, 0.16);
  border-radius: 0.85rem;
  background: rgba(248, 238, 220, 0.05);
  color: var(--paper);
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.visual--tools .feat svg {
  width: 1rem; height: 1rem;
  color: var(--sage);
}
.visual--tools .feat.is-warm svg { color: var(--gold); }
.visual--tools .feat.is-clay svg { color: var(--clay); }

/* ---------- Flow cards (steps + protocol) ---------- */
.flow { display: grid; gap: 1.05rem; }

/* Compact 2-column grid variant (used in under-the-hood) */
.flow--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.flow-card--compact {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.85rem;
  min-height: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  align-items: start;
}

.flow-card--compact .flow-card__number {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.82rem;
  grid-column: 1;
  grid-row: 1;
  margin-top: 0.15rem;
}

.flow-card--compact .flow-card__copy {
  grid-column: 2;
  grid-row: 1;
}

.flow-card--compact .flow-card__copy h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  margin-bottom: 0.3rem;
}

.flow-card--compact .flow-card__copy p {
  font-size: 0.91rem;
  line-height: 1.5;
  max-width: none;
}

.flow-card--compact .flow-card__visual {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 4.8rem;
  padding: 0.55rem;
  margin-top: 0.3rem;
}

.flow-card--compact.flow-card--wide {
  grid-column: 1 / -1;
  grid-template-columns: 2.4rem minmax(0, 1fr) minmax(12rem, 0.7fr);
  grid-template-rows: auto;
  align-items: center;
}
.flow-card--compact.flow-card--wide .flow-card__copy {
  grid-column: 2;
  grid-row: 1;
}
.flow-card--compact.flow-card--wide .flow-card__visual {
  grid-column: 3;
  grid-row: 1;
  margin-top: 0;
  min-height: 4.5rem;
}

.flow-card {
  display: grid;
  grid-template-columns: 4.4rem minmax(18rem, 0.95fr) minmax(14rem, 0.75fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  min-height: 9rem;
  padding: clamp(0.9rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background: rgba(255, 248, 235, 0.58);
  box-shadow: var(--shadow-soft);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms ease;
}
.flow-card:hover { transform: translateY(-3px); box-shadow: 0 24px 70px rgba(16, 33, 29, 0.12); }

.flow-card--on-dark {
  background: rgba(248, 238, 220, 0.05);
  border-color: rgba(248, 238, 220, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}
.flow-card--on-dark:hover { background: rgba(248, 238, 220, 0.08); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32); }
.flow-card--on-dark h3 { color: var(--paper); }
.flow-card--on-dark p { color: var(--muted-on-dark); }
.flow-card--on-dark p code {
  background: rgba(248, 238, 220, 0.1);
  color: var(--sage);
}
.flow-card--on-dark .flow-card__visual {
  background:
    linear-gradient(rgba(248, 238, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 238, 220, 0.06) 1px, transparent 1px),
    rgba(248, 238, 220, 0.03);
}
.flow-card--on-dark .flow-card__visual .chip {
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid rgba(248, 238, 220, 0.1);
}
.flow-card--on-dark .flow-card__visual .chip-key {
  border-color: rgba(217, 233, 191, 0.32);
  color: var(--sage);
}
.flow-card--on-dark .flow-card__visual .chip-warm {
  border-color: rgba(224, 182, 76, 0.32);
  color: var(--gold);
}
.flow-card--on-dark .flow-card__visual .chip-clay {
  border-color: rgba(200, 100, 61, 0.32);
  color: var(--clay);
}

.flow-card__number {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 800 0.95rem/1 "JetBrains Mono", monospace;
  position: relative;
  transition: transform 200ms ease;
}
.flow-card:hover .flow-card__number { transform: scale(1.06); }
.flow-card--on-dark .flow-card__number { background: var(--clay); color: var(--paper); }
.flow-card--on-dark .flow-card__number::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 100, 61, 0.22);
  animation: spin-slow 18s linear infinite;
}

.flow-card h3 {
  margin-bottom: 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 720;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: 0;
}

.flow-card p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
}

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

.flow-card p code {
  background: rgba(16, 33, 29, 0.08);
  padding: 0.05rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.92em;
}

.flow-card.flow-card--on-dark p code {
  background: rgba(248, 238, 220, 0.1);
  color: var(--sage);
}

.flow-card__visual {
  display: grid;
  min-height: 7.8rem;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(rgba(16, 33, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 29, 0.05) 1px, transparent 1px),
    rgba(16, 33, 29, 0.05);
  background-size: 1.6rem 1.6rem;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.flow-card__visual .chip {
  display: grid;
  min-width: 5rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--cream);
  color: var(--ink);
  font: 800 0.66rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-card__visual--space { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-card__visual--peers { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.flow-card__visual--devices { grid-template-columns: auto 1fr auto; align-items: center; }
.flow-card__visual--devices i {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(16, 33, 29, 0.12), var(--sage-2), rgba(16, 33, 29, 0.12));
  background-size: 200% 100%;
  animation: flow-line 4.5s linear infinite;
}
.flow-card--on-dark .flow-card__visual--devices i {
  background: linear-gradient(90deg, rgba(248, 238, 220, 0.16), var(--sage), rgba(248, 238, 220, 0.16));
  background-size: 200% 100%;
}

.flow-card__visual--events { grid-template-columns: 1fr; gap: 0.35rem; justify-items: stretch; }
.flow-card__visual--events .bar {
  width: 100%;
  height: 0.8rem;
  border-radius: 0.3rem;
  background: linear-gradient(90deg, rgba(16, 33, 29, 0.85), rgba(16, 33, 29, 0.35));
  position: relative;
  overflow: hidden;
}
.flow-card__visual--events .bar.b2 { width: 78%; background: linear-gradient(90deg, var(--clay), rgba(200, 100, 61, 0.35)); }
.flow-card__visual--events .bar.b3 { width: 92%; background: linear-gradient(90deg, var(--gold), rgba(224, 182, 76, 0.35)); }
.flow-card__visual--events .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  background-size: 220% 100%;
  animation: flow-line 4s linear infinite;
}
.flow-card--on-dark .flow-card__visual--events .bar { background: linear-gradient(90deg, rgba(248, 238, 220, 0.6), rgba(248, 238, 220, 0.15)); }
.flow-card--on-dark .flow-card__visual--events .bar.b2 { background: linear-gradient(90deg, var(--clay), rgba(200, 100, 61, 0.25)); }
.flow-card--on-dark .flow-card__visual--events .bar.b3 { background: linear-gradient(90deg, var(--gold), rgba(224, 182, 76, 0.25)); }

.flow-card__visual--projection { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }

.flow-card__visual--sync { grid-template-columns: 1fr auto 1fr; align-items: center; }
.flow-card__visual--sync span {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--clay));
  background-size: 200% 100%;
  animation: flow-line 3.4s linear infinite;
}
.flow-card__visual--sync span:last-child { background: linear-gradient(90deg, var(--clay), transparent); animation-direction: reverse; }
.flow-card__visual--sync strong {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 800 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flow-card--on-dark .flow-card__visual--sync strong { background: var(--clay); }

/* ---- Identity visual (Peer card) ---- */
.flow-card__visual--identity {
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-content: center;
  align-items: center;
  justify-items: stretch;
  padding: 0.85rem;
}
.flow-card--on-dark .flow-card__visual--identity { gap: 0.7rem; }
.identity-avatar {
  width: 2.6rem; height: 2.6rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(135deg, var(--clay), var(--gold));
  box-shadow: 0 0 0 2px rgba(217, 233, 191, 0.22), 0 8px 18px rgba(16, 33, 29, 0.18);
  position: relative;
}
.identity-avatar::after {
  content: "";
  position: absolute;
  top: -0.2rem; right: -0.2rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 2px var(--ink);
}
.identity-stack { display: grid; gap: 0.3rem; min-width: 0; }
.identity-phrase {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(248, 238, 220, 0.08);
  border: 1px solid rgba(248, 238, 220, 0.16);
  font: 700 0.6rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.identity-phrase .word { color: var(--sage); }
.identity-phrase .dots {
  color: rgba(248, 238, 220, 0.6);
  letter-spacing: 0.1em;
}
.identity-keys {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(224, 182, 76, 0.1);
  border: 1px solid rgba(224, 182, 76, 0.3);
  color: var(--gold);
  font: 700 0.6rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
}
.identity-keys svg { width: 0.7rem; height: 0.7rem; }

/* ---- Device-keys visual (Device card) ---- */
.flow-card__visual--device-keys {
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem;
}
.device-key-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(248, 238, 220, 0.16);
  border-radius: 0.75rem;
  background: rgba(248, 238, 220, 0.04);
}
.device-key-card__icon {
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 0.45rem;
  background: var(--ink-2);
  color: var(--sage);
}
.device-key-card__icon svg { width: 0.95rem; height: 0.95rem; }
.device-key-card__keys {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.device-key-card__keys .label {
  color: rgba(248, 238, 220, 0.65);
  font: 700 0.52rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.device-key-card__keys .node {
  color: var(--paper);
  font: 700 0.65rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-key-card__badges {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.2rem;
}
.device-key-card__badges span {
  flex: 1;
  text-align: center;
  padding: 0.18rem 0.3rem;
  border-radius: 0.3rem;
  font: 700 0.5rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
}
.device-key-card__badges .sign-badge {
  background: rgba(224, 182, 76, 0.16);
  color: var(--gold);
  border: 1px solid rgba(224, 182, 76, 0.32);
}
.device-key-card__badges .enc-badge {
  background: rgba(200, 100, 61, 0.16);
  color: var(--clay);
  border: 1px solid rgba(200, 100, 61, 0.32);
}
.device-link {
  display: grid;
  place-items: center;
  color: rgba(248, 238, 220, 0.5);
}
.device-link svg { width: 1.1rem; height: 1.1rem; }

/* ---- Chain visual (Events card) ---- */
.flow-card__visual--chain {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
  padding: 0.75rem 0.5rem;
}
.chain-block {
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem 0.45rem;
  border-radius: 0.55rem;
  background: rgba(248, 238, 220, 0.06);
  border: 1px solid rgba(248, 238, 220, 0.16);
  text-align: center;
  animation: chain-grow 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.chain-block:nth-child(1) { animation-delay: 0ms; }
.chain-block:nth-child(3) { animation-delay: 200ms; }
.chain-block:nth-child(5) { animation-delay: 400ms; }
.chain-block .seq {
  color: rgba(248, 238, 220, 0.7);
  font: 700 0.5rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chain-block .hash {
  color: var(--sage);
  font: 700 0.62rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.chain-block.is-head {
  background: rgba(217, 233, 191, 0.14);
  border-color: rgba(217, 233, 191, 0.4);
  box-shadow: 0 0 0 3px rgba(217, 233, 191, 0.1);
}
.chain-block.is-head .hash { color: var(--paper); }
.chain-arrow {
  display: grid;
  place-items: center;
  color: rgba(248, 238, 220, 0.45);
}
.chain-arrow svg { width: 0.85rem; height: 0.85rem; }

/* ---- Projection visual ---- */
.flow-card__visual--projection {
  grid-template-columns: auto auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem;
}
.proj-stream {
  display: grid;
  gap: 0.18rem;
  width: 1.7rem;
}
.proj-stream .ev {
  height: 0.5rem;
  border-radius: 0.18rem;
  background: linear-gradient(90deg, var(--clay), rgba(200, 100, 61, 0.35));
}
.proj-stream .ev:nth-child(2) { background: linear-gradient(90deg, var(--gold), rgba(224, 182, 76, 0.35)); width: 86%; }
.proj-stream .ev:nth-child(3) { background: linear-gradient(90deg, var(--sage), rgba(217, 233, 191, 0.35)); width: 70%; }
.proj-stream .ev:nth-child(4) { background: linear-gradient(90deg, var(--clay), rgba(200, 100, 61, 0.35)); width: 92%; }
.proj-arrow {
  display: grid;
  place-items: center;
  color: rgba(248, 238, 220, 0.45);
}
.proj-arrow svg { width: 0.9rem; height: 0.9rem; }
.proj-tables { display: grid; gap: 0.3rem; }
.proj-tables .table-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  padding: 0.32rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(248, 238, 220, 0.06);
  border: 1px solid rgba(248, 238, 220, 0.12);
  align-items: center;
}
.proj-tables .table-row .key {
  color: var(--sage);
  font: 700 0.58rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.proj-tables .table-row .val {
  color: var(--paper);
  font: 700 0.6rem/1 "JetBrains Mono", monospace;
  text-align: right;
}

/* ---- P2P sync visual ---- */
.flow-card__visual--p2p {
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem;
}
.p2p-device {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 0.65rem;
  background: var(--ink-2);
  border: 1px solid rgba(248, 238, 220, 0.18);
  color: var(--sage);
  position: relative;
}
.p2p-device svg { width: 1.1rem; height: 1.1rem; }
.p2p-device::after {
  content: "";
  position: absolute;
  top: -2px; right: -2px;
  width: 0.45rem; height: 0.45rem;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 2px var(--ink-2);
  animation: blink-status 2s ease-in-out infinite;
}
.p2p-conduit {
  position: relative;
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 238, 220, 0.14);
  background:
    linear-gradient(90deg,
      rgba(248, 238, 220, 0.04) 0%,
      rgba(248, 238, 220, 0.08) 50%,
      rgba(248, 238, 220, 0.04) 100%);
  overflow: hidden;
}
.p2p-packet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
}
.p2p-packet--out {
  background: var(--clay);
  color: var(--clay);
  animation: packet-right 2.4s ease-in-out infinite;
}
.p2p-packet--in {
  background: var(--sage);
  color: var(--sage);
  animation: packet-left 3.1s ease-in-out infinite;
  animation-delay: 0.8s;
}
.p2p-packet--out-2 {
  background: var(--gold);
  color: var(--gold);
  animation: packet-right 2.8s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* ---------- Comparison table ---------- */
.comparison-heading {
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}

.comparison-heading h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.94;
}

.comparison-heading p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 1.6rem;
  background: rgba(255, 248, 235, 0.62);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font: 0.84rem/1.5 "JetBrains Mono", monospace;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  white-space: nowrap;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.compare-table .app-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.compare-table .app-head__icon {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  background: rgba(248, 238, 220, 0.12);
  flex-shrink: 0;
  overflow: hidden;
}
.compare-table .app-head__icon img,
.compare-table .app-head__icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-table .app-head__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.compare-table thead th.is-dune .app-head__icon {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(16, 33, 29, 0.18);
}

.compare-table .row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.compare-table .row-label svg {
  width: 1rem;
  height: 1rem;
  color: var(--clay);
  flex-shrink: 0;
}

.compare-table tbody tr:nth-child(odd) td,
.compare-table tbody tr:nth-child(odd) th {
  background-color: rgba(16, 33, 29, 0.025);
}
.compare-table tbody tr:nth-child(odd) th { background-color: rgba(16, 33, 29, 0.045); }
.compare-table tbody tr:nth-child(odd) td.is-dune { background-color: rgba(217, 233, 191, 0.6); }
.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th { background-color: rgba(217, 233, 191, 0.18); }
.compare-table tbody tr:hover td.is-dune { background-color: rgba(217, 233, 191, 0.7); }


.compare-table tbody th,
.compare-table tbody td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(16, 33, 29, 0.66);
}

.compare-table tbody tr { transition: background 200ms ease; }
.compare-table tbody tr:hover { background: rgba(217, 233, 191, 0.12); }

.compare-table tbody th {
  width: 11rem;
  color: var(--ink);
  font-weight: 800;
  background: rgba(16, 33, 29, 0.03);
}

.compare-table td.is-dune,
.compare-table th.is-dune {
  background: rgba(217, 233, 191, 0.55);
  color: var(--ink);
  font-weight: 800;
}

.compare-table thead th.is-dune {
  background: var(--sage);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--clay);
}

.source-note {
  max-width: 78rem;
  margin: 1rem 0 0;
  color: rgba(16, 33, 29, 0.54);
  font-size: 0.78rem;
  line-height: 1.6;
}

.source-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(16, 33, 29, 0.28);
  text-underline-offset: 0.2em;
}

/* ---------- Ecosystem (Use Dune) ---------- */
.ecosystem { display: grid; gap: 1rem; }

.ecosystem__clients {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

.client {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: 1.6rem;
  overflow: hidden;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms ease;
}
.client:hover { transform: translateY(-4px); }

.client--flagship {
  grid-row: span 2;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 233, 191, 0.36), transparent 16rem),
    linear-gradient(150deg, #1c342e, #10211d 65%);
  color: var(--paper);
  border: 1px solid rgba(248, 238, 220, 0.14);
  box-shadow: var(--shadow);
}

.client--flagship::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 0%,
    transparent 35%,
    rgba(217, 233, 191, 0.08) 50%,
    transparent 65%,
    transparent 100%);
  background-size: 220% 100%;
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}

.client--soon, .client--diy {
  background: rgba(255, 248, 235, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.client--soon {
  background:
    radial-gradient(circle at 80% 0%, rgba(182, 216, 221, 0.4), transparent 12rem),
    rgba(255, 248, 235, 0.7);
}

.client--diy {
  background:
    radial-gradient(circle at 20% 100%, rgba(224, 182, 76, 0.22), transparent 12rem),
    rgba(255, 248, 235, 0.7);
}

.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(248, 238, 220, 0.1);
  border: 1px solid rgba(248, 238, 220, 0.18);
  color: rgba(248, 238, 220, 0.8);
  font: 700 0.66rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.status-pill .dot {
  width: 0.45rem; height: 0.45rem;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(217, 233, 191, 0.22);
  animation: blink-status 2.4s ease-in-out infinite;
}
.status-pill--soon {
  background: rgba(182, 216, 221, 0.18);
  border-color: rgba(46, 100, 110, 0.32);
  color: var(--ink);
}
.status-pill--soon .dot { background: var(--blue); box-shadow: 0 0 0 3px rgba(182, 216, 221, 0.28); }
.status-pill--diy {
  background: rgba(224, 182, 76, 0.18);
  border-color: rgba(140, 100, 30, 0.32);
  color: var(--ink);
}
.status-pill--diy .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(224, 182, 76, 0.28); }

.client__head { display: flex; flex-direction: column; gap: 0.45rem; position: relative; z-index: 2; }
.client__head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 720;
  letter-spacing: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 0.96;
}
.client--flagship .client__head h3 { color: var(--paper); }
.client__head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.5;
}
.client--flagship .client__head p { color: var(--muted-on-dark); }

.client__platforms {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  position: relative; z-index: 2;
}
.client__platforms li {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(248, 238, 220, 0.1);
  border: 1px solid rgba(248, 238, 220, 0.18);
  color: var(--paper);
  font: 700 0.66rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client .button { align-self: flex-start; position: relative; z-index: 2; margin-top: 0.2rem; }

/* ---------- Phone mockup (inside flagship card) ---------- */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 0.6rem 0;
}

.phone-mock {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 19;
  border-radius: 2rem;
  padding: 5px;
  background: linear-gradient(150deg, #2d4a42, #0d1c19);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(248, 238, 220, 0.08) inset,
    0 0 36px rgba(217, 233, 191, 0.12);
  overflow: hidden;
}

.phone-mock::before {
  content: "";
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 14px;
  background: #060d0c;
  border-radius: 999px;
  z-index: 5;
}

.phone-mock__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #0d1c19 0%, #050a09 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-mock__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(217, 233, 191, 0.04) 0%, transparent 30%);
  pointer-events: none;
  z-index: 4;
  animation: scan-down 6s ease-in-out infinite;
  opacity: 0.6;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 14px 6px;
  font: 700 8px/1 "JetBrains Mono", monospace;
  color: var(--paper);
  letter-spacing: 0.04em;
}

.phone-status .battery {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.phone-status .battery::after {
  content: "";
  width: 11px; height: 5px;
  border: 1px solid var(--paper);
  border-radius: 1px;
  position: relative;
  background: linear-gradient(90deg, var(--paper) 70%, transparent 70%);
  background-size: 100% 100%;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  border-bottom: 1px solid rgba(248, 238, 220, 0.08);
}
.phone-header__avatar {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay), var(--gold));
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(217, 233, 191, 0.2);
}
.phone-header__name {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.phone-header__name strong {
  color: var(--paper);
  font: 700 10px/1 "Manrope", sans-serif;
  letter-spacing: 0;
}
.phone-header__name span {
  margin-top: 3px;
  color: var(--sage-2);
  font: 600 7px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phone-header__action {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: rgba(217, 233, 191, 0.12);
  color: var(--sage);
  display: grid;
  place-items: center;
}
.phone-header__action svg { width: 11px; height: 11px; }

.phone-feed {
  flex: 1;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.phone-feed .bubble {
  padding: 5px 8px;
  border-radius: 11px;
  font: 500 7.5px/1.4 "Manrope", sans-serif;
  max-width: 75%;
}
.phone-feed .bubble--in {
  align-self: flex-start;
  background: rgba(248, 238, 220, 0.09);
  color: var(--paper);
  border-bottom-left-radius: 3px;
}
.phone-feed .bubble--out {
  align-self: flex-end;
  background: var(--sage);
  color: var(--ink);
  border-bottom-right-radius: 3px;
  font-weight: 600;
}
.phone-feed .bubble--media {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(248, 238, 220, 0.06);
  border: 1px solid rgba(248, 238, 220, 0.12);
  color: var(--sage);
}
.phone-feed .bubble--media svg { width: 10px; height: 10px; }
.phone-feed .meta {
  font: 600 6.5px/1 "JetBrains Mono", monospace;
  color: rgba(248, 238, 220, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2px 0 0;
  align-self: center;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 6px 10px;
  border-top: 1px solid rgba(248, 238, 220, 0.08);
  background: rgba(0, 0, 0, 0.3);
}
.phone-tabs .tab {
  display: grid;
  place-items: center;
  padding: 6px 0 4px;
  color: rgba(248, 238, 220, 0.36);
  gap: 2px;
}
.phone-tabs .tab svg { width: 12px; height: 12px; }
.phone-tabs .tab span {
  font: 700 5.5px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phone-tabs .tab.is-active { color: var(--sage); }
.phone-tabs .tab.is-active span { color: var(--sage); }

/* ---------- Soon grid (planned clients) ---------- */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}
.soon-slot {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem;
  border: 1px dashed rgba(16, 33, 29, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 248, 235, 0.5);
  position: relative;
  overflow: hidden;
}
.soon-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(182, 216, 221, 0.22) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: shimmer 6s linear infinite;
  pointer-events: none;
}
.soon-slot__icon {
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 0.5rem;
  background: rgba(16, 33, 29, 0.06);
  color: var(--ink);
}
.soon-slot__icon svg { width: 1rem; height: 1rem; }
.soon-slot__label {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.soon-slot__label strong {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 720;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.soon-slot__label span {
  color: rgba(16, 33, 29, 0.5);
  font: 700 0.58rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- DIY blueprint (build your own) ---------- */
.blueprint {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  border: 1px dashed rgba(140, 100, 30, 0.4);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(140, 100, 30, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 100, 30, 0.06) 1px, transparent 1px),
    rgba(224, 182, 76, 0.05);
  background-size: 1rem 1rem;
  z-index: 2;
}
.blueprint__plus {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: rgba(224, 182, 76, 0.16);
  border: 1px solid rgba(140, 100, 30, 0.3);
  color: var(--ink);
  animation: plus-spin 6s ease-in-out infinite;
}
.blueprint__plus svg { width: 1.5rem; height: 1.5rem; }
.blueprint__caption {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(140, 100, 30, 0.78);
  font: 700 0.62rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Foundation bar (Powered by Dune Core) ---------- */
.foundation {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 0% 50%, rgba(217, 233, 191, 0.16), transparent 18rem),
    radial-gradient(circle at 100% 50%, rgba(200, 100, 61, 0.14), transparent 18rem),
    linear-gradient(135deg, #1c342e, #0e1c19);
  color: var(--paper);
  border: 1px solid rgba(248, 238, 220, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.foundation::before {
  content: "Powered by";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.85rem 0.45rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(248, 238, 220, 0.12);
  border-top: 0;
  color: var(--sage);
  font: 700 0.6rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.foundation__brand { display: flex; align-items: center; gap: 1.2rem; }
.foundation__mark {
  width: 4.4rem; height: 4.4rem;
  border-radius: 1.05rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(248, 238, 220, 0.16) inset;
  flex-shrink: 0;
}
.foundation__mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.foundation__brand h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  line-height: 0.96;
  color: var(--paper);
}
.foundation__brand p {
  margin: 0.45rem 0 0;
  color: var(--muted-on-dark);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  max-width: 38ch;
}

.foundation__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.foundation-badge {
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(248, 238, 220, 0.06);
  border: 1px solid rgba(248, 238, 220, 0.14);
}
.foundation-badge span {
  display: block;
  color: rgba(248, 238, 220, 0.45);
  font: 700 0.58rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.foundation-badge strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--sage);
  font: 700 0.85rem/1 "JetBrains Mono", monospace;
}
.foundation__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

/* ---------- Under the hood ---------- */
.under-hood {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.under-hood__split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.under-hood__copy h3 {
  margin-bottom: 0.7rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 720;
  letter-spacing: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  color: var(--paper);
}

.under-hood__copy p {
  max-width: 32rem;
  color: var(--muted-on-dark);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}

.under-hood__copy p + p { margin-top: 0.9rem; }

.under-hood__copy code {
  background: rgba(248, 238, 220, 0.1);
  color: var(--sage);
  padding: 0.05rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.92em;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.crypto-grid dt {
  color: rgba(248, 238, 220, 0.72);
  font: 700 0.62rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.crypto-grid dd {
  margin: 0 0 0.6rem;
  color: var(--sage);
  font: 700 0.84rem/1.3 "JetBrains Mono", monospace;
}

.code-block {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(248, 238, 220, 0.14);
  background:
    radial-gradient(circle at 40% 0%, rgba(217, 233, 191, 0.14), transparent 14rem),
    linear-gradient(160deg, rgba(28, 52, 46, 0.96), rgba(16, 33, 29, 0.98));
  color: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1.1rem, 2.2vw, 1.5rem);
  border-bottom: 1px solid rgba(248, 238, 220, 0.12);
  color: var(--muted-on-dark);
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-block__head strong { color: var(--sage); font-weight: 700; }

.snippet-dots { display: inline-flex; gap: 0.4rem; }
.snippet-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(248, 238, 220, 0.22);
}
.snippet-dots span:first-child { background: var(--clay); }
.snippet-dots span:nth-child(2) { background: var(--gold); }
.snippet-dots span:last-child { background: var(--sage-2); }

.code-block pre {
  margin: 0;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.8rem, 0.95vw, 0.93rem);
  line-height: 1.75;
  overflow-x: auto;
}

.tok-kw    { color: var(--blue); }
.tok-name  { color: var(--sage); }
.tok-fn    { color: var(--gold); }
.tok-str   { color: #f0a48a; }
.tok-co    { color: rgba(248, 238, 220, 0.55); font-style: italic; }
.tok-class { color: #d8b4ff; }

.libs-shell {
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(248, 238, 220, 0.14);
  background: rgba(248, 238, 220, 0.04);
}

.libs-table {
  width: 100%;
  border-collapse: collapse;
  font: 0.86rem/1.55 "JetBrains Mono", monospace;
}
.libs-table th, .libs-table td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(248, 238, 220, 0.1);
}
.libs-table thead th {
  background: rgba(16, 33, 29, 0.5);
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}
.libs-table tbody tr:last-child td { border-bottom: 0; }
.libs-table td.lib-name { color: var(--paper); font-weight: 800; white-space: nowrap; }
.libs-table td.lib-aud { color: var(--clay); font-weight: 700; white-space: nowrap; }
.libs-table td.lib-desc {
  color: var(--muted-on-dark);
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
}

.under-hood__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Closing ---------- */
.closing-section {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.15rem, 5vw, 5rem);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.closing-section::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 20% 30%, rgba(200, 100, 61, 0.14), transparent 35%);
  animation: drift-orb 14s ease-in-out infinite;
  z-index: 0;
}
.closing-section > * { position: relative; z-index: 1; }
.closing-section h2 {
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 760;
  letter-spacing: 0;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.94;
}
.closing-section p {
  max-width: 42rem;
  color: var(--muted-on-dark);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
}
.closing-section .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--muted-on-dark);
  border-top: 1px solid var(--line-light);
  padding: 2.4rem clamp(1.15rem, 5vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font: 700 0.7rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
footer .footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
footer a { color: var(--sage); transition: color 200ms ease; }
footer a:hover { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero,
  .section-heading,
  .comparison-heading,
  .under-hood__split,
  .ecosystem__clients,
  .foundation {
    grid-template-columns: 1fr;
  }
  .client--flagship { grid-row: auto; }
  .foundation__meta { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 7.5rem; }
  .hero h1 { max-width: 13ch; }
  .section-heading h2, .comparison-heading h2 { max-width: 14ch; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-card { grid-template-columns: 4.4rem 1fr; }
  .flow-card__visual { grid-column: 2; }
  .crypto-grid { grid-template-columns: repeat(2, 1fr); }
  .flow--grid { grid-template-columns: 1fr; }
  .flow-card--compact.flow-card--wide {
    grid-template-columns: 2.4rem 1fr;
  }
  .flow-card--compact.flow-card--wide .flow-card__visual {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.3rem;
  }
}

@media (max-width: 760px) {
  .site-nav { position: sticky; min-height: 4rem; }
  .site-nav nav { gap: 0.7rem; font-size: 0.66rem; }
  .site-nav nav a:not(.button) { display: none; }
  .brand__label .brand__tag { display: none; }
  .hero { min-height: auto; padding-top: 3.5rem; }
  .hero h1 { max-width: 12ch; font-size: clamp(3rem, 13vw, 4.6rem); }
  .hero__lede { font-size: 1.04rem; }
  .network-card { min-height: 33rem; padding: 0.8rem; }
  .mesh-stage { min-height: 28rem; }
  .mesh-core { width: 14rem; }
  .device-node { min-width: 8.6rem; padding: 0.65rem 0.7rem; gap: 0.5rem; }
  .device-node__icon { width: 1.7rem; height: 1.7rem; }
  .device-node--family, .device-node--club { left: 3%; }
  .device-node--studio, .device-node--home { right: 3%; }
  .no-server {
    width: calc(100% - 2rem);
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 21rem; }
  .flow-card { grid-template-columns: 1fr; }
  .flow-card__visual { grid-column: 1; }
  .libs-shell { overflow-x: auto; }
  .libs-table { min-width: 36rem; }
  .closing-section h2 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .crypto-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .reveal--stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
