/* Homepage product story. This file owns index.html only. */

.home-page {
  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --surface-sunken: #EEF0EA;
  --ink: #151A19;
  --muted: #59615F;
  --muted-2: #858D8A;
  --line: #DEE3DE;
  --primary: #2864DC;
  --primary-light: #EAF1FF;
  --primary-bright: #3974E8;
  --accent: #18A99A;
  --success: #18A99A;
  --font-display: "WSR Noto Sans SC Core", "WSR Noto Sans SC Full", system-ui, sans-serif;
  --font-body: "WSR Noto Sans SC Core", "WSR Noto Sans SC Full", system-ui, sans-serif;
  --font-sans: "WSR Noto Sans SC Core", "WSR Noto Sans SC Full", system-ui, sans-serif;
  --font-mono: "Inter", "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.home-page .page-wrap {
  background: var(--bg);
}

.home-page .site-nav {
  min-height: 76px;
  border-bottom-color: rgba(229, 228, 220, 0.82);
  background: rgba(244, 244, 239, 0.92);
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04);
}

.home-page .nav-logo > img {
  border-color: var(--line);
  border-radius: 10px;
}

.home-page .nav-links a,
.home-page .nav-btn {
  border-radius: 10px;
}

.home-page .nav-links a:hover {
  background: var(--primary-light, #EEF0FF);
  color: var(--primary);
}

.home-page .nav-btn {
  min-height: 42px;
}

.home-page .nav-btn.solid,
.home-page .btn-primary {
  border-color: var(--primary);
  background: var(--primary);
}

.home-page .nav-btn.solid:hover,
.home-page .btn-primary:hover {
  border-color: var(--primary-bright);
  background: var(--primary-bright);
}

.home-page .btn-primary,
.home-page .btn-secondary {
  min-height: 44px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04);
}

.home-page .btn-secondary {
  border-color: var(--line);
}

.home-page main {
  overflow: hidden;
}

.home-scroll {
  overflow: hidden;
}

.home-scroll .home-page .page-wrap {
  width: 100%;
  max-width: 100%;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-top: 76px;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

.home-scroll.home-footer-release .home-page .page-wrap {
  scroll-snap-type: none;
}

.home-page main > [data-home-section] {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.section-progress {
  position: fixed;
  top: 50%;
  bottom: auto;
  left: auto;
  right: 20px;
  z-index: 90;
  display: grid;
  align-items: initial;
  justify-content: initial;
  gap: 4px;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.section-progress a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
  height: 28px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  text-decoration: none;
  transition: color 180ms ease;
}

.section-progress a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: width 180ms ease, border-color 180ms ease, background 180ms ease;
}

.section-progress a:hover,
.section-progress a[aria-current="true"] {
  color: var(--primary);
}

.section-progress a[aria-current="true"]::after {
  width: 14px;
  border-color: var(--primary);
  border-radius: 6px;
  background: var(--primary);
}

.section-progress em {
  position: absolute;
  top: 50%;
  right: 52px;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.section-progress a:hover em,
.section-progress a:focus-visible em {
  opacity: 1;
  transform: translate(0, -50%);
}

.has-section-motion [data-home-section] .story-copy,
.has-section-motion [data-home-section] .team-workspace,
.has-section-motion [data-home-section] .aicore-flow,
.has-section-motion [data-home-section] .tool-experience,
.has-section-motion [data-home-section] .delivery-path,
.has-section-motion [data-home-section] .quick-start-head,
.has-section-motion [data-home-section] .journey-grid,
.has-section-motion [data-home-section] .quick-start-action {
  opacity: 0.58;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.has-section-motion [data-home-section].is-active .story-copy,
.has-section-motion [data-home-section].is-active .team-workspace,
.has-section-motion [data-home-section].is-active .aicore-flow,
.has-section-motion [data-home-section].is-active .tool-experience,
.has-section-motion [data-home-section].is-active .delivery-path,
.has-section-motion [data-home-section].is-active .quick-start-head,
.has-section-motion [data-home-section].is-active .journey-grid,
.has-section-motion [data-home-section].is-active .quick-start-action {
  opacity: 1;
  transform: translateY(0);
}

.has-section-motion [data-home-section].is-active .team-workspace,
.has-section-motion [data-home-section].is-active .aicore-flow,
.has-section-motion [data-home-section].is-active .tool-experience,
.has-section-motion [data-home-section].is-active .delivery-path,
.has-section-motion [data-home-section].is-active .journey-grid {
  transition-delay: 80ms;
}

.home-container {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.home-hero {
  background: var(--surface-sunken);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  gap: 96px;
  align-items: center;
  min-height: min(780px, calc(100svh - 76px));
  padding: 72px 0 80px;
}

.home-hero-copy {
  animation: home-intro 360ms ease both;
}

.home-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  text-wrap: pretty;
}

.home-hero h1 strong {
  display: block;
  color: var(--primary);
  font-size: 48px;
  font-weight: inherit;
  line-height: 1.16;
}

.home-hero h1 > span,
.home-hero h1 strong > span,
.story-copy h2 > span,
.quick-start h2 > span {
  display: block;
}

.home-hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  text-wrap: pretty;
}

.home-hero-actions,
.quick-start-action,
.story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-actions {
  margin-top: 32px;
}

.home-hero-actions button {
  font-family: var(--font-body);
  cursor: pointer;
}

.home-hero-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.product-demo {
  min-height: 456px;
  border-color: rgba(99, 91, 255, 0.14);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 12px 40px rgba(50, 60, 120, 0.08);
  animation: home-intro 360ms 80ms ease both;
  transition: opacity 300ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-demo.is-focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12), 0 12px 40px rgba(50, 60, 120, 0.08);
}

.product-demo header {
  min-height: 52px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}

.demo-stage {
  display: flex;
  flex-direction: column;
  height: 324px;
  min-height: 324px;
  padding: 24px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--surface);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 126, 122, 0.28) transparent;
}

