/*
 * Traceable RAG marketing site — production demo skin.
 * This file intentionally layers on top of styles.css so the original site
 * remains an untouched baseline while the V2 experience can evolve safely.
 */

:root {
  --tr-ink: #202033;
  --tr-violet: #6b65d8;
  --tr-violet-deep: #514bb8;
  --tr-muted: #6f7187;
  --tr-violet-soft: #efedff;
  --tr-panel: #f8f8fb;
  --tr-line: rgba(32, 32, 51, 0.1);
  --tr-line-strong: rgba(32, 32, 51, 0.16);
  --tr-success: #27866f;
  --tr-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tr-ease-ui: cubic-bezier(0.2, 0.72, 0.22, 1);
  --tr-shadow-window:
    0 42px 110px rgba(49, 44, 104, 0.21),
    0 10px 34px rgba(32, 32, 51, 0.1),
    0 1px 2px rgba(32, 32, 51, 0.08);
  --ink: var(--tr-ink);
  --ink-soft: #343449;
  --muted: var(--tr-muted);
  --muted-2: #9294a6;
  --violet: var(--tr-violet);
  --violet-soft: var(--tr-violet-soft);
}

body {
  color: var(--tr-ink);
}

button,
summary,
a {
  touch-action: manipulation;
}

button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
.repo-link:focus-visible,
.demo-session:focus-visible,
.demo-new-chat:focus-visible,
.demo-footnote:focus-visible,
.source-more-menu a:focus-visible {
  outline: 3px solid rgba(107, 101, 216, 0.3);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Site chrome */

.nav-shell--v2 {
  grid-template-columns: 1fr auto 1fr;
}

.brand--production {
  gap: 11px;
  color: var(--tr-ink);
  font-size: 16px;
  font-weight: 690;
  letter-spacing: -0.025em;
}

.brand--production img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.repo-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #4c4d60;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 610;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 220ms var(--tr-ease-out);
}

.repo-link:hover {
  color: var(--tr-ink);
  background: rgba(32, 32, 51, 0.055);
  transform: translateY(-1px);
}

.repo-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-actions .nav-cta {
  justify-self: auto;
  background: var(--tr-ink);
}

.hero-stage--v2 {
  min-height: 848px;
  padding: 48px 42px 32px;
  background:
    radial-gradient(circle at 7% 10%, rgba(221, 253, 246, 0.93), transparent 29%),
    radial-gradient(circle at 90% 8%, rgba(220, 229, 255, 0.94), transparent 34%),
    radial-gradient(circle at 50% 107%, rgba(195, 183, 255, 0.91), transparent 47%),
    linear-gradient(137deg, #eff9f7 0%, #dce4fc 44%, #e9defe 100%);
}

/* Codex Desktop-inspired interactive demo */

.demo-window {
  --demo-bar-height: 46px;
  --demo-window-radius: 14px;
  position: relative;
  z-index: 2;
  width: min(1370px, 100%);
  height: 715px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--tr-ink);
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(32, 32, 51, 0.17);
  border-radius: var(--demo-window-radius);
  box-shadow: var(--tr-shadow-window);
  container-name: demo-window;
  container-type: inline-size;
  transform: translateZ(0);
}

.demo-window::after {
  position: absolute;
  z-index: 90;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.demo-window-bar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto minmax(80px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  height: var(--demo-bar-height);
  padding: 0 14px;
  background: rgba(247, 247, 249, 0.94);
  border-bottom: 1px solid var(--tr-line);
  border-radius: var(--demo-window-radius) var(--demo-window-radius) 0 0;
  backdrop-filter: blur(18px) saturate(135%);
}

.demo-window-bar .traffic-lights {
  gap: 7px;
}

.demo-window-bar .traffic-lights span {
  width: 10px;
  height: 10px;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.demo-sidebar-toggle {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  color: #767789;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.demo-sidebar-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.demo-window-title {
  min-width: 0;
  overflow: hidden;
  color: #686a7b;
  font-size: 11px;
  font-weight: 580;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  color: #8a8b9a;
  background: rgba(32, 32, 51, 0.055);
  border: 1px solid rgba(32, 32, 51, 0.055);
  border-radius: 8px;
  font-size: 9px;
  line-height: 24px;
}

.demo-mode-switch span,
.demo-mode-switch b {
  min-width: 38px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 590;
  text-align: center;
}

.demo-mode-switch b {
  color: #39394d;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(32, 32, 51, 0.1);
}

.demo-window-meta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  color: #77798b;
  font-size: 9.5px;
  font-weight: 570;
}

.demo-window-meta i {
  width: 6px;
  height: 6px;
  background: #39a27f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(57, 162, 127, 0.1);
}

.demo-grid {
  position: relative;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 0fr;
  height: calc(100% - var(--demo-bar-height));
  overflow: hidden;
  border-radius: 0 0 var(--demo-window-radius) var(--demo-window-radius);
  transition: grid-template-columns 620ms var(--tr-ease-out);
}

.demo-window.is-source-open .demo-grid,
.demo-window[data-demo-state="source"] .demo-grid {
  grid-template-columns: 206px minmax(335px, 0.88fr) minmax(430px, 1.12fr);
}

/* Demo sidebar */

.demo-sidebar {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px 10px 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(248, 248, 250, 0.98), rgba(246, 246, 248, 0.98));
  border-right: 1px solid var(--tr-line);
}

.demo-sidebar__brand {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 9px;
  padding: 0 8px 10px;
  color: #38384c;
  font-size: 11px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.demo-sidebar__brand img {
  width: 23px;
  height: 23px;
}

.demo-new-chat {
  display: flex;
  width: 100%;
  min-height: 35px;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  color: #5d5f71;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 590;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 220ms var(--tr-ease-out);
}

.demo-new-chat:hover {
  color: var(--tr-ink);
  background: rgba(32, 32, 51, 0.055);
}

.demo-new-chat:active {
  transform: scale(0.985);
}

.demo-new-chat svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.demo-sidebar__label {
  margin: 21px 9px 8px;
  color: #a0a1af;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-sidebar__label--sources {
  margin-top: 19px;
}

.demo-session-list {
  display: grid;
  gap: 4px;
}

.demo-session {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  color: #5f6071;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 220ms var(--tr-ease-out);
}

.demo-session::after {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -10px;
  width: 2px;
  background: var(--tr-violet);
  border-radius: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: scaleY(0.3);
  transition:
    opacity 180ms ease,
    transform 260ms var(--tr-ease-out);
}

.demo-session:hover {
  color: var(--tr-ink);
  background: rgba(32, 32, 51, 0.05);
  transform: translateX(1px);
}

.demo-session.is-demo-hovered {
  color: var(--tr-ink);
  background: rgba(32, 32, 51, 0.06);
  box-shadow: inset 0 0 0 1px rgba(32, 32, 51, 0.035);
  transform: translateX(1px);
}

.demo-session[aria-selected="true"],
.demo-session.is-active {
  color: var(--tr-ink);
  background: #ececf2;
  box-shadow: inset 0 0 0 1px rgba(32, 32, 51, 0.025);
}

.demo-session[aria-selected="true"]::after,
.demo-session.is-active::after {
  opacity: 1;
  transform: scaleY(1);
}

.demo-session > span:last-child,
.demo-library-item > span,
.demo-sidebar__footer > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.demo-session b,
.demo-session small,
.demo-library-item b,
.demo-library-item small,
.demo-sidebar__footer b,
.demo-sidebar__footer small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-session b {
  font-size: 9.8px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.demo-session small {
  color: #9293a2;
  font-size: 8px;
}

.demo-session__icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
}

.demo-session__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.demo-session__icon--contract {
  color: var(--tr-violet-deep);
  background: #e8e5ff;
}

.demo-session__icon--report {
  color: #297a73;
  background: #dff2ee;
}

.demo-library-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  color: #656678;
  border: 1px solid rgba(32, 32, 51, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.5);
}

