:root {
  color-scheme: dark;
  --surface: #120e1f;
  --surface-raised: #1b1530;
  --surface-sunken: #251d3d;
  --ink: #f1edf8;
  --ink-muted: #b0a8c6;
  --brand: #9084c0;
  --brand-ink: #b8aee3;
  --brand-soft: #2a2248;
  --brand-deep: #3d3168;
  --accent: #ec7288;
  --on-brand: #120e1f;
  --line: #352c52;
  --line-strong: #7a6fa0;
  --caution-soft: #33240c;
  --caution-ink: #f0b85a;
  --positive-soft: #10293a;
  --positive-ink: #6cc3e2;
  --principle-copy: #d9d3e8;
  --focus: #ec7288;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.4);
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --content: 1200px;
  --faq: 800px;
  --pad: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/22px var(--font-sans);
}

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--content), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.nav {
  width: min(var(--content), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  padding-block: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
}

.brand img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button-primary { background: var(--brand); color: var(--on-brand); }
.button-secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.button-quiet { background: transparent; color: var(--ink); }
.button:disabled { cursor: default; }

.hero {
  padding-block: 64px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  align-self: flex-start;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fine { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.hero-card { flex: 1 1 440px; min-width: 0; }

.preview-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-rest);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal {
  box-shadow: var(--shadow-card);
  gap: 16px;
}

.card-top, .chip-row, .path-row, .transfer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-top { justify-content: space-between; }
.card h2, .card h3 { margin: 0; }
.card h2 { font-size: 16px; line-height: 22px; font-weight: 600; }

.chip {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.chip-positive { background: var(--positive-soft); color: var(--positive-ink); }
.chip-caution { background: var(--caution-soft); color: var(--caution-ink); }
.chip-brand {
  background: var(--surface-raised);
  color: var(--brand-ink);
  border: 1px solid var(--line);
}

.path-row {
  background: var(--surface-sunken);
  border-radius: 8px;
  padding: 16px;
  gap: 12px;
}

.path {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.path-label, .label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.sources {
  border-block: 1px solid var(--line);
  background: var(--surface-raised);
}

.sources-row {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.source-list { display: flex; flex-wrap: wrap; gap: 8px; }

.source {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 500;
}

.section { padding-block: 64px 48px; }
.section-intro { max-width: 640px; display: flex; flex-direction: column; gap: 8px; }
h2.display {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.section-intro p { margin: 0; color: var(--ink-muted); }

.steps, .split { display: flex; flex-wrap: wrap; gap: 24px; }
.steps { margin-top: 32px; }
.step, .split-card { flex: 1 1 280px; min-width: 0; }
.split-card { flex-basis: 440px; }
.step h3, .plain h3 {
  margin: 0;
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step-no {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--brand-ink);
}
.step p, .muted { margin: 0; color: var(--ink-muted); }

.caution-panel {
  background: var(--caution-soft);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.caution-label { color: var(--caution-ink); }
.question-copy { margin: 0; }

.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-sunken);
  overflow: hidden;
}
.meter span { display: block; width: 100%; height: 8px; background: var(--brand); }
.transfer-meta {
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-muted);
}

.principles { background: var(--brand-deep); color: var(--ink); }
.principles .wrap { padding-block: 64px; display: flex; flex-direction: column; gap: 32px; }
.principle-list { display: flex; flex-wrap: wrap; gap: 32px; }
.principle { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.principle h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.principle p { margin: 0; color: var(--principle-copy); }
.dot { width: 8px; height: 8px; border-radius: 999px; }
.dot-accent { background: var(--accent); }
.dot-magenta { background: #d46aa6; }
.dot-lilac { background: #b8aee3; }
.caution-panel .muted { color: #e3d9c6; }
.label-applied { color: var(--positive-ink); }

.faq {
  width: min(var(--faq), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq-list summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.faq-list p { margin: 8px 0 0; color: var(--ink-muted); }

.cta-band { padding-bottom: 64px; }
.cta {
  background: var(--brand-soft);
  border-radius: 14px;
  padding: 48px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.cta-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-copy p { margin: 0; color: var(--ink-muted); }

#join-form {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.field span { font-size: 12px; line-height: 16px; font-weight: 600; }
.field input {
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#join-status { margin: 0; flex: 1 1 220px; font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}
.footer-row {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 20px; height: 20px; }
.footer-brand strong { color: var(--ink); }

svg { flex: none; }

.hero-media {
  flex: 1 1 440px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
}

.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.preview-band { padding-bottom: 48px; }

.flow {
  border-block: 1px solid var(--line);
  background: var(--surface-raised);
  padding-block: 48px;
}

.flow-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 640px;
}

.flow-intro p { margin: 0; color: var(--ink-muted); }

.flow-map {
  width: 100%;
  height: auto;
  display: block;
}

.flow-map text {
  font-family: var(--font-sans);
  font-size: 15px;
  fill: var(--ink);
}

.flow-map .dest {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--ink-muted);
}

.stream-bed {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.28;
}

.stream-packet,
.stream-mix {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.stream-packet {
  stroke-dasharray: 3 13;
  animation: flow 2.8s linear infinite;
}

.stream-mix {
  stroke-dasharray: 3 97;
  stroke-dashoffset: var(--shift);
  animation: flow-mix 4.5s linear infinite;
}

@keyframes flow {
  to { stroke-dashoffset: -64; }
}

@keyframes flow-mix {
  from { stroke-dashoffset: var(--shift); }
  to { stroke-dashoffset: calc(var(--shift) - 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .stream-packet,
  .stream-mix {
    animation: none;
  }

  .stream-packet { stroke-dasharray: none; }
  .stream-mix { stroke-dashoffset: var(--shift); }
}
