:root {
  --bg: #0d1117; --panel: #161b22; --line: #30363d; --fg: #e6edf3;
  --dim: #8b949e; --acc: #58a6ff; --good: #3fb950; --warn: #d29922;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--fg);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); text-decoration: none; }
pre, code, .mono { font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: .85rem; }

header { display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.3rem; }
.brand span { color: var(--acc); }
nav a { margin-left: 1.5rem; color: var(--dim); }

.hero { max-width: 900px; margin: 3rem auto 1rem; padding: 0 2rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; }
.sub { margin: 1rem 0; color: var(--dim); font-size: 1.1rem; max-width: 46rem; }
.sub b { color: var(--fg); }
.statebar { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0 .5rem; }
.pill { padding: .3rem .8rem; border-radius: 99px; font-weight: 600;
  font-size: .85rem; border: 1px solid var(--line); }
.pill.asleep { color: var(--dim); }
.pill.catching { color: var(--warn); border-color: var(--warn); }
.pill.live { color: var(--good); border-color: var(--good); }
#start-btn { background: var(--acc); color: #04121f; border: 0;
  padding: .55rem 1.2rem; border-radius: 8px; font-weight: 700;
  font-size: 1rem; cursor: pointer; }
#start-btn:disabled { opacity: .4; cursor: default; }
#catchup-line { color: var(--warn); font-size: .9rem; }
.foot { color: var(--dim); font-size: .85rem; margin-top: .5rem; }

.demo { display: grid; grid-template-columns: 290px 1fr 360px; gap: 1rem;
  padding: 1.5rem 2rem; align-items: start; }
@media (max-width: 1100px) { .demo { grid-template-columns: 1fr; } }

.acts .act { background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem 1rem; margin-bottom: .7rem; }
.act h4 { font-size: .95rem; margin-bottom: .3rem; }
.act .claim { color: var(--dim); font-size: .82rem; }
.act .competitive { display: none; margin-top: .5rem; padding: .5rem;
  border-left: 3px solid var(--acc); font-size: .78rem; color: var(--dim);
  background: #0d1420; }
.act.open .competitive { display: block; }
.act button { margin-top: .5rem; background: transparent; color: var(--acc);
  border: 1px solid var(--acc); border-radius: 6px; padding: .25rem .7rem;
  cursor: pointer; font-size: .8rem; }
.act button:disabled { opacity: .35; }
.act .why { color: var(--dim); font-size: .75rem; cursor: pointer;
  margin-left: .6rem; }

.stage, .lakepane { background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; min-height: 480px; display: flex; flex-direction: column; }
.stagehead { display: flex; justify-content: space-between; padding: .6rem 1rem;
  border-bottom: 1px solid var(--line); color: var(--dim); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; }
#transcript { padding: 1rem; overflow-y: auto; flex: 1; max-height: 560px; }
#transcript .text { margin: .5rem 0; white-space: pre-wrap; font-size: .92rem; }
#transcript .tool { color: #56d4dd; font-size: .78rem; margin: .15rem 0;
  font-family: ui-monospace, monospace; display: none; }
body.hood #transcript .tool { display: block; }
#transcript .done { color: var(--dim); font-size: .75rem; }
#transcript .actmark { color: var(--acc); font-weight: 700; margin-top: 1rem; }
.verify { margin: .6rem 0; }
.verify button { background: var(--good); color: #04120a; border: 0;
  border-radius: 6px; padding: .4rem .9rem; font-weight: 700; cursor: pointer; }

#playground { border-top: 1px solid var(--line); padding: .8rem 1rem; }
#playground.hidden { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.chips button { background: #0d1420; color: var(--dim); border: 1px solid
  var(--line); border-radius: 99px; padding: .25rem .7rem; font-size: .75rem;
  cursor: pointer; }
#playground form { display: flex; gap: .5rem; }
#chat-in { flex: 1; background: var(--bg); border: 1px solid var(--line);
  color: var(--fg); border-radius: 8px; padding: .5rem .8rem; }
#playground form button { background: var(--acc); border: 0; border-radius: 8px;
  padding: .5rem 1rem; font-weight: 700; cursor: pointer; }

#lake { width: 100%; border-collapse: collapse; font-size: .72rem;
  font-family: ui-monospace, monospace; }
#lake td, #lake th { padding: .25rem .5rem; border-bottom: 1px solid var(--line);
  text-align: left; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 130px; }
#lake th { color: var(--dim); }
#ticker { padding: .6rem 1rem; font-family: ui-monospace, monospace;
  font-size: .72rem; color: var(--warn); overflow-y: auto; max-height: 180px; }

.toggle { color: var(--dim); font-size: .75rem; text-transform: none;
  letter-spacing: 0; }

.handson { max-width: 900px; margin: 2rem auto; padding: 0 2rem; }
.handson h2 { margin-bottom: 1rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.cols pre { background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: .8rem; overflow-x: auto; margin: .5rem 0; }
.cols p { color: var(--dim); font-size: .88rem; }

footer { border-top: 1px solid var(--line); color: var(--dim);
  padding: 1.5rem 2rem; font-size: .8rem; margin-top: 2rem; }
