/* ============================================================
   Syna — type, color, and the quiet parts
   ============================================================ */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-soft: #0b0d11;
  --panel: #0d0f13;
  --ink: #f3f1ea;
  --muted: #a3a199;
  --muted-2: #85837b;
  --muted-strong: #c8c4b9;
  --line: rgba(243, 241, 234, 0.09);
  --line-strong: rgba(243, 241, 234, 0.18);
  --pink: #ff5cb8;
  --orange: #ff9a4d;
  --lime: #c6ff6a;
  --cyan: #5ce9ff;
  --violet: #8b7cff;
  --rainbow: linear-gradient(90deg, #ff5cb8 0%, #ff9a4d 20%, #c6ff6a 40%, #5ce9ff 60%, #8b7cff 80%, #ff5cb8 100%);
  --shell: 1200px;
  --radius: 22px;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1000px 700px at 14% -12%, rgba(255, 92, 184, 0.10), transparent 62%),
    radial-gradient(900px 640px at 94% -4%, rgba(92, 233, 255, 0.07), transparent 60%);
}

::selection { background: rgba(255, 92, 184, 0.32); color: #fff; }

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

a:hover { text-decoration: none; }

img, svg { display: block; }

img { max-width: 100%; height: auto; }

svg {
  flex: none;
  width: 18px;
  height: 18px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

pre, code { font-family: var(--font-mono); }

.i {
  width: 18px;
  height: 18px;
}
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: border-color 250ms ease, background 250ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 10, 0.9);
}

.header-bar {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #f6f4ee 0%, #d7d3c8 50%, #9e9a91 100%);
  -webkit-mask: url("assets/syna-mark.png") center / contain no-repeat;
  mask: url("assets/syna-mark.png") center / contain no-repeat;
}
.brand-name {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.87rem;
}
.nav-github { display: none; }
.nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--rainbow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 106, 0.75);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 180ms ease;
}
.header-link:hover { color: var(--ink); }
.header-link .i-sm { transition: transform 180ms ease; }
.header-link:hover .i-sm { transform: translate(2px, -2px); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
}
.menu-bars {
  display: grid;
  gap: 4px;
  width: 15px;
}
.menu-bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

/* ============================================================
   Buttons and links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background: var(--pink);
  color: #0a0b0d;
  box-shadow: 0 12px 34px rgba(255, 92, 184, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  background: var(--pink);
  box-shadow: 0 16px 42px rgba(255, 92, 184, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 200%;
  z-index: -1;
  background: var(--rainbow);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: buttonRainbow 9s linear infinite;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -100% 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.66) 45%, rgba(255, 255, 255, 0.12) 58%, transparent 100%);
  opacity: 0;
  transform: translateY(-130%);
  animation: buttonSheen 5.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: underline;
  text-decoration-color: rgba(243, 241, 234, 0.22);
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.text-link:hover {
  color: var(--ink);
  text-decoration-color: var(--pink);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(62px, 9vh, 116px) 0 clamp(54px, 8vh, 96px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow-dash {
  width: 26px;
  height: 1px;
  background: var(--rainbow);
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(3.6rem, 7.2vw, 6.5rem);
  line-height: 0.91;
  letter-spacing: -0.038em;
}

.flow-text {
  background: linear-gradient(100deg, #ff5cb8 0%, #ff9a4d 20%, #c6ff6a 40%, #5ce9ff 60%, #8b7cff 80%, #ff5cb8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textFlow 11s linear infinite;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
}
.hero-actions .text-link {
  margin-left: 4px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 40px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-facts li + li::before {
  content: "·";
  padding: 0 14px;
  color: var(--line-strong);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 42vw, 560px);
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.45));
}

.mark-glow {
  position: absolute;
  width: 82%;
  height: 58%;
  transform: rotate(-14deg);
  background: linear-gradient(100deg, transparent 4%, rgba(255, 92, 184, 0.18) 32%, rgba(92, 233, 255, 0.14) 68%, transparent 96%);
  filter: blur(54px);
  opacity: 0.7;
  animation: markGlow 9s ease-in-out infinite;
}

.mark {
  position: relative;
  overflow: hidden;
  width: min(100%, 540px);
  aspect-ratio: 1;
  -webkit-mask: url("assets/syna-mark.png") center / contain no-repeat;
  mask: url("assets/syna-mark.png") center / contain no-repeat;
}

.mark-rainbow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 200%;
  background: var(--rainbow);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: markFlow 12s linear infinite;
}

.mark-sheen {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent 12%, rgba(255, 255, 255, 0.48) 50%, transparent 88%);
  transform: translateX(-140%) skewX(-10deg);
  opacity: 0;
  animation: markSheen 9s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  mix-blend-mode: soft-light;
}

/* ============================================================
   Fact strip
   ============================================================ */

