:root {
  color-scheme: light;
  --brand: #ff5a39;
  --brand-text: #b7351e;
  --ink: #211c1a;
  --muted: #635a56;
  --line: #eee6e2;
  --white: #fff;
  --gutter: clamp(20px, 5vw, 64px);
  --header-height: 70px;
  --ease-out: cubic-bezier(.2, .7, .18, 1);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 5px; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-shell { width: min(100% - 240px, 1200px); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #eee7e3b0;
  background: #fffffff2;
  backdrop-filter: blur(18px);
}
.header-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100% - var(--gutter) * 2, 1440px);
  min-height: var(--header-height);
  margin-inline: auto;
}
.brand { display: inline-block; width: 124px; justify-self: start; }
.site-nav ul { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.nav-item {
  position: relative;
  display: block;
  padding: 12px 0;
  color: #534a46;
  font-size: .9375rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav-item::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms var(--ease-out);
}
.nav-item:is(.is-current, :hover, :focus-visible) { color: var(--brand-text); }
.nav-item:is(.is-current, :hover, :focus-visible)::after { transform: scaleX(1); }
.nav-item[aria-disabled] { cursor: default; }
.nav-opcb { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.nav-hot {
  padding: 2px 4px;
  border-radius: 4px;
  background: #ffe8df;
  color: var(--brand-text);
  font-size: .6875rem;
  font-weight: 650;
  line-height: 1.15;
}
.header-actions { display: flex; justify-self: end; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 24px;
  border: 1px solid #f55132;
  border-radius: 99px;
  background: var(--brand);
  color: #211411;
  font-weight: 700;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}
.button:hover { background: #ff714f; box-shadow: 0 8px 22px #d83e202c; transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: .9375rem; }
.button-small .icon { width: 1em; height: 1em; }
.text-link { color: var(--brand-text); font-size: .9375rem; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(78px, 8.2vw, 124px) var(--gutter) 0;
  text-align: center;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 0 -12% 0;
  background:
    radial-gradient(ellipse at 13% 68%, #ff9b6f6b 0, transparent 50%),
    radial-gradient(ellipse at 89% 56%, #ffb8969c 0, transparent 45%),
    radial-gradient(ellipse at 50% 86%, #ffe8d8 0, transparent 55%);
  mask-image: linear-gradient(transparent 17%, #000 52%, #000 82%, transparent 100%);
  animation: glow-in 1.4s var(--ease-out) both, glow-drift 14s 1.4s ease-in-out infinite alternate;
}
.hero-copy h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.062em;
  text-wrap: balance;
  animation: rise-in 850ms 75ms var(--ease-out) both;
}
.hero-copy h1 span { letter-spacing: -.055em; white-space: nowrap; }
.hero-copy p {
  margin: 27px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.7;
  animation: rise-in 850ms 150ms var(--ease-out) both;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 29px;
  animation: rise-in 850ms 225ms var(--ease-out) both;
}
.hero-preview {
  position: relative;
  width: min(100%, 1024px);
  margin: clamp(56px, 7.1vw, 103px) auto 0;
  overflow: clip;
  border: 1px solid #ead9d1;
  border-radius: 15px 15px 0 0;
  background: #fff;
  box-shadow: 0 18px 90px #a53e1f24;
  mask-image: linear-gradient(#000 79%, transparent 100%);
  animation: preview-in 1.05s 290ms var(--ease-out) both;
}
.hero-preview img { width: 100%; }

.scenes { margin-block-start: 96px; }
.section-heading-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading-main { display: grid; justify-items: start; gap: 16px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  background: #fcf0ea;
  color: var(--brand-text);
  font-size: .78125rem;
  line-height: 1.1;
}
.section-heading h2 { font-size: 3.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -.028em; }
.section-heading p { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.section-heading-split p { flex: 0 1 400px; max-width: 400px; }

.scene-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  padding: 4px;
  margin-block: 40px 44px;
  border: 1px solid #eeeded;
  border-radius: 40px;
  background: #f5f5f5;
}
.scene-tabs button {
  min-width: 0;
  padding: 9px 24px;
  border: 1px solid transparent;
  border-radius: 40px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.scene-tabs button:hover { color: var(--brand-text); }
.scene-tabs button[aria-selected="true"] {
  border-color: #e6e4e3;
  background: #fff;
  color: var(--ink);
}
.scene-panel {
  position: relative;
  display: grid;
  min-height: 612px;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: clip;
  border: 1px solid #e8e5e3;
  border-radius: 20px;
  background: #fff;
}
.scene-panel.is-outgoing { position: absolute; inset: -1px; z-index: 2; min-height: 0; border-color: transparent; background: transparent; pointer-events: none; }
.scene-panel.is-entering:not(.is-transitioning) .scene-copy { animation: scene-copy-in 430ms var(--ease-out) both; }
.scene-panel.is-entering:not(.is-transitioning) .scene-art { animation: scene-in 700ms var(--ease-out); }
.scene-copy { align-self: center; padding: 24px 40px 24px 48px; }
.scene-copy h3 { font-size: 1.75rem; font-weight: 400; line-height: 1.55; }
.scene-copy p { max-width: 272px; margin-top: 18px; color: var(--muted); font-size: .875rem; line-height: 1.9; }
.scene-art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #fbf5f1;
}
.panel-project .scene-art { background: #faf3ed; }
.panel-library .scene-art { background: #f9f4ee; }
.panel-agent .scene-art { background: #fcf2ef; }
.scene-art::before {
  position: absolute;
  top: 13.5%;
  left: 11%;
  width: 72%;
  aspect-ratio: 1.6;
  border: 1px solid #eae3df;
  border-radius: clamp(6px, 1.25cqw, 12px);
  background:
    linear-gradient(#ffede4 0 0) 4% 7% / 7% 2% no-repeat,
    linear-gradient(#f1e6df 0 0) 4% 19% / 12% 3% no-repeat,
    linear-gradient(#f4ebe6 0 0) 4% 27% / 12% 3% no-repeat,
    linear-gradient(#f4ebe6 0 0) 4% 35% / 10% 3% no-repeat,
    linear-gradient(#f4ebe6 0 0) 4% 43% / 12% 3% no-repeat,
    linear-gradient(#e9dcd4 0 0) 25% 9% / 16% 2.5% no-repeat,
    linear-gradient(#f1e8e3 0 0) 28% 22% / 28% 3% no-repeat,
    repeating-linear-gradient(#f5eeea 0 4%, transparent 4% 21%) 27% 47% / 32% 40% no-repeat,
    linear-gradient(90deg, #faf7f5 20%, #eae3df 20% calc(20% + 1px), #fffcfa calc(20% + 1px));
  box-shadow: 0 14px 37px #79402214;
  content: "";
}
.panel-project .scene-art::before { background: #fff url("./assets/workspace.webp") center / cover no-repeat; }
.scene-window {
  position: absolute;
  top: 22.5%;
  right: 11%;
  width: 46%;
  min-height: 64%;
  overflow: hidden;
  border: 1px solid #eee5df;
  border-radius: clamp(6px, 1.25cqw, 12px);
  background: #fff;
  box-shadow: 0 16px 42px #5e3a2826;
  font-size: clamp(.5625rem, 2.05cqw, .875rem);
}
.demo-header { display: flex; align-items: center; gap: .65em; padding: 1em 1.25em; border-bottom: 1px solid var(--line); font-weight: 700; }
.demo-header .icon, .demo-file .icon { color: var(--brand-text); }
.demo-body { padding: 1.1em 1.25em; }
.demo-message { display: flex; align-items: flex-start; gap: .65em; margin-bottom: 1em; }
.demo-message p { color: var(--muted); margin-top: 3px; }
.avatar { display: grid; width: 2em; height: 2em; flex: none; place-items: center; border-radius: .55em; background: #ffe1d4; color: #92341f; font-weight: 700; }
.avatar-neutral { background: #efe7dd; color: #695446; }
.demo-file { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; min-width: 0; padding: .65em; border: 1px solid var(--line); border-radius: .5em; background: #fffbf9; }
.document-list { display: grid; gap: .55em; }
.demo-file span { margin-left: auto; color: var(--muted); font-size: .86em; }
.project-state, .demo-row { display: flex; align-items: center; justify-content: space-between; gap: .65em; }
.project-state small { display: block; margin-bottom: 3px; color: var(--muted); }
.demo-badge { padding: .2em .65em; border-radius: 20px; background: #ffe9db; color: #893a24; }
.demo-row { margin-top: .7em; padding-top: .65em; border-top: 1px solid var(--line); }
.demo-row span { color: var(--muted); }
.agent-prompt { width: fit-content; margin: 0 0 .85em auto; padding: .65em .85em; border-radius: 12px 12px 2px 12px; background: #fff0e8; }
.agent-result { padding: .8em .85em; border: 1px solid var(--line); border-radius: .7em; }
.agent-result p { margin-top: 5px; color: var(--muted); line-height: 1.5; }

.context {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block-start: 96px;
  padding-block: 88px;
  border-block: 1px solid #eeebea;
  background: #f7f7f7;
  text-align: center;
}
.context::before {
  position: absolute;
  z-index: -1;
  inset: -12% -12% -20%;
  background: repeating-conic-gradient(from 30deg at 31% -4%, #c7a08d30 0 .09deg, transparent .18deg 2.1deg);
  mask-image: radial-gradient(ellipse at 30% 0, transparent 11%, #000 25%, transparent 82%);
  content: "";
  animation: context-drift 8s ease-in-out infinite alternate;
}
.context .section-heading h2 { margin-top: 24px; font-size: 3.25rem; }
.context .section-heading p { max-width: 560px; margin: 18px auto 0; }
.context-strip {
  overflow: hidden;
  margin-block-start: 56px;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.context-track {
  display: flex;
  width: max-content;
  animation: context-marquee 28s linear infinite;
}
.context-track:hover { animation-play-state: paused; }
.context-list { display: flex; flex: none; gap: 16px; padding-inline-end: 16px; }
.context-list li {
  display: flex;
  width: 180px;
  height: 73px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  font-size: 1.125rem;
  font-weight: 650;
  white-space: nowrap;
}
.context-list .icon { color: var(--brand-text); font-size: 1.3rem; }
.has-reveal [data-reveal] { opacity: 0; transform: translateY(25px); transition: opacity 600ms ease, transform 700ms var(--ease-out); }
.has-reveal [data-reveal].is-visible, .has-reveal [data-reveal]:focus-within { opacity: 1; transform: none; }

@keyframes rise-in { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
@keyframes glow-in { from { opacity: 0; } }
@keyframes glow-drift { to { transform: translateX(2%) scale(1.08); } }
@keyframes preview-in { from { opacity: 0; transform: perspective(1200px) translateY(44px) rotateX(7deg); } }
@keyframes scene-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes scene-copy-in { from { opacity: 0; } }
@keyframes context-marquee { to { transform: translateX(-50%); } }
@keyframes context-drift { to { transform: scale(1.08) translateX(2%); } }

@media (max-width: 1280px) {
  .section-shell { width: min(100% - 96px, 1200px); }
}

@media (max-width: 1024px) {
  .section-heading-split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-heading-split p { flex: auto; }
  .section-heading h2 { font-size: 2.75rem; }
  .scene-panel { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(173px, 1fr) auto; }
  .scene-copy { padding: 32px 28px; }
  .scene-copy p { max-width: 420px; }
  .scene-art { aspect-ratio: 840 / 612; }
  .context .section-heading h2 { font-size: 2.25rem; }
}

@media (max-width: 1000px) {
  .header-shell { gap: 14px; }
  .site-nav ul { gap: 15px; }
}

@media (max-width: 840px) {
  :root { --header-height: 62px; }
  .header-shell { grid-template-columns: 1fr auto; }
  .brand { width: 110px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .has-menu .menu-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle .menu-close-icon, .menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
  .site-nav { grid-column: 1 / -1; }
  .has-menu .site-nav { display: none; }
  .has-menu .site-nav.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: 12px var(--gutter) 19px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 22px #38231a14;
    animation: rise-in 240ms var(--ease-out);
  }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .nav-item { min-height: 44px; }
  .nav-item::after { right: auto; width: min(100%, 88px); transform-origin: left; }
}

@media (max-width: 768px) {
  .section-shell { width: min(100% - 40px, 1200px); }
  .scenes, .context { margin-block-start: 56px; }
  .section-heading-main { gap: 12px; }
  .section-heading h2 { font-size: 2rem; }
  .section-heading p { font-size: .875rem; line-height: 1.65; }
  .scene-tabs { margin: 24px auto; }
  .scene-tabs button { padding: 8px clamp(8px, 3vw, 18px); font-size: .8125rem; }
  .scene-panel { grid-template-rows: minmax(150px, 1fr) auto; }
  .scene-copy h3 { font-size: 1.375rem; }
  .scene-copy p { margin-top: 12px; font-size: .8125rem; }
  .context { padding-block: 48px; }
  .context::before { animation: none; }
  .context .section-heading h2 { margin-top: 0; font-size: 1.625rem; }
  .context .section-heading p { margin-top: 12px; }
  .context-strip { margin-block-start: 28px; }
  .context-list { gap: 12px; padding-inline-end: 12px; }
  .context-list li { width: 140px; height: 64px; font-size: 1rem; }
}

@media (max-width: 650px) {
  .hero { padding-top: 62px; }
  .hero-copy h1 { font-size: clamp(2.25rem, 8.9vw, 3.35rem); }
  .hero-copy h1 span { display: block; margin-top: 5px; }
  .hero-copy p { margin-top: 19px; }
  .hero-actions { margin-top: 24px; }
  .hero-preview { border-radius: 9px 9px 0 0; }
}

@media (max-width: 375px) {
  .desktop-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .has-reveal [data-reveal] { opacity: 1; transform: none; }
  .context-strip { mask-image: none; }
  .context-track { display: block; width: auto; }
  .context-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-inline-end: 0; }
  .context-list[aria-hidden="true"] { display: none; }
  .context-list li { width: auto; }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .context-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .context-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
