/* Agent Escrow stub — product-grade local demo (matches Midnight Lab) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #05070f;
  --bg-elevated: rgba(14, 20, 36, 0.72);
  --bg-card: rgba(16, 24, 48, 0.68);
  --text: #eef2ff;
  --muted: #9aa8c7;
  --accent: #7c9cff;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --danger: #fb7185;
  --bad: #fb7185;
  --fail: #fb7185;
  --line: rgba(124, 156, 255, 0.22);
  --line-strong: rgba(124, 156, 255, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(124, 156, 255, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #a5b8ff; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
code, pre { font-family: var(--mono); font-size: 0.88em; }
code {
  background: rgba(124, 156, 255, 0.12);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  border: 1px solid rgba(124, 156, 255, 0.12);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 600;
  border-radius: 10px;
}
.skip-link:focus { left: 0.75rem; }

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(167, 139, 250, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 10% 80%, rgba(124, 156, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 30% at 85% 70%, rgba(34, 211, 238, 0.08), transparent 50%),
    linear-gradient(180deg, #05070f 0%, #080c1a 45%, #05070f 100%);
}
.bg-scene .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-scene .orb-a {
  width: min(48vw, 420px); height: min(48vw, 420px);
  top: -5%; right: 8%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.55), transparent 70%);
}
.bg-scene .orb-b {
  width: min(38vw, 340px); height: min(38vw, 340px);
  bottom: 5%; left: -8%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.45), transparent 70%);
  animation-delay: -7s;
}
.bg-scene .orb-c {
  width: min(28vw, 240px); height: min(28vw, 240px);
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
  animation-delay: -12s;
  opacity: 0.4;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 156, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 156, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black, transparent);
}
.bg-aurora-2 {
  left: auto; right: -8%; top: 42%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  animation-delay: -7s;
}
.bg-aurora {
  position: absolute;
  inset: -20% -10%;
  background: conic-gradient(
    from 200deg at 50% 40%,
    transparent 0deg,
    rgba(167, 139, 250, 0.1) 90deg,
    rgba(124, 156, 255, 0.08) 180deg,
    transparent 300deg
  );
  animation: spin-slow 56s linear infinite;
  opacity: 0.75;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3%, 5%) scale(1.06); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}
.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
nav { display: flex; flex-wrap: wrap; gap: 0.85rem; }
nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(124, 156, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.hero-block {
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18, 26, 52, 0.85), rgba(10, 14, 28, 0.55));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-block::before {
  content: "";
  position: absolute;
  inset: -30% -15% auto auto;
  width: 55%; height: 80%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 65%);
  pointer-events: none;
}
.hero-block > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-3);
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 25%, #c7d2fe 70%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { color: var(--muted); max-width: 44rem; margin: 0; font-size: 1.02rem; }
.lede strong { color: var(--text); }
.muted { color: var(--muted); font-size: 0.92rem; }

.banner {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.92rem;
  backdrop-filter: blur(8px);
}
.banner.error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  margin-top: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.card .role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.45rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.timeline-intro { margin: -0.35rem 0 1.1rem; }

/* --- Visual stepper --- */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.15);
  z-index: 0;
}
.stepper::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 8%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: var(--progress, 0%);
  z-index: 0;
  transition: width 0.4s var(--ease);
  max-width: 84%;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-dot {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: rgba(5, 8, 18, 0.9);
  box-shadow: 0 0 0 4px rgba(5, 7, 15, 0.6);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.step.done .step-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.step.done .step-label { color: var(--text); }
.step.current .step-dot {
  background: var(--accent-3);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2), 0 0 16px rgba(34, 211, 238, 0.35);
  transform: scale(1.12);
}
.step.current .step-label {
  color: var(--accent-3);
}

.branch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(124, 156, 255, 0.18);
}
.branch-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 18, 0.45);
  min-width: 140px;
  opacity: 0.45;
  transition: opacity 0.25s, border-color 0.25s, background 0.25s;
}
.branch-chip.active {
  opacity: 1;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}
.branch-chip.done {
  opacity: 1;
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.08);
}
.branch-label { font-weight: 650; font-size: 0.88rem; }
.branch-hint { font-size: 0.75rem; color: var(--muted); }