.fact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .i-sm { color: var(--muted-2); }

/* ============================================================
   Section scaffolding
   ============================================================ */

.section {
  padding-top: clamp(88px, 12vh, 146px);
  scroll-margin-top: 90px;
}
.section:last-of-type { padding-bottom: clamp(88px, 12vh, 140px); }

.section-head {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: clamp(38px, 5vw, 60px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--rainbow);
}
.section-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  margin-top: 22px;
}
.section-head h2 {
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
}
.section-head h2 em,
.cta-copy h2 em,
.page-hero h1 em {
  font-style: italic;
  color: var(--muted-strong);
}
.section-intro {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.72;
}

/* ============================================================
   Bento cards
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 296px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 62%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-wide { grid-column: span 7; }
.card-relay { grid-column: span 5; }

.card-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 26px;
  align-items: center;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.card h3 {
  margin: 20px 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.65;
}

/* Group roster */
.roster {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
}
.roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.roster-epoch { color: var(--cyan); }
.roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(243, 241, 234, 0.05);
}
.roster-row:last-child { border-bottom: 0; }
.avatar {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #0a0b0d;
  font-size: 0.62rem;
  font-weight: 700;
}
.a1 { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.a2 { background: linear-gradient(135deg, var(--cyan), var(--lime)); }
.a3 { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.a4 { background: rgba(255, 255, 255, 0.1); color: var(--ink); font-size: 0.54rem; }
.roster-name { color: var(--ink); }
.role {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role-owner { color: var(--lime); }
.roster-more .roster-name { color: var(--muted); }

/* Terminal */
.terminal {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08090c;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.terminal-bar i:first-child { background: rgba(255, 92, 184, 0.55); }
.terminal-bar span {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.terminal pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: #cfd1d4;
  font-size: 0.7rem;
  line-height: 1.8;
}
.t-prompt { color: var(--lime); }
.t-dim { color: var(--muted-2); }

/* Fingerprint */
.fingerprint {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 24px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}
.fingerprint span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fingerprint code {
  color: var(--ink);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
}

/* Attachment chunks */
.chunks {
  margin-top: 24px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}
.chunk-head, .chunk-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.7rem;
}
.chunk-head span:last-child { color: var(--ink); font-family: var(--font-mono); }
.chunk-track {
  height: 5px;
  margin: 11px 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}
.chunk-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--rainbow);
}
.chunk-meta {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* No-recovery ledger */
.recovery {
  margin-top: 24px;
  padding: 4px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.2);
}
.recovery > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 241, 234, 0.05);
  color: var(--muted);
  font-size: 0.7rem;
}
.recovery > div:last-child { border-bottom: 0; }
.recovery .none {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ============================================================
   System architecture
   ============================================================ */

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
}
.arch-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 8, 10, 0.5);
}
.arch-index {
  margin-bottom: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
.arch-node strong {
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.arch-node span:last-child {
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.4;
}
.arch-link {
  position: relative;
  width: clamp(18px, 3vw, 46px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.packet {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(92, 233, 255, 0.9);
  opacity: 0;
  animation: packetX 4.4s linear infinite;
}
.arch-link:nth-child(4) .packet { animation-delay: 1.4s; }
.arch-link:nth-child(6) .packet { animation-delay: 2.8s; }

.arch-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.75rem;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(46px, 6vw, 74px);
  border-top: 1px solid var(--line);
}
.step {
  padding: 24px 34px 0 0;
  border-right: 1px solid var(--line);
}
.step + .step { padding-left: 34px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step-num {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.step h3 {
  margin: 10px 0 7px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ============================================================
   Download
   ============================================================ */

.downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.platform:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}
.platform-primary {
  border-color: rgba(255, 92, 184, 0.3);
  background:
    radial-gradient(280px 180px at 20% 0%, rgba(255, 92, 184, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}
.platform-primary:hover { border-color: rgba(255, 92, 184, 0.5); }
.platform-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.platform-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
}
.platform-arrow {
  color: var(--muted-2);
  transition: color 200ms ease, transform 200ms ease;
}
.platform:hover .platform-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}
.platform-name {
  margin-top: 22px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.platform-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.tag {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tag-warn { color: var(--orange); }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.notice {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 92, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 92, 184, 0.045);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.notice strong { color: var(--ink); font-weight: 600; }
.notice a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(243, 241, 234, 0.28);
  text-underline-offset: 3px;
}
.notice a:hover { text-decoration-color: var(--pink); }

/* ============================================================
   Security
   ============================================================ */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.security-item {
  padding: 32px 44px 32px 0;
  border-bottom: 1px solid var(--line);
}
.security-item:nth-child(2n) {
  padding-right: 0;
  padding-left: 44px;
  border-left: 1px solid var(--line);
}
.security-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-strong);
}
.security-item h3 {
  margin: 16px 0 7px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.security-item p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.68;
}

.audit-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}
.audit-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 154, 77, 0.34);
  border-radius: 999px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.audit-note p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}
.audit-note .text-link { white-space: nowrap; }

/* ============================================================
   Licensing
   ============================================================ */

.license-map { border-top: 1px solid var(--line); }
.license-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.license-part {
  color: var(--ink);
  font-size: 0.9rem;
}
.license-term {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-align: right;
}
.license-term i {
  padding: 0 4px;
  color: var(--muted-2);
  font-style: normal;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  margin-top: clamp(52px, 7vw, 84px);
  padding: clamp(32px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(255, 92, 184, 0.12), transparent 66%),
    radial-gradient(620px 320px at 100% 100%, rgba(92, 233, 255, 0.08), transparent 66%),
    #0b0d11;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.05), transparent 62%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.cta-panel:hover::after { opacity: 1; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-thread {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff5cb8, #ff9a4d, #c6ff6a, #5ce9ff, #8b7cff, transparent);
  background-size: 200% 100%;
  animation: threadFlow 13s linear infinite;
}
.cta-copy { position: relative; }
.cta-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.032em;
}
.cta-copy p:not(.kicker) {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cta-actions .btn { min-width: 210px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 26px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}
.footer-brand { max-width: 390px; }
.footer-brand p {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.65;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 28px;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-nav a { transition: color 180ms ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.7rem;
}

/* ============================================================
   Interior pages
   ============================================================ */

.page {
  padding: 70px 0 110px;
}
.page-hero {
  max-width: 900px;
  padding-bottom: 40px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.034em;
}
.page-hero .lead { max-width: 720px; }
.page-hero .hero-actions { margin-top: 26px; }
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 0.76rem;
}
.status-line::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(198, 255, 106, 0.7);
}
.mt-22 { margin-top: 22px; }

