/*
 * Editorial technology theme.
 * A final, low-risk visual layer inspired by modern research and developer
 * product sites. Existing content, accessibility and interactions stay intact.
 */

:root {
  --ed-bg: #f6f6f4;
  --ed-paper: #fbfbfa;
  --ed-panel: #ffffff;
  --ed-ink: #171715;
  --ed-copy: #353532;
  --ed-muted: #747470;
  --ed-rule: #deded9;
  --ed-rule-strong: #b8b8b2;
  --ed-accent: #0b7569;
  --ed-accent-soft: #e3f0ed;
  --ed-dark: #171713;
  --ed-dark-panel: #22221d;
  --ed-dark-rule: #3c3b35;
  --ed-dark-copy: #c8c6bd;
  --ed-radius: 4px;
  --shell: min(1760px, calc(100vw - clamp(48px, 6vw, 96px)));
  --header-height: 72px;
  --white: var(--ed-paper);
  --navy: var(--ed-ink);
  --navy-deep: var(--ed-ink);
  --ink: var(--ed-ink);
  --text: var(--ed-copy);
  --muted: var(--ed-muted);
  --line: var(--ed-rule);
  --line-strong: var(--ed-rule-strong);
  --surface: #efefec;
  --surface-blue: #e9efed;
  --blue: var(--ed-accent);
  --blue-dark: #075f55;
  --blue-soft: var(--ed-accent-soft);
  --success: var(--ed-accent);
  --radius: var(--ed-radius);
  --shadow: none;
}

html.theme-dark {
  --ed-bg: #11110e;
  --ed-paper: #171713;
  --ed-panel: #1d1d18;
  --ed-ink: #f2f0e9;
  --ed-copy: #c9c7be;
  --ed-muted: #8f8d84;
  --ed-rule: #34342e;
  --ed-rule-strong: #58574f;
  --ed-accent: #61d6bd;
  --ed-accent-soft: #173b34;
  --ed-dark: #0a0a08;
  --ed-dark-panel: #171713;
  --ed-dark-rule: #34342e;
  --ed-dark-copy: #c9c7be;
  --white: var(--ed-paper);
  --navy: var(--ed-ink);
  --navy-deep: var(--ed-ink);
  --ink: var(--ed-ink);
  --text: var(--ed-copy);
  --muted: var(--ed-muted);
  --line: var(--ed-rule);
  --line-strong: var(--ed-rule-strong);
  --surface: #22221d;
  --surface-blue: #172621;
  --blue: var(--ed-accent);
  --blue-dark: #8ee4d1;
  --blue-soft: var(--ed-accent-soft);
}