.demo-library-item > svg {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  fill: none;
  stroke: var(--tr-violet-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.demo-library-item b {
  color: #535466;
  font-size: 8.8px;
  font-weight: 620;
}

.demo-library-item small {
  color: #9798a6;
  font-size: 7.7px;
}

.demo-sidebar__footer {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 16px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 7px 1px;
  border-top: 1px solid var(--tr-line);
}

.demo-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #ffffff;
  background: var(--tr-ink);
  border-radius: 7px;
  font-size: 7px;
  font-weight: 720;
}

.demo-sidebar__footer b {
  color: #505164;
  font-size: 8.5px;
  font-weight: 620;
}

.demo-sidebar__footer small {
  color: #999aa8;
  font-size: 7.2px;
}

.demo-sidebar__footer > svg {
  width: 14px;
  height: 14px;
  fill: #9495a4;
}

/* Conversation workspace */

.demo-main {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  grid-template-rows: 60px minmax(0, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
}

.demo-main__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--tr-line);
}

.demo-main__header > div:first-child {
  min-width: 0;
}

.demo-main__header span[data-thread-kicker] {
  display: block;
  margin-bottom: 3px;
  color: #a0a1ae;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-main__header h2 {
  margin: 0;
  overflow: hidden;
  color: #333347;
  font-size: 12px;
  font-weight: 660;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-project-pill {
  display: inline-flex;
  min-width: 0;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: #696a7c;
  background: #f7f7f9;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 580;
}

.demo-project-pill svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.demo-project-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(239, 237, 255, 0.24), transparent 37%),
    #ffffff;
}

.demo-welcome {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  text-align: center;
  transition:
    opacity 380ms ease,
    transform 520ms var(--tr-ease-out),
    visibility 380ms;
}

.demo-welcome img {
  width: 45px;
  height: 45px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(81, 75, 184, 0.16));
}

.demo-welcome h3 {
  margin: 0;
  color: #313145;
  font-size: 23px;
  font-weight: 570;
  letter-spacing: -0.045em;
}

.demo-welcome p {
  margin: 10px 0 0;
  color: #858697;
  font-size: 10px;
  line-height: 1.6;
}

.demo-window:not([data-demo-state="welcome"]) .demo-welcome,
.demo-window.has-thread .demo-welcome {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.985);
}

.demo-thread {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 21px 22px 30px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(32, 32, 51, 0.18) transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.demo-thread:empty {
  pointer-events: none;
}

.demo-thread::-webkit-scrollbar,
.demo-pdf-stage::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.demo-thread::-webkit-scrollbar-thumb,
.demo-pdf-stage::-webkit-scrollbar-thumb {
  background: rgba(32, 32, 51, 0.17);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

.demo-turn,
.demo-message {
  width: 100%;
}

.demo-user-turn {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.demo-turn__label {
  display: block;
  margin: 0 3px 5px 0;
  color: #999aa9;
  font-size: 7px;
  font-weight: 620;
}

.demo-turn + .demo-turn {
  margin-top: 16px;
}

.demo-user-bubble,
.demo-message--user {
  width: min(84%, 500px);
  margin-left: auto;
  padding: 10px 13px;
  color: #3a3a4d;
  background: #f0f0f3;
  border: 1px solid rgba(32, 32, 51, 0.035);
  border-radius: 14px 14px 4px 14px;
  font-size: 10px;
  line-height: 1.6;
  box-shadow: 0 1px 1px rgba(32, 32, 51, 0.03);
}

.demo-agent-block,
.demo-message--agent {
  margin-top: 17px;
}

.demo-agent-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #4a4a5d;
  font-size: 8.5px;
  font-weight: 640;
}

.demo-agent-head img,
.demo-agent-head > span:first-child {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
}

.demo-agent-head img {
  object-fit: contain;
}

.demo-agent-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.demo-agent-head strong {
  color: #444457;
  font-size: 8.5px;
  font-weight: 650;
}

.demo-agent-head span {
  color: #999aa9;
  font-size: 7px;
  font-weight: 520;
}

.demo-agent-copy,
.demo-agent-intro,
.demo-progress-copy {
  margin: 8px 2px;
  color: #656678;
  font-size: 9.2px;
  line-height: 1.6;
}

.demo-agent-intro {
  margin-top: 0;
}

.demo-progress-copy {
  position: relative;
  padding-left: 13px;
}

.demo-progress-copy::before {
  position: absolute;
  top: 0.66em;
  left: 1px;
  width: 4px;
  height: 4px;
  background: #aaa5e8;
  border-radius: 50%;
  content: "";
}

.demo-tool-list {
  display: grid;
  gap: 5px;
  margin: 9px 0;
}

.demo-tool-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 7px;
  color: #5f6071;
  background: #fafafd;
  border: 1px solid rgba(32, 32, 51, 0.075);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(32, 32, 51, 0.025);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    opacity 220ms ease,
    transform 300ms var(--tr-ease-out);
}

.demo-tool-row.is-queued {
  opacity: 0.58;
}

.demo-tool-row.is-running {
  color: #424256;
  background: #f9f8ff;
  border-color: rgba(107, 101, 216, 0.24);
}

.demo-tool-row.is-complete {
  background: #fbfcfc;
  border-color: rgba(39, 134, 111, 0.15);
}

.demo-tool-state,
.demo-tool-row > i:first-child,
.demo-tool-row > span:first-child {
  position: relative;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  background: #f0eff9;
  border-radius: 7px;
}

.demo-tool-row.is-running .demo-tool-state,
.demo-tool-row.is-running > span:first-child {
  background: var(--tr-violet-soft);
}

.demo-tool-row.is-running .demo-tool-state::after,
.demo-tool-row.is-running > span:first-child::after {
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(107, 101, 216, 0.28);
  border-top-color: var(--tr-violet-deep);
  border-radius: 50%;
  content: "";
  animation: demo-spin 760ms linear infinite;
}

.demo-tool-row.is-complete .demo-tool-state,
.demo-tool-row.is-complete > i:first-child {
  background: #e8f5f1;
}

.demo-tool-row.is-complete .demo-tool-state::after,
.demo-tool-row.is-complete > i:first-child::after {
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid var(--tr-success);
  border-left: 1.5px solid var(--tr-success);
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.demo-tool-row.is-queued .demo-tool-state::after {
  width: 5px;
  height: 5px;
  background: #aaaabb;
  border-radius: 50%;
  content: "";
}

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-tool-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.demo-tool-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.demo-tool-row b {
  overflow: hidden;
  color: #454558;
  font-size: 8.9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-tool-row small {
  overflow: hidden;
  color: #9394a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.2px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-tool-row em,
.demo-tool-row > span:last-child:not(:first-child) {
  color: #898a99;
  font-size: 7.2px;
  font-style: normal;
  font-weight: 610;
  white-space: nowrap;
}

.demo-tool-row.is-running em,
.demo-tool-row.is-running > span:last-child:not(:first-child) {
  color: var(--tr-violet-deep);
}

.demo-tool-row.is-complete em,
.demo-tool-row.is-complete > span:last-child:not(:first-child) {
  color: var(--tr-success);
}

.demo-answer {
  position: relative;
  margin-top: 15px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--tr-line);
}

.demo-answer-slot:empty {
  display: none;
}

.demo-answer__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.demo-answer__heading strong {
  color: #37374b;
  font-size: 9px;
  font-weight: 680;
}

.demo-answer__heading span {
  color: #9293a3;
  font-size: 7px;
  white-space: nowrap;
}

.demo-answer__body {
  min-width: 0;
}

.demo-answer::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, var(--tr-violet), transparent);
  content: "";
}

.demo-answer-block {
  color: #39394b;
  font-size: 10.2px;
  line-height: 1.68;
}

.demo-answer-block + .demo-answer-block {
  margin-top: 8px;
}

.demo-answer-block p,
.demo-answer > p {
  margin: 0 0 8px;
}

.demo-answer strong {
  color: #303044;
  font-weight: 670;
}

.demo-answer ul {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding-left: 15px;
}

.demo-footnote,
.footnote {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin: 0 2px;
  place-items: center;
  padding: 0;
  color: var(--tr-violet-deep);
  background: var(--tr-violet-soft);
  border: 1px solid rgba(107, 101, 216, 0.12);
  border-radius: 5px;
  font-size: 7px;
  font-weight: 730;
  line-height: 1;
  vertical-align: 2px;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 220ms var(--tr-ease-out);
}

.demo-footnote:hover,
.demo-footnote.is-active,
.footnote:hover,
.footnote.is-active {
  color: #ffffff;
  background: var(--tr-violet-deep);
  border-color: var(--tr-violet-deep);
  box-shadow: 0 5px 14px rgba(81, 75, 184, 0.28);
  transform: translateY(-1px);
}

.demo-footnote.is-pulsing,
.footnote.is-pulsing {
  animation: demo-footnote-pulse 1.55s ease-in-out infinite;
}

@keyframes demo-footnote-pulse {
  50% { box-shadow: 0 0 0 7px rgba(107, 101, 216, 0.13); }
}

.demo-answer-note {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 7px;
  margin-top: 10px;
  padding: 8px 9px;
  color: #685a32;
  background: #fffaf0;
  border: 1px solid #eee0bd;
  border-radius: 8px;
  font-size: 8.2px;
  line-height: 1.52;
}

.demo-answer-note svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #a47630;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.demo-typing-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--tr-violet-deep);
  vertical-align: -0.12em;
  animation: demo-caret 820ms steps(1, end) infinite;
}

