:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --paper-3: #e9e5db;
  --surface: #fbfaf6;
  --ink: #1f242c;
  --ink-2: #3d4550;
  --muted: #6e7784;
  --hairline: rgba(31, 36, 44, 0.12);
  --hairline-strong: rgba(31, 36, 44, 0.22);
  --sky: #2a9dee;
  --sky-deep: #1679b9;
  --sky-dark: #0f6aa5;
  --mist: #7f99b4;
  --sand: #e7dac6;
  --green: #47624c;
  --rust: #8a4a45;
  --stage: #12151a;
  --stage-2: #1a1e25;
  --stage-3: #22272f;
  --stage-line: rgba(230, 232, 236, 0.1);
  --stage-text: #e6e8ec;
  --stage-text-2: #a6aebb;
  --stage-text-3: #79818e;

  --canvas: #f6f7f9;
  --canvas-surface: #fbfbfc;
  --canvas-surface-2: #f1f3f6;
  --canvas-hairline: #e2e6eb;
  --canvas-hairline-strong: #d4dae1;
  --canvas-text: #253044;
  --canvas-text-2: #5b6677;
  --canvas-text-3: #8a93a2;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1180px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[lang="zh"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html[lang="zh"] .display,
html[lang="zh"] .display-sm {
  font-family: "Songti SC", "Noto Serif SC", "STSong", ui-serif, Georgia, serif;
  letter-spacing: 0.01em;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(42, 157, 238, 0.22);
}

:focus-visible {
  outline: 2px solid var(--mist);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 9000;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mist), var(--sky));
  transform-origin: left;
}

/* ---------- typography ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

html[lang="zh"] .eyebrow {
  letter-spacing: 0.12em;
}

.eyebrow-mark {
  position: relative;
  width: 24px;
  height: 1px;
  flex: none;
  background: var(--hairline-strong);
}

.eyebrow-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sky);
}

.eyebrow.on-dark {
  color: var(--stage-text-3);
}

.eyebrow.on-dark .eyebrow-mark {
  background: rgba(230, 232, 236, 0.28);
}

.eyebrow.on-dark .eyebrow-mark::before {
  background: var(--sky);
}

.display {
  font-family: var(--serif);
  font-weight: 470;
  font-size: clamp(56px, 8.2vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.display-sm {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.58;
  letter-spacing: -0.005em;
}

.lede.on-dark {
  color: var(--stage-text-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
}

.section-head.center .section-lede {
  margin-inline: auto;
}

.stage-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.stage-note.on-dark {
  color: var(--stage-text-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(22, 121, 185, 0.3);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link.on-dark {
  color: #8ec8f4;
  text-decoration-color: rgba(142, 200, 244, 0.32);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s var(--ease-out), box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--sky-deep);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 49, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: var(--sky-dark);
  box-shadow: 0 4px 14px rgba(15, 49, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(31, 36, 44, 0.34);
}

.btn-ghost.on-dark {
  border-color: rgba(230, 232, 236, 0.26);
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost.on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(230, 232, 236, 0.42);
}

.btn-sky {
  background: var(--sky);
  color: #06121c;
  box-shadow: 0 8px 24px rgba(42, 157, 238, 0.22);
}

.btn-sky:hover {
  background: #47abf2;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 7px;
}

.btn-lg {
  height: 48px;
  padding: 0 20px;
  font-size: 14.5px;
  border-radius: 10px;
}

.btn-lg .icon {
  width: 16px;
  height: 16px;
}

/* ---------- language switch ---------- */

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

.lang-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 34px;
  padding: 0 7px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
}

.lang-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 32, 46, 0.08);
  transition: transform 0.25s var(--ease-out), width 0.25s var(--ease-out);
}

.lang-switch[data-active="zh"] .lang-pill {
  transform: translateX(34px);
  width: 41px;
}

.lang-switch[data-active="zh"] button[data-lang="zh"] {
  min-width: 41px;
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  border-bottom: 1px solid var(--hairline);
  background: rgba(247, 245, 240, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  transition: height 0.25s var(--ease-out);
}

.site-nav.is-scrolled .nav-inner {
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(16, 55, 86, 0.25);
}

.brand-word {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 550;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--sky-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.nav-links a.is-current {
  color: var(--ink);
}

.nav-links a.is-current::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink-2);
}

.nav-drawer {
  display: none;
  padding: 8px 24px 20px;
  background: rgba(247, 245, 240, 0.97);
  border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink);
}

