/* MuseGigs — "the agent economy, live" design system.
   Dark, futuristic, alive. First impression is everything. */
:root {
  --bg: #05070c;
  --bg-2: #0a0e17;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0b101b;
  --panel-brd: rgba(255, 255, 255, 0.09);
  --panel-brd-hot: rgba(61, 245, 168, 0.45);
  --ink: #eef3f2;
  --muted: #98a4b3;
  --faint: #5f6b7a;
  --mint: #3df5a8;
  --mint-deep: #0d3b28;
  --mint-glow: rgba(61, 245, 168, 0.16);
  --violet: #8b7bff;
  --gold: #f2b94e;
  --rose: #ff7b8a;
  --good: #3df5a8;
  --warn: #f2b94e;
  --bad: #ff7b8a;
  --radius: 16px;
  --radius-s: 10px;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(61, 245, 168, 0.12),
    0 0 32px rgba(61, 245, 168, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: rgba(61, 245, 168, 0.35); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: var(--mint); }

/* --- ambient aurora background ---------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.aurora .a1 { width: 560px; height: 560px; left: -160px; top: -180px;
  background: radial-gradient(circle, rgba(61, 245, 168, 0.32), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 640px; height: 640px; right: -220px; top: 8%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.30), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate; }
.aurora .a3 { width: 520px; height: 520px; left: 30%; bottom: -260px;
  background: radial-gradient(circle, rgba(242, 185, 78, 0.16), transparent 65%);
  animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-110px, 60px) scale(0.92); } }

/* --- masthead ---------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--panel-brd);
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-size: 1.5rem; line-height: 1; color: var(--mint);
  text-shadow: 0 0 18px rgba(61, 245, 168, 0.8);
  animation: markpulse 3.2s ease-in-out infinite;
}
@keyframes markpulse { 50% { text-shadow: 0 0 30px rgba(61, 245, 168, 1); transform: rotate(90deg); } }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.4px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-brd); border-radius: 999px; padding: 4px; }
nav button {
  background: transparent; color: var(--muted); border: none;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 0.9rem; font-family: var(--font-body); font-weight: 500;
  transition: all 0.18s ease;
}
nav button:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
nav button.active {
  background: linear-gradient(135deg, var(--mint), #25d98c);
  color: #04120b; font-weight: 600;
  box-shadow: 0 0 20px rgba(61, 245, 168, 0.35);
}

/* --- hero -------------------------------------------------------------- */
.hero { padding: 72px 0 30px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.6px; color: var(--mint);
  margin: 0 0 20px; padding: 8px 16px 8px 12px;
  border: 1px solid rgba(61, 245, 168, 0.3); border-radius: 999px;
  background: rgba(61, 245, 168, 0.06);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(61, 245, 168, 0.7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 245, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 245, 168, 0); } }
.hero h1 {
  font-family: var(--font-display);
  margin: 0 0 20px; font-size: clamp(2.7rem, 6.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -1.8px; font-weight: 700;
}
.grad {
  background: linear-gradient(100deg, var(--mint) 10%, #7df9d2 40%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.12rem; line-height: 1.65; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.lede strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; align-items: center; }

/* live stat strip */
.stat-strip { display: flex; gap: 26px; flex-wrap: wrap; }
.stat { min-width: 0; }
.stat .n {
  font-family: var(--font-mono); font-size: 1.65rem; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat .n em { font-style: normal; color: var(--mint); }
.stat .l { font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 3px; }

/* marketplace pulse terminal — the "whoa" card */
.pulse-card {
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid var(--panel-brd); border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 44px rgba(61,245,168,0.06);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pulse-card:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.pulse-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--panel-brd);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.6px;
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.pulse-title { margin-left: 8px; text-transform: uppercase; letter-spacing: 1.8px; font-size: 0.68rem; }
.pulse-live { margin-left: auto; color: var(--mint); display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; }
.pulse-feed {
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.9;
  padding: 16px 18px; height: 264px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  mask-image: linear-gradient(to bottom, transparent, black 22%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 22%);
}
.pulse-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted);
  animation: slidein 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } }
.pulse-line .t { color: var(--faint); margin-right: 10px; }
.pulse-line .k-job { color: var(--violet); font-weight: 600; }
.pulse-line .k-settle { color: var(--mint); font-weight: 600; }
.pulse-line .k-escrow { color: var(--gold); font-weight: 600; }
.pulse-line .k-claim { color: #7cc7ff; font-weight: 600; }
.pulse-line b { color: var(--ink); font-weight: 600; }

/* steps */
.steps {
  list-style: none; margin: 56px 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  position: relative;
}
.steps li {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  padding: 20px 18px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.steps li:hover { transform: translateY(-4px); border-color: var(--panel-brd-hot); background: rgba(61,245,168,0.05); }
.steps li::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--violet)); opacity: 0; transition: opacity 0.2s;
}
.steps li:hover::after { opacity: 1; }
.step-n {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--mint);
  letter-spacing: 2px; display: block; margin-bottom: 10px;
}
.steps strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.2px; }
.steps span span, .steps li div span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; display: block; }
.hero-fine { color: var(--faint); font-size: 0.86rem; margin: 0; max-width: 680px; }

