:root {
  --ink: #111217;
  --ink-2: #1b1d23;
  --ink-3: #272a32;
  --paper: #f7f4ec;
  --paper-2: #ece7da;
  --white: #fffdf8;
  --gold: #f5cb78;
  --gold-deep: #dba646;
  --aqua: #73d8d0;
  --coral: #ff7868;
  --mint: #bde8c6;
  --text: #17191e;
  --muted: #6f747f;
  --line: rgba(17, 18, 23, 0.13);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 26px 70px rgba(17, 18, 23, 0.16);
  --shadow-soft: 0 14px 40px rgba(17, 18, 23, 0.1);
  --radius: 8px;
  --radius-small: 8px;
  --container: 1180px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  stroke-width: 1.9;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius-small);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  color: #fff;
  background: rgba(17, 18, 23, 0.88);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--container));
  height: 100%;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50% 50% 50% 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  font-size: 21px;
  transform: rotate(-7deg);
}

.brand-mark svg {
  transform: rotate(7deg);
}

.brand-copy,
.footer-brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-copy small,
.footer-brand-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-download {
  color: var(--ink);
  background: var(--gold);
}

.header-download:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 10px 28px rgba(245, 203, 120, 0.18);
}

.button-primary:hover {
  background: #ffdc92;
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-light);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.button svg,
.header-download svg {
  font-size: 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: calc(var(--header-height) + 78px) 0 94px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.star-field {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 16%, rgba(245, 203, 120, 0.62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 72%, rgba(115, 216, 208, 0.56) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 74%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 230px 230px, 170px 170px, 250px 250px;
}

.hero::before {
  position: absolute;
  top: 18%;
  left: 48%;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(245, 203, 120, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.015), 0 0 0 160px rgba(255, 255, 255, 0.01);
}

.hero::after {
  position: absolute;
  right: -90px;
  bottom: 70px;
  width: 260px;
  height: 220px;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(115, 216, 208, 0.16) 0 2px, transparent 2px 22px);
  transform: rotate(-10deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 5.6vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-description {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.hero-proof svg {
  color: var(--aqua);
  font-size: 17px;
}

.hero-showcase {
  position: relative;
  min-height: 610px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(245, 203, 120, 0.18);
  border-radius: 50%;
}

.hero-orbit-a {
  top: 50px;
  left: 36px;
  width: 390px;
  height: 390px;
}

.hero-orbit-b {
  top: 125px;
  left: 110px;
  width: 330px;
  height: 330px;
  border-color: rgba(115, 216, 208, 0.16);
}

.hero-portrait {
  position: absolute;
  top: 36px;
  left: 50%;
  width: min(74%, 390px);
  height: 540px;
  margin: 0;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 190px 190px 18px 18px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(-50%) translateY(20px) rotate(2deg) scale(0.94);
  transition: opacity 500ms ease, transform 500ms ease;
}

.hero-portrait:nth-of-type(2) {
  transform: translateX(-50%) translateY(20px) rotate(-4deg) scale(0.94);
}

.hero-portrait:nth-of-type(3) {
  transform: translateX(-50%) translateY(20px) rotate(4deg) scale(0.94);
}

.hero-portrait.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(0) scale(1);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-caption {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  align-items: center;
  gap: 8px;
  max-width: 390px;
  min-height: 72px;
  padding: 13px 14px 13px 18px;
  margin: 0 auto;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-caption div {
  display: grid;
}

.hero-caption span {
  color: var(--muted);
  font-size: 11px;
}

.hero-caption strong {
  font-size: 16px;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-arrow:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.hero-float {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: var(--aqua);
  border: 1px solid rgba(17, 18, 23, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.hero-float-a {
  top: 104px;
  left: -15px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 700;
}

.hero-float-b {
  right: -12px;
  bottom: 120px;
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 88px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--coral);
  border-radius: 50%;
  text-align: center;
  transform: rotate(7deg);
}

.hero-float-b strong {
  font-size: 21px;
  line-height: 1;
}

.hero-float-b span {
  font-size: 10px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.scroll-cue svg {
  animation: cue-bounce 1.7s ease-in-out infinite;
}

@keyframes cue-bounce {
  50% {
    transform: translateY(5px);
  }
}

.feature-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--gold);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.feature-ribbon a {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 24px 30px;
  border-right: 1px solid rgba(17, 18, 23, 0.22);
  transition: background 180ms ease;
}

.feature-ribbon a:last-child {
  border-right: 0;
}

.feature-ribbon a:hover {
  background: #ffda8f;
}

.feature-ribbon > a > span {
  grid-row: 1 / 3;
  color: rgba(17, 18, 23, 0.52);
  font-family: "Arial Black", sans-serif;
  font-size: 15px;
}

.feature-ribbon strong {
  align-self: end;
  font-size: 17px;
}

.feature-ribbon small {
  align-self: start;
  color: rgba(17, 18, 23, 0.58);
  font-size: 12px;
}

.feature-ribbon svg {
  grid-row: 1 / 3;
  justify-self: end;
  font-size: 22px;
  transition: transform 180ms ease;
}

.feature-ribbon a:hover svg {
  transform: translate(3px, -3px);
}

.section {
  padding: 100px 0;
}

.agents-section,
.faq-section {
  background: var(--paper);
}

.creator-section,
.path-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialogue-section {
  color: #fff;
  background: var(--ink);
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 46px;
}

.section-heading h2,
.creator-copy h2,
.story-copy h2,
.faq-intro h2,
.download-copy h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:last-child,
.creator-copy > p,
.story-copy > p,
.faq-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-heading-light h2 {
  color: #fff;
}

.section-heading-light p:last-child {
  color: rgba(255, 255, 255, 0.52);
}

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

.agent-card {
  min-width: 0;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.agent-card:nth-child(2) {
  transform: translateY(24px);
}

.agent-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  border-radius: 9px;
}

.agent-image img {
  width: 100%;
  aspect-ratio: 4 / 5.1;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.agent-card:hover .agent-image img {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.agent-status {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(17, 18, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.agent-status i,
.speaking-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(189, 232, 198, 0.18);
}

.agent-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(8px);
  opacity: 0;
  transition: 200ms ease;
}

.agent-card:hover .agent-open {
  opacity: 1;
  transform: translateY(0);
}

.agent-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 6px 0;
}

.agent-tag {
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
}

.agent-info h3 {
  margin: 3px 0 0;
  font-size: 21px;
}

.agent-index {
  color: rgba(17, 18, 23, 0.16);
  font-family: "Arial Black", sans-serif;
  font-size: 32px;
  line-height: 1;
}

.agent-card > p {
  min-height: 60px;
  margin: 14px 6px 4px;
  color: var(--muted);
  font-size: 13px;
}

.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 66px;
}

.creator-copy > p {
  margin-top: 18px;
}

.creator-points {
  display: grid;
  gap: 2px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.creator-points > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.creator-points > div > span {
  display: grid;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--aqua);
  border-radius: 50%;
  font-size: 20px;
}

.creator-points strong {
  align-self: end;
  font-size: 15px;
}

.creator-points p {
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.text-link,
.path-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  margin-top: 26px;
  color: var(--coral);
}

.text-link svg,
.path-link svg {
  transition: transform 180ms ease;
}

.text-link:hover svg,
.path-card:hover .path-link svg {
  transform: translateX(4px);
}

.creator-studio {
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.studio-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line-light);
  font-size: 12px;
}

.studio-topbar > span:first-child {
  display: flex;
  gap: 5px;
}

.studio-topbar > span:first-child i {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

.studio-topbar > span:first-child i:first-child {
  background: var(--coral);
}

.studio-topbar > span:first-child i:nth-child(2) {
  background: var(--gold);
}

.studio-topbar > span:first-child i:nth-child(3) {
  background: var(--aqua);
}

.studio-topbar strong {
  color: #fff;
  font-size: 13px;
}

.studio-save {
  justify-self: end;
  color: var(--aqua);
}

.studio-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.studio-avatar {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: 12px;
}

.studio-avatar img {
  width: 100%;
  height: 322px;
  object-fit: cover;
}

.studio-avatar span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border-radius: 999px;
  font-size: 10px;
}

.studio-controls {
  display: grid;
  align-content: start;
  gap: 17px;
}

.control-group > label,
.range-group label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.text-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  font-size: 13px;
}

.text-control svg {
  color: var(--gold);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 34px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: 180ms ease;
}

.chip:hover,
.chip.is-active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.range-group > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-group output {
  color: var(--aqua);
  font-family: Consolas, monospace;
  font-size: 11px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 7px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.dialogue-preview {
  padding: 13px 14px;
  background: rgba(115, 216, 208, 0.09);
  border: 1px solid rgba(115, 216, 208, 0.2);
  border-radius: 9px;
}

.dialogue-preview span {
  color: var(--aqua);
  font-size: 10px;
}

.dialogue-preview p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.dialogue-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  min-height: 590px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}

.dialogue-portrait {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #090a0d;
}

.dialogue-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(17, 18, 23, 0.88));
}

.dialogue-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.dialogue-name {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: rgba(17, 18, 23, 0.78);
  border: 1px solid var(--line-light);
  border-radius: 11px;
  backdrop-filter: blur(12px);
}

.dialogue-name div {
  display: grid;
}

.dialogue-name strong {
  color: #fff;
  font-size: 14px;
}

.dialogue-name small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.chat-window {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
  padding: 24px;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}

.chat-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 18px;
}

.chat-head div div {
  display: grid;
}

.chat-head strong {
  color: #fff;
  font-size: 13px;
}

.chat-head small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.chat-head > svg {
  color: rgba(255, 255, 255, 0.42);
  font-size: 20px;
}

.chat-messages {
  display: grid;
  align-content: center;
  gap: 15px;
  min-height: 320px;
  padding: 20px 0;
}

.message {
  max-width: 82%;
}

.message > span {
  display: block;
  margin: 0 8px 5px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.message p {
  padding: 12px 14px;
  margin: 0;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.7;
}

.message-agent p {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-light);
  border-top-left-radius: 3px;
}

.message-user {
  justify-self: end;
}

.message-user > span {
  color: rgba(245, 203, 120, 0.65);
  text-align: right;
}

.message-user p {
  color: var(--ink);
  background: var(--gold);
  border-top-right-radius: 3px;
}

.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
}

.chat-prompts button {
  min-height: 34px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: 180ms ease;
}

.chat-prompts button:hover,
.chat-prompts button.is-active {
  color: var(--ink);
  background: var(--aqua);
  border-color: var(--aqua);
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 12px;
}

.chat-input svg {
  color: var(--gold);
  font-size: 18px;
}

.dialogue-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dialogue-notes article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: 11px;
}

