@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; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #a5b8ff; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code:not(pre code) {
  background: rgba(124, 156, 255, 0.12);
  padding: 0.15em 0.45em;
  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; }

/* —— Background —— */
.bg-scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(124, 156, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 5% 70%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #04060d 0%, #070b18 45%, #05070f 100%);
}
.starfield {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55;
}
.bg-nebula {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  animation: nebulaDrift 22s ease-in-out infinite alternate;
}
.bg-nebula-a {
  width: 55vw; height: 40vh; top: -8%; left: 15%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
}
.bg-nebula-b {
  width: 45vw; height: 35vh; right: -8%; top: 35%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  animation-delay: -7s;
}
.bg-nebula-c {
  width: 40vw; height: 30vh; left: -5%; bottom: 5%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.25), transparent 70%);
  animation-delay: -14s;
}
.bg-grid {
  position: absolute; inset: 0; opacity: 0.07;
  background-image:
    linear-gradient(rgba(124,156,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,156,255,0.4) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 15%, transparent 72%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4;
  animation: nebulaDrift 20s ease-in-out infinite alternate;
}
.orb-a { width: 380px; height: 380px; top: -5%; right: 8%; background: rgba(124, 156, 255, 0.4); }
.orb-b { width: 280px; height: 280px; bottom: 12%; left: -4%; background: rgba(167, 139, 250, 0.35); animation-delay: -9s; }
.orb-c { width: 220px; height: 220px; top: 48%; left: 42%; background: rgba(34, 211, 238, 0.2); animation-delay: -4s; }
@keyframes nebulaDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(28px, -22px) scale(1.08); }
}

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

/* —— Header —— */
.topbar {
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 15, 0.72);
  position: sticky; top: 0; z-index: 30;
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.logo span { color: var(--accent-2); }
.topbar nav {
  display: flex; gap: 0.85rem; flex-wrap: wrap; margin-left: auto; align-items: center;
}
.topbar nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.topbar nav a:hover { color: var(--text); }
.nav-toggle {
  display: none; margin-left: auto;
  background: rgba(124, 156, 255, 0.1); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 0.4rem 0.7rem; cursor: pointer; font-size: 1rem;
}
.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);
}
.badge-sim { background: rgba(251, 191, 36, 0.12); color: var(--warn); border-color: rgba(251, 191, 36, 0.35); }
.badge-edu { background: rgba(34, 211, 238, 0.12); color: var(--accent-3); border-color: rgba(34, 211, 238, 0.35); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .topbar nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding: 0.5rem 0 0.25rem; gap: 0.65rem;
  }
  .topbar.nav-open nav { display: flex; }
  .topbar .badge { order: 3; }
}

/* —— Layout —— */
main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.hero { padding: 2.4rem 0 1.75rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-3); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3);
  box-shadow: 0 0 14px var(--accent-3); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.12; margin: 0.65rem 0 1rem; letter-spacing: -0.025em;
}
.lede { color: var(--muted); font-size: 1.06rem; max-width: 68ch; margin: 0 0 1.35rem; }
.cta-row, .btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.honesty {
  margin-top: 1.35rem; padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a; font-size: 0.92rem; max-width: 72ch;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 12px; padding: 0.7rem 1.15rem;
  font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e1a;
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn.ghost {
  background: rgba(124, 156, 255, 0.08); color: var(--text); border-color: var(--line);
}
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); background: rgba(124, 156, 255, 0.14); }
.btn.danger {
  background: rgba(251, 113, 133, 0.15); color: #fecdd3; border-color: rgba(251, 113, 133, 0.4);
}
.btn.danger:hover:not(:disabled) { background: rgba(251, 113, 133, 0.28); }
.btn.small { padding: 0.42rem 0.75rem; font-size: 0.8rem; border-radius: 10px; }
.btn.disclose {
  background: rgba(34, 211, 238, 0.14); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, 0.4);
}
.btn.disclose:hover:not(:disabled) { background: rgba(34, 211, 238, 0.24); }