/* Chrome、Edge 浏览器滚动条 */
.demo-stage::-webkit-scrollbar {
  width: 5px;
}

.demo-stage::-webkit-scrollbar-track {
  background: transparent;
}

.demo-stage::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(120, 126, 122, 0.25);
}

.demo-stage::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 126, 122, 0.4);
}

/* 普通消息 */
.demo-message {
  flex-shrink: 0;
  max-width: 88%;
  animation: demo-message-in 280ms ease both;
}

/* 客户消息靠右 */
.demo-message-user {
  align-self: flex-end;
  margin-top: 14px;
}

/* 第一条消息不需要上边距 */
.demo-message:first-child {
  margin-top: 0;
}

/* AI 客服消息靠左 */
.demo-message-ai {
  align-self: flex-start;
  margin-top: 18px;
}

/* 客户、Agent 名称 */
.demo-speaker {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.demo-message-user .demo-speaker {
  text-align: right;
}

/* 消息文字 */
.demo-message p {
  display: inline;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
  word-break: break-word;
}

/* 客户消息气泡 */
.demo-message-user p {
  display: block;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-sunken);
}

/* AI 回复不显示大气泡 */
.demo-message-ai p {
  font-size: 14.5px;
}

/* 灰色方框系统提示 */
.demo-system-message {
  align-self: center;
  flex-shrink: 0;
  width: fit-content;
  max-width: 88%;
  margin: 14px auto 2px;
  padding: 7px 13px;
  border: 1px solid rgba(120, 126, 122, 0.14);
  border-radius: 6px;
  color: var(--muted-2);
  background: var(--surface-sunken);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  animation: demo-message-in 280ms ease both;
}

/* 打字光标 */
.typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent);
  animation: cursor-blink 800ms step-end infinite;
}

.typing-cursor[hidden] {
  display: none;
}

/* AI 正在处理动画 */
.demo-thinking {
  display: flex;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  gap: 4px;
  margin-top: 16px;
  color: var(--muted-2);
}

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

.demo-thinking span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: thinking-dot 800ms ease-in-out infinite;
}

.demo-thinking span:nth-child(2) {
  animation-delay: 120ms;
}

.demo-thinking span:nth-child(3) {
  animation-delay: 240ms;
}

.demo-thinking em {
  margin-left: 8px;
  font-size: 12px;
  font-style: normal;
}

/* 新消息从下方淡入 */
@keyframes demo-message-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--surface-sunken);
}

.demo-scenarios button {
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.demo-scenarios button:last-child {
  border-right: 0;
}

.demo-scenarios button:hover,
.demo-scenarios button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--primary);
}

.story-section {
  background: var(--bg);
}

.story-section-sunken {
  background: var(--surface-sunken);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(0, 1.12fr);
  gap: 88px;
  align-items: center;
  min-height: min(780px, calc(100svh - 76px));
  padding: 72px 0;
}