.nav-drawer a:last-child {
  color: var(--sky-deep);
  font-weight: 650;
  border-bottom: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 74px) 0 72px;
}

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

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

.hero-title {
  margin-top: 28px;
}

.hero-title span {
  display: block;
}

.hero-title span:first-child {
  color: var(--sky-deep);
}

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

.hero-meta {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.hero-stage {
  position: relative;
  overflow-x: clip;
  padding: 26px 26px 0;
  border-radius: 22px;
  background-color: var(--stage);
  background-image: linear-gradient(rgba(230, 232, 236, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 232, 236, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
  box-shadow: 0 30px 80px rgba(24, 28, 34, 0.24), 0 12px 28px rgba(24, 28, 34, 0.14);
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  inset: -20% -10% 20%;
  z-index: -1;
  background: radial-gradient(ellipse at 62% 24%, rgba(42, 157, 238, 0.28), transparent 56%), radial-gradient(ellipse at 20% 88%, rgba(127, 153, 180, 0.16), transparent 54%);
  pointer-events: none;
}

.hero-stage .window {
  border-radius: 12px 12px 0 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.scene-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 16px -8px 0;
  padding: 10px 8px 14px;
  border-top: 1px solid var(--stage-line);
}

.scene-switch > button[data-scene-target] {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--stage-text-3);
  font-size: 11.5px;
  font-weight: 560;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.scene-switch > button[data-scene-target]:hover {
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.06);
}

.scene-switch > button.is-active {
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(230, 232, 236, 0.12);
}

.scene-switch-spacer {
  flex: 1;
}

.scene-replay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--stage-text-3);
  font-size: 11px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.scene-replay .icon {
  width: 13px;
  height: 13px;
}

.scene-replay:hover {
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(var(--container), calc(100% - 56px));
  margin: 48px auto 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll > span:first-child {
  position: relative;
  width: 1px;
  height: 28px;
  background: var(--hairline-strong);
  overflow: hidden;
}

.hero-scroll > span:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sky);
  animation: scrollHint 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- check list ---------- */

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 1.5px solid var(--sky-deep);
  border-bottom: 1.5px solid var(--sky-deep);
  transform: rotate(-45deg);
}

.check-list.on-dark li {
  color: var(--stage-text-2);
}

.check-list.on-dark li::before {
  border-color: var(--sky);
}

/* ---------- feature tags ---------- */

.copy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.copy-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.copy-tags.on-dark .copy-tag {
  border-color: rgba(230, 232, 236, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--stage-text-2);
}

.tag-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(42, 157, 238, 0.12);
}

.tag-dot.warm {
  background: #c29a5b;
  box-shadow: 0 0 0 3px rgba(194, 154, 91, 0.16);
}

/* ---------- demo scene switcher ---------- */

.demo-scenes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.demo-scene-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.demo-scene-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 570;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.demo-scene-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.demo-scene-tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 32, 46, 0.08), inset 0 0 0 1px rgba(31, 36, 44, 0.08);
}

