/* site.css — Waveio console. Palette: blue-black, cool white, one signal yellow. Shapes: capsules, pills, soft cards. */
:root { --bg: #07090E; --ink: #E9ECF2; --acc: #FFD60A; --acc-d: #B39500; --dim: rgba(233,236,242,.62); --mute: rgba(233,236,242,.4); --line: rgba(233,236,242,.1);
  --panel: #0E1118; --panel2: #161A24; --disp: 'Anybody', 'Arial Narrow', system-ui, sans-serif; --mono: 'DM Mono', ui-monospace, Menlo, monospace; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
main, footer { position: relative; z-index: 1; }

/* header */
.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 14px max(28px, env(safe-area-inset-left)); }
.top::before { content: ""; position: absolute; inset: 0 0 -18px; background: linear-gradient(var(--bg) 45%, rgba(7,9,14,0)); pointer-events: none; z-index: -1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 23px/1 var(--disp); font-stretch: 125%; letter-spacing: -.01em; }
.brand .mk { width: 32px; height: 32px; flex: 0 0 auto; }
.nav { display: flex; gap: 4px; margin-left: 22px; margin-right: auto; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--dim); font: 500 13px/1 var(--mono); transition: background 140ms, color 140ms; }
.nav a:hover { color: var(--ink); background: var(--panel2); }
.right { display: flex; align-items: center; gap: 8px; }
.top .right { margin-left: auto; }
.x, .connect, .ca { height: 40px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; text-decoration: none; font: 500 13px/1 var(--mono); }
.x { width: 40px; padding: 0; background: var(--panel2); font: 800 16px/1 var(--disp); }
.x:hover { background: #20263a; }
.connect { background: var(--ink); color: var(--bg); transition: transform 140ms cubic-bezier(.22,1,.36,1); }
.connect:hover { transform: translateY(-1px); }
.connect.on { background: var(--panel2); color: var(--ink); }
.ca { background: var(--panel2); } .ca span { color: var(--acc); } .ca[hidden] { display: none; }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 52px; align-items: center;
  padding: 92px max(28px, env(safe-area-inset-right)) 32px max(28px, env(safe-area-inset-left)); }