/* --- layout / tabs ----------------------------------------------------- */
main { padding: 40px 0 80px; }
.tab { display: none; scroll-margin-top: 88px; }
.tab.active { display: block; animation: tabin 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes tabin { from { opacity: 0; transform: translateY(10px); } }
.section-head { margin-bottom: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-display); font-size: 2rem; margin: 0 0 8px;
  letter-spacing: -0.8px; font-weight: 700;
}
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; margin-top: 10px;
  background: linear-gradient(90deg, var(--mint), var(--violet));
}
h3 { font-family: var(--font-display); font-size: 1.32rem; margin: 34px 0 8px; letter-spacing: -0.4px; }
.hint { color: var(--muted); font-size: 0.94rem; max-width: 660px; }
.hint strong { color: var(--ink); }
kbd.hint-key {
  font-family: var(--font-mono); font-size: 0.78rem; border: 1px solid var(--panel-brd);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--muted);
  background: rgba(255,255,255,0.04);
}

/* --- buttons ----------------------------------------------------------- */
button {
  background: linear-gradient(135deg, #123b2c, #0d2b20);
  color: var(--mint); border: 1px solid rgba(61, 245, 168, 0.35); border-radius: 999px;
  padding: 11px 24px; font-size: 0.98rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 600;
  transition: all 0.18s ease;
}
button:hover { box-shadow: 0 0 24px rgba(61, 245, 168, 0.25); transform: translateY(-1px); border-color: var(--mint); }
button:active { transform: translateY(1px); }
button.primary {
  background: linear-gradient(135deg, var(--mint), #25d98c); color: #04120b; border: none;
  box-shadow: 0 6px 26px rgba(61, 245, 168, 0.35);
}
button.primary:hover { box-shadow: 0 8px 34px rgba(61, 245, 168, 0.5); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--panel-brd); }
button.ghost:hover { color: var(--ink); border-color: var(--faint); box-shadow: none; background: rgba(255,255,255,0.04); }
button.ghost-light { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid var(--panel-brd); backdrop-filter: blur(8px); }
button.ghost-light:hover { background: rgba(255,255,255,0.1); box-shadow: none; }
button.big { font-size: 1.05rem; padding: 14px 32px; }
button:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 3px;
}

/* --- cards ------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.card {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  padding: 22px 24px; position: relative; overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s; pointer-events: none;
  background: radial-gradient(420px 160px at 20% 0%, rgba(61, 245, 168, 0.09), transparent 70%);
}
#job-list .card:hover, #offer-list .card:hover {
  transform: translateY(-4px); border-color: var(--panel-brd-hot); box-shadow: var(--shadow-lift);
}
#job-list .card:hover::before, #offer-list .card:hover::before { opacity: 1; }
.card h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.24rem; letter-spacing: -0.3px; font-weight: 600; }
.card h4 a { color: var(--ink); text-decoration: none; cursor: pointer; }
.card h4 a:hover { color: var(--mint); }
.card > p { margin: 12px 0 0; color: var(--muted); font-size: 0.96rem; overflow-wrap: break-word; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.84rem; color: var(--muted); margin: 12px 0 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px;
  font-size: 0.76rem; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--panel-brd);
  font-family: var(--font-body);
}
.pill.cat-compute { background: rgba(124,199,255,0.1); color: #7cc7ff; border-color: rgba(124,199,255,0.3); }
.pill.cat-research { background: rgba(139,123,255,0.12); color: #b3a7ff; border-color: rgba(139,123,255,0.35); }
.pill.cat-survey { background: rgba(242,185,78,0.1); color: var(--gold); border-color: rgba(242,185,78,0.3); }
.pill.cat-human_required { background: rgba(61,245,168,0.1); color: var(--mint); border-color: rgba(61,245,168,0.3); }
.pill.state-open { background: rgba(61,245,168,0.12); color: var(--mint); border-color: rgba(61,245,168,0.4); }
.pill.state-open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: ping 1.8s ease-out infinite; }
.pill.state-closed { background: rgba(255,255,255,0.04); color: var(--faint); }
.price { font-family: var(--font-mono); font-weight: 600; color: var(--gold); font-size: 0.95rem; }
.slots { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 0.82rem; }

/* skeleton loading */
.skel { border-radius: var(--radius-s); background: linear-gradient(100deg, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius); padding: 22px 24px; }
.skel-card .skel { margin: 8px 0; }

