:root {
  --cream: #fff8f0;
  --card: #fffdf7;
  --warm: #fff3e6;
  --milk: #c4a882;
  --caramel: #d4956a;
  --accent: #9a3412;
  --deep: #5d4e37;
  --ink: #3f3326;
  --muted: #5a4336;
  --line: #e4d3be;
  --line-strong: #8a6a4a;
  --shadow: 0 18px 50px rgba(93, 78, 55, 0.08);
  --header: 72px;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

#top,
#product,
#capabilities,
#flow,
#scenes,
#about,
#start {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(212, 149, 106, 0.18), transparent 60%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

a,
button {
  cursor: pointer;
}

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

h1,
h2,
h3,
.draft-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

::selection {
  background: #f3d7c4;
  color: var(--deep);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(255, 248, 240, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner,
.band-inner,
.section-head,
.map,
.capabilities,
.flow,
.scenes,
.about,
.closing,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--deep);
  font-family: var(--display);
  font-weight: 700;
}

.brand-word {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 22px;
}

.header-cta {
  min-height: 44px;
  padding: 0 16px;
  margin-left: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font-size: 15px;
}

.site-nav a,
.footer-nav a {
  transition: color 200ms ease, box-shadow 200ms ease;
}

.site-nav > a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--accent);
}

.site-nav a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

a.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 0;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--deep);
  position: relative;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  transition: transform 180ms ease, top 180ms ease, background-color 180ms ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-lines::before {
  top: -5px;
}

.nav-toggle-lines::after {
  top: 5px;
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-index,
.float-kicker,
.draft-kicker,
.cap-no,
.flow-no {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--deep);
}

.lede,
.band p,
.map-list p,
.cap-grid p,
.flow-list p,
.scene-grid p,
.about-copy p {
  color: var(--muted);
}

.lede {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--deep);
  color: var(--cream);
}

.button-primary:hover {
  background: #4d3f2d;
}

.button-primary:active {
  background: #3f3326;
}

.button-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--deep);
}

.button-ghost:hover {
  background: #fff3e6;
  border-color: var(--deep);
}

.button-ghost:active {
  background: #ffe8d6;
}

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.footer-nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--deep);
  font-size: 14px;
}

.hero-facts li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 560px;
}

.device {
  width: min(100%, 380px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-top,
.device-tabs,
.draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-top {
  padding: 18px 18px 8px;
}

.device-brand {
  font-family: var(--display);
  color: var(--accent);
  font-weight: 700;
}

.account-pill,
.draft-row span {
  border-radius: 999px;
  background: #fff0e8;
  color: var(--deep);
  font-size: 12px;
  padding: 4px 10px;
}

.thread {
  padding: 8px 16px 16px;
  display: grid;
  gap: 10px;
}

.msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
}

.msg-user {
  background: #fff3e6;
  color: var(--deep);
}

.msg-agent {
  background: #f7f1e8;
  color: var(--muted);
}

.draft-card {
  margin-top: 4px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fffdf7, #fff3e6);
  border: 1px solid var(--line);
}

.draft-title {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--deep);
}

.draft-card p:last-of-type {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.draft-strong {
  background: var(--deep) !important;
  color: var(--cream) !important;
}

.device-tabs {
  justify-content: space-around;
  padding: 8px 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.device-tabs span {
  padding: 6px 4px 8px;
}

.device-tabs .is-on {
  color: var(--accent);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.float-card {
  position: relative;
  z-index: 2;
  width: min(260px, 100%);
  margin: 0 108px -16px 0;
  padding: 16px 18px;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.float-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  color: var(--deep);
  font-size: 16px;
  line-height: 1.45;
}

.float-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.band {
  background: var(--deep);
  color: #fff8f0;
}

.band-inner {
  padding: 72px 0;
}

.band .section-index {
  color: #f3e6d8;
}

.band h2 {
  margin: 0 0 16px;
  max-width: 16em;
  font-size: clamp(32px, 4vw, 48px);
}

.band p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 248, 240, 0.88);
  font-size: 17px;
}

.map,
.capabilities,
.flow,
.scenes,
.about {
  padding: 88px 0;
}

.section-head h2,
.about h2 {
  margin: 0;
  max-width: 14em;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--deep);
}