.dialogue-notes svg {
  grid-row: 1 / 3;
  color: var(--aqua);
  font-size: 22px;
}

.dialogue-notes strong {
  color: #fff;
  font-size: 13px;
}

.dialogue-notes span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 72px;
}

.story-visual {
  position: relative;
  min-height: 590px;
}

.story-frame {
  position: absolute;
  overflow: hidden;
  background: var(--paper-2);
  border: 8px solid var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.story-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-frame-main {
  top: 0;
  left: 0;
  width: 66%;
  height: 540px;
  transform: rotate(-2deg);
}

.story-frame-small {
  right: 0;
  bottom: 0;
  width: 43%;
  height: 330px;
  transform: rotate(5deg);
}

.story-note {
  position: absolute;
  z-index: 4;
  top: 45px;
  right: 10px;
  width: 215px;
  padding: 18px;
  color: #fff;
  background: var(--coral);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transform: rotate(4deg);
}

.story-note svg {
  font-size: 24px;
}

.story-note p {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.story-copy > p {
  margin-top: 18px;
}

.story-list {
  padding: 0;
  margin: 28px 0 30px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.story-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.story-list > li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--aqua);
  border-radius: 50%;
  font-family: "Arial Black", sans-serif;
  font-size: 10px;
}

.story-list strong {
  font-size: 15px;
}

.story-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.path-card {
  position: relative;
  min-height: 300px;
  padding: 25px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.path-card:hover {
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.path-number {
  color: var(--coral);
  font-family: "Arial Black", sans-serif;
  font-size: 12px;
}

.path-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 46px 0 24px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-size: 23px;
}

.path-card h3 {
  margin: 0;
  font-size: 20px;
}

.path-card p {
  margin: 9px 0 21px;
  color: var(--muted);
  font-size: 13px;
}

.path-card:hover p {
  color: rgba(255, 255, 255, 0.56);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 58px;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
}

.faq-intro > p {
  margin-top: 18px;
}

.faq-intro .button {
  margin-top: 24px;
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  color: var(--coral);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.faq-item summary strong {
  font-size: 16px;
}

.faq-item summary i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  background: var(--paper-2);
  border-radius: 50%;
  font-style: normal;
  transition: transform 180ms ease;
}

.faq-item[open] summary i {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 40px 24px 56px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-section {
  padding: 0 0 100px;
  background: var(--white);
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 46px;
  min-height: 320px;
  padding: 48px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-glow {
  position: absolute;
  top: -170px;
  right: -80px;
  width: 480px;
  height: 480px;
  border: 70px solid rgba(245, 203, 120, 0.08);
  border-radius: 50%;
}

.download-copy,
.download-action {
  position: relative;
  z-index: 1;
}

.download-copy p:last-child {
  max-width: 620px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.download-action {
  display: grid;
  justify-items: end;
  gap: 13px;
}

.download-action > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.download-action > span svg {
  color: var(--aqua);
}

.site-footer {
  color: rgba(255, 255, 255, 0.62);
  background: #0c0d11;
  border-top: 1px solid var(--line-light);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  padding: 62px 0 40px;
}

.footer-brand-column > p {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.footer-brand-copy strong {
  color: #fff;
  font-size: 16px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-links-grid > div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links-grid strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

.footer-links-grid a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-links-grid a:hover {
  color: var(--gold);
}

.footer-divider {
  height: 1px;
  background: var(--line-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(17, 18, 23, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-dock {
  display: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: calc(var(--header-height) + 74px) 0 76px;
  color: #fff;
  background: var(--ink);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.page-hero p:last-child {
  max-width: 670px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.page-index {
  color: var(--gold);
  font-family: "Arial Black", sans-serif;
  font-size: 96px;
  line-height: 0.8;
  letter-spacing: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 58px;
}

.content-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
}

.content-aside h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

.content-aside p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.content-main {
  min-width: 0;
}

.content-block {
  padding: 30px;
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.content-block h2,
.content-block h3 {
  margin: 0;
  letter-spacing: 0;
}

.content-block h2 {
  font-size: 27px;
}

.content-block > p {
  margin: 13px 0 0;
  color: var(--muted);
}

.step-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step-list span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-family: "Arial Black", sans-serif;
  font-size: 10px;
}

.step-list strong {
  display: block;
  font-size: 15px;
}

.step-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.note-box {
  padding: 18px 20px;
  margin-top: 24px;
  color: #5a4400;
  background: #fff1b8;
  border: 1px solid #efd061;
  border-radius: var(--radius-small);
  font-size: 13px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font-size: 14px;
  font-weight: 700;
  transition: 180ms ease;
}

.link-list a:hover {
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    padding: 16px 20px 24px;
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid var(--line-light);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header-download {
    display: none;
  }

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

  .hero-copy {
    max-width: 820px;
  }

  .hero-showcase {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .creator-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

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

  .agent-card:nth-child(2) {
    transform: none;
  }

  .agent-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding-top: calc(var(--header-height) + 58px);
  }

  .section {
    padding: 76px 0;
  }

  .section-heading,
  .faq-layout,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .faq-intro,
  .content-aside {
    position: static;
  }

  .feature-ribbon {
    grid-template-columns: 1fr;
  }

  .feature-ribbon a {
    min-height: 94px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 18, 23, 0.22);
  }

  .feature-ribbon a:last-child {
    border-bottom: 0;
  }

  .creator-grid,
  .story-grid {
    gap: 42px;
  }

  .dialogue-stage {
    grid-template-columns: 1fr;
  }

  .dialogue-portrait {
    min-height: 430px;
  }

  .chat-window {
    min-height: 540px;
  }

  .dialogue-notes,
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 38px 30px;
  }

  .download-action {
    justify-items: start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    display: grid;
  }

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

  .page-index {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 68px;
  }

  body.subpage {
    padding-bottom: 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 76px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-lead {
    font-size: 17px;
  }

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

  .hero-showcase {
    min-height: 520px;
  }

  .hero-portrait {
    width: min(84%, 350px);
    height: 460px;
  }

  .hero-caption {
    max-width: 350px;
  }

  .hero-float-a {
    top: 78px;
    left: -3px;
  }

  .hero-float-b {
    right: -3px;
    bottom: 105px;
  }

  .section-heading h2,
  .creator-copy h2,
  .story-copy h2,
  .faq-intro h2,
  .download-copy h2 {
    font-size: 37px;
  }

  .agent-grid,
  .path-grid,
  .dialogue-notes,
  .footer-links-grid,
  .link-list {
    grid-template-columns: 1fr;
  }

  .agent-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .studio-body {
    grid-template-columns: 1fr;
  }

  .studio-avatar img {
    height: 260px;
  }

  .dialogue-portrait {
    min-height: 380px;
  }

  .chat-window {
    min-height: 560px;
    padding: 18px 15px;
  }

  .message {
    max-width: 92%;
  }

  .story-visual {
    min-height: 500px;
  }

  .story-frame-main {
    width: 76%;
    height: 450px;
  }

  .story-frame-small {
    width: 47%;
    height: 250px;
  }

  .story-note {
    top: 24px;
    right: 0;
    width: 180px;
    padding: 15px;
  }

  .path-card {
    min-height: 260px;
  }

  .path-icon {
    margin-top: 32px;
  }

  .faq-item summary {
    grid-template-columns: 34px minmax(0, 1fr) 27px;
    gap: 8px;
  }

  .faq-item summary strong {
    font-size: 14px;
  }

  .faq-item p {
    padding-left: 42px;
  }

  .download-section {
    padding-bottom: 76px;
  }

  .download-panel {
    padding: 30px 22px;
  }

  .download-action .button {
    width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 82px;
  }

  .mobile-dock {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.6);
    background: rgba(17, 18, 23, 0.96);
    border-top: 1px solid var(--line-light);
    backdrop-filter: blur(14px);
  }

  .mobile-dock a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 5px;
    font-size: 10px;
  }

  .mobile-dock svg {
    font-size: 18px;
  }

  .mobile-dock a:last-child {
    color: var(--gold);
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 54px);
  }

  .page-hero h1 {
    font-size: 43px;
  }

  .content-block {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