@keyframes demo-caret {
  50% { opacity: 0; }
}

/* Composer */

.demo-composer {
  position: relative;
  z-index: 4;
  min-height: 104px;
  margin: 0 15px 14px;
  padding: 8px 10px 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(32, 32, 51, 0.14);
  border-radius: 13px;
  box-shadow:
    0 9px 26px rgba(32, 32, 51, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 320ms var(--tr-ease-out);
}

.demo-window[data-demo-state="typing"] .demo-composer {
  border-color: rgba(107, 101, 216, 0.42);
  box-shadow:
    0 10px 28px rgba(32, 32, 51, 0.08),
    0 0 0 3px rgba(107, 101, 216, 0.08);
}

.demo-composer__scope {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #737487;
  background: #f6f6f9;
  border-radius: 6px;
  font-size: 7.5px;
  font-weight: 570;
}

.demo-composer__scope svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.demo-composer textarea {
  display: block;
  width: 100%;
  height: 35px;
  min-height: 35px;
  margin: 6px 0 2px;
  padding: 0 3px;
  resize: none;
  overflow: hidden;
  color: #38384b;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 9.2px;
  line-height: 1.48;
}

.demo-composer textarea::placeholder {
  color: #aaaab6;
  opacity: 1;
}

.demo-composer textarea.is-typing {
  caret-color: var(--tr-violet-deep);
}

.demo-composer__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.demo-composer__actions > button {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #7e7f90;
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.demo-composer__actions > button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.demo-skill-chip {
  display: inline-flex;
  min-width: 0;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 6px;
  color: #5e5f72;
  background: #f6f6fa;
  border: 1px solid rgba(32, 32, 51, 0.07);
  border-radius: 7px;
  font-size: 7.5px;
  font-weight: 590;
  white-space: nowrap;
}

.demo-skill-chip img {
  width: 14px;
  height: 14px;
}

.demo-model {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: #858697;
  font-size: 7.5px;
  white-space: nowrap;
}

.demo-model svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.demo-composer__actions .demo-send {
  color: #ffffff;
  background: var(--tr-ink);
  border-radius: 50%;
  transition:
    background 180ms ease,
    transform 220ms var(--tr-ease-out),
    opacity 180ms ease;
}

.demo-composer__actions .demo-send:not(:disabled):hover {
  background: var(--tr-violet-deep);
  transform: translateY(-1px);
}

.demo-composer__actions .demo-send:disabled {
  color: #a9a9b4;
  background: #ececf0;
}

/* Integrated Source browser */

.demo-source-panel {
  position: relative;
  z-index: 12;
  display: grid;
  min-width: 0;
  grid-template-rows: 33px 40px minmax(0, 1fr);
  overflow: hidden;
  background: #f5f6fa;
  border-left: 1px solid var(--tr-line-strong);
  box-shadow: -8px 0 28px rgba(32, 32, 51, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition:
    opacity 280ms ease 100ms,
    transform 620ms var(--tr-ease-out),
    visibility 620ms;
  container-name: source-panel;
  container-type: inline-size;
}

.demo-window.is-source-open .demo-source-panel,
.demo-window[data-demo-state="source"] .demo-source-panel,
.demo-source-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.browser-tabbar {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 4px;
  padding: 5px 7px 0;
  background: #e9e9ee;
  border-bottom: 1px solid rgba(32, 32, 51, 0.09);
}

.browser-tab {
  display: flex;
  min-width: 0;
  width: min(132px, 30%);
  height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  color: #797a8a;
  border-radius: 7px 7px 0 0;
  font-size: 7.5px;
}

.browser-tab.is-active {
  color: #454558;
  background: #f7f7f9;
  box-shadow: 0 -1px 3px rgba(32, 32, 51, 0.04);
}

.browser-tab img {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.browser-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-tab button {
  width: 16px;
  height: 16px;
  margin-left: auto;
  padding: 0;
  color: #878896;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  line-height: 15px;
  cursor: pointer;
}

.browser-tab button:hover {
  color: #343447;
  background: rgba(32, 32, 51, 0.08);
}

.browser-new-tab {
  align-self: center;
  width: 21px;
  height: 21px;
  margin-bottom: 3px;
  padding: 0;
  color: #747586;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
}

.browser-window-actions {
  display: flex;
  align-self: center;
  gap: 8px;
  margin: 0 4px 3px auto;
}

.browser-window-actions span {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #888995;
  border-radius: 1px;
  opacity: 0.55;
}

.browser-window-actions span:first-child {
  height: 1px;
  margin-top: 5px;
  border-width: 1px 0 0;
  border-radius: 0;
}

.browser-window-actions span:last-child {
  position: relative;
  border: 0;
}

.browser-window-actions span:last-child::before,
.browser-window-actions span:last-child::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
  background: #888995;
  content: "";
}

.browser-window-actions span:last-child::before { transform: rotate(45deg); }
.browser-window-actions span:last-child::after { transform: rotate(-45deg); }

.browser-addressbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  background: #f7f7f9;
  border-bottom: 1px solid var(--tr-line);
}

.browser-history {
  display: flex;
  align-items: center;
  gap: 1px;
}

.browser-history button,
.browser-more,
.browser-download {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  color: #77788a;
  background: transparent;
  border: 0;
  border-radius: 5px;
  text-decoration: none;
}

.browser-history button {
  font-size: 15px;
  line-height: 1;
}

.browser-address {
  display: flex;
  min-width: 0;
  height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: #696a7b;
  background: #ececf1;
  border: 1px solid rgba(32, 32, 51, 0.045);
  border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(32, 32, 51, 0.03);
}

.browser-address span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #45a27f;
  border-radius: 50%;
}

.browser-address b {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 6.8px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-download svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.browser-more {
  font-size: 9px;
  letter-spacing: 0.05em;
}

.source-workspace-demo {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 52px minmax(0, 1fr);
  overflow: hidden;
  background: #e7e9f4;
}

.source-toolbar-demo {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-width: 0;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 10px 0 12px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(32, 32, 51, 0.11);
  box-shadow: 0 2px 8px rgba(32, 32, 51, 0.035);
}

.source-toolbar-demo__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.source-toolbar-demo__identity strong,
.source-toolbar-demo__identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-toolbar-demo__identity strong {
  color: #38384b;
  font-size: 8px;
  font-weight: 650;
}

.source-toolbar-demo__identity span {
  color: #9192a1;
  font-size: 6.8px;
}

.source-toolbar-demo__controls,
.source-toolbar-demo__actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.source-toolbar-demo button,
.source-more-menu summary {
  display: inline-grid;
  min-width: 25px;
  height: 27px;
  place-items: center;
  padding: 0 6px;
  color: #6d6e80;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.source-toolbar-demo button:hover,
.source-more-menu summary:hover,
.source-more-menu[open] summary {
  color: var(--tr-violet-deep);
  background: var(--tr-violet-soft);
}

.source-toolbar-demo button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.source-page-input {
  display: flex;
  height: 27px;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  color: #858697;
  background: #f7f7f9;
  border: 1px solid var(--tr-line);
  border-radius: 6px;
  font-size: 6.8px;
}

.source-page-input input {
  width: 22px;
  padding: 0;
  color: #48485b;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 7px;
  font-weight: 630;
  text-align: center;
}

.source-labeled-control {
  grid-auto-flow: column;
  gap: 4px;
  font-size: 6.8px;
  font-weight: 590;
}

.source-toolbar-demo__divider {
  width: 1px;
  height: 17px;
  margin: 0 2px;
  background: var(--tr-line);
}

.source-more-menu {
  position: relative;
}

.source-more-menu summary::-webkit-details-marker {
  display: none;
}

.source-more-menu > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  width: 122px;
  gap: 2px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--tr-line-strong);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(32, 32, 51, 0.16);
}

.source-more-menu > div button,
.source-more-menu > div a {
  display: flex;
  width: 100%;
  height: 27px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  color: #555668;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 7.2px;
  text-decoration: none;
}

.source-more-menu > div button:hover,
.source-more-menu > div a:hover {
  background: #f2f2f7;
}

.demo-pdf-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.9), transparent 38%),
    radial-gradient(circle at 7% 53%, rgba(206, 220, 255, 0.55), transparent 36%),
    radial-gradient(circle at 94% 78%, rgba(222, 213, 255, 0.55), transparent 34%),
    #e7e9f4;
}