.voice { display: flex; flex-direction: column; min-width: 0; }
.hook { margin: 0 0 18px; font: 900 clamp(52px, 7.3vw, 124px)/.84 var(--disp); letter-spacing: -.015em; text-transform: uppercase; }
.hook .ln { display: block; white-space: nowrap; }
.hook .ln.a { color: var(--acc); }
.hook .l { display: inline-block; font-stretch: 92%; }
.stage { position: relative; height: 250px; }
#wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chips { position: absolute; left: 0; right: 0; top: 0; height: 62px; pointer-events: none; }
.chip { position: absolute; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font: 500 12px/1 var(--mono); letter-spacing: .05em; background: var(--panel2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  animation: pop 280ms cubic-bezier(.22,1,.36,1) both; }
.chip.buy { background: var(--acc); color: var(--bg); box-shadow: none; }
.chip.sell { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip.tok { color: var(--acc); }
.chip.exit { box-shadow: inset 0 0 0 1.5px var(--acc); }
.chips.flow { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; height: 66px; }
.chips.flow .chip { position: static; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
.said { margin: 12px 0 0; min-height: 2.95em; max-width: 62ch; font: 400 clamp(15px, 1.3vw, 19px)/1.45 var(--mono); color: var(--dim); }
.said b { font-weight: 500; color: var(--ink); background: rgba(255,214,10,.16); border-radius: 6px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.said .q { color: var(--acc); }
.said.hint { opacity: .55; }
.caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 3px; vertical-align: -.18em; border-radius: 2px; background: var(--acc); animation: blink 800ms steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ctrl { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.ptt { flex: 0 0 auto; width: 88px; height: 88px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--bg);
  box-shadow: 0 7px 0 var(--acc-d), 0 22px 44px rgba(0,0,0,.5); transition: transform 140ms cubic-bezier(.22,1,.36,1), box-shadow 140ms; touch-action: none; user-select: none; -webkit-user-select: none; }
.ptt svg { width: 34px; height: 34px; }
.ptt:hover { transform: translateY(-1px); }
.ptt.hold { transform: translateY(5px); box-shadow: 0 2px 0 var(--acc-d), 0 0 0 0 rgba(255,214,10,.4); animation: ring 900ms cubic-bezier(.22,1,.36,1) infinite; }
@keyframes ring { from { box-shadow: 0 2px 0 var(--acc-d), 0 0 0 0 rgba(255,214,10,.42); } to { box-shadow: 0 2px 0 var(--acc-d), 0 0 0 28px rgba(255,214,10,0); } }
.ptt-lab { display: flex; flex-direction: column; gap: 6px; min-width: 132px; }
.ptt-lab b { font: 800 19px/1 var(--disp); font-stretch: 122%; text-transform: uppercase; }
.ptt-lab span { font-size: 12px; color: var(--mute); white-space: nowrap; }
.type { flex: 1 1 auto; min-width: 0; max-width: 400px; height: 54px; display: flex; align-items: center; gap: 6px; padding: 0 7px 0 20px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 140ms; }
.type:focus-within { box-shadow: inset 0 0 0 1.5px var(--acc); }
.type input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 15px/1 var(--mono); }
.type input::placeholder { color: var(--mute); }
.type button { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); }
.type button:hover { background: var(--acc); color: var(--bg); }
.ico { width: 54px; height: 54px; flex: 0 0 auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background 140ms, color 140ms; }
.ico:hover { background: var(--panel2); }
.ico[aria-pressed="true"] { background: var(--acc); color: var(--bg); box-shadow: none; }

/* swap preview card */
.card { position: relative; align-self: center; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 30px; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(233,236,242,.05), 0 40px 90px rgba(0,0,0,.55); }
.c-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 0; font: 500 14px/1 var(--mono); }
.pill { height: 30px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--panel2); font: 500 12px/1 var(--mono); white-space: nowrap; transition: background 140ms, color 140ms; }
.pill.on { color: var(--acc); }
.pill.on::before { content: ""; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--acc); animation: blink 600ms steps(2) infinite; }
.pill.ok { background: var(--acc); color: var(--bg); }
.pill.warn { color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.c-body { display: flex; flex-direction: column; gap: 12px; transition: opacity 220ms; }
.io { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; border-radius: 20px; background: var(--panel2); }
.io .lab { font: 400 12px/1 var(--mono); color: var(--mute); }
.val { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.val b { font: 800 44px/1 var(--disp); font-stretch: 108%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--mono); white-space: nowrap; }
.tav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 13px/1 var(--disp); font-style: normal; background: var(--ink); color: var(--bg); }
.tav[style*="--h:1"], .tav[style*="--h:3"] { background: var(--acc); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 4px; font: 400 12px/1.2 var(--mono); color: var(--dim); }
.shape { height: 104px; margin: 2px 0; }
#shape { width: 100%; height: 100%; display: block; }
.exits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.exits:empty { display: none; }
.exits li { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--panel2); font: 500 13px/1 var(--mono); }
.exits b { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--acc); }
.exits em { font-style: normal; font-size: 12px; color: var(--dim); }
.kv { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 2px 4px; }
.kv div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kv dt { font: 400 11px/1 var(--mono); color: var(--mute); }
.kv dd { margin: 0; font: 500 13px/1.15 var(--mono); overflow-wrap: anywhere; }
.warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc); font: 500 13px/1.2 var(--mono); }
.warn[hidden] { display: none; }
.warn button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--acc); color: var(--bg); font: 500 12px/1 var(--mono); }
.warn button[hidden] { display: none; }
.sign { height: 62px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--acc); color: var(--bg);
  font: 800 19px/1 var(--disp); font-stretch: 118%; text-transform: uppercase; box-shadow: 0 6px 0 var(--acc-d); transition: transform 140ms cubic-bezier(.22,1,.36,1), box-shadow 140ms, background 140ms; }