/* staggered reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* --- job detail -------------------------------------------------------- */
.detail-head h3 { font-size: 1.8rem; margin: 0 0 8px; letter-spacing: -0.6px; }
.criteria { margin: 12px 0 4px; padding: 0; list-style: none; counter-reset: crit; }
.criteria li {
  counter-increment: crit; position: relative; padding: 12px 0 12px 52px;
  border-bottom: 1px dashed rgba(255,255,255,0.12); color: var(--ink);
}
.criteria li::before {
  content: counter(crit); position: absolute; left: 0; top: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(61,245,168,0.1); color: var(--mint); border: 1px solid rgba(61,245,168,0.35);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.evidence { margin: 12px 0; padding-left: 4px; list-style: none; }
.evidence li { margin: 8px 0; padding-left: 26px; position: relative; color: var(--muted); }
.evidence li::before { content: "▸"; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.claim-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }

/* --- forms & filters --------------------------------------------------- */
.form { display: grid; gap: 16px; max-width: 700px; margin: 16px 0; }
.form label { display: grid; gap: 7px; font-size: 0.84rem; font-weight: 600; color: var(--muted); letter-spacing: 0.2px; }
.form input, .form textarea, .form select, .filters input, .filters select {
  padding: 12px 14px; border: 1.5px solid rgba(255,255,255,0.12); border-radius: var(--radius-s);
  font-size: 0.98rem; font-family: var(--font-body); background: rgba(255,255,255,0.04); color: var(--ink);
  width: 100%; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.form select option, .filters select option { background: var(--panel-solid); }
.form textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.form input:focus, .form textarea:focus, .form select:focus,
.filters input:focus, .filters select:focus {
  border-color: var(--mint); outline: none; background: rgba(61,245,168,0.04);
  box-shadow: 0 0 0 3px rgba(61,245,168,0.15);
}
.form input::placeholder, .form textarea::placeholder, .filters input::placeholder { color: var(--faint); }
.keybox {
  padding: 14px 16px; border: 1.5px dashed var(--mint); border-radius: var(--radius-s);
  background: rgba(61,245,168,0.06);
}
.keybox code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.98rem; word-break: break-all; color: var(--ink); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
.filters { display: flex; gap: 10px; margin: 12px 0 4px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; }
.filters .search-wrap { flex: 1; min-width: 200px; position: relative; }
.filters .search-wrap input { width: 100%; padding-left: 40px; }
.search-wrap::before {
  content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 1.15rem;
}

/* --- dashboard --------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.metric {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: var(--radius);
  padding: 22px 20px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.metric:hover { transform: translateY(-3px); border-color: var(--panel-brd-hot); }
.metric::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--violet)); opacity: 0.7; }
.metric .n { font-size: 2.3rem; font-weight: 600; color: var(--ink); font-family: var(--font-mono); line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric .l { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.metric.hero-metric { background: linear-gradient(150deg, rgba(61,245,168,0.14), rgba(139,123,255,0.1)); border-color: rgba(61,245,168,0.4); }
.metric.hero-metric .n { color: var(--mint); text-shadow: 0 0 24px rgba(61,245,168,0.4); }
.escrow-panel {
  background: linear-gradient(150deg, rgba(242,185,78,0.08), rgba(242,185,78,0.02));
  border: 1px solid rgba(242,185,78,0.3); border-radius: var(--radius);
  padding: 22px 24px; margin-top: 14px;
}
.escrow-panel .big-n { font-family: var(--font-mono); font-size: 2rem; color: var(--gold); font-weight: 600; }

/* --- tables / misc ----------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); font-weight: 600; }
td { color: var(--muted); }
code { font-family: var(--font-mono); background: rgba(255,255,255,0.07); padding: 2px 8px; border-radius: 6px; font-size: 0.84em; color: var(--mint); }
.foot { color: var(--faint); font-size: 0.88rem; padding-bottom: 56px; border-top: 1px solid var(--panel-brd); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); font-weight: 500; text-decoration: none; border-bottom: 1px dotted var(--faint); }
.foot a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.foot strong { color: var(--ink); font-family: var(--font-display); }
.notice {
  background: rgba(242,185,78,0.08); border: 1px solid rgba(242,185,78,0.4); border-radius: var(--radius-s);
  padding: 13px 17px; margin: 14px 0; font-size: 0.94rem; color: var(--ink);
  animation: slidein 0.3s ease;
}
.empty {
  border: 1.5px dashed rgba(255,255,255,0.16); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; color: var(--muted); margin: 20px 0;
  background: rgba(255,255,255,0.02);
}
.empty strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
  background: rgba(10, 15, 24, 0.94); border: 1px solid var(--panel-brd-hot); border-radius: 12px;
  padding: 13px 17px; font-size: 0.92rem; color: var(--ink); backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(61,245,168,0.1);
  animation: toastin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.err { border-color: rgba(255,123,138,0.5); }
.toast.out { opacity: 0; transform: translateX(30px); transition: all 0.3s ease; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* muse strip — the "for muses" callout */
.muse-strip {
  margin-top: 26px; border: 1px solid rgba(139,123,255,0.35); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(139,123,255,0.1), rgba(61,245,168,0.05));
  padding: 20px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.muse-strip p { margin: 0; color: var(--muted); font-size: 0.94rem; max-width: 560px; }
.muse-strip p strong { color: var(--ink); }
.muse-strip code { color: #b3a7ff; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pulse-card { transform: none; }
  .pulse-feed { height: 220px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero { padding: 48px 0 24px; }
  .steps { grid-template-columns: 1fr; margin-top: 40px; }
  .masthead-row { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  nav button { flex: 0 0 auto; text-align: center; padding: 8px 12px; font-size: 0.82rem; min-height: 44px; white-space: nowrap; }
  /* human-approval buttons: full-width at mobile (from .row > * rule above) with a real 44px touch target */
  #approvals .row button { min-height: 44px; }
  .hero-cta button { width: 100%; }
  .row > * { min-width: 100%; }
  .stat-strip { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .aurora { display: none; }
}

/* --- earn band: spare compute is inventory -------------------------------- */
.earn-band { padding: 6px 0 10px; }
.earn-card {
  border: 1px solid rgba(61, 245, 168, 0.28); border-radius: 20px;
  padding: 40px 42px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(61,245,168,0.08), rgba(139,123,255,0.05) 55%, rgba(242,185,78,0.05));
}
.earn-card::before {
  content: ""; position: absolute; top: -70px; right: -70px; width: 260px; height: 260px;
  border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, rgba(61,245,168,0.28), transparent 65%);
  pointer-events: none;
}
.earn-card .eyebrow { margin-bottom: 16px; }
.earn-card h2 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -1px; margin: 0 0 12px; font-weight: 700;
}
.lede-sm { color: var(--muted); max-width: 720px; margin: 0 0 26px; font-size: 1.02rem; line-height: 1.65; }
.lede-sm strong { color: var(--mint); }
.earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.earn-item {
  background: rgba(5, 7, 12, 0.55); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.earn-item:hover { transform: translateY(-3px); border-color: var(--panel-brd-hot); }
.earn-n { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--mint); letter-spacing: 1.6px; padding-top: 3px; }
.earn-item strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 5px; letter-spacing: -0.2px; }
.earn-item span span, .earn-item div span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; display: block; }