.demo-source-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  color: #7b7d91;
  text-align: center;
}

.demo-source-empty[hidden] {
  display: none;
}

.demo-source-empty img {
  width: 38px;
  height: 38px;
  opacity: 0.65;
}

.demo-source-empty p {
  max-width: 190px;
  margin: 0;
  font-size: 8px;
  line-height: 1.6;
}

.demo-pdf-pages {
  display: grid;
  min-height: 100%;
  align-content: start;
  justify-items: center;
  gap: 18px;
  padding: 24px clamp(14px, 4cqw, 32px) 55px;
}

.demo-pdf-pages:empty {
  display: none;
}

.demo-pdf-page {
  position: relative;
  width: min(100%, 590px);
  flex: 0 0 auto;
  margin: 0;
  overflow: visible;
  transition:
    width 320ms var(--tr-ease-out),
    opacity 220ms ease;
}

.demo-pdf-paper {
  position: relative;
  overflow: visible;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 51, 0.13);
  border-radius: 1px;
  box-shadow:
    0 16px 38px rgba(46, 48, 79, 0.16),
    0 2px 7px rgba(32, 32, 51, 0.07);
}

.demo-pdf-page img,
.demo-pdf-page__image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.demo-pdf-page.is-target {
  opacity: 1;
}

.demo-pdf-page.is-target .demo-pdf-paper {
  box-shadow:
    0 18px 48px rgba(56, 53, 118, 0.2),
    0 0 0 1px rgba(107, 101, 216, 0.16);
}

.demo-pdf-page figcaption {
  margin: 8px 0 0;
  color: rgba(75, 77, 101, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 6.7px;
  text-align: center;
}

.demo-pdf-page.is-current figcaption {
  color: var(--tr-violet-deep);
  font-weight: 650;
}

.demo-pdf-stage.is-fit-page .demo-pdf-page {
  width: min(82%, 470px);
}

.demo-source-panel.is-locating .demo-pdf-page.is-target .demo-pdf-paper {
  animation: source-page-locate 700ms var(--tr-ease-out);
}

@keyframes source-page-locate {
  0%, 100% { transform: translateZ(0); }
  48% { transform: translateY(-2px); }
}

.demo-pdf-highlight,
.demo-pdf-bbox {
  position: absolute;
  z-index: 3;
  left: var(--bbox-left, 12.1%);
  top: var(--bbox-top, 41.2%);
  width: var(--bbox-width, 75.3%);
  height: var(--bbox-height, 20.6%);
  border-radius: 2px;
  pointer-events: none;
}

.demo-pdf-highlight.is-context,
.demo-pdf-bbox.is-context {
  z-index: 2;
  background: rgba(107, 101, 216, 0.07);
  border: 1px solid rgba(107, 101, 216, 0.3);
}

.demo-pdf-highlight.is-target,
.demo-pdf-bbox.is-target {
  background: rgba(107, 101, 216, 0.2);
  border: 1.5px solid var(--tr-violet-deep);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.56),
    0 5px 18px rgba(81, 75, 184, 0.14);
}

