:root {
  color-scheme: dark;
  --bg: #07090a;
  --bg-2: #0e1412;
  --text: #edf5ef;
  --muted: #9ba9a3;
  --line: rgba(237, 245, 239, 0.14);
  --line-strong: rgba(237, 245, 239, 0.28);
  --green: #5cff9d;
  --green-dim: #143d2a;
  --cyan: #5de4ff;
  --amber: #ffc857;
  --panel: rgba(10, 14, 13, 0.82);
  --panel-strong: rgba(14, 21, 19, 0.94);
  --display: "Lustria", Georgia, serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Light product-demo header */
:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --bg-2: #fffaf1;
  --text: #171a1f;
  --muted: #646b76;
  --line: rgba(26, 31, 38, 0.12);
  --line-strong: rgba(26, 31, 38, 0.18);
  --green: #178f5a;
  --cyan: #0b7894;
  --amber: #b86d00;
  --panel: rgba(255, 255, 255, 0.86);
}

body {
  background:
    linear-gradient(180deg, #fffaf1 0%, #f7f4ed 52%, #ffffff 100%);
  color: var(--text);
}

.site-header {
  background: rgba(255, 250, 241, 0.78);
  border-bottom: 1px solid rgba(26, 31, 38, 0.08);
}

.brand {
  color: #15191f;
}

.brand-mark {
  border-color: rgba(23, 143, 90, 0.28);
  background: #e7f6ed;
  color: #126d46;
}

.nav-links {
  color: #59616d;
}

.nav-links a:hover {
  color: #126d46;
}

.live-hero {
  min-height: 100svh;
  padding: 54px clamp(18px, 4vw, 56px) 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(23, 143, 90, 0.13), transparent 22rem),
    radial-gradient(circle at 88% 22%, rgba(11, 120, 148, 0.11), transparent 24rem),
    linear-gradient(180deg, #fffaf1, #f7f4ed);
}

.hero-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.package-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(31, 35, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2f352f;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(42, 36, 29, 0.08);
}

.package-link:hover {
  border-color: rgba(23, 143, 90, 0.3);
  color: #126d46;
}

.live-hero .hero-titlebar {
  width: min(980px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.live-hero .ascii-logo {
  width: min-content;
  margin: 0 auto 22px;
  color: #17231d;
  font-size: clamp(3px, 0.55vw, 7px);
  text-shadow: none;
}

.live-hero h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
}

.live-hero .hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  color: #59616d;
}

.live-hero .hero-actions {
  justify-content: center;
  margin-top: 24px;
}

.live-hero .secondary-link {
  color: #1f2933;
  border-bottom-color: rgba(31, 41, 51, 0.28);
}

.copy-command {
  border-color: rgba(23, 143, 90, 0.35);
  background: #111820;
  color: #f6fff9;
}

.copy-label {
  color: #6df0a8;
}

.prompt {
  color: #ffbe55;
}

.live-demo {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  gap: 20px;
  width: min(1440px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.demo-shell {
  border: 1px solid rgba(26, 31, 38, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 80px rgba(46, 36, 20, 0.14);
  overflow: hidden;
}

.window-chrome,
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(26, 31, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.window-chrome span,
.browser-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-chrome span:nth-child(1),
.browser-chrome span:nth-child(1) {
  background: #ff5f56;
}

.window-chrome span:nth-child(2),
.browser-chrome span:nth-child(2) {
  background: #ffbd2e;
}

.window-chrome span:nth-child(3),
.browser-chrome span:nth-child(3) {
  background: #27c93f;
}

.window-chrome strong {
  margin-left: 8px;
  color: #5a6270;
  font-family: var(--mono);
  font-size: 12px;
}

.address-bar {
  flex: 1;
  margin-left: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(26, 31, 38, 0.1);
  border-radius: 999px;
  background: #f3f5f7;
  color: #59616d;
  font-family: var(--mono);
  font-size: 12px;
}

.terminal-side {
  background: #f3eadf;
}

.quickstart .terminal-side {
  background: rgba(255, 255, 255, 0.94);
}

.quickstart-terminal-window {
  overflow: hidden;
  border: 1px solid rgba(31, 35, 40, 0.14);
  border-radius: 12px;
  background: #fbfaf7;
  box-shadow: 0 22px 64px rgba(42, 36, 29, 0.12);
}

.quickstart-single {
  width: 100%;
}

.section-subcopy {
  max-width: 680px;
  margin: 14px 0 0;
  color: #5d665f;
  font-size: 15px;
  line-height: 1.55;
}

.terminal-boot {
  display: block;
  padding: 14px 16px;
  min-height: 298px;
  background: #fbfaf7;
  color: #363a36;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.terminal-boot > * + * {
  margin-top: 10px;
}

.quickstart-boot-log {
  display: grid;
  gap: 2px;
}

.shell-path {
  color: #7a7770;
}

.shell-prompt,
.cursor {
  color: #206142;
}

.cursor {
  animation: cursorBlink 1s steps(2, start) infinite;
}

.terminal-side .speech-stage {
  min-height: 102px;
  margin: 16px 16px 0;
}

.terminal-side .speech-bubble {
  background: #ffffff;
  color: #161b22;
  border-color: rgba(26, 31, 38, 0.1);
  box-shadow: 0 16px 35px rgba(33, 30, 24, 0.12);
}

.terminal-side .speech-bubble.active,
.terminal-side .speech-bubble:hover,
.terminal-side .speech-bubble:focus-visible {
  border-color: rgba(23, 143, 90, 0.45);
}

.terminal-side .terminal-app {
  min-height: 498px;
  margin: 0 16px 16px;
  border-color: rgba(11, 120, 148, 0.32);
  border-radius: 12px;
  background: #08100d;
  color: #edf5ef;
  grid-template-rows: auto 132px 1fr auto;
}

.terminal-side .demo-controls {
  margin: 0 16px 16px;
}

.quickstart-boot-active-line {
  min-height: 16px;
}

.quickstart-rtd-app {
  min-height: 360px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #fbfaf7;
  color: #1f2523;
  box-shadow: none;
  grid-template-rows: auto 108px 1fr auto;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.quickstart-rtd-app[hidden] {
  display: none;
}

.quickstart-rtd-app:not([hidden]) {
  display: grid;
}

.quickstart-rtd-app .ink-panel {
  padding: 10px 12px;
  border: 1px solid #d8d4ca;
  border-radius: 6px;
  background: #ffffff;
}

.quickstart-rtd-app .voice-panel,
.quickstart-rtd-app .tasks-panel {
  border-color: #d8d4ca;
}

.quickstart-rtd-app .panel-title {
  margin-bottom: 6px;
  color: #5d695f;
  font-size: 11px;
}

.quickstart-rtd-app .voice-label {
  margin-bottom: 6px;
  color: #5d695f;
  font-size: 11px;
}

.quickstart-rtd-app .waveform {
  color: #9b7b49;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.quickstart-rtd-app .waveform span {
  display: block;
  min-width: 760px;
  animation: waveform 1.4s linear infinite;
}

.quickstart-rtd-app .heard-line,
.quickstart-rtd-app .empty-task,
.quickstart-rtd-app .status-bar,
.quickstart-rtd-app .status-bar em {
  color: #7a7770;
  font-size: 11px;
}

.quickstart-rtd-app .heard-line,
.quickstart-rtd-app .empty-task {
  margin: 8px 0 0;
}

.quickstart-rtd-app .terminal-app-header,
.quickstart-rtd-app .status-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.quickstart-rtd-app .terminal-app-header strong {
  color: #1f2523;
}

.quickstart-rtd-app .terminal-app-header span {
  overflow: hidden;
  color: #7a7770;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quickstart-rtd-app .status-bar b {
  color: #206142;
}

.quickstart-rtd-app .status-bar > span:last-child {
  text-align: right;
}

.browser-side {
  background: #ffffff;
}

.product-app {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 648px;
  background: #fbfbfd;
  color: #1d222b;
  transition: background 240ms ease;
}

.product-sidebar {
  padding: 22px 16px;
  border-right: 1px solid rgba(26, 31, 38, 0.1);
  background: #f6f7f9;
}

.product-sidebar strong {
  display: block;
  margin-bottom: 24px;
  font-size: 17px;
}

.product-sidebar nav {
  display: grid;
  gap: 6px;
}

.product-sidebar span {
  padding: 9px 10px;
  border-radius: 8px;
  color: #68707d;
  font-size: 13px;
}

.product-sidebar .selected {
  background: #e9edf3;
  color: #1d222b;
  font-weight: 700;
}

.product-main {
  min-width: 0;
  padding: 24px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.product-kicker {
  color: #738091;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-toolbar h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.product-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(26, 31, 38, 0.1);
  border-radius: 8px;
  background: #1d222b;
  color: #ffffff;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kanban-column {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(26, 31, 38, 0.1);
  border-radius: 12px;
  background: #f2f4f7;
}

.kanban-column header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #59616d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.issue-card {
  position: relative;
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid rgba(26, 31, 38, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 32, 45, 0.06);
  transition: padding 240ms ease, border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.issue-card small {
  color: #738091;
  font-family: var(--mono);
  font-size: 11px;
}

.issue-card h3 {
  font-size: 14px;
}

.issue-card p {
  margin: 0;
  color: #68707d;
  font-size: 12px;
  line-height: 1.35;
}

.priority-badge {
  display: none;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ffe8e2;
  color: #b3301d;
  font-size: 11px;
  font-weight: 800;
}

.product-app.show-priority .urgent .priority-badge {
  display: inline-flex;
}

.product-app.show-priority .urgent {
  border-color: rgba(179, 48, 29, 0.22);
  background: #fffafa;
}

.product-app.compact-board .issue-card {
  gap: 4px;
  padding: 9px;
}

.product-app.compact-board .issue-card p {
  display: none;
}

.done-card {
  background: #f5fbf7;
}

.moved-card {
  animation: cardMove 420ms ease both;
}

@keyframes cardMove {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .live-demo {
    grid-template-columns: 1fr;
  }

  .product-app {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .live-hero {
    padding-top: 92px;
  }

  .live-hero .ascii-logo {
    font-size: 3px;
  }

  .product-app {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(26, 31, 38, 0.1);
  }

  .product-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 34%, rgba(92, 255, 157, 0.14), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(93, 228, 255, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.92), rgba(7, 9, 10, 0.42), transparent);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(92, 255, 157, 0.52);
  background: rgba(92, 255, 157, 0.08);
  color: var(--green);
  font-weight: 800;
}

.nav-links {
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 10, 0.98) 0%, rgba(7, 9, 10, 0.92) 34%, rgba(7, 9, 10, 0.52) 68%, rgba(7, 9, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 9, 10, 0.34), rgba(7, 9, 10, 0.84) 86%, var(--bg) 100%);
}

.hero-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(120px, 16vh, 172px) 0 72px;
}

.terminal-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.hero-copy-column {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ascii-logo {
  width: min-content;
  max-width: 100%;
  margin: 0 0 34px;
  overflow: hidden;
  color: #dfffe9;
  font-family: var(--mono);
  font-size: clamp(4px, 0.72vw, 9px);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 0 18px rgba(92, 255, 157, 0.42);
  white-space: pre;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 6.3vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c3d1ca;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.copy-command {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(92, 255, 157, 0.5);
  background: linear-gradient(180deg, rgba(18, 31, 25, 0.94), rgba(8, 13, 11, 0.94));
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.copy-command:hover,
.copy-command:focus-visible {
  border-color: var(--green);
  outline: none;
}

.copy-command > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-label {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.prompt {
  color: var(--amber);
}

.secondary-link {
  color: #d5eee0;
  font-family: var(--mono);
  font-size: 14px;
  border-bottom: 1px solid rgba(213, 238, 224, 0.4);
}

.hero-demo {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.speech-stage {
  position: relative;
  min-height: 112px;
}

.speech-bubble {
  position: absolute;
  max-width: min(340px, 84%);
  padding: 12px 14px;
  border: 1px solid rgba(237, 245, 239, 0.18);
  border-radius: 18px 18px 18px 4px;
  background: rgba(237, 245, 239, 0.92);
  color: #07100b;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  opacity: 0.56;
  transform: translateY(8px) scale(0.98);
  animation: bubbleIn 520ms ease both, bubbleFloat 4.8s ease-in-out infinite;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.speech-bubble:nth-child(1) {
  left: 0;
  bottom: 6px;
}

.speech-bubble:nth-child(2) {
  left: 18%;
  top: 0;
  animation-delay: 420ms, 900ms;
}

.speech-bubble:nth-child(3) {
  right: 0;
  bottom: 22px;
  animation-delay: 840ms, 1600ms;
}

.speech-bubble.active,
.speech-bubble:hover,
.speech-bubble:focus-visible {
  border-color: var(--green);
  opacity: 1;
  outline: none;
  transform: translateY(0) scale(1);
}

.terminal-app {
  display: grid;
  min-height: 592px;
  padding: 14px;
  border: 1px solid rgba(93, 228, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(4, 8, 7, 0.96), rgba(7, 11, 10, 0.96)),
    rgba(0, 0, 0, 0.82);
  box-shadow:
    0 24px 90px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 60px rgba(93, 228, 255, 0.08);
  color: #edf5ef;
  font-family: var(--mono);
  grid-template-rows: auto 154px 1fr auto;
  gap: 10px;
}

.terminal-app-header,
.status-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  font-size: 13px;
}

.terminal-app-header strong {
  color: #f4fff8;
  font-weight: 800;
}

.terminal-app-header span {
  overflow: hidden;
  color: #7f8d86;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ink-panel {
  position: relative;
  padding: 12px 14px;
  border: 1px solid #5de4ff;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tasks-panel {
  border-color: #6aff9e;
}

.voice-panel[data-mode="speaking"],
.voice-panel[data-mode="transcribing"] {
  border-color: var(--amber);
}

.voice-panel[data-mode="muted"] {
  border-color: rgba(237, 245, 239, 0.3);
}

.panel-title {
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 10px;
}

.tasks-panel .panel-title {
  color: var(--green);
}

.voice-label {
  color: var(--cyan);
  margin-bottom: 8px;
}

.voice-panel[data-mode="speaking"] .voice-label,
.voice-panel[data-mode="transcribing"] .voice-label {
  color: var(--amber);
}

.voice-panel[data-mode="muted"] .voice-label,
.voice-panel[data-mode="muted"] .waveform,
.voice-panel[data-mode="muted"] .heard-line {
  color: #7f8d86;
}

.waveform {
  color: var(--amber);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.waveform span {
  display: block;
  min-width: 860px;
  animation: waveform 1.4s linear infinite;
}

.heard-line {
  margin-top: 14px;
  color: #8e9b95;
  font-size: 13px;
}

.heard-line.active {
  color: var(--amber);
}

.task-list {
  display: grid;
  gap: 14px;
}

.empty-task {
  margin: 0;
  color: #7f8d86;
}

.terminal-task {
  display: grid;
  gap: 5px;
  animation: taskIn 260ms ease both;
}

.terminal-task strong {
  color: var(--green);
  font-weight: 700;
}

.terminal-task.done strong {
  color: var(--cyan);
}

.terminal-task.killed strong {
  color: var(--amber);
}

.terminal-task p {
  margin: 0;
  color: #edf5ef;
  line-height: 1.35;
}

.terminal-task small {
  color: #7f8d86;
}

.model-picker {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid var(--cyan);
  background: rgba(0, 0, 0, 0.24);
}

.model-picker[hidden] {
  display: none;
}

.model-picker div {
  color: var(--cyan);
}

.model-picker button {
  border: 0;
  background: transparent;
  color: #7f8d86;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  text-align: left;
}

.model-picker button.selected {
  color: var(--amber);
}

.model-picker small {
  color: #7f8d86;
}

.status-bar {
  color: #7f8d86;
  font-size: 12px;
}

.status-bar b {
  color: var(--green);
}

.status-bar em {
  margin-left: 10px;
  color: #7f8d86;
  font-style: normal;
}

.status-bar > span:last-child {
  text-align: right;
}

.demo-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.demo-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(237, 245, 239, 0.15);
  background: rgba(8, 13, 11, 0.82);
  color: #d5eee0;
  cursor: pointer;
  font-family: var(--mono);
}

.demo-controls button:hover,
.demo-controls button:focus-visible {
  border-color: var(--green);
  outline: none;
}

.demo-controls kbd {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

@keyframes waveform {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-160px);
  }
}

@keyframes taskIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 0.56;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.terminal-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.terminal-window,
.requirements,
.tui-preview {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.terminal-window {
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.window-bar span:nth-child(2) {
  background: var(--green);
}

.window-bar span:nth-child(3) {
  background: var(--cyan);
}

pre,
code {
  font-family: var(--mono);
}

.terminal-window pre {
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  color: #dfffe9;
  font-size: clamp(13px, 1.8vw, 18px);
  line-height: 1.8;
  overflow-x: auto;
}

.requirements {
  padding: 28px;
}

.requirements h3 {
  margin-bottom: 18px;
}

.requirements ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.requirements li {
  padding-left: 22px;
  position: relative;
}

.requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--green);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.pipeline div {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.pipeline span {
  display: block;
  margin-bottom: 70px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
}

.pipeline p,
.split p {
  color: var(--muted);
  line-height: 1.65;
}

.tui-preview {
  padding: 22px;
  font-family: var(--mono);
}

.refined-tui {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(31, 35, 40, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(251, 250, 247, 0.92)),
    url("./assets/desktop-earth-bg.png") center / cover;
  box-shadow: 0 22px 64px rgba(42, 36, 29, 0.12);
}

.refined-tui .window-chrome {
  min-height: 34px;
  background: rgba(248, 247, 244, 0.94);
}

.mini-tui {
  display: grid;
  min-height: 430px;
  padding: 12px;
  gap: 9px;
  background: rgba(251, 250, 247, 0.9);
  color: #1f2523;
  grid-template-rows: auto 112px 1fr auto;
  font-size: 11px;
}

.mini-tui .terminal-app-header,
.mini-tui .status-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mini-tui .terminal-app-header strong,
.mini-tui .mini-task {
  color: #1f2523;
}

.mini-tui .terminal-app-header span,
.mini-tui .heard-line,
.mini-tui .status-bar,
.mini-tui .status-bar em {
  color: #7a7770;
}

.mini-tui .ink-panel {
  padding: 10px 12px;
  border: 1px solid #d8d4ca;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.mini-tui .panel-title,
.mini-tui .voice-label {
  margin-bottom: 6px;
  color: #5d695f;
  font-size: 11px;
}

.mini-tui .waveform {
  overflow: hidden;
  color: #9b7b49;
  font-size: 10px;
  white-space: nowrap;
}

.mini-tui .waveform span {
  display: block;
  min-width: 620px;
  animation: waveform 1.4s linear infinite;
}

.mini-tui .heard-line {
  margin-top: 8px;
}

.mini-task {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
}

.mini-task.done {
  color: #52706a;
}

.mini-task.killed {
  color: #9b6f28;
}

.mini-tui .status-bar b {
  color: #206142;
}

.tui-top,
.tui-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tui-top {
  margin-bottom: 20px;
  color: #dfffe9;
}

.tui-top span,
.tui-line span {
  color: #7d8b85;
}

.meter {
  height: 6px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.tui-line {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.tui-line b {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.tui-preview pre {
  margin: 20px 0 0;
  padding: 18px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.34);
  color: var(--green);
  line-height: 1.7;
}

.control-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
}

.control-list div {
  display: grid;
  justify-items: start;
  gap: 18px;
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(31, 35, 40, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(42, 36, 29, 0.08);
}

kbd {
  display: grid;
  width: 68px;
  height: 58px;
  place-items: center;
  border: 1px solid #c5beb0;
  border-bottom-color: #9f9687;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #eee7db 58%, #d6cbb9 100%);
  color: #2f352f;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -5px 0 rgba(117, 105, 88, 0.18),
    0 8px 0 #b7ad9d,
    0 16px 24px rgba(42, 36, 29, 0.16);
}

.control-list span {
  color: #4f5762;
  line-height: 1.45;
}

.compact {
  width: fit-content;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    opacity: 0.72;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 9, 10, 0.94), rgba(7, 9, 10, 0.68) 44%, var(--bg) 100%),
      linear-gradient(90deg, rgba(7, 9, 10, 0.92), rgba(7, 9, 10, 0.54));
  }

  .terminal-grid,
  .split,
  .terminal-hero .hero-inner,
  .pipeline,
  .control-list {
    grid-template-columns: 1fr;
  }

  .terminal-app {
    min-height: 560px;
  }

  .pipeline span {
    margin-bottom: 34px;
  }

  .pipeline div,
  .control-list div {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    width: min(100% - 28px, 1120px);
    padding-top: 104px;
  }

  .ascii-logo {
    font-size: 4px;
  }

  h1 {
    font-size: 43px;
  }

  .copy-command {
    width: 100%;
    justify-content: flex-start;
  }

  .copy-label {
    margin-left: auto;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 70px 0;
  }

  .speech-stage {
    min-height: 148px;
  }

  .speech-bubble {
    position: relative;
    display: block;
    inset: auto !important;
    max-width: 100%;
    margin-bottom: 8px;
  }

  .terminal-app {
    min-height: 620px;
    padding: 10px;
    grid-template-rows: auto 150px 1fr auto;
  }

  .terminal-app-header,
  .status-bar {
    display: grid;
  }

  .status-bar > span:last-child {
    text-align: left;
  }

  .demo-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final cascade guards for the light-mode landing page. */
body {
  background:
    linear-gradient(180deg, #fffaf1 0%, #f7f4ed 52%, #ffffff 100%);
  color: #171a1f;
}

.site-header {
  background: rgba(255, 250, 241, 0.82);
  border-bottom: 1px solid rgba(26, 31, 38, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  color: #15191f;
}

.brand-mark {
  border-color: rgba(23, 143, 90, 0.28);
  background: #e7f6ed;
  color: #126d46;
}

.nav-links {
  color: #59616d;
}

.live-hero .copy-command {
  border-color: rgba(23, 143, 90, 0.35);
  background: #111820;
  color: #f6fff9;
}

.live-hero .copy-label {
  color: #6df0a8;
}

.live-hero .prompt {
  color: #ffbe55;
}

h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.04;
}

h3 {
  font-size: 15px;
}

.section {
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section p,
.requirements li,
.control-list span {
  font-size: 14px;
}

/* Desktop-stage redesign */
.live-hero {
  padding-bottom: 72px;
}

.live-hero .hero-titlebar {
  margin-bottom: 26px;
}

.live-hero .eyebrow {
  margin-bottom: 9px;
  font-size: 10px;
}

.live-hero .ascii-logo {
  margin-bottom: 16px;
  font-size: clamp(3px, 0.48vw, 6px);
  line-height: 1.03;
}

.live-hero h1 {
  max-width: 760px;
  font-size: clamp(32px, 4.9vw, 60px);
  line-height: 1.02;
}

.live-hero .hero-copy {
  max-width: 610px;
  margin-top: 12px;
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.45;
}

.live-hero .hero-actions {
  margin-top: 18px;
}

.live-hero .copy-command {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
}

.desktop-stage {
  position: relative;
  width: min(1260px, 100%);
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid rgba(64, 58, 45, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.16), rgba(255, 250, 241, 0.08)),
    url("./assets/desktop-earth-bg.png") center / cover;
  box-shadow: 0 30px 90px rgba(62, 50, 34, 0.18);
  overflow: hidden;
}

.desktop-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 251, 244, 0.2);
  pointer-events: none;
}

.desktop-stage .speech-stage {
  position: absolute;
  inset: 0;
  z-index: 7;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.rtd-demo-running .desktop-stage .speech-stage {
  opacity: 1;
}

.desktop-stage .speech-bubble {
  pointer-events: auto;
  max-width: 250px;
  padding: 9px 11px;
  border-radius: 15px 15px 15px 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #24201b;
  font-size: 12px;
  box-shadow: 0 16px 40px rgba(48, 40, 29, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  animation: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.desktop-stage .speech-bubble.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.desktop-stage .speech-bubble:focus {
  outline: none;
}

.desktop-stage .speech-bubble[data-command="sidebar"] {
  left: 7%;
  top: 24%;
  bottom: auto;
}

.desktop-stage .speech-bubble[data-command="kanban"] {
  left: 46%;
  top: 33%;
}

.desktop-stage .speech-bubble[data-command="topnav"] {
  left: 24%;
  top: 8%;
}

.desktop-stage .speech-bubble[data-command="keepside"] {
  left: 9%;
  top: 42%;
}

.desktop-stage .speech-bubble[data-command="addcard"] {
  left: 40%;
  bottom: 8%;
}

.desktop-stage .live-demo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 548px;
  margin: 0;
}

.desktop-stage .demo-shell {
  border-radius: 9px;
  border-color: rgba(31, 35, 40, 0.15);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(42, 36, 29, 0.22);
}

.desktop-stage .demo-shell.dragging {
  box-shadow: 0 34px 90px rgba(42, 36, 29, 0.28);
  user-select: none;
}

.desktop-stage .browser-side {
  position: absolute;
  left: 4%;
  top: 28px;
  width: 76%;
  min-height: 492px;
}

.desktop-stage .terminal-side {
  position: absolute;
  right: 4%;
  bottom: 20px;
  z-index: 4;
  width: 42%;
  min-width: 420px;
  background: rgba(255, 255, 255, 0.94);
}

.desktop-stage .window-chrome,
.desktop-stage .browser-chrome {
  min-height: 32px;
  padding: 0 10px;
  background: rgba(248, 247, 244, 0.94);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.desktop-stage .demo-shell.dragging .window-chrome,
.desktop-stage .demo-shell.dragging .browser-chrome {
  cursor: grabbing;
}

.desktop-stage .window-chrome span,
.desktop-stage .browser-chrome span {
  width: 8px;
  height: 8px;
  background: #d8d6d1;
}

.desktop-stage .window-chrome span:nth-child(1),
.desktop-stage .browser-chrome span:nth-child(1),
.desktop-stage .window-chrome span:nth-child(2),
.desktop-stage .browser-chrome span:nth-child(2),
.desktop-stage .window-chrome span:nth-child(3),
.desktop-stage .browser-chrome span:nth-child(3) {
  background: #d8d6d1;
}

.desktop-stage .window-chrome strong,
.desktop-stage .address-bar {
  font-size: 10px;
}

.desktop-stage .address-bar {
  padding: 5px 10px;
  background: #ffffff;
}

.desktop-stage .product-app {
  position: relative;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 460px;
  background: rgba(253, 253, 252, 0.96);
  transition: background 260ms ease, grid-template-columns 260ms ease;
}

.desktop-stage .product-sidebar {
  padding: 16px 11px;
  transition: background 260ms ease, color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.desktop-stage .product-sidebar strong {
  margin-bottom: 16px;
  font-size: 13px;
}

.desktop-stage .product-sidebar span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  font-size: 11px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.desktop-stage .product-sidebar i,
.desktop-stage .product-sidebar em {
  font-style: normal;
}

.desktop-stage .product-sidebar i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: #eceff3;
  color: #68707d;
  font-size: 9px;
  font-weight: 800;
}

.desktop-stage .product-sidebar b {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}

.desktop-stage .product-sidebar em {
  color: #9098a5;
  font-size: 10px;
}

.desktop-stage .product-main {
  padding: 17px;
  transition: padding 260ms ease;
}

.desktop-stage .product-toolbar {
  margin-bottom: 14px;
}

.desktop-stage .product-kicker {
  font-size: 10px;
}

.desktop-stage .product-toolbar h2 {
  font-size: 24px;
}

.desktop-stage .product-toolbar button {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.desktop-stage .kanban-board {
  gap: 8px;
}

.desktop-stage .kanban-column {
  padding: 8px;
  border-radius: 9px;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.desktop-stage .kanban-column header {
  margin-bottom: 7px;
  font-size: 10px;
}

.desktop-stage .issue-card {
  gap: 5px;
  margin-bottom: 7px;
  padding: 9px;
  border-radius: 8px;
  transition: padding 240ms ease, border-color 240ms ease, background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.desktop-stage .issue-card small,
.desktop-stage .priority-badge {
  font-size: 9px;
}

.desktop-stage .issue-card h3 {
  font-size: 12px;
}

.desktop-stage .issue-card p {
  font-size: 10px;
}

.desktop-stage .product-app.color-sidebar .product-sidebar {
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 211, 130, 0.34), transparent 4.5rem),
    linear-gradient(180deg, #173b31, #285948);
  color: #f7f3e9;
}

.desktop-stage .product-app.color-sidebar .product-sidebar strong {
  color: #fff8e8;
}

.desktop-stage .product-app.color-sidebar .product-sidebar span {
  color: rgba(255, 250, 238, 0.78);
}

.desktop-stage .product-app.color-sidebar .product-sidebar .selected {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.desktop-stage .product-app.color-sidebar .product-sidebar span:not(.selected):hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.08);
}

.desktop-stage .product-app.color-sidebar .product-sidebar i {
  background: rgba(255, 255, 255, 0.18);
  color: #fff8e8;
}

.desktop-stage .product-app.color-sidebar .product-sidebar em {
  color: rgba(255, 250, 238, 0.62);
}

.desktop-stage .product-app.top-nav-preview {
  grid-template-columns: 1fr;
}

.desktop-stage .product-app.top-nav-preview .product-sidebar {
  position: absolute;
  z-index: 3;
  top: 46px;
  left: 17px;
  right: 17px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 35, 40, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(58, 51, 39, 0.12);
  transform: translateY(-4px);
}

.desktop-stage .product-app.top-nav-preview .product-sidebar strong {
  margin: 0;
}

.desktop-stage .product-app.top-nav-preview .product-sidebar nav {
  display: flex;
  flex: 1;
  gap: 6px;
}

.desktop-stage .product-app.top-nav-preview .product-sidebar span {
  grid-template-columns: 18px auto;
}

.desktop-stage .product-app.top-nav-preview .product-sidebar em {
  display: none;
}

.desktop-stage .product-app.top-nav-preview .product-main {
  padding-top: 82px;
}

.desktop-stage .product-app.rich-kanban {
  background:
    radial-gradient(circle at 78% 14%, rgba(65, 122, 94, 0.1), transparent 12rem),
    #fcfbf8;
}

.desktop-stage .product-app.rich-kanban .kanban-column {
  border-color: rgba(45, 67, 56, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(243, 239, 231, 0.72));
}

.desktop-stage .product-app.rich-kanban .kanban-column:nth-child(1) {
  background: linear-gradient(180deg, #fff8ee, #f7f2e8);
}

.desktop-stage .product-app.rich-kanban .kanban-column:nth-child(2) {
  background: linear-gradient(180deg, #f0f7f1, #eef3ec);
}

.desktop-stage .product-app.rich-kanban .kanban-column:nth-child(3) {
  background: linear-gradient(180deg, #f2f6f7, #edf2f2);
}

.desktop-stage .product-app.rich-kanban .kanban-column header span {
  color: #2b4338;
}

.desktop-stage .product-app.rich-kanban .issue-card {
  border-color: rgba(39, 48, 40, 0.1);
  box-shadow: 0 10px 28px rgba(58, 51, 39, 0.09);
}

.desktop-stage .product-app.rich-kanban .issue-card:hover {
  transform: translateY(-2px);
}

.desktop-stage .product-app.rich-kanban .urgent {
  border-color: rgba(178, 92, 52, 0.2);
}

.desktop-stage .added-card {
  animation: addIssueCard 620ms cubic-bezier(0.2, 0.85, 0.25, 1.2) both;
}

.desktop-stage .terminal-app {
  display: none;
  min-height: 298px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #fbfaf7;
  color: #1f2523;
  box-shadow: none;
  grid-template-rows: auto 92px 1fr auto;
  gap: 7px;
  font-size: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.rtd-demo-running .desktop-stage .terminal-app {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.desktop-stage .terminal-boot {
  display: grid;
  gap: 8px;
  min-height: 298px;
  padding: 14px;
  background: #fbfaf7;
  color: #363a36;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
}

.rtd-demo-running .desktop-stage .terminal-boot {
  display: none;
}

.desktop-stage .shell-path {
  color: #7a7770;
}

.desktop-stage .shell-prompt,
.desktop-stage .cursor {
  color: #206142;
}

.desktop-stage .cursor {
  animation: cursorBlink 1s steps(2, start) infinite;
}

.desktop-stage .terminal-app-header,
.desktop-stage .status-bar {
  font-size: 10px;
}

.desktop-stage .terminal-app-header strong,
.desktop-stage .terminal-task p {
  color: #1f2523;
}

.desktop-stage .terminal-app-header span,
.desktop-stage .heard-line,
.desktop-stage .terminal-task small,
.desktop-stage .status-bar,
.desktop-stage .status-bar em {
  color: #7a7770;
}

.desktop-stage .ink-panel {
  padding: 8px 9px;
  border-color: #d8d4ca;
  border-radius: 5px;
  background: #ffffff;
}

.desktop-stage .tasks-panel,
.desktop-stage .voice-panel[data-mode="speaking"],
.desktop-stage .voice-panel[data-mode="transcribing"],
.desktop-stage .voice-panel[data-mode="muted"] {
  border-color: #d8d4ca;
}

.desktop-stage .panel-title,
.desktop-stage .tasks-panel .panel-title,
.desktop-stage .voice-label {
  margin-bottom: 6px;
  color: #5d695f;
  font-size: 10px;
}

.desktop-stage .waveform {
  color: #9b7b49;
  font-size: 10px;
}

.desktop-stage .heard-line {
  margin-top: 8px;
  font-size: 10px;
}

.desktop-stage .terminal-task {
  gap: 3px;
}

.desktop-stage .terminal-task strong {
  color: #206142;
  font-size: 10px;
}

.desktop-stage .terminal-task.done strong {
  color: #52706a;
}

.desktop-stage .model-picker {
  padding: 6px 8px;
}

.desktop-stage .model-picker,
.desktop-stage .model-picker button,
.desktop-stage .model-picker small {
  font-size: 10px;
}

.desktop-stage .demo-controls {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 8px;
  border-top: 1px solid rgba(31, 35, 40, 0.1);
  background: #fbfaf7;
}

.rtd-demo-running .desktop-stage .demo-controls {
  display: grid;
}

.desktop-stage .demo-controls button {
  min-height: 30px;
  border-color: rgba(31, 35, 40, 0.1);
  background: #ffffff;
  color: #4d514f;
  font-size: 10px;
}

.desktop-stage .demo-controls kbd {
  width: 20px;
  height: 20px;
  color: #206142;
  font-size: 10px;
}

@media (max-width: 980px) {
  .desktop-stage {
    min-height: 940px;
  }

  .desktop-stage .browser-side,
  .desktop-stage .terminal-side {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
  }

  .desktop-stage .terminal-side {
    margin-top: -34px;
    margin-left: auto;
    width: 88%;
  }
}

@media (max-width: 700px) {
  .live-hero {
    padding: 34px 0 42px;
  }

  .live-hero .hero-titlebar {
    width: min(100% - 28px, 980px);
    margin-bottom: 22px;
  }

  .live-hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    justify-content: center;
  }

  .desktop-stage {
    width: 100%;
    min-height: 640px;
    padding: 18px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 250, 241, 0.1), rgba(255, 250, 241, 0.04)),
      url("./assets/desktop-earth-bg.png") center / cover;
  }

  .desktop-stage .speech-stage,
  .desktop-stage .browser-side {
    display: none;
  }

  .desktop-stage .live-demo {
    min-height: 590px;
  }

  .desktop-stage .terminal-side {
    position: absolute;
    top: 48px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .desktop-stage .window-chrome {
    min-height: 30px;
  }

  .desktop-stage .terminal-boot,
  .desktop-stage .terminal-app {
    min-height: 420px;
    height: 420px;
  }

  .desktop-stage .terminal-app {
    grid-template-rows: auto 102px minmax(0, 1fr) auto;
    overflow: auto;
  }

  .desktop-stage .terminal-app-header,
  .desktop-stage .status-bar {
    display: grid;
    gap: 4px;
  }

  .desktop-stage .status-bar > span:last-child {
    text-align: left;
  }

  .desktop-stage .demo-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .desktop-stage .demo-controls span {
    display: none;
  }

  .hero-links {
    width: min(100% - 28px, 980px);
    margin-right: auto;
    margin-left: auto;
  }
}

@keyframes cursorBlink {
  0%,
  42% {
    opacity: 1;
  }
  43%,
  100% {
    opacity: 0;
  }
}

@keyframes addIssueCard {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.94);
    box-shadow: 0 0 0 rgba(58, 51, 39, 0);
  }
  62% {
    opacity: 1;
    transform: translateY(3px) scale(1.02);
    box-shadow: 0 18px 40px rgba(58, 51, 39, 0.15);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Quick-start terminal must stay fixed-height and light. */
.quickstart .quickstart-terminal-window {
  height: 470px;
}

.quickstart .terminal-boot,
.quickstart .quickstart-rtd-app {
  height: calc(470px - 33px);
  min-height: 0;
  overflow: auto;
}

.quickstart .terminal-boot[hidden] {
  display: none;
}

.quickstart .quickstart-rtd-app,
.quickstart .quickstart-rtd-app:not([hidden]) {
  display: grid;
  padding: 10px;
  border: 0;
  background: #fbfaf7;
  color: #1f2523;
  box-shadow: none;
  grid-template-rows: auto 108px minmax(0, 1fr) auto;
}

.quickstart .quickstart-rtd-app[hidden] {
  display: none;
}

.quickstart .quickstart-rtd-app .terminal-app-header strong,
.quickstart .quickstart-rtd-app .terminal-task p {
  color: #1f2523;
}

.quickstart .quickstart-rtd-app .terminal-app-header span,
.quickstart .quickstart-rtd-app .heard-line,
.quickstart .quickstart-rtd-app .empty-task,
.quickstart .quickstart-rtd-app .status-bar,
.quickstart .quickstart-rtd-app .status-bar em {
  color: #7a7770;
}

.quickstart .quickstart-rtd-app .ink-panel {
  border: 1px solid #d8d4ca;
  background: #ffffff;
}

/* Keep 3D keycaps only in the controls section, not in terminal demos. */
.desktop-stage .demo-controls kbd {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #206142;
  font-size: 10px;
  font-weight: 700;
  box-shadow: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 42px 18px 52px;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
  background: #fffaf1;
  color: #5d665f;
  font-size: 14px;
}

.site-footer a {
  color: #1f2523;
  border-bottom: 1px solid rgba(31, 35, 40, 0.24);
}

.site-footer a:hover {
  color: #126d46;
  border-bottom-color: rgba(18, 109, 70, 0.34);
}