/* Milestone track */
.milestone-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.m-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  background: rgba(5, 8, 18, 0.55);
  transition: border-color 0.25s;
}
.m-card.active { border-color: rgba(34, 211, 238, 0.45); }
.m-card.released { border-color: rgba(110, 231, 183, 0.4); }
.m-card.rejected { border-color: rgba(248, 113, 113, 0.4); }
.m-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.m-id { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; }
.m-desc { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.65rem; }
.m-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.12);
  overflow: hidden;
}
.m-bar > span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s var(--ease);
}
.m-card.released .m-bar > span { background: linear-gradient(90deg, #34d399, var(--ok)); width: 100% !important; }
.m-card.rejected .m-bar > span { background: linear-gradient(90deg, #f87171, #fb7185); width: 100% !important; }
.m-card.proof_submitted .m-bar > span { background: linear-gradient(90deg, var(--warn), #f97316); }

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(5, 8, 18, 0.55);
  border: 1px solid var(--line);
}
.status-row code {
  font-size: 0.85rem;
  color: var(--text);
}
.pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.15);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pill.ok {
  color: var(--ok);
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.1);
}
.pill.warn {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
}
.pill.live {
  color: var(--accent-3);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

.hint {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 156, 255, 0.22);
  background: rgba(124, 156, 255, 0.08);
  color: #c7d2fe;
  font-size: 0.9rem;
}
.hint strong { color: var(--text); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.5rem;
}
button {
  font: inherit;
  font-weight: 560;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(124, 156, 255, 0.1);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}
button:hover:not(:disabled) {
  background: rgba(124, 156, 255, 0.22);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
button.primary {
  background: linear-gradient(135deg, rgba(124, 156, 255, 0.85), rgba(167, 139, 250, 0.75));
  border-color: transparent;
  color: #0a0e1a;
  font-weight: 650;
}
button.primary:hover:not(:disabled) {
  box-shadow: 0 8px 22px rgba(124, 156, 255, 0.28);
}
button.danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}
button.danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.22);
}
button.cta-pulse:not(:disabled) {
  box-shadow: 0 0 0 0 rgba(124, 156, 255, 0.45);
  animation: cta-pulse 2s ease-out infinite;
}
@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 156, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(124, 156, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 156, 255, 0); }
}

.disabled-help {
  min-height: 1.25rem;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.toast {
  margin: 0.5rem 0 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.1);
  color: #a7f3d0;
  font-size: 0.9rem;
  font-weight: 500;
}
.toast[hidden] { display: none !important; }
.toast.error-toast {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(5, 8, 18, 0.5);
}
tr:last-child td { border-bottom: none; }
td .status-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--mono);
  border: 1px solid var(--line);
  background: rgba(124, 156, 255, 0.08);
}
td .status-tag.released { color: var(--ok); border-color: rgba(110, 231, 183, 0.35); }
td .status-tag.rejected { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }
td .status-tag.proof_submitted { color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }

.log {
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 0.85rem 1.05rem;
  background: rgba(5, 8, 18, 0.85);
  border-radius: 14px;
  border: 1px solid var(--line);
  color: #a5b4fc;
  white-space: pre-wrap;
  font-size: 0.8rem;
  line-height: 1.55;
}

.panel ol {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}
.panel ol li { margin: 0.5rem 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(5, 7, 15, 0.55);
}
.site-footer .addr {
  display: block;
  margin-top: 0.4rem;
  word-break: break-all;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text);
}

