:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08090b;
  color: #f2f1ed;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #92959d;
  --acid: #c7ff52;
  --violet: #a993ff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 70% 0%, #1d1732 0, transparent 36rem), #08090b; }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 96px; }
.brand { color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.brand span, .muted { color: var(--muted); }
.hero { padding: 24px 0 72px; }
.eyebrow, .step { color: var(--acid); font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
h1 { max-width: 920px; margin: 36px 0 24px; font-size: clamp(52px, 9vw, 112px); line-height: .87; letter-spacing: -.075em; font-weight: 650; }
.lede { max-width: 650px; color: #b6b8be; font-size: 19px; line-height: 1.55; }
.panel, .final { border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 18, 22, .76); backdrop-filter: blur(16px); padding: 28px; margin-top: 18px; }
.connect-panel { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
h2 { margin: 8px 0; font-size: 28px; letter-spacing: -.035em; }
.primary, .ghost, .prompt-chip { border: 0; border-radius: 999px; cursor: pointer; font-weight: 650; }
.primary { background: var(--acid); color: #10110d; padding: 14px 20px; }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.ghost { background: #2a2c32; color: #fff; padding: 10px 14px; }
.command-wrap { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
code { display: inline-block; max-width: calc(100% - 80px); overflow: auto; vertical-align: middle; padding: 12px 14px; color: var(--acid); background: #050605; border-radius: 10px; }
.status { color: var(--muted); font-size: 13px; }
.locked { opacity: .46; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.prompt-chip { background: transparent; border: 1px solid var(--line); color: #dadbe0; padding: 10px 13px; }
.prompt-chip:hover { border-color: var(--violet); color: #fff; }
form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: #0a0b0e; color: #fff; padding: 15px; font: inherit; }
.dream { margin-top: 54px; }
.process-flow { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,14,18,.72); }
.process-flow p { margin: 12px 0 0; color: var(--muted); font: 500 12px ui-monospace, monospace; }
.flow-line { position: relative; display: flex; justify-content: space-between; align-items: center; }
.flow-line::before { content: ''; position: absolute; left: 7px; right: 7px; height: 1px; background: linear-gradient(90deg, var(--violet), rgba(169,147,255,.18), var(--acid)); }
.flow-line i { position: relative; width: 15px; height: 15px; border: 2px solid var(--violet); border-radius: 50%; background: #0d0e12; box-shadow: 0 0 0 0 rgba(169,147,255,.35); animation: pulse 1.5s infinite; transition: .35s ease; }
.flow-line i.ready { border-color: var(--acid); background: var(--acid); box-shadow: 0 0 18px rgba(199,255,82,.55); animation: none; }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.process { min-height: 220px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #0d0e12; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(169,147,255,.09), transparent); transform: translateX(-100%); animation: scan 2.2s infinite; }
.process.ready::before { display: none; }
.process h3 { text-transform: uppercase; font: 600 12px ui-monospace, monospace; letter-spacing: .12em; color: var(--violet); }
.process p { color: #c9cad0; line-height: 1.5; white-space: pre-wrap; }
.final { margin-top: 14px; }
#answer { max-width: 760px; font-size: 20px; line-height: 1.65; white-space: pre-wrap; }
.ledger { margin-top: 24px; color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
@keyframes scan { to { transform: translateX(100%); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(169,147,255,0); } }
@media (max-width: 720px) {
  .connect-panel, form { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  h1 { font-size: 58px; }
}
