@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body { margin: 0; font-family: var(--font-text); font-size: 15px; line-height: 24px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.bw-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.bw-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
.bw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lockup — typeset wordmark for UI and the day theme */
.bw-lockup { display: inline-flex; flex-direction: column; align-items: stretch; color: var(--ink); line-height: 1; }
.bw-lockup-word { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; margin-right: -0.06em; }
.bw-lockup-wave { display: block; width: 100%; color: var(--signal-ink); overflow: visible; }
.bw-lockup-sub { display: flex; align-items: center; gap: 0.9em; color: var(--agentic-ink); font-family: var(--font-display); font-weight: 500; }
.bw-lockup-agentics { letter-spacing: 0.62em; margin-right: -0.62em; }
.bw-lockup-rule { flex: 1; height: 1px; background: currentColor; opacity: 0.7; }
.bw-lockup-sm .bw-lockup-word { font-size: 20px; }
.bw-lockup-sm .bw-lockup-wave { height: 8px; margin: 3px 0 5px; }
.bw-lockup-sm .bw-lockup-sub { font-size: 8px; font-weight: 600; }
.bw-lockup-md .bw-lockup-word { font-size: 34px; }
.bw-lockup-md .bw-lockup-wave { height: 12px; margin: 5px 0 7px; }
.bw-lockup-md .bw-lockup-sub { font-size: 11px; }
.bw-lockup-lg .bw-lockup-word { font-size: 64px; }
.bw-lockup-lg .bw-lockup-wave { height: 20px; margin: 8px 0 12px; }
.bw-lockup-lg .bw-lockup-sub { font-size: 18px; }

/* SignalLine — the wave, with an optional travelling packet */
.bw-signal { display: block; overflow: visible; }
.bw-signal-wave { fill: none; stroke: var(--signal-ink); stroke-width: 2; stroke-linecap: round; opacity: 0.7; }
.bw-signal-packet { fill: none; stroke: var(--signal-ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 90 910; stroke-dashoffset: 1000; }
.bw-signal.is-animated .bw-signal-packet { animation: bw-travel 2.4s cubic-bezier(.45,.05,.35,1) infinite; }
.bw-signal-node { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
@keyframes bw-travel { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* Eyebrow — the spaced-caps signature */
.bw-eyebrow { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--signal-ink); }
.bw-eyebrow-text { margin-right: -0.32em; white-space: nowrap; }
.bw-eyebrow-rule { flex: 0 0 32px; height: 1px; background: currentColor; }
.bw-eyebrow-center { justify-content: center; }
.bw-eyebrow-center .bw-eyebrow-rule { flex-basis: 48px; }

/* Button */
.bw-btn { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; height: 40px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); white-space: nowrap; transition: box-shadow 240ms cubic-bezier(.2,.8,.2,1), background-color 120ms, border-color 120ms, color 120ms, transform 120ms; }
.bw-btn-lg { height: 48px; font-size: 15px; padding: 0 var(--space-6); }
.bw-btn-primary { background: var(--signal); color: var(--on-signal); }
.bw-btn-primary:hover { box-shadow: var(--glow-signal); }
.bw-btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.bw-btn-secondary:hover { border-color: var(--signal-ink); color: var(--signal-ink); }
.bw-btn-ghost { background: transparent; color: var(--signal-ink); padding: 0 var(--space-3); }
.bw-btn-ghost:hover { background: var(--signal-soft); }
.bw-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.bw-btn:active { transform: translateY(1px); }
.bw-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.bw-btn-arrow { transition: transform 240ms cubic-bezier(.2,.8,.2,1); }
.bw-btn:hover .bw-btn-arrow { transform: translateX(3px); }

/* PromptField — idea intake */
.bw-prompt { display: flex; flex-wrap: wrap; container-type: inline-size; align-items: center; gap: var(--space-3); box-sizing: border-box; width: 100%; max-width: 640px; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); transition: box-shadow 240ms cubic-bezier(.2,.8,.2,1), border-color 120ms; }
.bw-prompt:focus-within { border-color: var(--signal-ink); box-shadow: var(--glow-signal); }
.bw-prompt-glyph { flex: none; color: var(--signal-ink); }
.bw-prompt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; padding: var(--space-2) 0; }
.bw-prompt input::placeholder { color: var(--ink-muted); opacity: 1; }
@container (max-width: 460px) {
  .bw-prompt input { flex-basis: calc(100% - 40px); }
  .bw-prompt .bw-btn { flex: 1 1 100%; margin-right: 0; }
}