.panel, .studio {
  margin: 1.85rem 0;
  padding: 1.55rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.section-head { margin-bottom: 1.25rem; }
.section-head h2 {
  font-family: var(--display); margin: 0 0 0.35rem; font-size: 1.45rem;
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* —— Identity —— */
.identity-bar {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.15rem; margin-bottom: 1.25rem;
}
@media (max-width: 860px) { .identity-bar { grid-template-columns: 1fr; } }
.ident-block, .ident-stats {
  padding: 1.15rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.55);
}
.ident-block h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-family: var(--display); }
.field { margin: 0.75rem 0; }
.field label, .label {
  display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 500;
}
.field input, .field textarea, textarea, input[type="password"], input[type="text"] {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(5, 7, 15, 0.85); color: var(--text);
  font-family: var(--mono); font-size: 0.82rem;
}
textarea { font-family: var(--font); resize: vertical; min-height: 88px; }
.input-row { display: flex; gap: 0.45rem; align-items: center; }
.input-row input { flex: 1; }
.pk-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.mono.block {
  display: block; word-break: break-all; padding: 0.55rem 0.65rem;
  background: rgba(0,0,0,0.35); border-radius: 8px; border: 1px solid var(--line);
  font-size: 0.72rem; flex: 1; min-width: 0;
}
.ident-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-content: center;
}
.stat {
  text-align: center; padding: 0.65rem; border-radius: 12px;
  background: rgba(124, 156, 255, 0.06); border: 1px solid rgba(124, 156, 255, 0.12);
}
.stat-val {
  display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* —— Dual pane —— */
.dual-pane {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.15rem;
}
@media (max-width: 900px) { .dual-pane { grid-template-columns: 1fr; } }
.pane {
  padding: 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.5);
  min-height: 280px; display: flex; flex-direction: column;
}
.pane-public { border-color: rgba(124, 156, 255, 0.35); box-shadow: inset 0 0 40px rgba(124, 156, 255, 0.04); }
.pane-private { border-color: rgba(167, 139, 250, 0.4); box-shadow: inset 0 0 40px rgba(167, 139, 250, 0.05); }
.pane-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.5rem; }
.pane-eyebrow {
  margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-3);
}
.pane-private .pane-eyebrow { color: var(--accent-2); }
.pane-head h3 { margin: 0.2rem 0 0; font-size: 1.05rem; font-family: var(--display); }
.pane-desc { color: var(--muted); font-size: 0.84rem; margin: 0 0 0.85rem; }
.pane-pill {
  flex-shrink: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.55rem; 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); }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; flex: 1; }
.post-card {
  padding: 0.85rem 0.95rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(124, 156, 255, 0.05);
  animation: cardIn 0.45s var(--ease) both;
}
.pane-private .post-card { background: rgba(167, 139, 250, 0.07); border-color: rgba(167, 139, 250, 0.25); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.post-card .meta {
  font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem;
  display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center;
}
.post-card .body {
  margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 0.92rem;
}
.post-card .commitment {
  font-family: var(--mono); font-size: 0.72rem; color: #c7d2fe;
  word-break: break-all; margin: 0.35rem 0;
}
.post-card .actions { margin-top: 0.55rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.18rem 0.45rem; border-radius: 6px;
}
.tag.sealed { background: rgba(167, 139, 250, 0.2); color: #e9d5ff; }
.tag.open { background: rgba(110, 231, 183, 0.15); color: var(--ok); }
.tag.mine { background: rgba(34, 211, 238, 0.15); color: var(--accent-3); }
.empty {
  color: var(--muted); font-size: 0.9rem; padding: 1.75rem 1rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; margin: 0;
}
.empty[hidden], .post-list:not(:empty) + .empty { display: none; }

/* —— Compose —— */
.panel-inner {
  padding: 1.15rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.45);
  margin-bottom: 1rem;
}
.panel-inner h3 { margin: 0 0 0.75rem; font-size: 1.05rem; font-family: var(--display); }
.compose-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; align-items: start;
}
@media (max-width: 760px) { .compose-grid { grid-template-columns: 1fr; } }
.grow { flex: 1; }
.char-count { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--muted); text-align: right; }
.check {
  display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem;
  margin-bottom: 0.65rem; cursor: pointer;
}
.check input { margin-top: 0.25rem; accent-color: var(--accent-2); width: auto; }