.scene-index {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.demo-scene-tab.is-active .scene-index {
  color: #c29a5b;
  opacity: 1;
}

.demo-scenes.on-dark .demo-scene-tabs {
  border-color: rgba(230, 232, 236, 0.12);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.demo-scenes.on-dark .demo-scene-tab {
  color: var(--stage-text-3);
}

.demo-scenes.on-dark .demo-scene-tab:hover {
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.05);
}

.demo-scenes.on-dark .demo-scene-tab.is-active {
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(230, 232, 236, 0.12);
}

.demo-scenes.on-dark .scene-index {
  color: #6e7787;
}

.demo-scenes.on-dark .demo-scene-tab.is-active .scene-index {
  color: #9db6cf;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.demo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.demo-icon-btn .icon {
  width: 13px;
  height: 13px;
}

.demo-icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.demo-scenes.on-dark .demo-icon-btn {
  color: var(--stage-text-3);
}

.demo-scenes.on-dark .demo-icon-btn:hover {
  color: var(--stage-text);
  background: rgba(255, 255, 255, 0.06);
}

.demo-icon-btn[aria-pressed="true"] {
  color: var(--sky-deep);
  background: rgba(42, 157, 238, 0.09);
}

.demo-scenes.on-dark .demo-icon-btn[aria-pressed="true"] {
  color: #9db6cf;
  background: rgba(157, 182, 207, 0.12);
}

/* ---------- features ---------- */

.features {
  padding: 132px 0;
  border-top: 1px solid var(--hairline);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.feature-card {
  display: flex;
  flex: 0 1 calc((100% - 36px) / 3);
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 26px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 153, 180, 0.6);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 40px rgba(24, 32, 46, 0.07);
}

.feature-card h3 {
  margin: 20px 4px 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.feature-card p {
  margin: 9px 4px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.mini-visual {
  position: relative;
  height: 156px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: var(--canvas);
}

/* ---------- research section ---------- */

.research-section {
  position: relative;
  padding: 132px 0;
  background-color: var(--stage);
  background-image: linear-gradient(rgba(230, 232, 236, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 232, 236, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--stage-text);
  overflow: hidden;
}

.research-glow {
  position: absolute;
  inset: -10% 20% 30% -10%;
  background: radial-gradient(ellipse at 30% 40%, rgba(42, 157, 238, 0.2), transparent 58%);
  pointer-events: none;
}

.research-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 56px;
  align-items: center;
}

.section-copy {
  max-width: 470px;
}

.section-copy .display-sm {
  margin-top: 18px;
  font-size: clamp(36px, 3.6vw, 55px);
  line-height: 1.06;
}

.section-copy .lede {
  margin-top: 20px;
  max-width: 440px;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.62;
}

.section-copy .stage-note {
  margin-top: 22px;
}

.pdf-section {
  position: relative;
  padding: 126px 0 112px;
  border-top: 1px solid rgba(120, 100, 70, 0.14);
  border-bottom: 1px solid rgba(120, 100, 70, 0.14);
  background-color: #f4f0e6;
  background-image:
    radial-gradient(ellipse at 72% 14%, rgba(255, 255, 255, 0.72), transparent 52%),
    radial-gradient(ellipse at 8% 84%, rgba(231, 218, 198, 0.42), transparent 52%);
  overflow: hidden;
}

.pdf-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  opacity: 0.28;
  pointer-events: none;
}

.pdf-glow {
  position: absolute;
  inset: 8% 4% 12% 40%;
  background: radial-gradient(ellipse at 60% 30%, rgba(255, 255, 255, 0.7), transparent 60%);
  pointer-events: none;
}

.pdf-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 54px;
  align-items: center;
}

.pdf-stage {
  position: relative;
  min-width: 0;
}

.pdf-paper-stack {
  position: absolute;
  inset: 10px 8px 38px 14px;
  z-index: 0;
  pointer-events: none;
}

.pdf-stage .demo-scenes {
  position: relative;
  z-index: 2;
}

.pdf-paper-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(120, 100, 70, 0.16);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 20px 50px rgba(72, 58, 36, 0.1);
}

.pdf-paper-stack span:first-child {
  transform: rotate(-1.4deg) translate(-5px, 5px);
}

.pdf-paper-stack span:last-child {
  transform: rotate(0.9deg) translate(4px, -3px);
  opacity: 0.72;
}

/* ---------- chat section ---------- */

.chat-section {
  padding: 132px 0;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(239, 236, 228, 0.5), rgba(239, 236, 228, 0));
}

.chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
}

.chat-copy .display-sm {
  margin-top: 20px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.chat-actions .stage-note {
  margin-top: 0;
}

/* ---------- privacy ---------- */

.privacy {
  padding: 132px 0;
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.22);
}

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

.privacy-card {
  padding: 28px 26px 30px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(247, 245, 240, 0.6);
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--sky-deep);
  background: var(--surface);
}

.privacy-icon .icon {
  width: 18px;
  height: 18px;
}

.privacy-card h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 540;
  letter-spacing: -0.015em;
}

.privacy-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
}

.privacy-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ---------- faq ---------- */

.faq {
  padding: 132px 0;
  border-top: 1px solid var(--hairline);
}

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

.faq-head {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.faq-head .section-lede {
  margin-bottom: 24px;
}

.faq-item {
  border-top: 1px solid var(--hairline);
}

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

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 2px;
  text-align: left;
  color: var(--ink);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.012em;
  transition: color 0.18s ease;
}

.faq-q:hover {
  color: var(--sky-deep);
}

.faq-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--muted);
  transition: transform 0.28s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-plus .icon {
  width: 13px;
  height: 13px;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
  background: rgba(42, 157, 238, 0.08);
  border-color: rgba(22, 121, 185, 0.28);
  color: var(--sky-deep);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease-out);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  max-width: 62ch;
  padding: 0 44px 24px 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- final cta ---------- */