.demo-pdf-highlight.is-arriving,
.demo-pdf-bbox.is-arriving {
  animation: source-highlight-arrive 820ms var(--tr-ease-out) both;
}

@keyframes source-highlight-arrive {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 14px rgba(107, 101, 216, 0.02);
    transform: scale(1.025);
  }
  58% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(107, 101, 216, 0.14);
  }
  100% {
    opacity: 1;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.56),
      0 5px 18px rgba(81, 75, 184, 0.14);
    transform: scale(1);
  }
}

.demo-source-callout,
.demo-source-insight {
  position: absolute;
  z-index: 7;
  top: var(--callout-top, 54%);
  left: var(--callout-left, 58%);
  right: auto;
  bottom: auto;
  width: min(172px, 42%);
  padding: 9px 10px;
  color: #4d4b70;
  background: rgba(251, 250, 255, 0.96);
  border: 1px solid rgba(107, 101, 216, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(45, 42, 93, 0.17);
  backdrop-filter: blur(10px);
  font-size: 6.7px;
  line-height: 1.55;
}

.demo-source-callout b,
.demo-source-insight b {
  display: block;
  margin-bottom: 3px;
  color: var(--tr-violet-deep);
  font-size: 7.2px;
}

.demo-source-callout p,
.demo-source-insight p {
  margin: 0;
}

/* Synthetic mouse, positioned by JS using target bounds */

.demo-cursor {
  position: absolute;
  z-index: 100;
  top: var(--cursor-y, 0px);
  left: var(--cursor-x, 0px);
  width: 22px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-2px, -2px, 0);
  transform-origin: 3px 3px;
  transition:
    opacity 180ms ease,
    left var(--cursor-duration, 820ms) var(--tr-ease-ui),
    top var(--cursor-duration, 820ms) var(--tr-ease-ui),
    transform 140ms ease;
  will-change: left, top, transform;
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor svg {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28));
}

.demo-cursor svg path {
  fill: #ffffff;
  stroke: #202033;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.demo-cursor > span {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  background: rgba(107, 101, 216, 0.18);
  border: 1px solid rgba(81, 75, 184, 0.36);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
}

.demo-cursor.is-clicking {
  transform: translate3d(-2px, -2px, 0) scale(0.9);
}

.demo-cursor.is-clicking > span,
.demo-cursor > span.is-active {
  animation: cursor-click 540ms ease-out;
}

@keyframes cursor-click {
  0% { opacity: 0.85; transform: scale(0.45); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* Playback caption */

.demo-caption--v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 5px 0;
  color: #67697b;
  font-size: 10px;
  text-align: left;
}

.demo-caption--v2 > div:first-child > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #404154;
  font-size: 10px;
  font-weight: 660;
}

.demo-caption--v2 > div:first-child > span i {
  width: 7px;
  height: 7px;
  background: var(--tr-violet);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(107, 101, 216, 0.12);
}

.demo-caption--v2 p {
  margin: 5px 0 0;
  color: rgba(46, 47, 66, 0.63);
  font-size: 9px;
}

.demo-playback {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.demo-playback button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #535466;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(32, 32, 51, 0.1);
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: 590;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    background 180ms ease,
    transform 220ms var(--tr-ease-out);
}

.demo-playback button:first-child {
  color: #ffffff;
  background: var(--tr-ink);
  border-color: var(--tr-ink);
}

.demo-playback button:hover {
  transform: translateY(-1px);
}

.demo-playback button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.demo-playback button:first-child svg path {
  fill: currentColor;
  stroke: none;
}

.demo-playback output {
  min-width: 52px;
  color: rgba(46, 47, 66, 0.59);
  font-size: 8px;
  text-align: right;
}

/* Real lower-page feature shots */

.feature-stage--real {
  display: grid;
  min-height: 570px;
  place-items: center;
  padding: 48px;
}

/* Universal Agent Skill ecosystem */