@media (max-width: 720px) {
  .grid, .milestone-track { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(8, 12, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open nav { display: flex; }
  nav a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid rgba(124, 156, 255, 0.08);
  }
  .status-row { gap: 0.5rem 0.85rem; font-size: 0.85rem; }
  .step-label { font-size: 0.7rem; }
  .stepper::before, .stepper::after { left: 10%; right: 10%; max-width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .bg-scene .orb, .bg-aurora, button.cta-pulse { animation: none !important; }
}


/* —— Craft pass: role theater, dual-state proofs, donate —— */
.badge {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.65rem; border-radius: 999px;
  background: rgba(167, 139, 250, 0.15); color: #d8b4fe;
  border: 1px solid rgba(167, 139, 250, 0.35);
  margin-left: 0.35rem;
}
.badge-sim { background: rgba(251, 191, 36, 0.12); color: var(--warn, #fbbf24); border-color: rgba(251, 191, 36, 0.35); }
.section-head { margin-bottom: 1rem; }
.section-head h2 {
  margin: 0 0 0.35rem; font-size: 1.35rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.cta-row, .hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 12px; padding: 0.65rem 1.1rem;
  font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  text-decoration: none; color: var(--text);
  transition: transform 0.2s ease, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #0a0e1a;
}
.btn.ghost {
  background: rgba(124, 156, 255, 0.08); border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); background: rgba(124, 156, 255, 0.14); }
.btn.small { padding: 0.4rem 0.75rem; font-size: 0.8rem; border-radius: 10px; }

.role-picker {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
@media (max-width: 820px) { .role-picker { grid-template-columns: 1fr; } }
.role-card {
  text-align: left; cursor: pointer;
  padding: 1.15rem 1.2rem; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.55);
  color: var(--text); font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.role-card:hover { border-color: rgba(124, 156, 255, 0.45); transform: translateY(-1px); }
.role-card.active {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 12px 40px rgba(0,0,0,0.25);
  background: linear-gradient(160deg, rgba(124,156,255,0.12), rgba(167,139,250,0.1));
}
.role-card .role {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-3, #22d3ee); margin-bottom: 0.35rem;
}
.role-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.role-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.role-theater .hint { margin: 1rem 0 0; }

.dual-pane {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 860px) { .dual-pane { grid-template-columns: 1fr; } }
.pane {
  padding: 1.1rem; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.5); min-height: 200px;
  display: flex; flex-direction: column;
}
.pane-public { border-color: rgba(124, 156, 255, 0.35); }
.pane-private { border-color: rgba(167, 139, 250, 0.4); }
.pane-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.65rem; }
.pane-eyebrow {
  margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-3, #22d3ee);
}
.pane-private .pane-eyebrow { color: #c4b5fd; }
.pane-head h3 { margin: 0.2rem 0 0; font-size: 1.02rem; }
.pane-pill {
  flex-shrink: 0; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.28rem 0.5rem; border-radius: 999px;
}
.pane-pill.public { background: rgba(124, 156, 255, 0.15); color: var(--accent); border: 1px solid rgba(124, 156, 255, 0.35); }
.pane-pill.private { background: rgba(167, 139, 250, 0.15); color: #d8b4fe; border: 1px solid rgba(167, 139, 250, 0.4); }

.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; flex: 1; }
.proof-card {
  padding: 0.8rem 0.9rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(124, 156, 255, 0.05);
  animation: proofIn 0.4s ease both;
}
.pane-private .proof-card { background: rgba(167, 139, 250, 0.07); border-color: rgba(167, 139, 250, 0.25); }
@keyframes proofIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.proof-card .meta { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.35rem; font-size: 0.75rem; color: var(--muted); }
.proof-card .body { margin: 0.25rem 0; font-size: 0.9rem; white-space: pre-wrap; }
.proof-card .commitment { font-family: var(--mono); font-size: 0.72rem; color: #c7d2fe; word-break: break-all; margin-top: 0.35rem; }
.tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.16rem 0.42rem; border-radius: 6px;
}
.tag.sealed { background: rgba(167, 139, 250, 0.2); color: #e9d5ff; }
.empty {
  color: var(--muted); font-size: 0.88rem; padding: 1.4rem 0.75rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; margin: 0;
}
.empty[hidden] { display: none; }

button.wrong-role:disabled {
  opacity: 0.38;
  outline: 1px dashed rgba(251, 191, 36, 0.35);
}

.donate .addr-box {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.3); margin: 0.75rem 0;
}
.donate .addr-box code { font-size: 0.76rem; word-break: break-all; flex: 1; font-family: var(--mono); }
.footer-donate {
  margin-top: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline;
}
.footer-donate code { font-size: 0.72rem; word-break: break-all; color: #c7d2fe; font-family: var(--mono); }
.disclaimer { font-size: 0.8rem; opacity: 0.85; margin-top: 0.65rem; }
.muted.small, .small { font-size: 0.85rem; }

.site-header {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.site-header .badge { margin-left: auto; }
@media (max-width: 720px) {
  .site-header .badge { order: 3; margin-left: 0; width: 100%; text-align: center; }
}

/* —— Shared craft: always-visible donate dock (studio-craft) —— */
.donate-dock {
  position: fixed; z-index: 30; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.85rem; border-radius: 999px;
  background: rgba(8, 12, 24, 0.88); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 600;
}
.dock-x { color: var(--accent-3); }
.dock-sep { color: var(--muted); opacity: 0.6; }
.dock-copy {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a; border: none; border-radius: 999px;
  padding: 0.35rem 0.75rem; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.dock-copy:hover { transform: translateY(-1px); }
.dock-copy:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 520px) {
  .donate-dock { left: 0.75rem; right: 0.75rem; justify-content: center; }
}
.toast { bottom: 4.5rem; }


/* —— Local ZK prove metrics (REAL CLI/bridge — still NOT on-chain) —— */
.badge-live {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.4);
}
.local-prove-panel {
  border-color: rgba(52, 211, 153, 0.28);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.08), var(--shadow);
}
.local-prove-panel .prove-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.92rem;
}
.local-prove-panel .prove-actions {
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.local-prove-panel .prove-summary {
  margin: 0.5rem 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.22);
}
.local-prove-panel .prove-raw {
  max-height: 220px;
  overflow: auto;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  border-color: rgba(52, 211, 153, 0.2);
}
.local-prove-panel #proveHonestClaim {
  color: #a7f3d0;
  font-weight: 500;
}
.local-prove-panel #proveBridgePill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.local-prove-panel #prove-path-select {
  margin-left: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.85rem;
}
.local-prove-panel label[for="prove-path-select"] {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

/* Midnight visual refresh — 2026-10-04. Shared craft overlay. */
:root {
  --bg: #070612;
  --bg-elevated: rgba(18, 16, 40, 0.78);
  --bg-card: rgba(16, 14, 36, 0.72);
  --text: #f5f3ff;
  --muted: #b7b3d4;
  --accent: #67e8f9;
  --accent-2: #c084fc;
  --accent-3: #5eead4;
  --ok: #6ee7b7;
  --warn: #fbbf24;
  --danger: #fb7185;
  --bad: #fb7185;
  --fail: #fb7185;
  --line: rgba(192, 132, 252, 0.28);
  --line-strong: rgba(103, 232, 249, 0.55);
  --shadow: 0 24px 60px rgba(4, 2, 16, 0.45);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
body {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(192, 132, 252, 0.22), transparent 60%),
    radial-gradient(800px 520px at 90% 0%, rgba(103, 232, 249, 0.16), transparent 55%),
    var(--bg);
}
.site-header, header.site-header {
  background: rgba(7, 6, 18, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.hero-shell, .hero, main section:first-of-type {
  position: relative;
}
.hero-mark {
  width: min(280px, 70vw);
  margin: 0.4rem auto 1.2rem;
  filter: drop-shadow(0 18px 40px rgba(103, 232, 249, 0.25));
}
.hero-mark img, .hero-mark svg { width: 100%; height: auto; display: block; }
.btn.primary, a.btn.primary, button.btn.primary {
  background: linear-gradient(135deg, #67e8f9, #c084fc);
  color: #140b22;
  border: 0;
  font-weight: 700;
}
.app-card, .panel, .card, article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.app-card {
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.08), transparent 42%),
    var(--bg-card);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.icon, .app-card .icon {
  background: radial-gradient(circle at 30% 30%, rgba(103, 232, 249, 0.35), rgba(192, 132, 252, 0.12));
  border: 1px solid var(--line);
}
.badge, .badge-live, .badge-flagship {
  letter-spacing: 0.04em;
}

/* Studio product banner */
body { background-image: linear-gradient(180deg, rgba(7,6,18,0.2), #070612 220px), url("../assets/horizon.jpg"); background-size: auto, cover; background-position: center top; background-repeat: no-repeat; }
.topbar, header.site-header { background: rgba(7,6,18,0.78) !important; }
h1 { letter-spacing: -0.04em; }