.final-cta {
  position: relative;
  padding: 150px 0 140px;
  overflow: hidden;
  background-color: var(--stage);
  background-image: radial-gradient(ellipse at 50% 20%, rgba(42, 157, 238, 0.18), transparent 56%), linear-gradient(rgba(230, 232, 236, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 232, 236, 0.035) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  color: var(--stage-text);
  text-align: center;
}

.final-glow {
  position: absolute;
  left: 50%;
  top: -30%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 157, 238, 0.16), transparent 66%);
  pointer-events: none;
}

.final-inner {
  position: relative;
}

.final-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.final-cta .display {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 1;
}

.final-cta .lede {
  max-width: 46ch;
  margin-inline: auto;
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.final-note {
  margin-top: 22px;
  color: var(--stage-text-3);
  font-size: 12px;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr));
  gap: 48px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-meta {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a,
.footer-link {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
  transition: color 0.16s ease;
}

.footer-col a:hover,
.footer-link:hover {
  color: var(--sky-deep);
}

.lang-switch-footer {
  background: rgba(255, 255, 255, 0.24);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- dialogs + toast ---------- */

.site-dialog {
  width: min(700px, calc(100vw - 32px));
  max-height: min(82vh, 780px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.site-dialog::backdrop {
  background: rgba(18, 21, 26, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.site-dialog[open] {
  animation: dialogIn 0.32s var(--ease-out);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.dialog-card {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.dialog-head h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 540;
  letter-spacing: -0.025em;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.dialog-body {
  padding: 24px 30px 32px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

.dialog-body p + p {
  margin-top: 14px;
}

.dialog-body h3 {
  margin-top: 24px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.dialog-body h3:first-child {
  margin-top: 0;
}

.dialog-body a {
  color: var(--sky-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dialog-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9500;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .hero-copy .reveal:nth-child(1) { --reveal-delay: 40ms; }
html.js .hero-copy .reveal:nth-child(2) { --reveal-delay: 120ms; }
html.js .hero-copy .reveal:nth-child(3) { --reveal-delay: 200ms; }
html.js .hero-copy .reveal:nth-child(4) { --reveal-delay: 280ms; }
html.js .hero-copy .reveal:nth-child(5) { --reveal-delay: 360ms; }
html.js .hero-stage.reveal { --reveal-delay: 220ms; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

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

  .hero-title {
    font-size: clamp(60px, 10vw, 104px);
  }

  .research-grid,
  .chat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .section-copy,
  .chat-copy {
    max-width: 720px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-head {
    position: static;
  }

  .feature-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-inner {
    gap: 16px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-download {
    display: none;
  }

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

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

  .privacy-card {
    max-width: 620px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 60px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: calc(var(--nav-h) + 46px);
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(48px, 15vw, 76px);
  }

  .hero-stage {
    padding: 12px 12px 0;
    border-radius: 16px;
  }

  .hero-scroll {
    width: calc(100% - 32px);
    margin-top: 34px;
  }

  .section-head {
    margin-bottom: 42px;
  }

  .features,
  .privacy,
  .faq,
  .chat-section,
  .research-section {
    padding: 86px 0;
  }

  .research-section {
    padding-top: calc(var(--nav-h) + 46px);
  }

  .feature-card {
    flex-basis: 100%;
    max-width: 560px;
  }

  .faq-q {
    font-size: 15px;
    padding: 19px 0;
  }

  .faq-a p {
    padding-right: 16px;
  }

  .final-cta {
    padding: 96px 0 88px;
  }

  .final-cta .display {
    font-size: clamp(42px, 12vw, 62px);
  }

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

  .hero-actions,
  .final-actions {
    gap: 9px;
  }

  .scene-switch {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .scene-switch-spacer {
    display: none;
  }

  .scene-replay {
    margin-left: auto;
  }

  .privacy-actions {
    flex-direction: column;
  }

  .privacy-actions .btn {
    width: 100%;
  }

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

  .dialog-head {
    padding: 22px 20px 16px;
  }

  .dialog-body {
    padding: 20px 20px 26px;
  }

  .dialog-head h2 {
    font-size: 25px;
  }

  .lang-switch {
    height: 30px;
  }
}

@media (max-width: 520px) {
  .display {
    letter-spacing: -0.035em;
  }

  .lede {
    font-size: 16px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .feature-card h3,
  .privacy-card h3 {
    font-size: 19px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .hero-scroll > span:first-child::after {
    display: none;
  }
}