.feature-stage--skill {
  background:
    radial-gradient(circle at 12% 8%, rgba(237, 255, 250, 0.95), transparent 31%),
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(142deg, #dce6ff 0%, #c8c1ff 52%, #e6d9ff 100%);
}

.skill-ecosystem-shot {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 22px;
  background: rgba(250, 250, 255, 0.68);
  border: 1px solid rgba(32, 32, 51, 0.12);
  border-radius: 17px;
  box-shadow:
    0 28px 70px rgba(39, 38, 78, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(125%);
}

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

.skill-agent-card {
  display: flex;
  min-width: 0;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  padding: 14px 8px 12px;
  color: #454558;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 32, 51, 0.09);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(45, 45, 75, 0.06);
}

.skill-agent-card > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 51, 0.08);
  border-radius: 15px;
  box-shadow:
    0 7px 18px rgba(37, 37, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.skill-agent-card img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.skill-agent-card b {
  max-width: 100%;
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-connector {
  position: relative;
  display: grid;
  height: 58px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 7%;
}

.skill-connector::before {
  position: absolute;
  top: 21px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, rgba(81, 75, 184, 0.24), rgba(81, 75, 184, 0.58), rgba(81, 75, 184, 0.24));
  content: "";
}

.skill-connector::after {
  position: absolute;
  top: 21px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(81, 75, 184, 0.52);
  content: "";
  transform: translateX(-0.5px);
}

.skill-connector i {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 1px;
  height: 22px;
  background: rgba(81, 75, 184, 0.38);
}

.skill-connector i::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border: 2px solid rgba(81, 75, 184, 0.66);
  border-radius: 50%;
  content: "";
}

.skill-hub-card {
  width: min(540px, 88%);
  margin: 0 auto;
  padding: 19px 20px 18px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 88% 0%, rgba(116, 105, 238, 0.34), transparent 42%),
    linear-gradient(145deg, #27273d, #1d1d2f 72%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  box-shadow:
    0 20px 48px rgba(32, 32, 51, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-hub-card__identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.skill-hub-card__identity > img {
  width: 36px;
  height: 36px;
}

.skill-hub-card__identity > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.skill-hub-card__identity span {
  color: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 6.8px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.skill-hub-card__identity b {
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.skill-hub-card__identity em {
  padding: 5px 8px;
  color: #bff3e5;
  background: rgba(61, 174, 143, 0.15);
  border: 1px solid rgba(118, 224, 195, 0.18);
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  font-weight: 640;
  white-space: nowrap;
}

.skill-hub-card > p {
  margin: 16px 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  line-height: 1.65;
}

.skill-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-capabilities span {
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 6.9px;
}

.skill-ecosystem-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
  color: #6d6e81;
  font-size: 7.8px;
  font-weight: 570;
}

.skill-ecosystem-note i {
  width: 6px;
  height: 6px;
  background: #36a080;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(54, 160, 128, 0.11);
}

.real-tool-shot,
.real-source-shot,
.research-citation-shot {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(32, 32, 51, 0.13);
  border-radius: 17px;
  box-shadow:
    0 28px 70px rgba(39, 38, 78, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.real-tool-shot {
  padding: 16px;
}

.real-tool-shot__head {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tr-line);
}

.real-tool-shot__head img {
  width: 23px;
  height: 23px;
}

.real-tool-shot__head b {
  font-size: 10px;
  font-weight: 650;
}

.real-tool-shot__head span {
  padding: 4px 7px;
  color: #77788a;
  background: #f4f4f7;
  border-radius: 6px;
  font-size: 7px;
}

.real-tool-shot > p {
  margin: 15px 3px 12px;
  color: #5f6071;
  font-size: 9.5px;
  line-height: 1.65;
}

.real-tool-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  min-height: 53px;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 7px 10px 7px 8px;
  background: rgba(250, 250, 253, 0.86);
  border: 1px solid rgba(32, 32, 51, 0.085);
  border-radius: 10px;
}

.real-tool-row > i,
.real-tool-row > span:first-child {
  position: relative;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: #e8f5f1;
  border-radius: 7px;
}

.real-tool-row.is-complete > i::after {
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid var(--tr-success);
  border-left: 1.5px solid var(--tr-success);
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.real-tool-row.is-running {
  background: #faf9ff;
  border-color: rgba(107, 101, 216, 0.24);
}

.real-tool-row.is-running > span:first-child {
  background: var(--tr-violet-soft);
}

.real-tool-row.is-running > span:first-child::after {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(107, 101, 216, 0.28);
  border-top-color: var(--tr-violet-deep);
  border-radius: 50%;
  content: "";
  animation: demo-spin 760ms linear infinite;
}

.real-tool-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.real-tool-row b {
  color: #434356;
  font-size: 9px;
  font-weight: 650;
}

.real-tool-row small {
  overflow: hidden;
  color: #9091a1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-tool-row em {
  color: var(--tr-success);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 620;
  white-space: nowrap;
}

.real-tool-row.is-running em {
  color: var(--tr-violet-deep);
}

.real-progress-copy {
  margin: 9px 6px;
  padding-left: 13px;
  color: #6d6e80;
  border-left: 2px solid #cbc7f3;
  font-size: 8.4px;
  line-height: 1.55;
}

.real-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.real-coverage span {
  padding: 5px 8px;
  color: #626376;
  background: #f3f3f7;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 6.8px;
}

.real-coverage span:first-child {
  color: #26735f;
  background: #e8f5f1;
}

.real-source-shot {
  height: 478px;
}

.real-source-shot__toolbar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--tr-line);
}

.real-source-shot__toolbar b {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #3e3e51;
  font-size: 8px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.real-source-shot__toolbar span,
.real-source-shot__toolbar em,
.real-source-shot__toolbar small,
.real-source-shot__toolbar button {
  font-size: 7px;
  font-style: normal;
}

.real-source-shot__toolbar span,
.real-source-shot__toolbar button {
  display: grid;
  min-width: 23px;
  height: 25px;
  place-items: center;
  padding: 0 6px;
  color: #666779;
  background: #f7f7f9;
  border: 1px solid var(--tr-line);
  border-radius: 6px;
}

.real-source-shot__toolbar button {
  min-width: auto;
}

.real-source-shot__stage {
  position: relative;
  height: calc(100% - 48px);
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 2%, rgba(255, 255, 255, 0.85), transparent 38%),
    #e6e9f4;
}

.real-source-shot__page {
  position: relative;
  width: min(72%, 350px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 51, 0.12);
  box-shadow: 0 16px 38px rgba(46, 48, 79, 0.2);
}

.real-source-shot__page > img {
  display: block;
  width: 100%;
  height: auto;
}

.real-bbox {
  position: absolute;
  z-index: 2;
  left: 12.1%;
  width: 75.3%;
  border-radius: 2px;
}

.real-bbox--context {
  top: 35.2%;
  height: 5.3%;
  background: rgba(107, 101, 216, 0.06);
  border: 1px solid rgba(107, 101, 216, 0.26);
}

.real-bbox--target {
  top: 41.2%;
  height: 20.6%;
  background: rgba(107, 101, 216, 0.2);
  border: 1.5px solid var(--tr-violet-deep);
  box-shadow: 0 5px 18px rgba(81, 75, 184, 0.14);
}

.real-source-shot__page aside {
  position: absolute;
  z-index: 5;
  top: 48%;
  left: calc(100% + 15px);
  width: 148px;
  padding: 10px;
  color: #575578;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(107, 101, 216, 0.22);
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(42, 41, 81, 0.16);
}

.real-source-shot__page aside::before {
  position: absolute;
  top: 21px;
  right: 100%;
  width: 16px;
  height: 1px;
  background: rgba(81, 75, 184, 0.52);
  content: "";
}

.real-source-shot__page aside b {
  display: block;
  margin-bottom: 4px;
  color: var(--tr-violet-deep);
  font-size: 7.5px;
}

.real-source-shot__page aside p {
  margin: 0;
  font-size: 6.8px;
  line-height: 1.55;
}

.research-citation-shot {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(230px, 1.2fr);
  height: 475px;
}

.research-citation-shot__answer {
  position: relative;
  z-index: 3;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--tr-line);
}

.research-citation-shot__answer > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #3f3f52;
  font-size: 9px;
}

.research-citation-shot__answer img {
  width: 22px;
  height: 22px;
}

.research-citation-shot__answer p {
  margin: 0 0 13px;
  color: #444457;
  font-size: 9px;
  line-height: 1.72;
}

.research-citation-shot__answer sup {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #ffffff;
  background: var(--tr-violet-deep);
  border-radius: 5px;
  font-size: 6.5px;
  vertical-align: 3px;
  box-shadow: 0 4px 10px rgba(81, 75, 184, 0.24);
}

.research-citation-shot__answer aside {
  margin-top: 17px;
  padding: 9px 10px;
  color: #675a34;
  background: #fff9ed;
  border: 1px solid #eee0bd;
  border-radius: 8px;
  font-size: 7.3px;
  line-height: 1.5;
}

.research-citation-shot__page {
  position: relative;
  overflow: hidden;
  padding: 22px 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 38%),
    #e7e9f4;
}

.research-citation-shot__page img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 51, 0.13);
  box-shadow: 0 14px 36px rgba(46, 48, 79, 0.2);
}

.research-bbox {
  position: absolute;
  z-index: 2;
  left: 13%;
  width: 73%;
  border-radius: 2px;
}

.research-bbox--growth {
  top: 31%;
  height: 14%;
  background: rgba(107, 101, 216, 0.2);
  border: 1.5px solid var(--tr-violet-deep);
}

.research-bbox--risk {
  top: 46.5%;
  height: 10%;
  background: rgba(107, 101, 216, 0.07);
  border: 1px solid rgba(107, 101, 216, 0.28);
}

/* World Bank GEP p.26: headline market-weighted figure vs PPP-weighted memo item. */
.research-bbox--headline {
  top: 17%;
  left: 12.2%;
  width: 49%;
  height: 3.2%;
  background: rgba(107, 101, 216, 0.2);
  border: 1.5px solid var(--tr-violet-deep);
  box-shadow: 0 4px 14px rgba(81, 75, 184, 0.14);
}

.research-bbox--ppp {
  top: 70.2%;
  left: 13.4%;
  width: 44%;
  height: 3.2%;
  background: rgba(107, 101, 216, 0.08);
  border: 1px solid rgba(107, 101, 216, 0.42);
}