.prove-rail { margin-top: 1rem; }
.prove-track {
  height: 6px; border-radius: 999px; background: rgba(124, 156, 255, 0.12);
  overflow: hidden; border: 1px solid var(--line);
}
.prove-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 999px;
  transition: width 0.35s var(--ease);
}
.prove-label { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--accent-3); font-family: var(--mono); }

.activity-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.log {
  margin: 0.65rem 0 0; padding: 0.85rem 1rem; max-height: 200px; overflow: auto;
  background: rgba(0,0,0,0.4); border-radius: 10px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.76rem; color: #c7d2fe; white-space: pre-wrap;
}

/* —— How / flow —— */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.flow-steps li {
  display: flex; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(8, 12, 24, 0.45);
}
.step-num {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-family: var(--display);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0e1a;
}
.flow-steps strong { display: block; margin-bottom: 0.2rem; }
.flow-steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.snip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 860px) { .snip-grid { grid-template-columns: 1fr; } }
.snip { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.snip.bad { border-color: rgba(251, 113, 133, 0.35); }
.snip.ok { border-color: rgba(110, 231, 183, 0.35); }
.snip-label {
  padding: 0.5rem 0.85rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.snip.bad .snip-label { background: rgba(251, 113, 133, 0.12); color: var(--danger); }
.snip.ok .snip-label { background: rgba(110, 231, 183, 0.12); color: var(--ok); }
.snip pre {
  margin: 0; padding: 0.9rem 1rem; overflow: auto;
  background: rgba(0,0,0,0.45); font-size: 0.76rem; line-height: 1.5;
}
.snip-note { margin: 1rem 0 0; font-size: 0.9rem; }

.wallet-toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.wallet-card {
  padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.55);
}
.wallet-card h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.wallet-card .kv { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); word-break: break-all; }
.status { font-size: 0.88rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }

.donate .addr-box {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.35); margin: 0.75rem 0;
}
.donate .addr-box code { font-size: 0.76rem; word-break: break-all; flex: 1; }

.site-footer {
  max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 2.75rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem;
}
.footer-donate {
  margin-top: 0.65rem; display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: baseline;
}
.footer-donate code { font-size: 0.72rem; word-break: break-all; color: #c7d2fe; }
.disclaimer { font-size: 0.8rem; opacity: 0.85; margin-top: 0.75rem; }

.toast {
  position: fixed; bottom: 1.35rem; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 50; padding: 0.75rem 1.25rem; border-radius: 12px;
  background: rgba(16, 24, 48, 0.95); border: 1px solid var(--accent);
  color: var(--text); font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow); transition: transform 0.35s var(--ease);
  max-width: min(90vw, 420px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* —— Completeness patches —— */

@media (max-width: 900px) {
  #site-nav { display: none; width: 100%; flex-direction: column; gap: 0.4rem; padding-top: 0.5rem; }
  #site-nav.open { display: flex; }
}

/* —— 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; }



/* —— Pass 14 deepen: empty, motion, error honesty —— */
.empty-rich {
  display: grid; gap: 0.35rem; justify-items: center;
  padding: 1.75rem 1.1rem; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(8, 12, 24, 0.45);
  animation: fadeUp 0.4s var(--ease);
}
.empty-rich .empty-glyph {
  font-size: 1.6rem; color: var(--accent-3); opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35));
}
.empty-rich p { margin: 0; max-width: 36ch; }
.empty-rich .empty-cta { margin-top: 0.45rem; }
.error-honesty {
  margin: 0 0 0.75rem; padding: 0.65rem 0.85rem; border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1); color: var(--danger);
  font-size: 0.88rem;
}
.error-honesty[hidden] { display: none !important; }
.post-enter {
  animation: cardIn 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.seal-flash {
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.45), var(--shadow) !important;
  transform: translateY(-1px);
}
.toast-ok { border-color: rgba(110, 231, 183, 0.5); }
.toast-warn { border-color: rgba(251, 191, 36, 0.55); }
.toast-err { border-color: rgba(251, 113, 133, 0.55); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .empty-rich, .post-enter { animation: none; }
  .seal-flash { transform: none; }
}

/* 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; }
