/* Voystick homepage. Monochrome, with the joystick red as the only accent. */
:root {
  --bg: #000;
  --ink: #fff;
  --mute: #9a9aa1;
  --faint: #6b6b72;
  --line: rgba(255, 255, 255, .1);
  --card: #0c0c0d;
  --raised: #1b1b1e;
  --red: #E5394F;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
.mono { font-family: var(--mono); font-size: .92em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.mark { width: 26px; height: 26px; color: #fff; --dot: var(--red); }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--mute); }
.nav nav a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; font-size: 16px;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
h1 { font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 680; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -.03em; font-weight: 660; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 620; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--mute); max-width: 34em; }
.fine { font-size: 14px; color: var(--faint); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  max-width: 1120px; margin: 0 auto; padding: 72px 20px 88px;
}
.hero-copy .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1.02; justify-self: center;
  background: radial-gradient(60% 55% at 45% 50%, rgba(255, 255, 255, .07), transparent 70%);
}
/* The pointer sits where the menu's centre is; the menu's own pointer takes over while it is open. */
.hero-pointer { position: absolute; left: 50%; top: 44%; width: 0; height: 0; transition: opacity .2s; }
.hero-pointer .cur { position: absolute; left: -5px; top: -3px; width: 30px; height: 36px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.hero-pointer .press {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; transform: scale(.4);
  transition: opacity .18s, transform .22s var(--ease);
}
.hero-pointer.on .press { opacity: 1; transform: none; box-shadow: 0 0 18px rgba(229, 57, 79, .55); }
.hero-pie.open ~ .hero-pointer { opacity: 0; }
.hero-pie { position: absolute; left: 12%; top: 6%; width: 76%; }
.hero-pill { position: absolute; left: 50%; top: 52%; translate: -50% 0; }
.legend {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 10px; font-size: 14px; color: var(--mute);
}
.legend li { padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); transition: color .25s, border-color .25s, background .25s; white-space: nowrap; }
.legend .key { display: inline-block; padding: 1px 9px; margin-right: 6px; border-radius: 999px; background: var(--raised); color: #fff; font-weight: 600; font-size: 13px; transition: background .25s; }
.legend li.on { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.legend li.on .key { background: var(--red); }

/* Pie */
.pie { overflow: visible; opacity: 0; transform: scale(.7); transition: opacity .22s, transform .32s var(--ease); }
.pie.open { opacity: 1; transform: none; }
.pie .slice { fill: #1c1c1f; stroke: #1c1c1f; stroke-width: 7; stroke-linejoin: round; transition: fill .14s, stroke .14s; cursor: default; }
.pie text { font: 600 10.5px var(--sans); fill: #d6d6da; text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .14s; }
.pie g.item.on .slice, .pie g.item:hover .slice { fill: #fff; stroke: #fff; }
.pie g.item.on text, .pie g.item:hover text { fill: #000; }
.pie .hub { fill: #0c0c0d; stroke: rgba(255, 255, 255, .14); }
.pie .level { fill: rgba(255, 255, 255, .24); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s linear; }
.pie .stick { fill: #fff; transition: transform .3s var(--ease), fill .2s, opacity .2s; }
.pie.aim .stick { fill: var(--red); }
.pie .hub-text { font-size: 11px; fill: #fff; opacity: 0; transition: opacity .2s; }
.pie.adjust .hub-text { opacity: 1; }
.pie.adjust .stick { opacity: 0; }
.pie .cur { transition: transform .55s var(--ease); pointer-events: none; }

/* Dictation pill */
.pill {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .55em .6em .55em .9em; border-radius: 999px; max-width: 92%;
  background: #18181b; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  font-size: 14px; white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .22s, transform .3s var(--ease);
}
.pill.show { opacity: 1; transform: none; }
.pill-text { color: #fff; min-width: 3.2em; overflow: hidden; text-overflow: ellipsis; }
.pill-text:empty::before { content: "Listening"; color: var(--mute); }
.pill-ok { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--raised); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.pill-ok svg { width: .95em; height: .95em; }
.pill.done .pill-ok { background: #fff; color: #000; }
.bars { display: inline-flex; align-items: center; gap: 2.5px; height: 1.3em; flex: none; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--red); transform: scaleY(.25); animation: bar 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.8s; } .bars i:nth-child(3) { animation-delay: -.55s; }
.bars i:nth-child(4) { animation-delay: -.3s; } .bars i:nth-child(5) { animation-delay: -.65s; }
.pill:not(.show) .bars i, .pill.done .bars i { animation-play-state: paused; }
@keyframes bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* Features */
.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px;
  max-width: 1120px; margin: 0 auto; padding: 88px 20px;
  border-top: 1px solid var(--line);
}
.feature.flip .copy { order: 2; }
.copy > p { color: var(--mute); margin-top: 18px; max-width: 30em; }
.copy h3 { margin-top: 30px; }
.copy h3 + p { margin-top: 8px; }
.copy .fine { color: var(--faint); margin-top: 14px; }
.points { margin-top: 16px; display: grid; gap: 10px; color: var(--mute); font-size: 16px; max-width: 31em; }
.points li { padding-left: 18px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #3a3a3f; }
.points b { color: #fff; font-weight: 600; }

.stage {
  position: relative; aspect-ratio: 5 / 4; border-radius: 26px; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 0%, #151517, var(--card) 70%);
  border: 1px solid var(--line);
  container-type: inline-size;
}
.scene { position: absolute; inset: 0; font-size: clamp(11px, 2.75cqw, 15px); }

/* Pie stage */
.chips { position: absolute; top: 5%; left: 0; right: 0; display: flex; justify-content: center; gap: .5em; z-index: 2; }
.chip {
  font: inherit; font-size: .92em; color: var(--mute); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .35em .95em; transition: all .2s;
}
.chip:hover { color: #fff; }
.chip.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
#demo-pie { position: absolute; left: 50%; top: 51.5%; width: 56%; translate: -50% -50%; }
.toast {
  position: absolute; left: 50%; bottom: 5%; translate: -50% 0;
  padding: .4em 1em; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: .92em; white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* Chat stage */
.chat { display: flex; flex-direction: column; justify-content: center; gap: .8em; padding: 5.5% 6%; }
.chat-head { display: flex; align-items: center; gap: .55em; font-weight: 600; color: var(--mute); font-size: .92em; }
.chat-head .mark { width: 1.3em; height: 1.3em; }
.bubble { max-width: 84%; padding: .6em .95em; border-radius: 1.2em; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: .35em; min-height: 2.6em; }
.bubble.bot { align-self: flex-start; background: var(--raised); border-bottom-left-radius: .35em; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); }
.bubble.bot.show { opacity: 1; transform: none; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: currentColor; opacity: 0; }
.caret.on { opacity: 1; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: .3em 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--mute); animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.bubble.bot.said .typing { display: none; }
.card {
  background: #131315; border: 1px solid rgba(255, 255, 255, .13); border-radius: 1.1em; padding: .95em 1.05em;
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .35s var(--ease), border-color .3s;
}
.card.show { opacity: 1; transform: none; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.card-title { font-weight: 650; font-size: 1.08em; }
.card-sub { color: var(--mute); font-size: .88em; margin-top: .1em; }
.badge { font-size: .8em; font-weight: 600; padding: .25em .75em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.badge.show { opacity: 1; }
.badge.medium { border-color: var(--red); color: #ff9aa5; }
.card-guard { color: #c9c9ce; font-size: .92em; margin-top: .75em; min-height: 2.7em; opacity: 0; transition: opacity .3s; }
.card-guard.show { opacity: 1; }
.guard-tag { font-size: .78em; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-right: .7em; }
.card-actions { display: flex; align-items: center; gap: .5em; margin-top: .8em; position: relative; }
.mini { font-size: .88em; padding: .38em .95em; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); transition: all .2s; }
.mini.primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.mini.primary.press { transform: scale(.92); }
.approved { position: absolute; inset: 0; display: flex; align-items: center; gap: .5em; font-weight: 600; font-size: .92em; background: #131315; opacity: 0; transition: opacity .25s; }
.approved svg { width: 1.5em; height: 1.5em; padding: .28em; border-radius: 50%; background: var(--red); color: #fff; }
.card.ok .approved { opacity: 1; }
.card.ok { border-color: rgba(255, 255, 255, .3); }

/* Dictation stage */
.dict { padding: 6%; }
.win { height: 100%; display: flex; flex-direction: column; background: #111113; border: 1px solid var(--line); border-radius: 1.1em; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: .4em; padding: .7em .9em; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .85em; }
.win-bar i { width: .65em; height: .65em; border-radius: 50%; background: #2e2e32; }
.win-bar span { margin-left: .6em; }
.thread { flex: 1; padding: 1em; display: flex; flex-direction: column; gap: .6em; }
.msg { align-self: flex-start; background: var(--raised); padding: .55em .95em; border-radius: 1.2em; border-bottom-left-radius: .35em; max-width: 80%; }
.composer {
  margin: 0 .9em .9em; padding: .7em 1em; min-height: 2.9em; border-radius: 1.4em; position: relative;
  border: 1px solid rgba(255, 255, 255, .18); line-height: 1.4; padding-right: 5.2em;
}
.composer .mono { font-size: .9em; }
.send {
  position: absolute; right: .45em; top: 50%; translate: 0 -50%;
  font-size: .85em; font-weight: 600; padding: .35em .85em; border-radius: 999px; background: var(--red); color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s var(--ease);
}
.send.show { opacity: 1; transform: none; }
#d-pill { position: absolute; right: 9%; bottom: 31%; font-size: 1em; }
.suggest { position: absolute; left: 30%; top: 36%; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); }
.suggest.show { opacity: 1; transform: none; }
.suggest .cur { width: 1.3em; height: 1.6em; }
.suggest .row {
  margin: .2em 0 0 1em; display: flex; gap: 1em; align-items: center; padding: .5em .9em; border-radius: .8em;
  background: #18181b; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  font-size: .95em; white-space: nowrap; transition: background .15s, color .15s;
}
.suggest .row span { font-family: var(--mono); color: var(--mute); font-size: .92em; transition: color .15s; }
.suggest.pick .row { background: #fff; color: #000; }
.suggest.pick .row span { color: #333; }

/* Values stage */
.vals { padding: 6%; display: flex; flex-direction: column; gap: 4%; justify-content: center; }
.panel { background: #111113; border: 1px solid var(--line); border-radius: 1.1em; overflow: hidden; }
.panel-head { padding: .7em 1.1em; font-weight: 600; font-size: .92em; color: var(--mute); border-bottom: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 1fr 1.25fr auto; align-items: center; gap: .8em; padding: .68em 1.1em; border-bottom: 1px solid rgba(255, 255, 255, .06); position: relative; }
.vrow:last-child { border-bottom: 0; }
.vrow .ph { font-weight: 600; }
.vrow .mono { color: var(--mute); }
.tag { display: inline-flex; align-items: center; gap: .4em; font-size: .82em; font-weight: 600; padding: .25em .75em; border-radius: 999px; background: var(--raised); white-space: nowrap; }
.tag.sync { background: transparent; border: 1px solid var(--line); color: var(--mute); font-weight: 500; }
.tag svg { width: 1em; height: 1em; color: var(--red); }
.vrow.new { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), background .4s; }
.vrow.new.show { opacity: 1; transform: none; }
.vrow.new .tag { opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s var(--ease); }
.vrow.new .switch { position: absolute; right: 1.1em; width: 2.5em; height: 1.45em; border-radius: 999px; background: #2e2e32; transition: background .2s, opacity .2s; }
.vrow.new .switch i { position: absolute; left: .16em; top: .16em; width: 1.13em; height: 1.13em; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.vrow.new.local .switch { background: var(--red); }
.vrow.new.local .switch i { transform: translateX(1.05em); }
.vrow.new.locked .switch { opacity: 0; }
.vrow.new.locked .tag { opacity: 1; transform: none; }
.vrow.new.locked { background: rgba(255, 255, 255, .04); }
.flow { display: grid; gap: .7em; opacity: 0; transition: opacity .35s; }
.flow.show { opacity: 1; }
.lane { display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; align-items: center; gap: .6em; }
.node { padding: .5em .8em; border-radius: .8em; background: var(--raised); font-size: .9em; font-weight: 600; text-align: center; white-space: nowrap; }
.node small { display: block; font-weight: 400; font-size: .82em; color: var(--mute); }
.node.dim { background: transparent; border: 1px dashed rgba(255, 255, 255, .2); }
.node.keep { background: #fff; color: #000; }
.node.keep small { color: #555; }
.node.keep svg { display: inline-block; width: .95em; height: .95em; vertical-align: -.08em; margin-right: .3em; color: var(--red); }
.node.mono { font-size: .84em; }
.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 5px, transparent 5px 10px); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0; }
.flow.show .wire i { animation: travel 1.8s linear infinite; }
.wire.stop { background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)); }
.wire.stop i { background: var(--red); }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* Screenshot stage (one SVG so everything scales together) */
.shot { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--sans); }
.s-mode rect { fill: transparent; stroke: rgba(255, 255, 255, .14); transition: fill .2s; }
.s-mode text { fill: #9a9aa1; transition: fill .2s; }
.s-mode.on rect { fill: #fff; } .s-mode.on text { fill: #000; font-weight: 600; }
.s-sel { fill: rgba(255, 255, 255, .05); stroke: #fff; stroke-width: 1.5; opacity: 0; transition: opacity .2s, filter .3s; }
.s-sel.show { opacity: 1; }
.s-sel.glow { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)); }
.s-ink { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.s-ink.draw { transition: stroke-dashoffset var(--d, .7s) ease-in-out; stroke-dashoffset: 0; }
.s-tools, .s-done { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease); }
.s-tools.show, .s-done.show { opacity: 1; transform: none; }
#s-cap rect { fill: #fff; transition: fill .15s; } #s-cap text { fill: #000; font-weight: 600; }
#s-cap.press rect { fill: var(--red); } #s-cap.press text { fill: #fff; }
.s-cur { transition: transform var(--d, .6s) var(--ease), opacity .2s; opacity: 0; }
.s-cur.show { opacity: 1; }

/* Extras, final, footer */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 24px 20px 88px; }
.extra { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.extra p { color: var(--mute); font-size: 15.5px; margin-top: 8px; }
.final { text-align: center; padding: 96px 20px 110px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 18px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(229, 57, 79, .14), transparent 70%); }
.mark.big { width: 72px; height: 72px; margin-bottom: 8px; }
.final .btn { margin-top: 12px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
.foot .brand { color: #fff; }
.foot .mark { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: 44px 20px 56px; gap: 28px; }
  .hero-visual { max-width: 400px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 60px 20px; }
  .feature.flip .copy { order: 0; }
  .stage { aspect-ratio: 1 / 1; border-radius: 22px; }
  .scene { font-size: clamp(11px, 3.5cqw, 15px); }
  #demo-pie { width: 68%; top: 50.5%; }
  .extras { grid-template-columns: 1fr; padding-bottom: 60px; }
  .final { padding: 72px 20px 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