body,
.theme-dark body {
  color: var(--ed-copy);
  background: var(--ed-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: -0.012em;
}

::selection {
  color: #fff;
  background: var(--ed-accent);
}

.site-header,
.theme-dark .site-header {
  height: var(--header-height);
  color: var(--ed-ink);
  background: color-mix(in srgb, var(--ed-bg) 92%, transparent);
  border-bottom: 1px solid var(--ed-rule);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled,
.theme-dark .site-header.is-scrolled {
  box-shadow: none;
}

.header-inner {
  width: var(--shell);
  max-width: none;
  height: 100%;
}

.header-logo {
  width: 164px;
  height: auto;
}

.theme-dark .header-logo {
  filter: brightness(0) invert(1);
}

.desktop-nav {
  gap: clamp(22px, 3vw, 46px);
}

.desktop-nav a,
.site-footer a {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.desktop-nav a::after {
  height: 1px;
  background: currentColor;
}

.header-cta,
.theme-dark .header-cta {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--ed-bg);
  background: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  border-radius: 999px;
  box-shadow: none;
}

.header-cta:hover {
  color: var(--ed-ink);
  background: transparent;
}

.theme-toggle,
.language-toggle,
.theme-dark .theme-toggle,
.theme-dark .language-toggle {
  color: var(--ed-ink);
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
  box-shadow: none;
}

.reading-progress > span {
  height: 1px;
  background: var(--ed-ink);
}

.hero,
.theme-dark .hero {
  min-height: auto;
  padding: clamp(112px, 11vw, 168px) 0 clamp(96px, 9vw, 136px);
  color: var(--ed-copy);
  background: var(--ed-bg);
  border-bottom: 1px solid var(--ed-rule);
}

.hero::before,
.hero::after,
.hero-intro::before,
.theme-dark .hero::before,
.theme-dark .hero::after,
.theme-dark .hero-intro::before {
  display: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(72px, 8vw, 112px);
}

.hero-copy-compact {
  display: block;
  width: 100%;
  text-align: center;
}

.hero-copy-compact .hero-intro {
  width: min(980px, 100%);
  margin: 0 auto;
}

.hero-copy-compact .eyebrow {
  margin: 0;
  color: var(--ed-muted);
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: clamp(54px, 6.2vw, 94px);
  font-weight: 470;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.hero-copy-compact .hero-slogan span {
  display: block;
  white-space: nowrap;
}

.hero-copy-compact .hero-lede {
  max-width: 620px;
  margin: 32px auto 0;
  color: var(--ed-muted);
  font-size: clamp(17px, 1.35vw, 21px);
}

.hero-copy-compact .hero-actions {
  justify-content: center;
  margin-top: 34px;
}

.hero-copy-compact .button {
  min-width: 144px;
  cursor: pointer;
}

html[data-language="en"] .hero-layout {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
}

html[data-language="en"] .hero-copy-compact,
html[data-language="en"] .hero-copy-compact .hero-intro {
  max-width: none;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.58fr);
  gap: clamp(50px, 8vw, 126px);
  align-items: end;
}

.hero-intro,
.hero-summary {
  width: auto;
  max-width: none;
  padding: 0;
}

.eyebrow,
.section-index {
  color: var(--ed-muted);
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.hero-slogan {
  max-width: 1100px;
  margin: 18px 0 0;
  color: var(--ed-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(72px, 9.6vw, 154px);
  font-weight: 560;
  line-height: 0.91;
  letter-spacing: -0.072em;
  text-wrap: balance;
}

.hero-summary {
  align-self: end;
}

.hero-lede {
  max-width: 460px;
  margin: 0;
  color: var(--ed-copy);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.hero-actions {
  margin-top: 34px;
  gap: 10px;
}

.button {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.button-primary,
.theme-dark .button-primary {
  color: var(--ed-bg);
  background: var(--ed-ink);
  border-color: var(--ed-ink);
}

.button-primary:hover {
  color: var(--ed-ink);
  background: transparent;
}

.button-secondary,
.theme-dark .button-secondary {
  color: var(--ed-ink);
  background: transparent;
  border-color: var(--ed-rule-strong);
}

.button-secondary:hover {
  border-color: var(--ed-ink);
  background: color-mix(in srgb, var(--ed-ink) 5%, transparent);
}

.install-box,
.theme-dark .install-box {
  margin-top: 38px;
  padding: 16px 0;
  color: var(--ed-copy);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  border-radius: 0;
  box-shadow: none;
}

.install-box span,
.install-box code {
  color: var(--ed-copy);
}

.install-box span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.install-box code {
  font-size: 11px;
}

.install-box button,
.terminal-head button {
  color: var(--ed-ink);
  background: transparent;
  border: 1px solid var(--ed-rule-strong);
  border-radius: 999px;
}

.hero-support {
  margin-top: 22px;
  color: var(--ed-muted);
}

.hero-support > span,
.support-group strong {
  color: var(--ed-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-list li {
  color: var(--ed-copy);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.product-workbench,
.theme-dark .product-workbench {
  width: min(1360px, 100%);
  margin: 0 auto;
  color: var(--ed-copy);
  background: var(--ed-panel);
  border: 1px solid var(--ed-rule-strong);
  border-radius: 16px;
  box-shadow: 0 34px 84px rgba(17, 17, 16, 0.1);
  overflow: hidden;
}

.workbench-bar,
.theme-dark .workbench-bar {
  min-height: 48px;
  padding: 0 18px;
  color: var(--ed-muted);
  background: color-mix(in srgb, var(--ed-paper) 92%, var(--ed-ink) 8%);
  border-color: var(--ed-rule);
  font: 650 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.window-controls i,
.product-workbench .window-controls i:nth-child(1),
.product-workbench .window-controls i:nth-child(2),
.product-workbench .window-controls i:nth-child(3) {
  width: 9px;
  height: 9px;
  background: transparent;
  border: 1px solid var(--ed-rule-strong);
  box-shadow: none;
}

.workbench-live {
  color: var(--ed-accent);
}

.workbench-task,
.theme-dark .workbench-task {
  padding: clamp(28px, 4vw, 54px);
  color: var(--ed-copy);
  background: var(--ed-paper);
  border-color: var(--ed-rule);
}

.workbench-task strong {
  max-width: 780px;
  color: var(--ed-ink);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.workbench-task p {
  max-width: 720px;
  color: var(--ed-muted);
}

.workbench-body {
  background: var(--ed-panel);
}

.workbench-rail,
.theme-dark .workbench-rail {
  background: color-mix(in srgb, var(--ed-paper) 94%, var(--ed-ink) 6%);
  border-color: var(--ed-rule);
}

.workbench-rail li > i,
.product-workbench .workbench-rail li > i,
.workbench-rail li.is-complete > i {
  color: var(--ed-bg);
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  border-radius: 50%;
}

.workbench-rail li strong,
.memory-result-list li,
.task-terminal-head,
.workbench-replay {
  color: var(--ed-copy);
}

.workbench-rail li small,
.task-terminal-meta {
  color: var(--ed-muted);
}

.workbench-main {
  background: var(--ed-panel);
}

.memory-result,
.theme-dark .memory-result {
  color: var(--ed-copy);
  background: var(--ed-paper);
  border: 1px solid var(--ed-rule);
  border-radius: 2px;
  box-shadow: none;
}

.memory-result-head {
  color: var(--ed-copy);
  border-color: var(--ed-rule);
}

.memory-result-head small,
.memory-result-head small i {
  color: var(--ed-accent);
}

.memory-result-list li::before {
  color: var(--ed-accent);
}

.task-terminal,
.theme-dark .task-terminal {
  color: #deddd5;
  background: var(--ed-dark);
  border: 1px solid var(--ed-dark-rule);
  border-radius: 2px;
  box-shadow: none;
}

.task-terminal-head,
.task-terminal-meta {
  color: #a9a79e;
  border-color: var(--ed-dark-rule);
}

.task-terminal pre,
.task-terminal code,
.task-terminal code span {
  color: #d7d5cc;
}

.task-terminal b,
.task-terminal .terminal-result,
.task-terminal .terminal-result b {
  color: #61d6bd;
}

.workbench-replay {
  border-color: var(--ed-rule);
}

/* Guided new-session demo. The conversation stays sparse until the visitor
 * starts it; retrieval details appear only while they are relevant. */
.session-demo,
.theme-dark .session-demo {
  background: var(--ed-panel);
  border-color: var(--ed-rule);
}

.session-demo .workbench-bar,
.theme-dark .session-demo .workbench-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  background: var(--ed-paper);
}

.session-demo .window-controls {
  justify-self: start;
}

.session-demo .workbench-bar > span:nth-child(2) {
  justify-self: center;
  color: var(--ed-copy);
}

.session-demo .workbench-live {
  justify-self: end;
}

.session-demo-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(430px, 1.1fr) minmax(360px, 0.95fr);
  min-height: clamp(600px, 48vw, 700px);
  background: var(--ed-panel);
}

.session-sidebar,
.session-chat,
.session-code {
  min-width: 0;
}

.session-sidebar {
  padding: 24px 16px;
  background: color-mix(in srgb, var(--ed-paper) 72%, var(--ed-bg) 28%);
  border-right: 1px solid var(--ed-rule);
}

.session-new,
.session-item,
.session-chat-head button {
  width: 100%;
  color: var(--ed-copy);
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.session-new {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ed-rule);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
}

.session-new:hover {
  border-color: var(--ed-rule-strong);
  background: var(--ed-panel);
}

.session-new span {
  margin-right: 7px;
  font-size: 16px;
  font-weight: 400;
}

.session-sidebar-label {
  display: block;
  margin: 34px 12px 12px;
  color: var(--ed-muted);
  font: 650 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 11px;
}

.session-item + .session-item {
  margin-top: 3px;
}

.session-item.is-active {
  color: var(--ed-ink);
  background: color-mix(in srgb, var(--ed-ink) 5%, transparent);
}

.session-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item small {
  color: var(--ed-muted);
  font-size: 9px;
  white-space: nowrap;
}

.session-chat {
  display: flex;
  flex-direction: column;
  background: var(--ed-panel);
  border-right: 1px solid var(--ed-rule);
}

.session-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 28px;
  border-bottom: 1px solid var(--ed-rule);
}

.session-chat-head > div {
  display: grid;
  gap: 3px;
}

.session-chat-head span {
  color: var(--ed-ink);
  font-size: 13px;
  font-weight: 650;
}

.session-chat-head small {
  color: var(--ed-muted);
  font-size: 10px;
}

.session-chat-head button {
  width: auto;
  color: var(--ed-muted);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, color 220ms ease;
}

.session-demo[data-state="answer"] .session-chat-head button {
  opacity: 1;
  pointer-events: auto;
}

.session-chat-head button:hover {
  color: var(--ed-ink);
}

.session-chat-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.session-guide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px;
  text-align: center;
  transition: opacity 260ms ease, transform 320ms ease;
}

.session-guide-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  color: var(--ed-muted);
  border: 1px solid var(--ed-rule);
  border-radius: 50%;
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.session-guide p {
  margin: 0;
  color: var(--ed-muted);
  font-size: 12px;
}

.session-guide strong {
  max-width: 360px;
  margin-top: 10px;
  color: var(--ed-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.session-demo:not([data-state="idle"]) .session-guide {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.session-conversation {
  display: grid;
  gap: 20px;
  padding: 30px 32px 36px;
}

.session-message,
.session-recall {
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.session-message {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
}

.session-message > span {
  padding-top: 2px;
  color: var(--ed-muted);
  font: 650 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.session-message p {
  margin: 0;
  color: var(--ed-copy);
  font-size: 13px;
  line-height: 1.7;
}

.session-message-user p {
  color: var(--ed-ink);
  font-weight: 560;
}

.session-recall {
  margin-left: 68px;
  overflow: hidden;
  border: 1px solid var(--ed-rule);
  border-radius: 8px;
  background: var(--ed-paper);
}

.session-recall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 14px;
}

.session-recall-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-copy);
  font: 650 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.session-recall-head i,
.session-code-status i {
  width: 7px;
  height: 7px;
  background: var(--ed-accent);
  border-radius: 50%;
}

.session-recall-head small {
  color: var(--ed-muted);
  font-size: 9px;
}

.session-demo[data-state="searching"] .session-recall-head i {
  animation: session-pulse 1s ease-in-out infinite;
}

.session-recall ul {
  max-height: 310px;
  margin: 0;
  padding: 0 14px 12px;
  list-style: none;
  opacity: 1;
  transition: max-height 360ms ease, opacity 220ms ease, padding 360ms ease;
}

.session-recall li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid var(--ed-rule);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.session-recall li > span {
  color: var(--ed-accent);
  font: 650 8px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-recall li p {
  margin: 0;
  color: var(--ed-copy);
  font-size: 10px;
  line-height: 1.45;
}

.session-recall li small {
  color: var(--ed-muted);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.session-demo[data-state="asking"] .session-message-user,
.session-demo[data-state="searching"] .session-message-user,
.session-demo[data-state="memory-1"] .session-message-user,
.session-demo[data-state="memory-2"] .session-message-user,
.session-demo[data-state="memory-3"] .session-message-user,
.session-demo[data-state="answer"] .session-message-user,
.session-demo[data-state="searching"] .session-recall,
.session-demo[data-state="memory-1"] .session-recall,
.session-demo[data-state="memory-2"] .session-recall,
.session-demo[data-state="memory-3"] .session-recall,
.session-demo[data-state="answer"] .session-recall,
.session-demo[data-state="answer"] .session-message-agent {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.session-demo[data-state="memory-1"] .session-recall li:nth-child(1),
.session-demo[data-state="memory-2"] .session-recall li:nth-child(-n + 2),
.session-demo[data-state="memory-3"] .session-recall li,
.session-demo[data-state="answer"] .session-recall li {
  opacity: 1;
  transform: translateY(0);
}

.session-demo[data-state="answer"] .session-recall ul {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.session-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  margin: 0 28px 28px;
  padding: 7px 8px 7px 15px;
  color: var(--ed-copy);
  background: var(--ed-paper);
  border: 1px solid var(--ed-rule-strong);
  border-radius: 10px;
  transition: border-color 220ms ease, opacity 220ms ease;
}

.session-composer:hover,
.session-demo[data-state="idle"] .session-composer:focus-within {
  border-color: var(--ed-ink);
}

.session-composer span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-composer button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ed-paper);
  background: var(--ed-ink);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.session-demo:not([data-state="idle"]) .session-composer {
  opacity: 0.45;
  pointer-events: none;
}

.session-demo-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.session-code {
  position: relative;
  background: var(--ed-paper);
}

.session-code-tabs {
  display: flex;
  min-height: 48px;
  border-bottom: 1px solid var(--ed-rule);
}

.session-code-tabs span {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  color: var(--ed-muted);
  border-right: 1px solid var(--ed-rule);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.session-code-tabs span:first-child {
  color: var(--ed-ink);
  background: var(--ed-panel);
}

.session-code pre {
  margin: 0;
  padding: 30px 24px;
  overflow: auto;
  color: var(--ed-copy);
  background: transparent;
  font: 500 10px/2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.session-code code,
.session-code code span {
  color: inherit;
  font: inherit;
}

.session-code code span {
  display: block;
  min-width: max-content;
  margin: 0 -8px;
  padding: 0 8px;
  transition: background 300ms ease;
}

.session-code code i {
  display: inline-block;
  width: 28px;
  color: var(--ed-muted);
  font-style: normal;
  opacity: 0.58;
}

.session-code code b {
  color: #765a9e;
  font-weight: 600;
}

.session-code code em {
  color: var(--ed-muted);
  font-style: normal;
}

.session-demo[data-state="answer"] .session-code .code-focus {
  background: color-mix(in srgb, var(--ed-accent) 8%, transparent);
}

.session-code-status {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-accent);
  font: 650 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.session-demo[data-state="answer"] .session-code-status {
  opacity: 1;
  transform: translateY(0);
}

@keyframes session-pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

@media (max-width: 1180px) {
  .session-demo-grid {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  }

  .session-code {
    display: none;
  }

  .session-chat {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .session-demo .workbench-bar {
    grid-template-columns: auto 1fr;
  }

  .session-demo .workbench-bar > span:nth-child(2) {
    justify-self: start;
    margin-left: 12px;
  }

  .session-demo .workbench-live {
    display: none;
  }

  .session-demo-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 610px;
  }

  .session-sidebar {
    display: none;
  }

  .session-chat-head,
  .session-conversation {
    padding-right: 20px;
    padding-left: 20px;
  }

  .session-recall {
    margin-left: 0;
  }

  .session-recall li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .session-recall li > span {
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .session-composer {
    margin-right: 16px;
    margin-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .session-demo *,
  .session-demo *::before,
  .session-demo *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

.section,
.section-cases,
.section-memories,
.section-demo,
.theme-dark .section,
.theme-dark .section-cases,
.theme-dark .section-memories,
.theme-dark .section-demo {
  padding: clamp(104px, 12vw, 176px) 0;
  color: var(--ed-copy);
  background: var(--ed-paper);
  border-bottom: 1px solid var(--ed-rule);
}

.section-memories,
.theme-dark .section-memories {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(24px, 3.5vh, 32px) 0;
  color: #000;
  background: #fdfdfd;
}

.section-memories .section-heading {
  margin-bottom: clamp(48px, 7vh, 64px);
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.section-memories .section-heading h2,
.theme-dark .section-memories .section-heading h2 {
  color: #000;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-memories .section-index,
.theme-dark .section-memories .section-index {
  color: #89847d;
}

.section-demo,
.theme-dark .section-demo {
  background: var(--ed-paper);
}

.section-heading {
  margin-bottom: clamp(56px, 7vw, 98px);
  grid-template-columns: 180px minmax(0, 980px);
  gap: 32px clamp(42px, 8vw, 120px);
}

.section-heading h2,
.theme-dark .section-heading h2 {
  color: var(--ed-ink);
  font-size: clamp(48px, 6.6vw, 92px);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 690px;
  color: var(--ed-muted);
  font-size: 17px;
  line-height: 1.7;
}

.case-explorer {
  width: min(1320px, 100%);
  margin-top: 0;
}

.case-gallery {
  padding: 0;
}

.case-grid {
  gap: 0;
  border-top: 1px solid var(--ed-rule-strong);
  border-left: 1px solid var(--ed-rule-strong);
}

.case-slide,
.theme-dark .case-slide {
  --case-accent: var(--ed-accent);
  min-height: 300px;
  padding: 28px;
  color: var(--ed-copy);
  background: var(--ed-paper);
  border: 0;
  border-right: 1px solid var(--ed-rule-strong);
  border-bottom: 1px solid var(--ed-rule-strong);
  border-radius: 0;
  box-shadow: none;
}

.case-slide.tone-violet,
.case-slide.tone-indigo,
.case-slide.tone-blue {
  --case-accent: var(--ed-accent);
}

.case-slide::before {
  top: auto;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 3px;
  border-radius: 0;
  background: var(--ed-accent);
}

.case-slide:hover,
.case-slide:focus-visible,
.case-slide.is-active,
.theme-dark .case-slide:hover,
.theme-dark .case-slide.is-active {
  background: color-mix(in srgb, var(--ed-accent) 7%, var(--ed-paper));
  border-color: var(--ed-rule-strong);
  box-shadow: none;
  transform: none;
}

.case-slide-type {
  color: var(--ed-muted);
}

.case-slide > strong {
  max-width: 330px;
  color: var(--ed-ink);
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.case-slide > small,
.theme-dark .case-slide > small {
  color: var(--ed-muted);
}

.case-slide > small b,
.case-slide-open {
  color: var(--ed-accent);
}

.case-slide-open {
  border-color: var(--ed-rule);
}

.case-lab,
.theme-dark .case-lab {
  margin-top: 36px;
  color: var(--ed-copy);
  background: var(--ed-bg);
  border: 1px solid var(--ed-rule-strong);
  border-radius: var(--ed-radius);
  box-shadow: none;
}

.case-lab-header,
.case-lab-controls,
.case-lab-hero {
  border-color: var(--ed-rule);
}

.case-lab-header h3,
.case-lab-hero h4,
.case-outcome-header h4,
.case-lane-heading {
  color: var(--ed-ink);
}

.case-lab-hero blockquote,
.case-outcome-card,
.case-lane,
.case-memory-recall,
.case-lane-answer,
.theme-dark .case-lab-hero blockquote,
.theme-dark .case-outcome-card,
.theme-dark .case-lane,
.theme-dark .case-memory-recall,
.theme-dark .case-lane-answer {
  color: var(--ed-copy);
  background: var(--ed-paper);
  border-color: var(--ed-rule);
  border-radius: 2px;
  box-shadow: none;
}

.case-lane-on {
  background: color-mix(in srgb, var(--ed-accent) 6%, var(--ed-paper));
}

.case-lab-controls button,
.theme-dark .case-lab-controls button {
  color: var(--ed-copy);
  background: transparent;
  border-color: var(--ed-rule-strong);
  border-radius: 999px;
}

.case-lab-controls button.is-active {
  color: var(--ed-bg);
  background: var(--ed-ink);
  border-color: var(--ed-ink);
}

.section-quickstart,
.theme-dark .section-quickstart {
  padding: clamp(104px, 12vw, 176px) 0;
  color: var(--ed-dark-copy);
  background: var(--ed-dark);
  border-bottom: 1px solid var(--ed-dark-rule);
}

.section-quickstart .section-heading h2,
.section-quickstart .quickstart-heading h2 {
  color: #f2f0e9;
}

.section-quickstart .section-heading p,
.section-quickstart .quickstart-heading p {
  color: #9f9d94;
}

.quickstart-tabs {
  gap: 0;
  border: 1px solid var(--ed-dark-rule);
  border-bottom: 0;
  border-radius: 0;
  overflow: hidden;
}

.quickstart-tab,
.theme-dark .quickstart-tab {
  color: #aaa89f;
  background: var(--ed-dark-panel);
  border: 0;
  border-right: 1px solid var(--ed-dark-rule);
  border-radius: 0;
  box-shadow: none;
}

.quickstart-tab:last-child {
  border-right: 0;
}

.quickstart-tab.is-active,
.theme-dark .quickstart-tab.is-active {
  color: var(--ed-dark);
  background: #f2f0e9;
  box-shadow: none;
}

.quickstart-tab strong,
.quickstart-tab small {
  color: inherit;
}

.quickstart-panel,
.theme-dark .quickstart-panel {
  color: #2f302d;
  background: #f2f0e9;
  border: 1px solid var(--ed-dark-rule);
  border-radius: 0;
  box-shadow: none;
}

.quickstart-panel-intro,
.quickstart-guide,
.quickstart-install-journey,
.quickstart-install-panel .start-step,
.quickstart-step,
.quickstart-chat,
.quickstart-chat-log,
.quickstart-chat-message,
.quickstart-prepare,
.quickstart-command-row,
.quickstart-auto-note {
  border-radius: 2px;
  box-shadow: none;
}

.quickstart-install-panel .start-step,
.quickstart-step,
.quickstart-prepare,
.quickstart-chat {
  background: #f9f8f4;
  border-color: #cfccc2;
}

.quickstart-install-panel .start-step-head > span,
.quickstart-step-heading > span,
.quickstart-chat-step span,
.quickstart-agent-avatar,
.quickstart-memory-mark {
  border-radius: 50%;
}

.quickstart-install-panel .start-step-head > span,
.quickstart-step-heading > span {
  color: #f2f0e9;
  background: #171713;
}

.quickstart-install-panel .start-command,
.quickstart-command-row,
.start-command {
  color: #dfddd4;
  background: #171713;
  border-color: #3c3b35;
  border-radius: 2px;
}

.quickstart-install-panel .start-command code,
.quickstart-command-row code,
.start-command code {
  color: #dfddd4;
}

.quickstart-copy-button,
.quickstart-install-panel .start-command .quickstart-copy-button {
  color: #171713;
  background: #f2f0e9;
  border-color: #aaa79d;
  border-radius: 999px;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ed-rule-strong);
  border-left: 1px solid var(--ed-rule-strong);
}

.memory-grid-lineart {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 940px);
  margin: 0 auto;
  gap: 12px;
  border: 0;
}

.memory-grid-lineart .memory-line-card,
.memory-grid-lineart .memory-line-card:last-child,
.theme-dark .memory-grid-lineart .memory-line-card {
  height: clamp(204px, calc((100svh - 272px) / 2), 300px);
  min-height: 0;
  padding: 0 26px 18px;
  display: flex;
  flex-direction: column;
  color: #000;
  background: #f7f5f4;
  border: 1px solid #e9e7e5;
  border-radius: 26px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 220ms ease;
}

.memory-grid-lineart .memory-line-card:hover {
  border-color: #dedbd8;
}

.theme-dark .memory-grid-lineart .memory-line-card {
  color: #ece9df;
  background: #171713;
  border-color: #33332d;
}

.memory-line-visual {
  flex: 1;
  min-height: 0;
  height: auto;
  margin: 0 -26px 8px;
  padding: 10px 42px 2px;
  display: grid;
  place-items: center;
  color: #20201d;
}

.theme-dark .memory-line-visual {
  color: #e2dfd5;
}

.memory-line-visual svg {
  width: min(100%, 250px);
  height: min(100%, 154px);
  overflow: visible;
}

.memory-diagram-lines {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.memory-diagram-lines .is-dotted {
  stroke-width: 1.15;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
}

.memory-diagram-lines .is-soft {
  opacity: 0.38;
}

.memory-diagram-code {
  fill: currentColor;
  opacity: 0.42;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.memory-line-card .memory-card-head {
  margin-top: 2px;
  padding-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 0;
  text-align: left;
}

.memory-line-card .memory-card-head span {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  color: #77736d;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
}

.memory-line-card .memory-card-head p {
  width: auto;
  color: #1a1a17;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 520;
  text-align: left;
}

.theme-dark .memory-line-card .memory-card-head p {
  color: #ece9df;
}

.memory-grid-lineart .memory-line-card h3 {
  margin: 0 0 8px;
  color: #000;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.theme-dark .memory-grid-lineart .memory-line-card h3 {
  color: #ece9df;
}

.memory-grid-lineart .memory-line-card > p {
  min-height: 0;
  margin: 0;
  color: #89847d;
  font-size: 13.5px;
  line-height: 1.5;
}

.memory-line-card ul {
  margin-top: auto;
  padding-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
  border-top: 1px solid #dad7d1;
}

.theme-dark .memory-line-card ul {
  border-color: #33332d;
}

.memory-line-card li {
  padding-left: 13px;
  color: #77736d;
  font-size: 13px;
  line-height: 1.45;
}

.memory-line-card li::before {
  top: 0.62em;
  width: 3px;
  height: 3px;
  background: #77736d;
}

@media (prefers-reduced-motion: no-preference) {
  .memory-line-card:hover .is-dotted {
    animation: memory-diagram-drift 3.2s linear infinite;
  }
}

@keyframes memory-diagram-drift {
  to { stroke-dashoffset: -32; }
}

.memory-card,
.memory-card:last-child,
.theme-dark .memory-card {
  min-height: 430px;
  padding: clamp(28px, 4vw, 54px);
  color: var(--ed-copy);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ed-rule-strong);
  border-bottom: 1px solid var(--ed-rule-strong);
  border-radius: 0;
  box-shadow: none;
}

.memory-card::after {
  display: none;
}

.memory-card-head {
  border-color: var(--ed-rule);
}

.memory-card-head span {
  color: var(--ed-accent);
  background: transparent;
  border: 1px solid var(--ed-rule-strong);
  border-radius: 50%;
}

.memory-card-head p,
.memory-card h3 {
  color: var(--ed-ink);
}

.memory-card h3 {
  max-width: 540px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 540;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.memory-card > p,
.memory-card li {
  color: var(--ed-muted);
}

.memory-card li::before {
  color: var(--ed-accent);
}

/* Keep the four memory cards inside one desktop viewport in every language. */
html body .section-memories {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(24px, 3.5vh, 32px) 0;
}

html body .section-memories > .content-shell > .section-heading {
  margin-bottom: clamp(48px, 7vh, 64px);
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

html body .section-memories > .content-shell > .section-heading h2 {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  max-width: none;
  color: #000;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
}

html body .section-memories > .content-shell > .section-heading .section-index {
  grid-column: 1;
  grid-row: 1;
}

html body .section-memories .memory-grid-lineart > .memory-line-card {
  height: clamp(204px, calc((100svh - 272px) / 2), 300px);
  min-height: 0;
  padding: 0 26px 18px;
  display: flex;
  grid-template-rows: none;
  color: #000;
  background: #f7f5f4;
  border: 1px solid #e9e7e5;
  border-radius: 26px;
}

html body .section-memories .memory-grid-lineart > .memory-line-card .memory-line-visual {
  flex: 1;
  min-height: 0;
  height: auto;
  margin: 0 -26px 8px;
  padding: 10px 42px 2px;
}

html body .section-memories .memory-grid-lineart > .memory-line-card h3 {
  min-height: 0;
  margin: 0 0 8px;
  color: #000;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

html body .section-memories .memory-grid-lineart > .memory-line-card > p {
  min-height: 0;
  margin: 0;
  color: #89847d;
  font-size: 13.5px;
  line-height: 1.5;
}

.comparison-table-wrap,
.theme-dark .comparison-table-wrap {
  border: 1px solid var(--ed-rule-strong);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.comparison-table,
.comparison-table th,
.comparison-table td,
.theme-dark .comparison-table th,
.theme-dark .comparison-table td {
  color: var(--ed-copy);
  background: transparent;
  border-color: var(--ed-rule);
}

.comparison-table thead th,
.theme-dark .comparison-table thead th {
  color: var(--ed-muted);
  background: color-mix(in srgb, var(--ed-ink) 5%, var(--ed-paper));
}

.comparison-table tbody th,
.comparison-table td strong {
  color: var(--ed-ink);
}

.comparison-table td:nth-child(3),
.theme-dark .comparison-table td:nth-child(3) {
  background: color-mix(in srgb, var(--ed-accent) 7%, var(--ed-paper));
}

.section-faq,
.theme-dark .section-faq {
  padding: clamp(104px, 12vw, 176px) 0;
  color: var(--ed-dark-copy);
  background: var(--ed-dark);
  border-bottom: 1px solid var(--ed-dark-rule);
}

.section-faq .section-heading h2,
.theme-dark .section-faq .section-heading h2 {
  color: #f2f0e9;
}

.section-faq .section-index {
  color: #8f8d84;
}

.faq-layout {
  gap: clamp(50px, 9vw, 140px);
}

.faq-list {
  border-top: 1px solid var(--ed-dark-rule);
}

.faq-list details,
.theme-dark .faq-list details {
  color: var(--ed-dark-copy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ed-dark-rule);
  border-radius: 0;
}

.faq-list summary,
.theme-dark .faq-list summary {
  padding: 28px 0;
  color: #f2f0e9;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 520;
}

.faq-list details p,
.faq-list details p a,
.theme-dark .faq-list details p,
.theme-dark .faq-list details p a {
  color: #aaa89f;
}

.faq-list details p a {
  text-decoration-color: #61d6bd;
}

.site-footer,
.theme-dark .site-footer {
  padding-top: clamp(72px, 9vw, 128px);
  color: var(--ed-copy);
  background: var(--ed-bg);
  border-top: 0;
}

.footer-main,
.footer-bottom {
  border-color: var(--ed-rule);
}

.footer-logo {
  filter: grayscale(1) contrast(1.5);
}

.theme-dark .footer-logo {
  filter: brightness(0) invert(1);
}

.footer-slogan {
  max-width: 760px;
  color: var(--ed-ink);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.footer-link-groups a,
.footer-bottom {
  color: var(--ed-muted);
}

.footer-wechat-card {
  border-color: var(--ed-rule);
  border-radius: 2px;
  box-shadow: none;
}

@media (max-width: 1120px) {
  .hero-copy {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
    gap: 46px;
  }

  .hero h1,
  .hero-slogan {
    font-size: clamp(66px, 9.6vw, 112px);
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 34px, 760px);
  }

  .hero {
    padding-top: 116px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-summary {
    max-width: 580px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading .section-index,
  .section-heading h2,
  .section-heading > p:last-child {
    grid-column: 1;
  }

  .section-heading .section-index {
    grid-row: auto;
  }

  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-slide:last-child {
    grid-column: 1 / -1;
    width: 100%;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .memory-card,
  .memory-card:last-child {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 28px);
    --header-height: 66px;
  }

  .header-logo {
    width: 124px;
  }

  .hero {
    padding: 102px 0 84px;
  }

  .hero-layout {
    gap: 58px;
  }

  .hero h1,
  .hero-slogan,
  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(34px, 9.5vw, 54px);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .install-box {
    padding: 18px 0;
  }

  .install-box code {
    overflow-wrap: anywhere;
  }

  .hero-support .support-groups {
    grid-template-columns: 1fr 1fr;
  }

  .product-workbench {
    width: calc(100vw - 20px);
    margin-left: calc((var(--shell) - (100vw - 20px)) / 2);
  }

  .workbench-task {
    padding: 24px 20px;
  }

  .workbench-task strong {
    font-size: 30px;
  }

  .workbench-main {
    padding: 18px;
  }

  .section,
  .section-cases,
  .section-memories,
  .section-demo,
  .section-quickstart,
  .section-faq {
    padding: 88px 0;
  }

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

  .section-heading h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-slide,
  .case-slide:last-child {
    grid-column: auto;
    width: 100%;
    min-height: 238px;
    padding: 22px;
  }

  .case-lab {
    border-radius: 2px;
  }

  .quickstart-tabs {
    grid-template-columns: 1fr;
  }

  .quickstart-tab {
    border-right: 0;
    border-bottom: 1px solid var(--ed-dark-rule);
  }

  .quickstart-tab:last-child {
    border-bottom: 0;
  }

  .memory-card {
    padding: 28px 22px;
  }

  .memory-line-card,
  .memory-line-card:last-child,
  .theme-dark .memory-line-card {
    min-height: auto;
    padding: 0 22px 34px;
    border-radius: 26px;
  }

  .memory-line-visual {
    height: 280px;
    margin-right: -22px;
    margin-left: -22px;
    padding: 18px;
  }

  .memory-line-card ul {
    grid-template-columns: 1fr;
  }

  .footer-slogan {
    font-size: clamp(42px, 14vw, 64px);
  }
}

/* Exact reference composition: centered 1290px stage, compact type, close product reveal. */
:root {
  --shell: min(1290px, calc(100vw - 48px));
}

html .hero,
html.theme-dark .hero {
  padding-top: clamp(108px, 7vw, 136px);
  padding-bottom: clamp(64px, 5vw, 88px);
}

html .hero .hero-layout,
html.theme-dark .hero .hero-layout {
  row-gap: 40px;
}

html .hero .hero-copy-compact,
html.theme-dark .hero .hero-copy-compact {
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.92fr);
  column-gap: 72px;
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  max-width: 570px;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.055;
  letter-spacing: -0.04em;
}

html .hero .hero-copy-compact .hero-lede,
html.theme-dark .hero .hero-copy-compact .hero-lede {
  width: 100%;
  max-width: 560px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.5;
}

html .hero .hero-copy-compact .hero-actions,
html.theme-dark .hero .hero-copy-compact .hero-actions {
  margin-top: 28px;
}

html .hero .hero-copy-compact .hero-actions .button,
html.theme-dark .hero .hero-copy-compact .hero-actions .button {
  min-width: 0;
  min-height: 48px;
  padding: 11px 22px;
  font-size: 14px;
}

html .hero .product-workbench,
html.theme-dark .hero .product-workbench {
  width: 100%;
  max-width: none;
  border-radius: 22px;
}

@media (max-width: 900px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  html .hero,
  html.theme-dark .hero {
    padding: 72px 0 56px;
  }

  html .hero .hero-copy-compact,
  html.theme-dark .hero .hero-copy-compact {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(42px, 8vw, 54px);
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  html .hero,
  html.theme-dark .hero {
    padding: 52px 0 44px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(36px, 10vw, 44px);
  }

  html .hero .hero-copy-compact .hero-actions .button,
  html.theme-dark .hero .hero-copy-compact .hero-actions .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* ElevenLabs surface system — exact sampled neutrals from the reference page. */
html:not(.theme-dark) {
  --ed-bg: #fdfcfc;
  --ed-paper: #fdfcfc;
  --ed-panel: #f5f3f1;
  --ed-rule: #e5e2df;
  --ed-rule-strong: #d8d4d0;
}

html:not(.theme-dark),
html:not(.theme-dark) body,
html:not(.theme-dark) .site-header,
html:not(.theme-dark) .hero {
  background: #fdfcfc;
}

html:not(.theme-dark) .site-header {
  border-bottom-color: #ebe9e7;
}

html:not(.theme-dark) .product-workbench.session-demo {
  color: #262522;
  background: #f5f3f1;
  border-color: #e2dfdc;
  border-radius: 24px;
  box-shadow: 0 22px 64px rgba(55, 47, 39, 0.07);
}

html:not(.theme-dark) .session-demo .workbench-bar,
html:not(.theme-dark) .session-demo-grid,
html:not(.theme-dark) .session-sidebar,
html:not(.theme-dark) .session-chat,
html:not(.theme-dark) .session-code {
  background: #f5f3f1;
}

html:not(.theme-dark) .session-chat-stage,
html:not(.theme-dark) .session-code pre {
  background: #f8f6f4;
}

html:not(.theme-dark) .session-chat-head,
html:not(.theme-dark) .session-code-tabs,
html:not(.theme-dark) .session-code-tabs span:first-child {
  background: transparent;
}

html:not(.theme-dark) .session-new:hover,
html:not(.theme-dark) .session-recall,
html:not(.theme-dark) .session-composer {
  background: #fdfcfc;
}

html:not(.theme-dark) .session-item.is-active {
  background: rgba(35, 33, 30, 0.055);
}

html:not(.theme-dark) .session-demo .workbench-bar,
html:not(.theme-dark) .session-sidebar,
html:not(.theme-dark) .session-chat,
html:not(.theme-dark) .session-chat-head,
html:not(.theme-dark) .session-code-tabs,
html:not(.theme-dark) .session-code-tabs span,
html:not(.theme-dark) .session-recall li {
  border-color: #e2dfdc;
}

@media (min-width: 901px) {
  .session-demo-grid {
    min-height: 558px;
  }

  .session-demo .workbench-bar,
  .theme-dark .session-demo .workbench-bar {
    min-height: 58px;
  }
}

/* Cursor Desktop replica — smaller staged product with an overlaid CLI window. */
.cursor-scene {
  position: relative;
  width: min(1120px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 24px 24px 72px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 14% 20%, rgba(234, 229, 217, 0.92) 0 12%, transparent 31%),
    radial-gradient(circle at 84% 24%, rgba(179, 151, 126, 0.34) 0 11%, transparent 32%),
    linear-gradient(118deg, #d5d9d7 0%, #ece7dc 42%, #c9b7a6 72%, #9d8b7c 100%);
  box-shadow: inset 0 0 90px rgba(255, 255, 255, 0.44);
}

html:not(.theme-dark) .cursor-workbench.product-workbench {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
  margin: 0;
  color: #353432;
  background: #f4f3ef;
  border: 1px solid rgba(111, 104, 94, 0.32);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(47, 42, 37, 0.16);
}

.cursor-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  color: #77746f;
  background: rgba(248, 247, 243, 0.94);
  border-bottom: 1px solid #d8d5cf;
  font-size: 11px;
}

.cursor-titlebar .window-controls {
  justify-self: start;
}

.cursor-titlebar .window-controls i,
.cursor-cli .window-controls i {
  width: 9px;
  height: 9px;
  background: #d8d6d1;
  border: 0;
}

.cursor-titlebar > span:nth-child(2) {
  justify-self: center;
  font-weight: 500;
}

.cursor-title-action {
  justify-self: end;
  color: #77746f;
}

.cursor-grid {
  display: grid;
  grid-template-columns: 220px 350px minmax(0, 1fr);
  height: calc(100% - 42px);
}

.cursor-queue,
.cursor-agent,
.cursor-preview {
  min-width: 0;
  overflow: hidden;
  background: rgba(247, 246, 242, 0.95);
}

.cursor-queue,
.cursor-agent {
  border-right: 1px solid #d7d4ce;
}

.cursor-queue > header {
  height: 30px;
  padding: 7px 12px 0;
  color: #686560;
  font-size: 10px;
}

.cursor-queue-item {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  width: 100%;
  min-height: 61px;
  padding: 10px 11px;
  color: #66635f;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(215, 212, 206, 0.56);
  text-align: left;
}

.cursor-queue-item.is-active {
  color: #383633;
  background: rgba(222, 219, 212, 0.5);
}

.cursor-queue-item i {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
}

.cursor-queue-item span {
  display: grid;
  gap: 3px;
  overflow: hidden;
}

.cursor-queue-item b {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor-queue-item small,
.cursor-queue-item em {
  color: #98958f;
  font-size: 9px;
  font-style: normal;
}

.cursor-queue-item strong { color: #2d9b73; font-weight: 500; }
.cursor-queue-item s { color: #d96878; text-decoration: none; }

.cursor-agent {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cursor-agent > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid #d7d4ce;
  font-size: 11px;
}

.cursor-agent > header button {
  color: #908c86;
  background: transparent;
  border: 0;
  font-size: 8px;
  cursor: pointer;
}

.cursor-agent-body {
  flex: 1;
  padding: 9px 12px 76px;
  overflow: hidden;
}

.cursor-prompt {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dad7d1;
  border-radius: 8px;
  font-size: 11px;
}

.cursor-memory-log {
  display: grid;
  gap: 5px;
  margin: 12px 4px;
  color: #8c8882;
  font-size: 9px;
}

.cursor-memory-log p,
.cursor-memory-log small,
.cursor-agent-answer,
.cursor-agent-finish {
  margin: 0;
}

.cursor-memory-log span { color: #aaa6a0; }
.cursor-memory-log small { color: #23816a; font-size: 8px; }

.cursor-agent-answer,
.cursor-agent-finish {
  color: #3d3a36;
  font-size: 10px;
  line-height: 1.55;
}

.cursor-file-card {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  min-height: 34px;
  margin-top: 7px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid #dad7d1;
  border-radius: 7px;
  font-size: 9px;
}

.cursor-file-card b { font-weight: 500; }
.cursor-file-card em { color: #2a9a73; font-style: normal; }
.cursor-file-card s { color: #d96878; text-decoration: none; }
.cursor-agent-finish { margin-top: 10px; }

.cursor-agent-input {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  min-height: 52px;
  padding: 7px 7px 7px 11px;
  color: #96928c;
  background: rgba(250, 249, 246, 0.94);
  border: 1px solid #d8d5cf;
  border-radius: 9px;
  font-size: 9px;
}

.cursor-agent-input button {
  width: 28px;
  height: 28px;
  color: #f6f5f1;
  background: #d4d1cb;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.cursor-preview {
  background: #faf9f6;
}

.cursor-browserbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-bottom: 1px solid #d7d4ce;
  color: #88847e;
  font-size: 10px;
}

.cursor-browserbar b { color: #4c4945; font-weight: 400; }
.cursor-browserbar i { font-style: normal; }

.cursor-preview-page {
  padding: 32px 24px;
  color: #76716a;
  font-family: Georgia, "Times New Roman", serif;
}

.cursor-preview-page h3 {
  margin: 0 0 14px;
  color: #37322c;
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
}

.cursor-node-label {
  display: inline-block;
  padding: 5px 7px;
  color: #517aac;
  background: #e8f0f8;
  font: 10px/1.2 Arial, sans-serif;
}

.cursor-preview-page p {
  margin: 0 0 15px;
  font-size: 15px;
  line-height: 1.42;
}

.cursor-preview-page .cursor-highlight {
  padding: 5px;
  background: rgba(222, 228, 229, 0.74);
  outline: 2px solid rgba(160, 183, 203, 0.44);
}

.cursor-preview-page button {
  padding: 8px 12px;
  color: #77716a;
  background: #efede8;
  border: 0;
  font-family: inherit;
}

.cursor-preview-page ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.cursor-preview-page li {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 8px 0;
  border-top: 1px solid #dedbd5;
}

.cursor-cli {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 22px;
  width: 470px;
  overflow: hidden;
  color: #3d3935;
  background: rgba(248, 247, 243, 0.98);
  border: 1px solid rgba(100, 94, 85, 0.34);
  border-radius: 12px;
  box-shadow: 0 20px 54px rgba(45, 40, 35, 0.2);
}

.cursor-cli > header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 0 11px;
  border-bottom: 1px solid #d5d2cc;
}

.cursor-cli > header b {
  font-size: 11px;
  font-weight: 500;
}

.cursor-cli-body {
  padding: 18px 16px 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cursor-cli-body ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 23px;
  font-size: 10px;
  line-height: 1.4;
}

.cursor-cli-body p {
  margin: 16px 0 12px;
  font-size: 10px;
  line-height: 1.5;
}

.cursor-cli-body button {
  width: 100%;
  min-height: 36px;
  padding: 0 11px;
  color: #827d76;
  background: transparent;
  border: 1px solid #625e58;
  text-align: left;
  cursor: pointer;
}

.cursor-scene-mask {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 62px;
  background: linear-gradient(to bottom, rgba(253, 252, 252, 0), #fdfcfc 78%);
  pointer-events: none;
}

.cursor-workbench[data-state="searching"] .cursor-memory-log,
.cursor-workbench[data-state^="memory"] .cursor-memory-log {
  color: #4e7166;
}

.cursor-workbench[data-state="answer"] .cursor-file-card {
  border-color: rgba(49, 142, 108, 0.42);
}

@media (max-width: 1180px) {
  .cursor-scene { min-height: 590px; }
  .cursor-grid { grid-template-columns: 210px minmax(0, 1fr); }
  .cursor-preview { display: none; }
}

@media (max-width: 760px) {
  .cursor-scene {
    min-height: auto;
    padding: 8px 8px 54px;
    border-radius: 18px;
  }

  html:not(.theme-dark) .cursor-workbench.product-workbench { height: 500px; }
  .cursor-grid { grid-template-columns: 1fr; }
  .cursor-queue { display: none; }
  .cursor-agent { border-right: 0; }
  .cursor-cli { display: none; }
  .cursor-scene-mask { height: 48px; }
}

/* Reference typography: Waldenburg-like display rhythm with an Inter body voice. */
html {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html .hero .hero-layout,
html.theme-dark .hero .hero-layout {
  row-gap: clamp(48px, 3.8vw, 56px);
}

html .hero .hero-copy-compact,
html.theme-dark .hero .hero-copy-compact {
  column-gap: clamp(72px, 8vw, 128px);
}

html .hero .hero-copy-compact .eyebrow,
html.theme-dark .hero .hero-copy-compact .eyebrow {
  margin: 0 0 22px;
  color: #6f706d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.14em;
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  max-width: 720px;
  margin: 0;
  color: #111210;
  font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: clamp(58px, 5.15vw, 80px);
  font-weight: 300;
  line-height: 1.035;
  letter-spacing: -0.045em;
}

html .hero .hero-copy-compact .hero-lede,
html.theme-dark .hero .hero-copy-compact .hero-lede {
  max-width: 590px;
  margin-top: 53px;
  color: #232421;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.012em;
}

html .hero .hero-copy-compact .hero-actions,
html.theme-dark .hero .hero-copy-compact .hero-actions {
  margin-top: 32px;
  gap: 10px;
}

html .hero .hero-copy-compact .hero-actions .button,
html.theme-dark .hero .hero-copy-compact .hero-actions .button {
  min-height: 46px;
  padding: 11px 21px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.product-workbench,
.session-demo {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", Arial, sans-serif;
}

@media (max-width: 900px) {
  html .hero .hero-copy-compact .eyebrow,
  html.theme-dark .hero .hero-copy-compact .eyebrow {
    margin-bottom: 17px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(46px, 7.8vw, 66px);
    line-height: 1.02;
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(38px, 9.2vw, 52px);
    letter-spacing: -0.05em;
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-slide,
  .button,
  .header-cta {
    transition: none;
  }
}

/* Keep the product in the first viewport, like Cursor's hero composition. */
html .hero,
html.theme-dark .hero {
  padding-top: clamp(78px, 7vw, 108px);
  padding-bottom: clamp(64px, 6vw, 92px);
}

html .hero .hero-layout {
  gap: clamp(48px, 5vw, 72px);
}

html .hero .hero-copy-compact .hero-lede {
  width: auto;
  max-width: 680px;
  margin: 24px auto 0;
  line-height: 1.45;
}

html .hero .hero-copy-compact .hero-actions {
  display: flex;
  width: auto;
  margin-top: 26px;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 10px;
}

html .hero .hero-copy-compact .hero-actions .button {
  width: auto;
  min-width: 144px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  html .hero,
  html.theme-dark .hero {
    padding: 68px 0 60px;
  }

  html .hero .hero-layout {
    gap: 50px;
  }

  html .hero .hero-copy-compact .hero-lede {
    max-width: 560px;
    margin-top: 22px;
    font-size: 17px;
  }
}

@media (max-width: 680px) {
  html .hero,
  html.theme-dark .hero {
    padding: 52px 0 48px;
  }

  html .hero .hero-layout {
    gap: 42px;
  }

  html .hero .hero-copy-compact .eyebrow {
    font-size: 10px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    margin-top: 18px;
    font-size: clamp(36px, 8.4vw, 52px);
    line-height: 0.98;
  }

  html .hero .hero-copy-compact .hero-lede {
    max-width: 520px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.5;
  }

  html .hero .hero-copy-compact .hero-actions {
    margin-top: 22px;
  }

  html .hero .hero-copy-compact .hero-actions .button {
    min-width: 0;
    min-height: 42px;
    padding: 10px 17px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  html .hero,
  html.theme-dark .hero {
    padding-top: 44px;
  }

  html .hero .hero-copy-compact .hero-actions {
    gap: 8px;
  }

  html .hero .hero-copy-compact .hero-actions .button {
    padding-inline: 13px;
  }
}

/* ElevenLabs-like composition: message left, explanation right, product below. */
html .hero .hero-layout,
html.theme-dark .hero .hero-layout,
html:not([data-language="en"]) .hero .hero-layout,
html[data-language="en"] .hero .hero-layout {
  grid-template-columns: minmax(0, 1fr);
}

html .hero .hero-copy-compact,
html.theme-dark .hero .hero-copy-compact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  grid-template-rows: auto;
  column-gap: clamp(72px, 9vw, 156px);
  height: fit-content;
  min-height: 0;
  align-self: start;
  align-items: start;
  text-align: left;
}

html .hero .hero-copy-compact .hero-intro,
html.theme-dark .hero .hero-copy-compact .hero-intro {
  grid-column: 1;
  width: auto;
  margin: 0;
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(54px, 5.2vw, 80px);
  line-height: 0.96;
}

html .hero .hero-copy-compact .hero-lede,
html.theme-dark .hero .hero-copy-compact .hero-lede {
  grid-column: 2;
  grid-row: 1;
  max-width: 590px;
  margin: 58px 0 0;
  justify-self: end;
  color: var(--ed-copy);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

html .hero .hero-copy-compact .hero-actions,
html.theme-dark .hero .hero-copy-compact .hero-actions {
  margin-top: 30px;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  html .hero .hero-copy-compact,
  html.theme-dark .hero .hero-copy-compact {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(44px, 8vw, 66px);
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    grid-column: 1;
    grid-row: auto;
    max-width: 620px;
    margin: 0;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  html .hero .hero-copy-compact,
  html.theme-dark .hero .hero-copy-compact {
    row-gap: 20px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    margin-top: 16px;
    font-size: clamp(36px, 9vw, 52px);
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    font-size: 15px;
  }

  html .hero .hero-copy-compact .hero-actions,
  html.theme-dark .hero .hero-copy-compact .hero-actions {
    margin-top: 22px;
  }
}

/* Final hero calibration — keep after all legacy responsive overrides. */
html .hero .hero-layout,
html.theme-dark .hero .hero-layout {
  row-gap: clamp(40px, 3vw, 48px);
}

html .hero .hero-copy-compact,
html.theme-dark .hero .hero-copy-compact {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  column-gap: clamp(72px, 7vw, 132px);
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  margin: 0;
  font-size: clamp(58px, 5.15vw, 80px);
  font-weight: 300;
  line-height: 1.035;
  letter-spacing: -0.045em;
}

html .hero .hero-copy-compact .hero-lede,
html.theme-dark .hero .hero-copy-compact .hero-lede {
  margin: 53px 0 0;
  justify-self: start;
  color: #232421;
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.012em;
}

html .hero .hero-copy-compact .hero-actions,
html.theme-dark .hero .hero-copy-compact .hero-actions {
  margin-top: 32px;
}

html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  color: #f4f4f1;
}

html.theme-dark .hero .hero-copy-compact .hero-lede {
  color: #c9cac6;
}

html .hero .product-workbench,
html.theme-dark .hero .product-workbench {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

@media (max-width: 900px) {
  html .hero .hero-copy-compact,
  html.theme-dark .hero .hero-copy-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(46px, 7.8vw, 66px);
    line-height: 1.02;
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    margin-top: 0;
    font-size: clamp(38px, 9.2vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }
}

/* Definitive reference lock — intentionally last in the cascade. */
html .hero,
html.theme-dark .hero {
  display: block;
  padding-top: 130px;
  padding-bottom: 72px;
  align-items: initial;
}

html .hero .hero-layout,
html.theme-dark .hero .hero-layout {
  row-gap: 34px;
}

html .hero .hero-copy-compact,
html.theme-dark .hero .hero-copy-compact {
  grid-template-columns: minmax(0, 600px) minmax(480px, 1fr);
  column-gap: 72px;
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  max-width: 570px;
  margin: 0;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.055;
  letter-spacing: -0.04em;
}

html .hero .hero-copy-compact .hero-lede,
html.theme-dark .hero .hero-copy-compact .hero-lede {
  width: 100%;
  max-width: 560px;
  margin: 28px 0 0;
  justify-self: start;
  font-size: 17px;
  line-height: 1.5;
}

html .hero .hero-copy-compact .hero-actions,
html.theme-dark .hero .hero-copy-compact .hero-actions {
  margin-top: 28px;
}

html .hero .hero-copy-compact .hero-actions .button,
html.theme-dark .hero .hero-copy-compact .hero-actions .button {
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 11px 22px;
  font-size: 14px;
}

html .hero .product-workbench,
html.theme-dark .hero .product-workbench {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 22px;
}

@media (max-width: 900px) {
  html .hero,
  html.theme-dark .hero {
    padding: 72px 0 56px;
  }

  html .hero .hero-copy-compact,
  html.theme-dark .hero .hero-copy-compact {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(42px, 8vw, 54px);
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  html .hero,
  html.theme-dark .hero {
    padding: 52px 0 44px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(36px, 10vw, 44px);
  }

  html .hero .hero-copy-compact .hero-actions .button,
  html.theme-dark .hero .hero-copy-compact .hero-actions .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* Hero layout v2 — one shared grid from message to product, with a calmer fold. */
:root {
  --shell: min(1360px, calc(100vw - clamp(40px, 6vw, 96px)));
}

html .hero,
html.theme-dark .hero {
  padding-top: clamp(76px, 6.2vw, 96px);
  padding-bottom: clamp(64px, 6vw, 88px);
}

html .hero .hero-layout,
html.theme-dark .hero .hero-layout {
  row-gap: clamp(44px, 4vw, 58px);
}

html .hero .hero-copy-compact,
html.theme-dark .hero .hero-copy-compact {
  width: min(1120px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 600px) minmax(320px, 1fr);
  column-gap: clamp(48px, 5vw, 72px);
  align-items: start;
}

html .hero .hero-copy-compact h1.hero-slogan,
html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
  max-width: 660px;
  font-size: clamp(54px, 4.55vw, 68px);
  line-height: 1.01;
  letter-spacing: -0.048em;
}

html .hero .hero-copy-compact .hero-lede,
html.theme-dark .hero .hero-copy-compact .hero-lede {
  max-width: 500px;
  margin-top: 8px;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.58;
}

html .hero .hero-copy-compact .hero-actions,
html.theme-dark .hero .hero-copy-compact .hero-actions {
  margin-top: 30px;
  gap: 12px;
}

html .hero .hero-copy-compact .hero-actions .button,
html.theme-dark .hero .hero-copy-compact .hero-actions .button {
  min-height: 48px;
  padding-inline: 24px;
}

html .hero .cursor-scene,
html.theme-dark .hero .cursor-scene {
  width: min(1120px, 100%);
  min-height: 606px;
  padding: 20px 20px 72px;
  border-radius: 28px;
}

@media (max-width: 980px) {
  :root {
    --shell: calc(100vw - 40px);
  }

  html .hero,
  html.theme-dark .hero {
    padding-top: 64px;
  }

  html .hero .hero-copy-compact,
  html.theme-dark .hero .hero-copy-compact {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    max-width: 720px;
    font-size: clamp(48px, 7.2vw, 64px);
  }

  html .hero .hero-copy-compact .hero-lede,
  html.theme-dark .hero .hero-copy-compact .hero-lede {
    max-width: 620px;
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  html .hero,
  html.theme-dark .hero {
    padding: 44px 0 48px;
  }

  html .hero .hero-layout,
  html.theme-dark .hero .hero-layout {
    row-gap: 34px;
  }

  html .hero .hero-copy-compact h1.hero-slogan,
  html.theme-dark .hero .hero-copy-compact h1.hero-slogan {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1.02;
  }

  html .hero .hero-copy-compact .hero-actions,
  html.theme-dark .hero .hero-copy-compact .hero-actions {
    width: 100%;
    margin-top: 24px;
  }

  html .hero .hero-copy-compact .hero-actions .button,
  html.theme-dark .hero .hero-copy-compact .hero-actions .button {
    flex: 1 1 0;
    min-height: 44px;
    padding-inline: 12px;
  }

  html .hero .cursor-scene,
  html.theme-dark .hero .cursor-scene {
    min-height: auto;
    padding: 8px 8px 52px;
    border-radius: 20px;
  }
}

/* Interactive reveal: a blank session becomes a restored, completed task. */
.cursor-title-active,
.cursor-preview-page {
  display: none;
}

.cursor-agent > header button {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cursor-prompt,
.cursor-memory-log,
.cursor-agent-answer,
.cursor-file-card,
.cursor-agent-finish {
  visibility: hidden;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 240ms ease, transform 280ms ease;
}

.cursor-memory-log p {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 220ms ease, transform 240ms ease;
}

.cursor-memory-log p b {
  color: #297c66;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.cursor-preview {
  position: relative;
}

.cursor-preview-empty {
  position: absolute;
  inset: 32px 0 0;
  display: grid;
  place-content: center;
  color: #aaa69f;
  text-align: center;
  transition: opacity 260ms ease;
}

.cursor-preview-empty span {
  font: 500 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cursor-preview-empty p {
  margin: 7px 0 0;
  font-size: 10px;
}

.cursor-cli {
  visibility: hidden;
  opacity: 0;
  transform: translate(18px, 16px) scale(0.975);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity 300ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 360ms;
}

.cursor-workbench:not([data-state="idle"]) .cursor-prompt,
.cursor-workbench[data-state="searching"] .cursor-memory-log,
.cursor-workbench[data-state^="memory"] .cursor-memory-log,
.cursor-workbench[data-state="answer"] .cursor-memory-log {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.cursor-workbench[data-state="searching"] .cursor-title-idle,
.cursor-workbench[data-state^="memory"] .cursor-title-idle,
.cursor-workbench[data-state="answer"] .cursor-title-idle {
  display: none;
}

.cursor-workbench[data-state="searching"] .cursor-title-active,
.cursor-workbench[data-state^="memory"] .cursor-title-active,
.cursor-workbench[data-state="answer"] .cursor-title-active {
  display: inline;
}

.cursor-workbench[data-state="memory-1"] .cursor-memory-log p:nth-child(1),
.cursor-workbench[data-state="memory-2"] .cursor-memory-log p:nth-child(-n + 2),
.cursor-workbench[data-state="memory-3"] .cursor-memory-log p,
.cursor-workbench[data-state="answer"] .cursor-memory-log p {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.cursor-workbench[data-state="answer"] .cursor-agent-answer,
.cursor-workbench[data-state="answer"] .cursor-file-card,
.cursor-workbench[data-state="answer"] .cursor-agent-finish {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.cursor-workbench[data-state="answer"] .cursor-agent-answer { transition-delay: 80ms; }
.cursor-workbench[data-state="answer"] .cursor-file-card { transition-delay: 170ms; }
.cursor-workbench[data-state="answer"] .cursor-file-card + .cursor-file-card { transition-delay: 250ms; }
.cursor-workbench[data-state="answer"] .cursor-agent-finish { transition-delay: 320ms; }

.cursor-workbench:not([data-state="idle"]) .cursor-agent-input {
  opacity: 0.38;
  pointer-events: none;
}

.cursor-workbench[data-state="answer"] .cursor-agent > header button {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.cursor-workbench[data-state="answer"] .cursor-preview-page {
  display: block;
  animation: cursor-preview-in 360ms ease both;
}

.cursor-workbench[data-state="answer"] .cursor-preview-empty {
  opacity: 0;
  pointer-events: none;
}

.cursor-workbench[data-state="answer"] + .cursor-cli {
  visibility: visible;
  opacity: 1;
  transform: translate(0, 0) scale(1);
  pointer-events: auto;
  transition-delay: 260ms;
}

@keyframes cursor-preview-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-prompt,
  .cursor-memory-log,
  .cursor-agent-answer,
  .cursor-file-card,
  .cursor-agent-finish,
  .cursor-cli {
    transition: none;
  }

  .cursor-workbench[data-state="answer"] .cursor-preview-page {
    animation: none;
  }
}