.map-list,
.flow-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.map-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.map-list {
  counter-reset: place;
}

.map-list li,
.scene-grid article,
.cap-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.map-list li {
  counter-increment: place;
}

.map-list li::before {
  content: counter(place, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

@media (hover: hover) {
  .map-list li:hover,
  .scene-grid article:hover,
  .cap-grid article:hover {
    border-color: var(--milk);
    box-shadow: var(--shadow);
  }
}

.cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cap-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--warm);
  border: 1px solid var(--line);
}

.cap-head .cap-no {
  margin: 0;
}

.map-list span,
.scene-grid h3,
.cap-grid h3,
.flow-list h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 20px;
}

.map-list p,
.scene-grid p,
.cap-grid p,
.flow-list p {
  margin: 0;
}

.cap-grid,
.scene-grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

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

.scene-grid {
  grid-template-columns: repeat(3, 1fr);
}

.section-cta {
  margin-top: 28px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: none;
}

.flow-list li {
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.flow-no {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  max-width: 38rem;
}

.about-facts {
  margin: 8px 0 0;
  display: grid;
  gap: 18px;
}

.about-facts div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.about-facts dt {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.closing {
  padding-bottom: 88px;
}

.closing-inner {
  padding: 48px;
  border-radius: 28px;
  background: var(--deep);
  color: var(--cream);
}

.closing-inner .section-index {
  color: #f3e6d8;
}

.closing-inner h2 {
  margin: 0 0 12px;
  max-width: 12em;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--cream);
}

.closing-inner p:not(.section-index) {
  max-width: 36rem;
  margin: 0 0 24px;
  color: rgba(255, 248, 240, 0.88);
}

.closing-inner .button-primary {
  background: var(--cream);
  color: var(--deep);
}

.closing-inner .button-primary:hover,
.closing-inner .button-primary:active {
  background: #ffffff;
  color: var(--deep);
}

.closing-inner .button-primary:focus-visible {
  outline-color: #fff8f0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 350ms ease, transform 350ms ease;
}

.about-facts dd {
  margin: 4px 0 0;
  color: var(--deep);
  font-family: var(--serif);
  font-size: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 24px;
  align-items: center;
}

.footer-note,
.copyright {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.beian {
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
}

.beian a {
  color: var(--muted);
  transition: color 200ms ease;
}

.beian a:hover {
  color: var(--accent);
}

.beian a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--deep);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(93, 78, 55, 0.06);
  }

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

  .site-nav.is-open > a:not(.nav-cta) {
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    border-radius: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open > a[aria-current="true"] {
    box-shadow: inset 2px 0 0 var(--accent);
  }

  .site-nav.is-open > .nav-cta {
    width: 100%;
    margin-top: 12px;
  }

  .header-cta {
    display: none;
  }

  a.nav-cta {
    display: none;
  }

  .site-nav.is-open > a.nav-cta {
    display: inline-flex;
    align-self: flex-start;
    width: 100%;
    margin-top: 12px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero,
  .map-list,
  .cap-grid,
  .scene-grid,
  .flow-list,
  .about,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 12px;
  }

  .stage {
    min-height: 0;
    align-items: stretch;
  }

  .float-card {
    width: min(100%, 380px);
    margin: 0 0 12px auto;
  }

  .device {
    width: min(100%, 380px);
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .band-inner,
  .section-head,
  .map,
  .capabilities,
  .flow,
  .scenes,
  .about,
  .closing,
  .footer-inner,
  .hero {
    width: min(1120px, calc(100% - 40px));
  }

  .closing-inner {
    padding: 28px 22px;
  }

  h1 {
    font-size: 36px;
  }

  .map,
  .capabilities,
  .flow,
  .scenes,
  .about,
  .band-inner {
    padding: 64px 0;
  }

  .closing {
    padding-bottom: 64px;
  }
}

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

  .js .reveal,
  .map-list li,
  .scene-grid article,
  .cap-grid article,
  .button,
  .site-nav a,
  .nav-toggle-lines,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after {
    transition: none;
  }

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