.story-grid-reverse .story-copy {
  grid-column: 2;
}

.story-grid-reverse .aicore-flow {
  grid-column: 1;
  grid-row: 1;
}

.story-copy h2,
.quick-start h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-wrap: pretty;
}

.story-copy > p:not(.industrial-eyebrow),
.quick-start-head > p:not(.industrial-eyebrow) {
  margin: 20px 0 0;
  color: #4F5856;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  text-wrap: pretty;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.story-link:hover {
  color: var(--primary-bright);
}

.team-workspace,
.aicore-flow,
.tool-experience {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 12px 40px rgba(50, 60, 120, 0.08);
}

.team-workspace,
.aicore-flow,
.tool-experience,
.delivery-path {
  min-height: 460px;
}

.team-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 480px;
}

.workspace-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding: 20px 12px;
  background: var(--surface-sunken);
}

.workspace-brand {
  margin: 0 8px 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-rail button {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  text-align: left;
}

.workspace-rail button.is-active {
  border-color: var(--line);
  background: var(--surface);
}

.workspace-rail button i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.workspace-rail button.is-active i {
  background: var(--success);
}

.workspace-rail button span {
  font-size: 15px;
  font-weight: 600;
}

.workspace-rail button small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 400;
}

.workspace-main {
  padding: 24px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  color: var(--ink);
  font-weight: 600;
}

.workspace-head code {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.workspace-task,
.workspace-result {
  margin-top: 28px;
}

.workspace-task > span,
.workspace-result > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 14px;
}

.workspace-task strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.workspace-task small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.workspace-result {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--bg);
}

.workspace-result p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.workspace-result div {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.workspace-result button,
.workspace-result div > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.aicore-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.flow-request {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.flow-request span,
.flow-models article span {
  display: block;
  color: var(--muted-2);
  font-size: 14px;
}

.flow-request strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.flow-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
}

.flow-route span {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.flow-route span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 1px;
  background: var(--line);
}

.flow-route span:last-child::after {
  display: none;
}

.flow-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}

.flow-models article {
  min-height: 148px;
  padding: 20px 16px;
  background: var(--surface);
}

.flow-models article.is-selected {
  background: var(--primary);
}

.flow-models code {
  color: var(--primary-bright);
  font-family: var(--font-mono);
  font-size: 11px;
}

.flow-models strong {
  display: block;
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.flow-models .is-selected code,
.flow-models .is-selected strong {
  color: #FFFFFF;
}

.flow-models .is-selected span {
  color: #C9D3DF;
}

.tool-experience {
  min-height: 480px;
}

.tool-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunken);
}

.tool-tabs span {
  min-height: 48px;
  border-right: 1px solid var(--line);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
}

.tool-tabs span.is-active {
  background: var(--surface);
  color: var(--primary);
}

.tool-canvas {
  padding: 40px;
}

.tool-canvas > p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
}

.tool-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--bg);
}

.tool-file > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.tool-file strong {
  align-self: end;
  color: var(--ink);
  font-size: 15px;
}

.tool-file small {
  color: var(--success);
  font-size: 13.5px;
}