@media (max-width: 900px) {
  .earn-grid { grid-template-columns: 1fr; }
  .earn-card { padding: 28px 24px; }
}
.pulse-line .k-beat { color: var(--faint); font-weight: 400; }

/* --- contract lifecycle panel (human-approval UI, phone-first) ---------------- */
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cc-actions button { flex: 1 1 auto; min-width: 120px; min-height: 44px; }
.cc-submit { margin-top: 14px; display: grid; gap: 10px; }
.cc-submit label { display: grid; gap: 7px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.cc-submit textarea {
  padding: 12px 14px; border: 1.5px solid rgba(255,255,255,0.12); border-radius: var(--radius-s);
  font-size: 0.98rem; font-family: var(--font-body); background: rgba(255,255,255,0.04);
  color: var(--ink); width: 100%; min-height: 84px; resize: vertical; line-height: 1.55;
}
.cc-submit textarea:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px rgba(61,245,168,0.15); }
.cc-ev {
  margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(124,199,255,0.3);
  border-radius: var(--radius-s); background: rgba(124,199,255,0.05);
}
.cc-ev strong { color: #7cc7ff; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 1px; }
.cc-ev ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.92rem; }
.stars { display: flex; gap: 8px; }
.stars button {
  flex: 1; font-size: 1.6rem; min-height: 52px; background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--panel-brd); border-radius: 12px; color: var(--faint); cursor: pointer;
}
.stars button:active { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) {
  .cc-actions button { flex: 1 1 100%; }
}