/* V2-specific refinements outside the demo */

.principles-inner b,
.story-copy h3,
.section-heading h2,
.use-cases-head h2,
.closing-cta h2 {
  color: var(--tr-ink);
}

.closing-cta h2 {
  color: #ffffff;
}

.case-card svg {
  stroke: var(--tr-ink);
}

.closing-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.button--outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.23);
}

.button--outline-light:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-footer--v2 {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
}

.brand--footer img {
  width: 28px;
  height: 28px;
}

.source-attribution {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #85868f;
  font-size: 9px;
}

.source-attribution span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Source-panel container queries keep controls useful at every split width. */

@container source-panel (max-width: 530px) {
  .source-toolbar-demo {
    grid-template-columns: minmax(72px, 1fr) auto auto;
    gap: 5px;
    padding-right: 6px;
    padding-left: 9px;
  }

  .source-labeled-control span {
    display: none;
  }

  .source-labeled-control {
    grid-auto-flow: row;
    gap: 0;
  }

  .source-toolbar-demo__divider {
    display: none;
  }

  .source-toolbar-demo__identity strong {
    font-size: 7.3px;
  }

  .demo-pdf-pages {
    gap: 14px;
    padding-top: 18px;
  }
}

@container source-panel (max-width: 410px) {
  .browser-tab--ghost,
  .browser-window-actions,
  .source-toolbar-demo__identity span,
  .source-toolbar-demo__actions > button:first-child {
    display: none;
  }

  .browser-tab {
    width: min(150px, 62%);
  }

  .browser-history button:nth-child(2),
  .browser-history button:nth-child(3) {
    display: none;
  }

  .source-toolbar-demo {
    grid-template-columns: minmax(56px, 1fr) auto auto;
  }

  .source-toolbar-demo__controls {
    gap: 1px;
  }

  .source-page-input {
    padding: 0 3px;
  }

  .demo-source-callout,
  .demo-source-insight {
    top: auto;
    left: auto;
    right: 7px;
    bottom: 7px;
    width: min(155px, 55%);
  }
}

/* Mid-size desktop and tablet */

@media (max-width: 1280px) {
  .hero-stage--v2 {
    min-height: 800px;
    padding: 36px 28px 30px;
  }

  .demo-window {
    height: 675px;
  }

  .demo-grid {
    grid-template-columns: 190px minmax(0, 1fr) 0fr;
  }

  .demo-window.is-source-open .demo-grid,
  .demo-window[data-demo-state="source"] .demo-grid {
    grid-template-columns: 182px minmax(305px, 0.8fr) minmax(400px, 1.2fr);
  }

  .demo-session b { font-size: 9px; }
  .demo-session small { font-size: 7.5px; }

  .feature-stage--real {
    min-height: 550px;
    padding: 38px;
  }

  .skill-ecosystem-shot {
    padding: 19px;
  }
}