.sign:hover { transform: translateY(-1px); }
.sign:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--acc-d); }
.sign:disabled { background: var(--panel2); color: var(--mute); box-shadow: none; transform: none; cursor: default; }
.sign.done, .sign.done:disabled { background: var(--ink); color: var(--bg); box-shadow: 0 6px 0 #8a8f99; }
.sign.done::before { content: ""; width: 20px; height: 11px; margin-top: -6px; border: solid currentColor; border-width: 0 0 4px 4px; transform: rotate(-45deg); }
.c-foot { display: flex; justify-content: space-between; padding: 0 2px; }
.c-foot button { border: 0; background: transparent; padding: 8px 6px; color: var(--dim); font: 500 13px/1 var(--mono); border-radius: 999px; }
.c-foot button:hover { color: var(--ink); background: var(--panel2); }
.card.wait .c-body { opacity: .42; }
.card.flash { animation: flash 700ms cubic-bezier(.22,1,.36,1); }
@keyframes flash { 30% { box-shadow: inset 0 0 0 2px var(--acc), 0 40px 90px rgba(0,0,0,.55); } }
.card.wait .sign { pointer-events: none; }
.c-empty { display: none; }
.card.empty .c-body { display: none; }
.card.empty .c-empty { display: flex; flex-direction: column; gap: 10px; }
.c-empty p { margin: 8px 4px 6px; font: 900 44px/.9 var(--disp); font-stretch: 112%; text-transform: uppercase; }
.c-empty button { text-align: left; border: 0; border-radius: 18px; padding: 15px 16px; background: var(--panel2); font: 400 14px/1.35 var(--mono); transition: background 140ms; }
.c-empty button:hover { background: #1d2230; }

/* sections */
.sec { padding: 120px max(28px, env(safe-area-inset-right)) 30px max(28px, env(safe-area-inset-left)); }
.sec h2 { margin: 0 0 34px; font: 900 clamp(44px, 6.4vw, 104px)/.86 var(--disp); font-stretch: 112%; letter-spacing: -.02em; text-transform: uppercase; }
.sec h2 em { font-style: normal; color: var(--acc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.ex { position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left; border: 0; border-radius: 24px; padding: 20px 64px 20px 20px; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 220ms cubic-bezier(.22,1,.36,1), background 140ms; }
.ex:hover { transform: translateY(-3px); background: var(--panel2); }
.ex-said { font: 400 16px/1.42 var(--mono); }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chips .chip { position: static; animation: none; }
.ex-play { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--acc); }
.ex-play::after { content: ""; position: absolute; left: 14px; top: 11px; border: 7px solid transparent; border-left: 11px solid var(--bg); border-right: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 26px; border-radius: 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tile h3 { margin: 0; font: 800 28px/.95 var(--disp); font-stretch: 116%; text-transform: uppercase; }
.sign.mini { height: 56px; font-size: 17px; }
.cap { display: flex; align-items: center; gap: 16px; }
.cap b { min-width: 4.3em; text-align: right; font: 800 30px/1 var(--disp); font-stretch: 110%; white-space: nowrap; }
input[type=range] { --f: 23%; flex: 1; min-width: 0; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--acc) var(--f), var(--panel2) var(--f)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 4px 0 #8a8f99; }
input[type=range]::-moz-range-track { height: 12px; border-radius: 999px; background: var(--panel2); }
input[type=range]::-moz-range-progress { height: 12px; border-radius: 999px; background: var(--acc); }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ink); }
.lock { align-self: flex-start; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 999px; padding: 8px 18px 8px 8px; background: var(--panel2); font: 500 14px/1 var(--mono); }
.lock i { position: relative; width: 58px; height: 34px; border-radius: 999px; background: rgba(233,236,242,.22); transition: background 220ms; }
.lock i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.lock[aria-pressed="true"] i { background: var(--acc); }
.lock[aria-pressed="true"] i::after { transform: translateX(24px); }
.unlocked .lock span { color: var(--dim); }

/* footer */
.foot { padding: 100px max(28px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); }
.word { font: 900 15.4vw/.78 var(--disp); font-stretch: 150%; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; margin-left: -.03em; }
.frow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 34px; }
.frow .brand { font-size: 19px; } .frow .brand .mk { width: 26px; height: 26px; }
details { flex: 1 1 360px; max-width: 640px; }
summary { cursor: pointer; display: inline-flex; padding: 10px 14px; border-radius: 999px; background: var(--panel2); font: 500 13px/1 var(--mono); list-style: none; }
summary::-webkit-details-marker { display: none; }
details ol { margin: 14px 0 0; padding-left: 20px; font: 400 13px/1.65 var(--mono); color: var(--dim); }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 13px 18px; border-radius: 999px;
  background: var(--acc); color: var(--bg); font: 500 13px/1 var(--mono); white-space: nowrap; transition: opacity 220ms, transform 220ms cubic-bezier(.22,1,.36,1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; padding-top: 104px; }
  .card { width: 100%; max-width: 620px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top { padding: max(12px, env(safe-area-inset-top)) 16px 10px; }
  .brand { font-size: 20px; gap: 8px; } .brand .mk { width: 27px; height: 27px; }
  .x, .connect, .ca { height: 38px; } .x { width: 38px; } .connect { padding: 0 15px; }
  .top .ca { display: none; }
  .hero { min-height: 0; gap: 16px; padding: 78px 16px 140px; }
  .hook { font-size: 13.6vw; margin-bottom: 10px; }
  .stage { height: 196px; }
  .said { margin-top: 6px; min-height: 4.4em; font-size: 14px; }
  .ctrl { position: fixed; z-index: 12; left: 0; right: 0; bottom: 0; margin: 0; gap: 8px; padding: 26px 16px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(7,9,14,0), var(--bg) 30%); }
  .ptt-lab, #next { display: none; }
  .ptt { order: 5; width: 66px; height: 66px; box-shadow: 0 5px 0 var(--acc-d), 0 14px 30px rgba(0,0,0,.5); } .ptt svg { width: 28px; height: 28px; }
  .type { height: 52px; max-width: none; padding-left: 18px; } .ico { width: 52px; height: 52px; }
  .card { padding: 14px; border-radius: 26px; gap: 12px; }
  .io { padding: 12px 14px 14px; } .val b { font-size: 34px; }
  .shape { height: 90px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .sec { padding: 76px 16px 20px; } .sec h2 { margin-bottom: 24px; }
  .grid, .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 22px; gap: 22px; }
  .foot { padding: 60px 16px 130px; }
  .toast { bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