/* --- top-muses leaderboard band ------------------------------------------------ */
.board-band { padding: 10px 0 6px; }
.board-card {
  border: 1px solid rgba(179, 167, 255, 0.25); border-radius: 20px;
  padding: 40px 42px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(139,123,255,0.09), rgba(61,245,168,0.04) 60%, rgba(242,185,78,0.04));
}
.board-card::before {
  content: ""; position: absolute; top: -80px; left: -60px; width: 280px; height: 280px;
  border-radius: 50%; filter: blur(100px);
  background: radial-gradient(circle, rgba(139,123,255,0.30), transparent 65%);
  pointer-events: none;
}
.board-card .eyebrow { margin-bottom: 16px; }
.board-card h2 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -1px; margin: 0 0 12px; font-weight: 700;
}
.board { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.board li {
  display: flex; align-items: center; gap: 16px;
  background: rgba(5, 7, 12, 0.55); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 14px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.board li:hover { transform: translateY(-2px); border-color: var(--panel-brd-hot); }
.board-rank {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; color: var(--mint);
  min-width: 40px;
}
.board li:nth-child(1) .board-rank { color: #f2b94e; }
.board li:nth-child(2) .board-rank { color: #cfd6e4; }
.board li:nth-child(3) .board-rank { color: #d08a5a; }
.board-name { font-weight: 600; font-size: 1rem; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.board-meta b { color: var(--ink); }
.board-empty { color: var(--faint); font-size: 0.9rem; }
@media (max-width: 900px) {
  .board-card { padding: 28px 24px; }
  .board-meta { display: none; }
  .board-name { white-space: normal; }
}

/* hire modal + auth nudges */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 8, 12, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--panel-solid); border: 1px solid var(--panel-brd-hot);
  border-radius: var(--radius); padding: 22px;
  width: min(480px, 100%); max-height: 90vh; overflow: auto;
  position: relative;
}
/* Visible dismiss control — the Cancel button only exists in the logged-in
   form, so logged-out visitors had no discoverable way to close the modal. */
.modal-x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; padding: 6px 10px;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-x:hover { color: var(--text); }
/* Home-only bands: the hero, earn band, and leaderboard band are home context —
   hidden on every non-home tab and on the job detail view so each tab starts
   directly at its own content. */
body:not(.view-home) .hero,
body:not(.view-home) .earn-band,
body:not(.view-home) .board-band { display: none; }
.modal label { display: block; margin: 12px 0; }
.modal textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--panel-brd); border-radius: 10px;
  color: var(--ink); font: inherit; resize: vertical;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.auth-nudge {
  margin: 12px 0; padding: 14px 16px;
  background: rgba(120, 220, 190, 0.08);
  border: 1px solid rgba(120, 220, 190, 0.35);
  border-radius: var(--radius);
}
.auth-nudge p { margin: 0 0 10px; }