@media (max-width: 1080px) {
  .nav-shell--v2 {
    grid-template-columns: 1fr auto;
  }

  .demo-window {
    height: 650px;
  }

  .demo-grid,
  .demo-window.is-source-open .demo-grid,
  .demo-window[data-demo-state="source"] .demo-grid {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .demo-source-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(510px, 58%);
    border-left: 1px solid var(--tr-line-strong);
    box-shadow: -20px 0 55px rgba(32, 32, 51, 0.18);
    transform: translateX(102%);
  }

  .demo-window.is-source-open .demo-source-panel,
  .demo-window[data-demo-state="source"] .demo-source-panel,
  .demo-source-panel[aria-hidden="false"] {
    transform: translateX(0);
  }

  .feature-stage--real {
    min-height: 590px;
  }

  .real-tool-shot,
  .real-source-shot,
  .research-citation-shot,
  .skill-ecosystem-shot {
    max-width: 720px;
  }

  .source-attribution {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 820px) {
  .nav-actions {
    gap: 4px;
  }

  .repo-link {
    display: none;
  }

  .hero-stage--v2 {
    min-height: 710px;
    padding: 15px 13px 24px;
  }

  .demo-window {
    --demo-bar-height: 42px;
    --demo-window-radius: 12px;
    height: 610px;
    border-radius: var(--demo-window-radius);
  }

  .demo-window-bar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 0 11px;
  }

  .demo-window-meta {
    display: none;
  }

  .demo-mode-switch span {
    display: none;
  }

  .demo-mode-switch b {
    min-width: 36px;
  }

  .demo-grid,
  .demo-window.is-source-open .demo-grid,
  .demo-window[data-demo-state="source"] .demo-grid {
    grid-template-columns: 65px minmax(0, 1fr);
  }

  .demo-sidebar {
    align-items: center;
    padding: 11px 6px 8px;
  }

  .demo-sidebar__brand {
    justify-content: center;
    padding: 0 0 10px;
  }

  .demo-sidebar__brand span,
  .demo-new-chat:not(:focus) {
    font-size: 0;
  }

  .demo-new-chat {
    justify-content: center;
    width: 35px;
    min-height: 35px;
    padding: 0;
  }

  .demo-sidebar__label,
  .demo-session > span:last-child,
  .demo-library-item > span,
  .demo-sidebar__footer > span:nth-child(2),
  .demo-sidebar__footer > svg {
    display: none;
  }

  .demo-session-list {
    width: 100%;
    gap: 6px;
    margin-top: 18px;
  }

  .demo-session {
    display: grid;
    min-height: 44px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 5px;
  }

  .demo-session::after {
    left: -6px;
  }

  .demo-library-item {
    display: grid;
    width: 38px;
    min-height: 38px;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 24px;
    padding: 0;
  }

  .demo-library-item > svg {
    margin: 0;
  }

  .demo-sidebar__footer {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 9px 0 0;
  }

  .demo-main {
    grid-template-rows: 54px minmax(0, 1fr) auto;
  }

  .demo-main__header {
    padding: 0 12px;
  }

  .demo-main__header h2 {
    max-width: 190px;
    font-size: 10.5px;
  }

  .demo-thread {
    padding: 16px 13px 24px;
  }

  .demo-tool-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .demo-tool-row em,
  .demo-tool-row > span:last-child:not(:first-child) {
    display: none;
  }

  .demo-composer {
    min-height: 96px;
    margin: 0 10px 10px;
  }

  .demo-source-panel {
    width: calc(100% - 65px);
  }

  .demo-caption--v2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin: 17px 4px 0;
  }

  .demo-playback {
    width: 100%;
  }

  .demo-playback output {
    margin-left: auto;
  }

  .feature-stage--real {
    min-height: 535px;
    padding: 28px 22px;
  }

  .real-source-shot {
    height: 450px;
  }

  .research-citation-shot {
    height: 450px;
  }

  .feature-stage--skill {
    min-height: 560px;
  }

  .site-footer--v2 {
    grid-template-columns: 1fr auto;
  }

  .source-attribution {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand--production img {
    width: 27px;
    height: 27px;
  }

  .hero-stage--v2 {
    min-height: 680px;
    padding: 8px 7px 22px;
  }

  .demo-window {
    --demo-window-radius: 10px;
    height: 592px;
    border-radius: var(--demo-window-radius);
  }

  .demo-window-bar {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
    padding: 0 9px;
  }

  .demo-window-bar .traffic-lights span {
    width: 8px;
    height: 8px;
  }

  .demo-mode-switch {
    display: none;
  }

  .demo-grid,
  .demo-window.is-source-open .demo-grid,
  .demo-window[data-demo-state="source"] .demo-grid {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .demo-sidebar {
    padding-right: 4px;
    padding-left: 4px;
  }

  .demo-sidebar__brand img {
    width: 22px;
    height: 22px;
  }

  .demo-session__icon {
    width: 28px;
    height: 28px;
  }

  .demo-session::after {
    left: -4px;
  }

  .demo-library-item {
    width: 34px;
    min-height: 35px;
  }

  .demo-main__header {
    padding: 0 9px;
  }

  .demo-main__header span[data-thread-kicker] {
    display: none;
  }

  .demo-main__header h2 {
    max-width: 135px;
    font-size: 9.4px;
  }

  .demo-project-pill {
    min-height: 24px;
    padding: 0 7px;
  }

  .demo-project-pill span {
    max-width: 65px;
  }

  .demo-welcome {
    padding: 18px;
  }

  .demo-welcome img {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
  }

  .demo-welcome h3 {
    font-size: 19px;
  }

  .demo-welcome p {
    max-width: 190px;
    font-size: 8.5px;
  }

  .demo-thread {
    padding: 13px 9px 22px;
  }

  .demo-user-bubble,
  .demo-message--user {
    width: 94%;
    padding: 8px 10px;
    font-size: 9px;
    line-height: 1.6;
  }

  .demo-agent-block,
  .demo-message--agent {
    margin-top: 13px;
  }

  .demo-agent-copy,
  .demo-progress-copy {
    font-size: 8.4px;
    line-height: 1.58;
  }

  .demo-answer-block {
    font-size: 9px;
    line-height: 1.65;
  }

  .demo-tool-row {
    min-height: 39px;
    gap: 6px;
    padding-right: 7px;
  }

  .demo-tool-row b { font-size: 8px; }
  .demo-tool-row small { font-size: 6.3px; }

  .demo-answer {
    margin-top: 11px;
    padding-top: 12px;
  }

  .demo-answer-note {
    grid-template-columns: 1fr;
    font-size: 7.5px;
  }

  .demo-answer-note svg {
    display: none;
  }

  .demo-composer {
    min-height: 91px;
    margin: 0 7px 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .demo-composer textarea {
    font-size: 7.8px;
  }

  .demo-skill-chip {
    max-width: 102px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .demo-model {
    display: none;
  }

  .demo-source-panel {
    width: calc(100% - 52px);
  }

  .demo-cursor {
    width: 18px;
    height: 23px;
  }

  .demo-cursor svg {
    width: 18px;
    height: 23px;
  }

  .demo-caption--v2 > div:first-child > span {
    font-size: 9px;
  }

  .demo-caption--v2 p {
    max-width: 300px;
    font-size: 8px;
    line-height: 1.5;
  }

  .demo-playback button {
    min-height: 29px;
    padding: 0 8px;
    font-size: 7.8px;
  }

  .demo-playback output {
    display: none;
  }

  .feature-stage--real {
    min-height: 485px;
    padding: 22px 15px;
  }

  .feature-stage--skill {
    min-height: 545px;
  }

  .skill-ecosystem-shot {
    padding: 14px;
    border-radius: 14px;
  }

  .skill-agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .skill-agent-card {
    min-height: 92px;
    gap: 7px;
    padding: 9px 6px 8px;
    border-radius: 10px;
  }

  .skill-agent-card > span {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .skill-agent-card img {
    width: 31px;
    height: 31px;
  }

  .skill-agent-card b {
    font-size: 8px;
  }

  .skill-connector {
    height: 44px;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 14%;
  }

  .skill-connector::before {
    top: 16px;
    right: 25%;
    left: 25%;
  }

  .skill-connector::after {
    top: 16px;
  }

  .skill-connector i {
    height: 17px;
  }

  .skill-connector i:nth-child(n + 3) {
    display: none;
  }

  .skill-hub-card {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
  }

  .skill-hub-card__identity {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .skill-hub-card__identity > img {
    width: 31px;
    height: 31px;
  }

  .skill-hub-card__identity em {
    display: none;
  }

  .skill-hub-card__identity b {
    font-size: 12px;
  }

  .skill-hub-card > p {
    margin: 12px 0 11px;
    font-size: 8px;
  }

  .skill-capabilities span {
    padding: 5px 6px;
    font-size: 6.2px;
  }

  .skill-ecosystem-note {
    margin-top: 12px;
    font-size: 7px;
  }

  .real-tool-shot {
    padding: 12px;
  }

  .real-tool-shot__head span,
  .real-tool-row em {
    display: none;
  }

  .real-tool-row {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .real-source-shot {
    height: 430px;
  }

  .real-source-shot__toolbar b {
    max-width: 120px;
  }

  .real-source-shot__toolbar button:last-child {
    display: none;
  }

  .real-source-shot__stage {
    padding: 18px 12px;
  }

  .real-source-shot__page {
    width: 78%;
    margin-left: 7px;
  }

  .real-source-shot__page aside {
    top: 42%;
    left: 82%;
    width: 98px;
    padding: 7px;
  }

  .real-source-shot__page aside p {
    font-size: 5.8px;
  }

  .research-citation-shot {
    position: relative;
    display: block;
    height: 430px;
  }

  .research-citation-shot__answer {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 12px;
    width: 66%;
    padding: 13px;
    border: 1px solid var(--tr-line);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(35, 35, 70, 0.16);
  }

  .research-citation-shot__answer > div:first-child {
    margin-bottom: 11px;
  }

  .research-citation-shot__answer p {
    margin-bottom: 8px;
    font-size: 7.2px;
  }

  .research-citation-shot__answer aside {
    margin-top: 10px;
    font-size: 6.2px;
  }

  .research-citation-shot__page {
    position: absolute;
    inset: 0;
    padding: 35px 14px 14px 34%;
  }

  .research-bbox {
    left: 43%;
    width: 50%;
  }

  .research-bbox--headline {
    top: 16.5%;
    left: 37.8%;
    width: 35.5%;
    height: 2.4%;
  }

  .research-bbox--ppp {
    top: 51.6%;
    left: 38.7%;
    width: 32%;
    height: 2.4%;
  }

  .closing-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer--v2 {
    grid-template-columns: 1fr auto;
  }
}

/* Users who request reduced motion get a stable, directly inspectable demo. */

@media (prefers-reduced-motion: reduce) {
  .demo-cursor {
    display: none !important;
  }

  .demo-tool-row.is-running .demo-tool-state::after,
  .demo-tool-row.is-running > span:first-child::after,
  .real-tool-row.is-running > span:first-child::after,
  .demo-typing-caret {
    animation: none !important;
  }

  .demo-pdf-highlight.is-arriving,
  .demo-pdf-bbox.is-arriving {
    animation: none !important;
  }

  .demo-thread,
  .demo-pdf-stage {
    scroll-behavior: auto;
  }
}