.prose {
  max-width: 790px;
}
.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--font-sans);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prose p, .prose li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}
.prose p + p { margin-top: 14px; }
.prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.prose li + li { margin-top: 7px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 0.84em;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(243, 241, 234, 0.28);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--pink); }

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
th, td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* 404 */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.error-page h1 {
  margin: 16px 0 10px;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 0.92;
}
.error-page .brand-mark { margin: 0 auto 22px; width: 40px; height: 40px; }
.error-page .kicker { justify-content: center; }
.error-page p {
  margin-bottom: 24px;
  color: var(--muted);
}

/* ============================================================
   Motion
   ============================================================ */

.js [data-reveal] {
  opacity: 0;
}
.js [data-reveal].is-in {
  opacity: 1;
  animation: revealIn 760ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-copy > * {
  animation: introUp 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-copy > *:nth-child(4) { animation-delay: 180ms; }
.hero-copy > *:nth-child(5) { animation-delay: 240ms; }
.hero-art .mark {
  animation: introMark 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes introUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes introMark {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes textFlow {
  to { background-position: 200% 0; }
}
@keyframes markFlow {
  to { transform: translateX(-50%); }
}
@keyframes markSheen {
  0%, 10% { transform: translateX(-140%) skewX(-10deg); opacity: 0; }
  24% { opacity: 0.6; }
  70% { opacity: 0.35; }
  92%, 100% { transform: translateX(330%) skewX(-10deg); opacity: 0; }
}
@keyframes markGlow {
  0%, 100% { opacity: 0.55; transform: rotate(-14deg) scale(0.98); }
  50% { opacity: 0.82; transform: rotate(-14deg) scale(1.03); }
}
@keyframes buttonRainbow {
  to { transform: translateX(-50%); }
}
@keyframes buttonSheen {
  0%, 14% { transform: translateY(-135%); opacity: 0; }
  30% { opacity: 0.85; }
  68% { opacity: 0.32; }
  100% { transform: translateY(135%); opacity: 0; }
}
@keyframes threadFlow {
  to { background-position: 200% 0; }
}
@keyframes packetX {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding-top: 48px;
  }
  .hero-art {
    order: -1;
    min-height: 0;
    padding: 12px 0 6px;
  }
  .hero .mark { width: min(300px, 52vw); }
  .hero h1 { font-size: clamp(3.4rem, 8.4vw, 5.8rem); }
  .lead { max-width: 620px; }
  .hero-facts { margin-top: 32px; }

  .section-head-grid { grid-template-columns: 1fr 0.85fr; gap: 36px; }

  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card-wide, .card-relay { grid-column: span 1; }
  .card-wide { grid-template-columns: 1fr; }
  .card-wide .roster { margin-top: 4px; }
  .bento > .card:last-child { grid-column: span 2; min-height: 210px; }

  .architecture {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: stretch;
    padding: 20px;
  }
  .arch-node { min-height: 92px; }
  .arch-link {
    width: 1px;
    height: 30px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  }
  .packet {
    top: 0;
    left: -2px;
    animation-name: packetY;
  }
  .arch-link:nth-child(4) .packet { animation-delay: 1.4s; }
  .arch-link:nth-child(6) .packet { animation-delay: 2.8s; }

  .steps { grid-template-columns: 1fr; }
  .step {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step + .step { padding-left: 0; }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .step p { max-width: 52ch; }

  .downloads { grid-template-columns: 1fr 1fr; }
  .platform { min-height: 220px; }

  .security-grid { grid-template-columns: 1fr; }
  .security-item,
  .security-item:nth-child(2n) {
    padding: 28px 0;
    border-left: 0;
  }
  .security-item p { max-width: 56ch; }

  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }

  .footer-top { gap: 40px; }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 32px); }

  .header-bar {
    min-height: 64px;
    justify-content: flex-end;
  }
  .header-bar .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header-bar .brand-mark { width: 36px; height: 36px; }
  .header-bar .brand-name { font-size: 1.15rem; }
  .nav { display: none; }
  .header-side .status-pill { display: none; }
  .header-side .header-link { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }

  .site-header.menu-open .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0a0b0e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  }
  .site-header.menu-open .nav a {
    padding: 13px 12px;
    border-radius: 9px;
    font-size: 0.95rem;
  }
  .site-header.menu-open .nav a + a {
    border-top: 0;
  }
  .site-header.menu-open .nav a + a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--line);
    pointer-events: none;
  }
  .site-header.menu-open .nav .nav-github {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
  }
  .site-header.menu-open .nav a:hover { background: rgba(255, 255, 255, 0.04); }
  .site-header.menu-open .nav a::after { display: none; }
  .site-header.menu-open .menu-bars i:first-child { transform: translateY(2.5px) rotate(45deg); }
  .site-header.menu-open .menu-bars i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: rgba(7, 8, 10, 0.8);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .hero {
    padding-top: 22px;
    padding-bottom: 42px;
  }
  .hero-art { padding: 0; }
  .hero .mark { width: clamp(190px, 32vw, 260px); }
  .hero h1 {
    margin: 18px 0;
    font-size: clamp(2.9rem, 11.5vw, 4.4rem);
  }
  .hero-actions { align-items: stretch; }
  .hero-actions .text-link { margin: 6px 0 0; }
  .hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 26px;
    font-size: 0.63rem;
  }
  .hero-facts li + li::before { content: none; }

  .fact-row { grid-template-columns: 1fr 1fr; }
  .fact {
    min-height: 58px;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
  }
  .fact:first-child { padding-left: 14px; border-top: 0; }
  .fact:nth-child(2) { border-top: 0; }
  .fact:nth-child(odd) { border-left: 0; }

  .section { padding-top: 76px; }
  .section-head-grid { grid-template-columns: 1fr; gap: 18px; }
  .section-intro { max-width: 54ch; }

  .bento { grid-template-columns: 1fr; }
  .card, .card-wide, .card-relay, .bento > .card:last-child {
    grid-column: span 1;
    min-height: 0;
  }
  .card { padding: 22px; }
  .card-wide { grid-template-columns: 1fr; }
  .roster { margin-top: 20px; }

  .downloads { grid-template-columns: 1fr; }
  .platform { min-height: 200px; }

  .audit-note {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
  .audit-note .text-link { justify-self: start; }

  .license-row { flex-direction: column; gap: 4px; }
  .license-term { text-align: left; }

  .cta-panel { padding: 28px 22px; border-radius: 22px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; min-width: 0; }
  .cta-actions .text-link { justify-content: center; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { gap: 10px 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 34px; }

  .page { padding: 46px 0 80px; }
  .page-hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .page-hero { padding-bottom: 30px; margin-bottom: 32px; }
}

@media (max-width: 600px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; }
  .hero-actions .text-link {
    justify-self: center;
    margin: 4px 0 0;
  }

  .section { padding-top: 62px; }
  .section:last-of-type { padding-bottom: 72px; }
  .card { padding: 20px; }

  .downloads { grid-template-columns: 1fr; }
  .platform {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    min-height: 0;
    padding: 16px 18px;
  }
  .platform-top { display: contents; }
  .platform-icon { grid-column: 1; grid-row: 1 / span 2; }
  .platform-arrow { grid-column: 3; grid-row: 1; }
  .platform-name { grid-column: 2; grid-row: 1; margin-top: 0; }
  .platform-note { grid-column: 2; grid-row: 2; margin-top: 0; }
  .tag {
    grid-column: 2 / span 2;
    grid-row: 3;
    margin-top: 0;
    padding-top: 8px;
  }

  .download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .download-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.55rem, 12.5vw, 3.5rem); }
  .section-head h2 { font-size: clamp(2.4rem, 10.5vw, 3.5rem); }
  .cta-copy h2 { font-size: clamp(2.2rem, 9.8vw, 3rem); }
}

@media (max-width: 380px) {
  .eyebrow { gap: 8px; font-size: 0.6rem; letter-spacing: 0.09em; }
  .eyebrow-dash { width: 18px; }
  .hero { padding-top: 18px; }
  .hero .mark { width: min(160px, 50vw); }
}

@media (max-width: 340px) {
  .fact-row { grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact:nth-child(2) { border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .mark-sheen { display: none; }
  .packet { display: none; }
  .btn-primary::after { display: none; }
}

@keyframes packetY {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