.tool-output {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.tool-output span {
  color: var(--muted-2);
  font-size: 14px;
}

.tool-output i {
  display: block;
  width: 100%;
  height: 8px;
  background: var(--surface-sunken);
}

.tool-output i:nth-child(3) {
  width: 84%;
}

.tool-output i:nth-child(4) {
  width: 60%;
}

.story-section-dark {
  background: var(--surface-sunken);
}

.local-story {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(0, 1.12fr);
  gap: 88px;
  align-items: center;
  min-height: min(780px, calc(100svh - 76px));
  padding: 72px 0;
}

.story-section-dark .story-copy h2 {
  color: var(--ink);
}

.story-section-dark .story-copy > p:not(.industrial-eyebrow) {
  color: var(--muted);
}

.story-section-dark .industrial-eyebrow,
.story-section-dark .story-link {
  color: var(--primary-bright);
}

.story-section-dark .industrial-eyebrow::before {
  background: var(--primary-bright);
}

.delivery-path {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 12px 40px rgba(50, 60, 120, 0.08);
}

.delivery-path > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 152px;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.delivery-path > div:last-child {
  border-bottom: 0;
}

.delivery-path code {
  color: var(--primary-bright);
  font-family: var(--font-mono);
  font-size: 12px;
}

.delivery-path span {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.delivery-path strong {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.quick-start {
  padding: 80px 0 96px;
  min-height: min(780px, calc(100svh - 76px));
  background: var(--bg);
}

.quick-start-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  list-style: none;
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 12px 40px rgba(50, 60, 120, 0.08);
}

.journey-grid li {
  min-height: 240px;
  padding: 30px;
  background: var(--surface);
}

.journey-grid code,
.journey-grid strong,
.journey-grid span {
  display: block;
}

.journey-grid code {
  color: var(--primary-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.journey-grid strong {
  margin-top: 32px;
  color: var(--ink);
  font-size: 21px;
}

.journey-grid span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.quick-start-action {
  margin-top: 32px;
}

@keyframes home-intro {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

@keyframes thinking-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 960px) {
  .home-scroll {
    overflow: visible;
  }

  .home-scroll .home-page .page-wrap {
    height: auto;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .section-progress {
    display: none;
  }

  .home-page main > [data-home-section] {
    scroll-snap-align: none;
  }

  .home-hero-grid,
  .story-grid,
  .local-story {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-hero-grid {
    min-height: auto;
  }

  .story-grid,
  .local-story {
    min-height: auto;
  }

  .story-grid-reverse .story-copy,
  .story-grid-reverse .aicore-flow {
    grid-column: auto;
    grid-row: auto;
  }

  .story-grid-reverse .story-copy {
    order: 1;
  }

  .story-grid-reverse .aicore-flow {
    order: 2;
  }

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

@media (max-width: 760px) {
  .home-container {
    width: min(100% - 40px, 1180px);
  }

  .home-hero-grid,
  .story-grid,
  .local-story {
    padding: 64px 0;
  }

  .home-hero h1 {
    font-size: 36px;
  }

  .home-hero h1 > span,
  .home-hero h1 strong > span,
  .story-copy h2 > span,
  .quick-start h2 > span {
    display: inline;
  }

  .home-hero h1 strong {
    font-size: inherit;
    line-height: inherit;
  }

  .home-hero h1 > span::after,
  .home-hero h1 strong > span::after,
  .story-copy h2 > span::after,
  .quick-start h2 > span::after {
    content: " ";
  }

  .story-copy h2,
  .quick-start h2 {
    font-size: 28px;
  }

  .product-demo {
    min-height: 440px;
  }

.demo-stage {
  height: 308px;
  min-height: 308px;
  padding: 20px;
}

.demo-message {
  max-width: 96%;
}

.demo-system-message {
  max-width: 94%;
  font-size: 11px;
}

  .team-workspace {
    grid-template-columns: 1fr;
  }

  .workspace-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .workspace-brand {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .workspace-rail button {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
  }

  .workspace-rail button i,
  .workspace-rail button small {
    display: none;
  }

  .flow-models {
    grid-template-columns: 1fr;
  }

  .flow-models article {
    min-height: auto;
  }

  .flow-models strong {
    margin-top: 16px;
  }

  .tool-tabs span {
    flex: 1;
    padding: 16px 8px;
    text-align: center;
  }

  .quick-start {
    padding: 64px 0;
  }

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

  .journey-grid li {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .home-hero-actions,
  .quick-start-action,
  .story-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-actions .btn-primary,
  .home-hero-actions .btn-secondary,
  .quick-start-action .btn-primary,
  .quick-start-action .btn-secondary {
    width: 100%;
  }

  .demo-scenarios button {
    padding: 0 4px;
    font-size: 12px;
  }

  .workspace-main,
  .aicore-flow,
  .tool-canvas {
    padding: 20px;
  }

  .workspace-result div {
    display: grid;
  }

  .flow-route {
    gap: 8px;
  }

  .flow-route span::after {
    display: none;
  }

  .delivery-path > div {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll {
    overflow: visible;
  }

  .home-scroll .home-page .page-wrap {
    height: auto;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .home-hero-copy,
  .product-demo,
  .typing-cursor,
  .demo-thinking span {
    animation: none;
  }

  .has-section-motion [data-home-section] .story-copy,
  .has-section-motion [data-home-section] .team-workspace,
  .has-section-motion [data-home-section] .aicore-flow,
  .has-section-motion [data-home-section] .tool-experience,
  .has-section-motion [data-home-section] .delivery-path,
  .has-section-motion [data-home-section] .quick-start-head,
  .has-section-motion [data-home-section] .journey-grid,
  .has-section-motion [data-home-section] .quick-start-action {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