/* StatusChip */
.bw-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.bw-status-glyph { flex: none; }
.bw-status-dot { position: relative; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: currentColor; }
.bw-status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: bw-pulse 1.6s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes bw-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
.bw-status-running { color: var(--signal-ink); background: var(--signal-soft); }
.bw-status-shipped { color: var(--success); background: var(--success-soft); }
.bw-status-blocked { color: var(--danger); background: var(--danger-soft); }
.bw-status-needs-you { color: var(--gamma); background: var(--gamma-soft); }

/* BandTag */
.bw-band { display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 12px 0 3px; border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; white-space: nowrap; }
.bw-band.is-compact { padding: 0 3px; }
.bw-band-glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--on-band); }
.bw-band-gamma { color: var(--gamma); background: var(--gamma-soft); }
.bw-band-gamma .bw-band-glyph { background: var(--gamma); }
.bw-band-beta { color: var(--beta); background: var(--beta-soft); }
.bw-band-beta .bw-band-glyph { background: var(--beta); }
.bw-band-alpha { color: var(--alpha); background: var(--alpha-soft); }
.bw-band-alpha .bw-band-glyph { background: var(--alpha); }

/* AgentCard */
.bw-agent { box-sizing: border-box; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--elevation-1); }
.bw-agent-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.bw-agent-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.bw-agent-callsign { font-family: var(--font-mono); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.bw-agent-role { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-muted); margin-top: -6px; }
.bw-agent-task { margin: var(--space-1) 0 var(--space-2); font-size: 15px; line-height: 24px; color: var(--ink); }
.bw-agent-track { height: 4px; border-radius: var(--radius-sm); background: var(--line); overflow: hidden; }
.bw-agent-track > span { display: block; height: 100%; border-radius: var(--radius-sm); transition: width 240ms cubic-bezier(.2,.8,.2,1); }
.bw-agent-gamma .bw-agent-track > span { background: var(--gamma); }
.bw-agent-beta .bw-agent-track > span { background: var(--beta); }
.bw-agent-alpha .bw-agent-track > span { background: var(--alpha); }
.bw-agent-meta { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }

/* Pipeline — the Thought Path */
.bw-path { display: flex; list-style: none; margin: 0; padding: var(--space-4) 0; container-type: inline-size; }
@container (max-width: 440px) {
  .bw-path-label { font-size: 10px; letter-spacing: 0.06em; margin-right: -0.06em; }
}
.bw-path-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); min-width: 0; }
.bw-path-step::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; margin: 0 10px; background: var(--line-strong); }
.bw-path-step:first-child::before { display: none; }
.bw-path-step.is-done::before, .bw-path-step.is-current::before { background: var(--signal-ink); }
.bw-path-node { position: relative; z-index: 1; box-sizing: border-box; width: 18px; height: 18px; border-radius: var(--radius-full); border: 2px solid var(--line-strong); background: var(--surface); }
.is-done .bw-path-node { background: var(--signal-ink); border-color: var(--signal-ink); }
.is-current .bw-path-node { border-color: var(--signal-ink); box-shadow: var(--glow-signal); }
.is-current .bw-path-node::after { content: ""; position: absolute; inset: 3px; border-radius: var(--radius-full); background: var(--signal-ink); }
.bw-path-label { font-family: var(--font-display); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.24em; margin-right: -0.24em; text-transform: uppercase; color: var(--ink-muted); }
.is-current .bw-path-label, .is-done .bw-path-label { color: var(--ink); }
.bw-path-band { font-family: var(--font-mono); font-size: 13px; line-height: 16px; background: none; }
.bw-path-band.bw-band-gamma { color: var(--gamma); }
.bw-path-band.bw-band-beta { color: var(--beta); }
.bw-path-band.bw-band-alpha { color: var(--alpha); }

@media (prefers-reduced-motion: reduce) {
  .bw-status-dot::after, .bw-signal.is-animated .bw-signal-packet { animation: none; }
  .bw-signal-packet { display: none; }
  .bw-btn, .bw-btn-arrow, .bw-prompt, .bw-agent-track > span { transition: none; }
}
