:root {
  --bg: #090e13;
  --panel: #111b24;
  --ink: #f2f6f8;
  --muted: #8f9fae;
  --accent: #35d4c7;
  --amber: #ffc76a;
  --line: #23313d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: clip;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.wrap {
  width: min(1280px, calc(100% - 100px));
  margin: auto;
}
p {
  line-height: 1.85;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
.accent {
  color: var(--accent);
}
.ambient {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 920px;
  inset: 0 0 auto;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 47%, #17423d33, transparent 60%),
    radial-gradient(ellipse at 5% 100%, #d88b2910, transparent 40%);
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 35px;
  /* 固定在视口顶部，滚动时始终可见 */
  position: sticky;
  top: 0;
  z-index: 5;
}
/* 通栏半透明底：让贴顶的导航栏不遮挡下方内容观感 */
.header:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  background: #090e13e0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #23313d80;
  pointer-events: none;
  z-index: -1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand img {
  object-fit: contain;
}
.header nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 13px;
  color: #b8c3cd;
}
.header a:hover {
  color: var(--accent);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}
.language-switch button {
  background: none;
  border: 0;
  color: #7e909f;
  padding: 7px 2px;
  font-size: 12px;
}
.language-switch button[aria-pressed="true"] {
  color: var(--accent);
}
.language-switch > span {
  color: #3b4c59;
}
.github {
  color: #8f9fae;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.13fr;
  gap: 36px;
  align-items: center;
  padding-top: 62px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
}
.hero h1 {
  font-size: clamp(47px, 5.15vw, 76px);
  font-weight: 740;
  line-height: 1.18;
  letter-spacing: -3px;
}
.intro {
  font-size: 17px;
  color: #a5b3bf;
  max-width: 490px;
  margin-top: 26px;
  line-height: 1.95;
}
.actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  min-height: 51px;
  border-radius: 10px;
  padding: 0 24px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.primary {
  background: var(--accent);
  color: #092125;
  box-shadow: 0 5px 22px #35d4c725;
}
.primary:hover {
  box-shadow: 0 8px 30px #35d4c745;
}
.secondary {
  border: 1px solid #3a4b59;
  background: #111b2470;
  color: #d6e0e6;
}
.secondary:hover {
  border-color: var(--accent);
}
.compatibility {
  font-size: 10px;
  color: #738794;
  margin-top: 25px;
  line-height: 1.8;
  letter-spacing: 0.15px;
}
.hero-visual {
  height: 460px;
  position: relative;
  isolation: isolate;
  perspective: 1100px;
}
.scene-grid {
  position: absolute;
  inset: -60px -30px -20px;
  background-image:
    linear-gradient(#25483d19 1px, transparent 1px),
    linear-gradient(90deg, #25483d19 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 75%);
  pointer-events: none;
}
.agent-trace {
  position: absolute;
  width: 280px;
  left: 0;
  top: 30px;
  background: linear-gradient(145deg, #182322e8, #111b21e8);
  border: 1px solid #4e473e;
  border-radius: 14px;
  transform: rotateY(7deg) rotateZ(-3deg);
  box-shadow: 0 18px 50px #0004;
  overflow: hidden;
}
.trace-header {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid #5c4f322f;
  font-size: 12px;
  color: #d9e1e4;
}
.activity-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px #ffc76a70;
  flex: none;
  animation: breathe 2s ease-in-out infinite;
}
.motion-control {
  margin-left: auto;
  padding: 2px 6px;
  background: none;
  border: 0;
  color: #8d9f9d;
  font-size: 12px;
}
.trace-rows {
  padding-inline: 18px;
}
.trace-row {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #31413d70;
  position: relative;
}
.trace-number {
  font-family: var(--mono);
  font-size: 10px;
  color: #536f6a;
}
.trace-row div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trace-row code {
  font-size: 12px;
  color: #9ba8ae;
}
.trace-row div > span {
  font-size: 10px;
  color: #667c80;
}
.trace-light {
  position: absolute;
  right: 2px;
  top: 33px;
  width: 4px;
  height: 4px;
  background: #4a535b;
  border-radius: 50%;
}
.trace-row.is-active code,
.trace-row.is-active .trace-number {
  color: var(--amber);
}
.trace-row.is-active .trace-light {
  background: var(--amber);
  box-shadow: 0 0 13px var(--amber);
}
.trace-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  font-size: 10px;
  color: #688c83;
}
.trace-pulse {
  width: 14px;
  height: 2px;
  background: var(--accent);
  animation: signal 2s ease-in-out infinite;
}
.hero-display {
  position: absolute;
  right: 0;
  top: 68px;
  width: 67%;
  aspect-ratio: 1.52;
  border: 1px solid #35564f;
  border-radius: 14px;
  background: #080b0d;
  overflow: hidden;
  box-shadow:
    0 20px 60px #0009,
    0 0 45px #35d4c708;
  transform: rotateY(calc(var(--mode-progress, 0) * -7deg))
    rotateZ(calc(var(--mode-progress, 0) * 2deg));
  transition:
    transform 0.18s ease-out,
    box-shadow 0.7s;
}
.hero-visual[data-mode="awake"] .hero-display {
  box-shadow:
    0 20px 60px #0006,
    0 0 30px #ffc76a10;
}
.menu-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 10px;
  color: #b6c4cc;
  font: 9px var(--mono);
  border-bottom: 1px solid #223039;
  background: linear-gradient(#1b262e, #121b22);
  z-index: 3;
  opacity: calc(1 - var(--mode-progress, 0));
  transform: translateY(calc(var(--mode-progress, 0) * -8px));
  pointer-events: none;
  transition:
    opacity 0.2s linear,
    transform 0.2s linear;
}
.menu-bar-left,
.menu-bar-right {
  display: flex;
  align-items: center;
  gap: 11px;
}
.menu-bar-app {
  color: #e4eef3;
  font-weight: 600;
}
.menu-apple {
  width: 11px;
  height: 11px;
  fill: #d3dee4;
  flex: none;
}
.menu-glyph {
  width: 12px;
  height: 12px;
  fill: #a3b3bd;
  flex: none;
}
.menu-battery {
  width: 14px;
}
.menu-bar-time {
  color: #c8d5db;
}
.menu-acu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 5px;
  background: #35d4c72e;
  box-shadow:
    inset 0 0 0 1px #35d4c78a,
    0 0 12px #35d4c73d;
  animation: menu-acu-pulse 2.6s ease-in-out infinite;
}
.menu-acu img {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
@keyframes menu-acu-pulse {
  50% {
    box-shadow:
      inset 0 0 0 1px #35d4c7c4,
      0 0 18px #35d4c766;
  }
}
.window-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.window-dots i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #ed6863;
}
.window-dots i:nth-child(2) {
  background: #e8bb58;
}
.window-dots i:nth-child(3) {
  background: #6bbb75;
}
.native-shield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 即使完全进入模拟锁屏也保留一丝透明，露出后方的桌面操作仍在继续。 */
  opacity: calc(var(--mode-progress, 0) * 0.9);
  pointer-events: none;
  transition:
    opacity 0.2s linear,
    filter 0.75s;
  z-index: 1;
}
.desktop-demo {
  position: absolute;
  inset: 26px 0 0;
  background: radial-gradient(ellipse at 25% 20%, #264547, #111b24 75%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.desktop-line {
  height: 12px;
  width: 75%;
  border-radius: 3px;
  background: #9ac2c21a;
}
.desktop-line:nth-child(2) {
  width: 50%;
}
.desktop-line:nth-child(3) {
  width: 65%;
  background: #ffc76a2a;
}
.desktop-demo > span {
  font-size: 10px;
  color: #7d9c9d;
  margin-top: auto;
}
.demo-pointer {
  position: absolute;
  color: var(--amber);
  font-size: 22px;
  top: 35%;
  left: 20%;
  animation: pointer-path 7s ease-in-out infinite;
}
.hero-mode {
  position: absolute;
  right: 0;
  bottom: 46px;
  width: 100%;
}
.mode-control {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid #253a3d;
  background: #111b248c;
  border-radius: 12px;
}
.mode-control button {
  width: 50%;
  min-height: 45px;
  border: 1px solid transparent;
  color: #889da8;
  background: none;
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.mode-control button[aria-pressed="true"] {
  color: var(--accent);
  border-color: #35d4c75c;
  background: #35d4c70b;
  box-shadow: 0 0 12px #35d4c707;
}
.visual-caption {
  position: absolute;
  bottom: 16px;
  width: 100%;
  font-size: 9px;
  color: #58727c;
  text-align: center;
  line-height: 1.6;
}
.capability-strip {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 26px 0 31px;
  margin-top: 23px;
  color: #9dafba;
  font-size: 12px;
}
.capability-strip > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.capability-strip > span + span {
  border-left: 1px solid var(--line);
}
.capability-strip i {
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}
.section {
  border-top: 1px solid var(--line);
  padding-block: 95px;
  scroll-margin-top: 30px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 52px;
}
h2 {
  font-size: clamp(33px, 3.2vw, 47px);
  line-height: 1.25;
  letter-spacing: -1.7px;
  font-weight: 680;
}
.section-heading > p,
.story-copy > p,
.install-copy > p {
  color: #91a3b1;
  font-size: 14px;
  line-height: 1.95;
  max-width: 500px;
}
.workflow-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 100px;
  align-items: center;
}
.mode-explanations {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mode-explanation {
  position: relative;
  display: flex;
  gap: 18px;
  text-align: left;
  padding: 27px 25px;
  border: 1px solid #25343e;
  border-radius: 13px;
  background: #101820;
  color: var(--ink);
  transition:
    border-color 0.25s,
    background 0.25s;
  width: 100%;
}
.mode-explanation[aria-pressed="true"] {
  background: linear-gradient(130deg, #152824a6, #101820);
  border-color: #35d4c74a;
}
.mode-explanation:hover {
  border-color: #46635e;
}
.mode-number {
  font: 11px var(--mono);
  color: #5d797e;
  padding-top: 3px;
}
.mode-explanation h3 {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 11px;
  font-weight: 550;
  letter-spacing: -0.2px;
}
.mode-explanation p {
  font-size: 12px;
  color: #7b909e;
  line-height: 1.95;
}
.mode-arrow {
  font-size: 20px;
  color: #415965;
  margin-left: auto;
}
.mode-explanation[aria-pressed="true"] .mode-arrow {
  color: var(--accent);
}
.boundary-inline {
  font-size: 10px;
  color: #627681;
  margin: 6px 12px 0;
  line-height: 1.9;
}
.real-menu {
  max-width: 365px;
}
.real-menu button {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  border-radius: 18px;
  width: 100%;
  display: block;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 20px 55px #0005;
}
.real-menu button:hover {
  transform: translateY(-4px);
}
.real-menu img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.image-expand {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #152438;
  border-radius: 50%;
  background: #eef5fae8;
  width: 24px;
  height: 24px;
  line-height: 24px;
}
.real-menu figcaption {
  font-size: 10px;
  color: #647c87;
  margin-top: 17px;
  text-align: center;
}
.story-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: center;
}
.story-copy > p {
  margin-top: 24px;
}
.small-note {
  font-size: 11px !important;
  line-height: 1.9 !important;
  color: #647e8d !important;
}
.text-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--accent);
  line-height: 1.6;
}
.text-button:hover {
  color: #a3fff6;
}
.story-copy > .text-button {
  margin-top: 25px;
}
.lid-demo {
  min-width: 0;
}
.laptop-stage {
  height: 400px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  isolation: isolate;
}
.laptop-halo {
  position: absolute;
  inset: 10% 0 -10%;
  background: radial-gradient(ellipse at 50% 70%, #35d4c725, transparent 62%);
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.8s;
}
.lid-demo[data-state="protected"] .laptop-halo,
.lid-demo[data-state="auth"] .laptop-halo {
  opacity: 1;
}
.laptop {
  width: 76%;
  max-width: 400px;
  aspect-ratio: 16 / 10;
  position: relative;
  transform: rotateY(-10deg) rotateX(8deg);
  transform-style: preserve-3d;
  /* 超过 90° 时屏幕进入负 Z；装饰容器不能挡住屏幕内的认证按钮。 */
  pointer-events: none;
}
.laptop-screen {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  /* 苹果式边框：四周窄边 + 底部下巴。 */
  border: 7px solid #0f171c;
  border-bottom-width: 15px;
  border-radius: 14px 14px 7px 7px;
  transform: rotateX(10deg);
  transform-origin: bottom center;
  overflow: hidden;
  background: #091115;
  box-shadow:
    0 0 0 1px #536471,
    0 0 30px #35d4c708;
  backface-visibility: visible;
  transition: transform 0.16s ease-out;
}
.laptop-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
}
.lid-demo[data-state="protected"] .laptop-screen > img,
.lid-demo[data-state="auth"] .laptop-screen > img {
  opacity: 1;
}
/* 展开状态下展示的桌面：菜单栏 + Agent 窗口 + 移动指针 */
.lid-desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 12% 0, #22484a, #101c25 72%);
}
.lid-menubar {
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: #0b1419;
  border-bottom: 1px solid #1d2c33;
}
.lid-menubar-left,
.lid-menubar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lid-menubar i {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #40565f;
}
.lid-menubar-left i:nth-child(1) {
  width: 8px;
  background: #6d848d;
}
.lid-menubar-left i:nth-child(2) {
  width: 15px;
}
.lid-menubar-left i:nth-child(3) {
  width: 10px;
}
.lid-menubar-right i {
  width: 7px;
}
.lid-window {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 26%;
  padding: 12px 13px 14px;
  border: 1px solid #2c434b;
  border-radius: 7px;
  background: linear-gradient(160deg, #1b2c33e6, #121d24e6);
  box-shadow: 0 9px 22px #0006;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  color: var(--amber);
}
.lid-window .task-stream {
  width: 100%;
  margin-top: 8px;
  gap: 6px;
}
.lid-window .task-stream i {
  height: 4px;
}
.lid-pointer {
  position: absolute;
  right: 15%;
  bottom: 15%;
  font-size: 15px;
  color: var(--amber);
  animation: lid-pointer-path 7s ease-in-out infinite;
}
/* 展开时弹出的模拟指纹认证，点按后才恢复桌面 */
.lid-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #04090ccc;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.lid-demo[data-state="auth"] .lid-lock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lid-fingerprint {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  transition: color 0.25s;
}
.lid-lock:hover .lid-fingerprint {
  color: #a3fff6;
}
.lid-lock-title {
  font-size: 10px;
  font-weight: 550;
  color: #e6f4f2;
}
.lid-lock-hint {
  font-size: 9px;
  color: #8fbdb7;
  letter-spacing: 0.3px;
}
.task-stream {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.task-stream i {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #b6955036, #b6955008);
  border-radius: 3px;
  width: 70%;
  animation: task-line 3s ease-in-out infinite;
}
.task-stream i:nth-child(2) {
  width: 85%;
  animation-delay: 0.4s;
}
.task-stream i:nth-child(3) {
  width: 50%;
  animation-delay: 0.8s;
}
.laptop-base {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(#35434f, #192530);
  border: 1px solid #60717c;
  border-radius: 4px 4px 15px 15px;
  transform-origin: top;
  transform: rotateX(62deg);
  box-shadow: 0 6px 20px #0009;
  pointer-events: none;
}
.keyboard {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  height: 50%;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 7%, #60717c42 7% 7.6%),
    repeating-linear-gradient(transparent 0 21%, #60717c42 21% 24%);
  background-color: #101a24;
  border-radius: 3px;
}
.trackpad {
  position: absolute;
  width: 26%;
  height: 25%;
  bottom: 9%;
  left: 37%;
  border: 1px solid #536774;
  border-radius: 3px;
}
.angle-readout {
  position: absolute;
  bottom: 43px;
  right: 0;
  font: 20px var(--mono);
  color: var(--accent);
}
.lid-controls {
  border: 1px solid #25383f;
  border-radius: 13px;
  padding: 21px 25px;
  background: linear-gradient(145deg, #111f2570, #101820);
}
.demo-control-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #a7bbc4;
  margin-bottom: 21px;
}
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #67828e;
}
.range-label output {
  font: 18px var(--mono);
  color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 25px;
  margin: 8px 0 16px;
  cursor: ew-resize;
}
.threshold-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #67828e;
  gap: 20px;
}
.threshold-row > div {
  display: flex;
  gap: 10px;
}
.threshold-row button {
  background: #15232c;
  border: 1px solid #2d4450;
  border-radius: 6px;
  padding: 6px 13px;
  font: 12px var(--mono);
  color: #8ba2b1;
}
.threshold-row button[aria-pressed="true"] {
  background: #35d4c70f;
  border-color: #35d4c77a;
  color: var(--accent);
}
.demo-status {
  font-size: 11px;
  color: var(--accent);
  min-height: 22px;
  line-height: 1.8;
  margin-top: 20px;
}
.demo-disclaimer {
  font-size: 9px;
  color: #526d78;
  margin-top: 9px;
  line-height: 1.7;
}
.leave-section .section-heading {
  grid-template-columns: 1fr 1fr;
}
.departure-demo {
  border: 1px solid #253a3e;
  border-radius: 18px;
  padding: 26px 35px 24px;
  background:
    radial-gradient(ellipse at 20% 30%, #16483d1a, transparent 45%), #10181f;
  isolation: isolate;
  overflow: hidden;
}
.departure-scene {
  height: 245px;
  position: relative;
  width: min(760px, 100%);
  margin: auto;
  isolation: isolate;
}
.depart-mac {
  position: absolute;
  left: 13%;
  top: 25px;
  width: 35%;
  z-index: 2;
}
.depart-screen {
  aspect-ratio: 1.55;
  background: #101d29;
  border: 5px solid #293e4c;
  border-radius: 10px 10px 3px 3px;
  position: relative;
  overflow: hidden;
}
.depart-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
}
.depart-task {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  font-size: 10px;
  color: var(--amber);
  background: radial-gradient(ellipse at 10% 0, #284b4b, #101d29 80%);
}
.departure-demo[data-state="protected"] .depart-screen > img,
.departure-demo[data-state="returned"] .depart-screen > img,
.departure-demo[data-state="auth"] .depart-screen > img {
  opacity: 1;
}
/* 保护中也保留按 Enter 验证的提示（贴近底部，避免遮住锁屏文案） */
.depart-enter {
  position: absolute;
  left: 50%;
  bottom: 11%;
  translate: -50% 0;
  z-index: 3;
  color: #9fd8d2;
  font-size: 9px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000a;
  opacity: 0;
  visibility: hidden;
}
.departure-demo[data-state="protected"] .depart-enter,
.departure-demo[data-state="returned"] .depart-enter {
  opacity: 1;
  visibility: visible;
}
/* 回车后弹出的模拟指纹验证，验证通过才解除保护 */
.depart-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: #04090cd9;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.departure-demo[data-state="auth"] .depart-lock {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.depart-fingerprint {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.depart-lock:hover .depart-fingerprint {
  color: #a3fff6;
}
.depart-lock-title {
  font-size: 9px;
  font-weight: 550;
  color: #e6f4f2;
}
.depart-lock-hint {
  font-size: 8px;
  color: #9fd8d2;
}
.depart-base {
  height: 8px;
  border-radius: 2px 2px 9px 9px;
  background: linear-gradient(#516573, #223240);
  width: 108%;
  margin-left: -4%;
  box-shadow: 0 12px 20px #0007;
}
.device-label {
  display: block;
  font-size: 10px;
  color: #7993a0;
  margin-top: 14px;
  text-align: center;
  white-space: nowrap;
}
.phone-device {
  position: absolute;
  left: calc(63% + var(--depart-progress, 0) * 24%);
  top: 25px;
  width: 79px;
  height: 147px;
  border: 3px solid #45616b;
  border-radius: 17px;
  background: linear-gradient(145deg, #1c4244, #0e1a26 80%);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 25px #0007;
  transform: rotate(calc(var(--depart-progress, 0) * 8deg));
  opacity: calc(1 - var(--depart-progress, 0) * 0.58);
  transition:
    left 0.25s ease-out,
    transform 0.25s ease-out,
    opacity 0.25s;
}
.phone-notch {
  position: absolute;
  width: 27px;
  height: 6px;
  top: 6px;
  border-radius: 4px;
  background: #090e13;
}
.phone-symbol {
  font-size: 31px;
  color: var(--accent);
  line-height: 1;
}
.phone-time {
  font: 13px var(--mono);
  margin-top: 13px;
  color: #98b8bf;
}
.phone-device > .device-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.connection-line {
  position: absolute;
  left: 48%;
  right: 28%;
  top: 100px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 6px,
    transparent 6px 13px
  );
  box-shadow: 0 0 10px #35d4c733;
  animation: connection-flow 1.4s linear infinite;
  opacity: calc(1 - var(--depart-progress, 0));
  transition: opacity 0.25s;
}
.connection-line > span {
  position: absolute;
  left: 45%;
  top: -16px;
  width: 32px;
  height: 32px;
  border: 1px solid #3d8c84;
  border-radius: 50%;
  background: #13292b;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 20px;
}
.departure-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, #35d4c727, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 1s;
}
.departure-demo[data-state="protected"] .departure-glow,
.departure-demo[data-state="returned"] .departure-glow {
  opacity: 1;
}
.departure-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid #26383f;
  padding-top: 24px;
}
.departure-timeline > div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #536d7c;
  transition: color 0.5s;
}
.departure-timeline > div.is-active {
  color: var(--accent);
}
.departure-timeline > div > span {
  font: 10px var(--mono);
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.departure-timeline strong {
  font-size: 12px;
  font-weight: 500;
}
.departure-timeline > i {
  font-size: 18px;
  color: #425866;
  font-style: normal;
}
.departure-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.departure-bottom .demo-status {
  margin: 0;
}
.departure-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.departure-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 27px;
}
.departure-details > div {
  max-width: 780px;
}
.departure-details p:first-child {
  font-size: 12px;
  color: #a0b3bd;
  line-height: 1.9;
}
.departure-details .small-note {
  margin-top: 12px;
}
.departure-details > .text-button {
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 3px;
}
.install-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.install-copy > p {
  margin-top: 24px;
}
.download-button {
  margin-top: 26px;
  font-size: 12px;
  padding-inline: 20px;
  min-height: 47px;
}
.terminal {
  border: 1px solid #2b424c;
  background: #111f2c;
  border-radius: 12px;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 48px;
  padding: 0 17px;
  font: 10px var(--mono);
  color: #6b8596;
  border-bottom: 1px solid #283b474a;
}
.terminal-bar .window-dots i {
  width: 7px;
  height: 7px;
}
.terminal-bar .copy-button {
  margin-left: auto;
}
.copy-button {
  font-size: 10px;
}
.terminal pre {
  font: 11px/2.2 var(--mono);
  color: #c1d2db;
  padding: 24px 20px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal code {
  font: inherit;
}
.install-guide > .small-note {
  margin-top: 17px;
}
.setup-guide {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  color: #b9c9d2;
}
summary::-webkit-details-marker {
  display: none;
}
.setup-guide[open] summary > span:last-child {
  transform: rotate(45deg);
}
.setup-guide ol {
  padding-left: 22px;
  margin: 5px 0 23px;
}
.setup-guide li {
  padding-left: 5px;
  margin-block: 15px;
}
.setup-guide li::marker {
  color: var(--accent);
  font: 11px var(--mono);
}
.setup-guide h3 {
  font-size: 12px;
  color: #c8d6dc;
  font-weight: 550;
}
.setup-guide p {
  font-size: 11px;
  color: #718e9f;
  margin-top: 8px;
  line-height: 1.9;
}
.quarantine-command {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  background: #11212b;
  border: 1px solid #223b4a;
  border-radius: 7px;
  margin-top: 12px;
}
.quarantine-command code {
  font: 10px/1.9 var(--mono);
  overflow-wrap: anywhere;
  flex: 1;
}
.quarantine-command .copy-button {
  flex: none;
  max-width: 60px;
}
#copy-status {
  font-size: 11px;
  color: var(--accent);
  min-height: 22px;
  margin-top: 10px;
}
.boundary {
  grid-column: 1/-1;
  display: flex;
  gap: 55px;
  align-items: flex-start;
  padding-top: 29px;
  border-top: 1px solid var(--line);
  margin-top: 5px;
}
.boundary > div {
  max-width: 950px;
}
.boundary h3 {
  font-size: 13px;
  color: #a3b8c4;
  font-weight: 550;
}
.boundary p {
  font-size: 10px;
  color: #5d7b8b;
  margin-top: 12px;
  line-height: 2;
}
.boundary > .text-button {
  white-space: nowrap;
  margin-left: auto;
}
.footer {
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-block: 27px;
}
.footer .brand {
  font-size: 21px;
  gap: 9px;
}
.footer p {
  font-size: 10px;
  color: #597585;
}
.footer > div {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 10px;
  color: #8199a9;
}
.footer a:hover {
  color: var(--accent);
}
dialog {
  width: min(970px, calc(100% - 40px));
  max-height: 92vh;
  padding: 24px;
  border-radius: 16px;
  background: #101923;
  border: 1px solid #385762;
  color: var(--ink);
  box-shadow: 0 30px 150px #000b;
}
dialog::backdrop {
  background: #020609d9;
  backdrop-filter: blur(9px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.dialog-heading button {
  border: 0;
  background: #24343f;
  color: #c5d8e2;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  flex: none;
}
dialog > img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  margin: auto;
  border-radius: 10px;
}
dialog > p {
  font-size: 10px;
  color: #708b9b;
  margin-top: 15px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 99;
  background: var(--accent);
  color: #102b2b;
  padding: 10px 14px;
  border-radius: 6px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.reveal.in-view {
  animation: reveal 0.8s ease-out both;
}
.motion-paused * {
  animation-play-state: paused !important;
}
.motion-paused .reveal {
  animation: none !important;
}
html[lang="en"] .hero h1 {
  font-size: clamp(43px, 4.4vw, 64px);
  letter-spacing: -2.8px;
}
html[lang="en"] h2 {
  font-size: clamp(30px, 2.85vw, 42px);
  letter-spacing: -1.6px;
}
html[lang="en"] .hero-copy {
  padding-bottom: 0;
}
html[lang="en"] .intro {
  font-size: 15px;
}
html[lang="en"] .departure-actions {
  gap: 16px;
}
@keyframes breathe {
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px #ffc76a40;
  }
}
@keyframes signal {
  50% {
    width: 22px;
    opacity: 0.4;
  }
}
@keyframes pointer-path {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(100px, 20px);
  }
  50% {
    transform: translate(80px, 55px);
  }
  75% {
    transform: translate(140px, 35px);
  }
}
@keyframes lid-pointer-path {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-40px, 12px);
  }
  66% {
    transform: translate(-14px, 30px);
  }
}
@keyframes task-line {
  50% {
    opacity: 0.35;
    transform: scaleX(0.9);
    transform-origin: left;
  }
}
@keyframes connection-flow {
  to {
    background-position: 26px 0;
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .header {
    gap: 23px;
  }
  .header nav {
    gap: 23px;
  }
  .header-tools {
    gap: 17px;
  }
  .hero {
    gap: 25px;
    padding-top: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 53px;
  }
  .intro {
    font-size: 14px;
  }
  .actions {
    gap: 11px;
    flex-wrap: wrap;
  }
  .button {
    font-size: 12px;
    padding-inline: 19px;
    gap: 14px;
  }
  .hero-visual {
    height: 425px;
  }
  .agent-trace {
    width: 245px;
    font-size: 10px;
  }
  .trace-row {
    height: 64px;
  }
  .hero-display {
    top: 115px;
    width: 67%;
  }
  .hero-mode {
    bottom: 39px;
  }
  .visual-caption {
    bottom: 8px;
  }
  .mode-control button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .capability-strip {
    gap: 10px;
    font-size: 10px;
  }
  .section {
    padding-block: 72px;
  }
  .section-heading {
    gap: 45px;
    margin-bottom: 40px;
  }
  .section-heading > p,
  .story-copy > p,
  .install-copy > p {
    font-size: 13px;
  }
  .workflow-layout {
    gap: 55px;
  }
  .mode-explanation {
    padding: 23px 19px;
    gap: 12px;
  }
  .mode-explanation h3 {
    font-size: 15px;
  }
  .mode-explanation p {
    font-size: 11px;
  }
  .story-section {
    gap: 40px;
  }
  .laptop-stage {
    height: 330px;
  }
  .angle-readout {
    font-size: 17px;
    bottom: 39px;
  }
  .lid-controls {
    padding: 19px;
  }
  .demo-control-heading {
    gap: 13px;
    font-size: 10px;
  }
  .threshold-row {
    gap: 13px;
  }
  .threshold-row button {
    padding: 5px 10px;
  }
  .departure-demo {
    padding-inline: 25px;
  }
  .departure-actions {
    gap: 13px;
  }
  .departure-actions .text-button {
    font-size: 10px;
  }
  .install-section {
    gap: 45px;
  }
  .terminal pre {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  :root {
    scroll-padding-top: 56px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 64px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  /* 移动端也要展示完整导航菜单 */
  .header nav {
    margin-left: auto;
    gap: 12px;
    font-size: 11px;
  }
  .header-tools {
    gap: 12px;
  }
  .github {
    display: none;
  }
  .language-switch {
    gap: 4px;
  }
  .language-switch button {
    font-size: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    gap: 30px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: clamp(44px, 10vw, 66px);
    letter-spacing: -2.2px;
  }
  .intro {
    font-size: 14px;
    max-width: 540px;
    margin-top: 22px;
  }
  .actions {
    margin-top: 25px;
    gap: 13px;
  }
  .button {
    min-height: 47px;
    font-size: 12px;
    padding-inline: 20px;
  }
  .compatibility {
    font-size: 9px;
    margin-top: 20px;
  }
  .hero-visual {
    height: 405px;
    max-width: 560px;
    width: 100%;
    margin: auto;
  }
  .agent-trace {
    width: 59%;
    top: 13px;
    transform: rotateZ(-3deg);
  }
  .trace-header {
    padding: 14px 13px;
    font-size: 10px;
  }
  .trace-rows {
    padding-inline: 13px;
  }
  .trace-row {
    height: 61px;
    gap: 8px;
  }
  .trace-row code {
    font-size: 10px;
  }
  .trace-row div > span {
    font-size: 8px;
  }
  .trace-footer {
    font-size: 8px;
    padding: 14px 13px;
  }
  .trace-light {
    right: 0;
  }
  .hero-display {
    width: 64%;
    top: 91px;
    transform: rotateZ(calc(var(--mode-progress, 0) * 3deg));
    border-radius: 11px;
  }
  .hero-mode {
    bottom: 36px;
  }
  .mode-control button {
    min-height: 43px;
    font-size: 10px;
  }
  .visual-caption {
    bottom: 7px;
    font-size: 8px;
  }
  .capability-strip {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    padding-block: 23px;
    margin-top: 0;
    font-size: 10px;
  }
  .capability-strip > span {
    justify-content: flex-start;
    gap: 12px;
  }
  .capability-strip > span:nth-child(3) {
    border-left: 0;
  }
  .capability-strip > span:nth-child(even) {
    padding-left: 17px;
  }
  .capability-strip i {
    font-size: 20px;
  }
  .section {
    padding-block: 52px;
  }
  h2 {
    font-size: 35px;
    letter-spacing: -1.2px;
  }
  .section-heading {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-bottom: 30px;
  }
  .section-heading > p,
  .story-copy > p,
  .install-copy > p {
    font-size: 13px;
  }
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mode-explanation {
    padding: 22px 18px;
  }
  .mode-explanation h3 {
    font-size: 15px;
  }
  .mode-explanation p {
    font-size: 11px;
  }
  .boundary-inline {
    font-size: 9px;
    margin-inline: 0;
  }
  .real-menu {
    max-width: 320px;
    width: 85%;
    margin: auto;
  }
  .real-menu figcaption {
    font-size: 9px;
  }
  .story-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .story-copy > p {
    margin-top: 20px;
  }
  .small-note {
    font-size: 10px !important;
  }
  .story-copy > .text-button {
    margin-top: 20px;
  }
  .laptop-stage {
    height: 285px;
  }
  .laptop {
    width: 80%;
    transform: rotateY(-8deg) rotateX(8deg);
  }
  .angle-readout {
    bottom: 39px;
    right: 3px;
  }
  .lid-window {
    padding: 10px 11px 12px;
    font-size: 8px;
  }
  .lid-fingerprint {
    width: 29px;
    height: 29px;
  }
  .lid-lock-title {
    font-size: 9px;
  }
  .lid-lock-hint {
    font-size: 8px;
  }
  .lid-controls {
    padding: 19px 17px;
  }
  .demo-control-heading {
    gap: 13px;
    font-size: 10px;
  }
  .range-label {
    font-size: 10px;
  }
  .range-label output {
    font-size: 17px;
  }
  .threshold-row button {
    padding-inline: 12px;
  }
  .demo-status {
    font-size: 10px;
    margin-top: 17px;
  }
  .demo-disclaimer {
    font-size: 8px;
  }
  .departure-demo {
    padding: 17px 16px 18px;
    border-radius: 13px;
  }
  .departure-scene {
    height: 195px;
  }
  .depart-mac {
    left: 4%;
    width: 47%;
    top: 30px;
  }
  .depart-screen {
    border-width: 3px;
  }
  .depart-task {
    font-size: 8px;
    gap: 5px;
  }
  .depart-enter {
    bottom: 9%;
    font-size: 8px;
  }
  .depart-lock-title {
    font-size: 8px;
  }
  .phone-device {
    left: calc(62% + var(--depart-progress, 0) * 16%);
    top: 24px;
    width: 59px;
    height: 112px;
    border-width: 2px;
    border-radius: 13px;
  }
  .phone-symbol {
    font-size: 24px;
  }
  .phone-time {
    font-size: 10px;
  }
  .phone-device > .device-label {
    margin-top: 10px;
  }
  .device-label {
    font-size: 8px;
    margin-top: 10px;
  }
  .connection-line {
    left: 51%;
    right: 18%;
    top: 84px;
  }
  .connection-line > span {
    width: 25px;
    height: 25px;
    top: -12px;
    font-size: 17px;
  }
  .phone-device {
    transform: rotate(calc(var(--depart-progress, 0) * 9deg));
  }
  .departure-timeline {
    gap: 7px;
    padding-top: 18px;
  }
  .departure-timeline > div {
    gap: 7px;
    flex-direction: column;
    align-items: flex-start;
  }
  .departure-timeline > div > span {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .departure-timeline strong {
    font-size: 10px;
  }
  .departure-timeline > i {
    font-size: 14px;
  }
  .departure-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 19px;
  }
  .departure-actions {
    gap: 18px;
    flex-wrap: wrap;
  }
  .departure-actions .text-button {
    font-size: 9px;
  }
  .departure-details {
    flex-direction: column;
    gap: 18px;
    padding-top: 22px;
  }
  .departure-details p:first-child {
    font-size: 11px;
  }
  .departure-details > .text-button {
    font-size: 10px;
  }
  .install-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .install-copy .compatibility {
    font-size: 9px;
  }
  .download-button {
    min-height: 46px;
    padding-inline: 17px;
    font-size: 11px;
    gap: 13px;
    margin-top: 24px;
  }
  .terminal-bar {
    padding-inline: 12px;
    gap: 11px;
    font-size: 9px;
  }
  .terminal pre {
    font-size: 10px;
    padding: 19px 14px;
  }
  .copy-button {
    font-size: 9px;
  }
  .setup-guide p {
    font-size: 10px;
  }
  .quarantine-command {
    gap: 12px;
    padding: 10px;
  }
  .quarantine-command code {
    font-size: 9px;
  }
  .boundary {
    margin-top: 0;
    padding-top: 22px;
    flex-direction: column;
    gap: 20px;
  }
  .boundary > .text-button {
    margin-left: 0;
    font-size: 10px;
  }
  .boundary h3 {
    font-size: 12px;
  }
  .boundary p {
    font-size: 9px;
    margin-top: 10px;
  }
  .footer {
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 23px;
  }
  .footer .brand {
    font-size: 20px;
  }
  .footer .brand img {
    width: 26px;
    height: 26px;
  }
  .footer p {
    font-size: 9px;
  }
  .footer > div {
    margin-left: 0;
    justify-content: space-between;
    width: 100%;
    font-size: 9px;
  }
  .dialog-heading {
    margin-bottom: 15px;
  }
  .dialog-heading h2 {
    font-size: 15px;
  }
  dialog {
    padding: 17px;
  }
  dialog > p {
    font-size: 9px;
  }
  html[lang="en"] .hero h1 {
    font-size: clamp(41px, 10vw, 58px);
    letter-spacing: -2px;
  }
  html[lang="en"] h2 {
    font-size: 32px;
  }
  html[lang="en"] .intro {
    font-size: 13px;
  }
  html[lang="en"] .mode-control button {
    font-size: 10px;
  }
  html[lang="en"] .departure-timeline strong {
    font-size: 9px;
  }
  html[lang="en"] .departure-actions {
    gap: 15px;
  }
}
@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header {
    gap: 8px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .header nav {
    margin-left: auto;
    gap: 9px;
    font-size: 10px;
  }
  .header-tools {
    gap: 8px;
  }
  .github {
    display: none;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-visual {
    height: 365px;
  }
  .hero-display {
    top: 103px;
  }
  .trace-row {
    height: 54px;
  }
  .trace-header {
    padding: 13px 11px;
    font-size: 9px;
  }
  .trace-rows {
    padding-inline: 11px;
  }
  .trace-row code {
    font-size: 9px;
  }
  .trace-footer {
    padding: 11px;
    font-size: 8px;
  }
  .hero-mode {
    bottom: 35px;
  }
  .capability-strip {
    font-size: 9px;
    gap: 18px 8px;
  }
  .section-heading h2,
  .story-copy h2,
  .install-copy h2 {
    font-size: 31px;
  }
  .threshold-row > div {
    gap: 7px;
  }
  .threshold-row button {
    padding-inline: 9px;
  }
  .demo-control-heading {
    align-items: flex-start;
  }
  .demo-control-heading > .replay {
    white-space: nowrap;
  }
  .phone-device {
    left: 71%;
    width: 53px;
    height: 103px;
  }
  .departure-actions {
    gap: 13px;
  }
  html[lang="en"] .hero h1 {
    font-size: 39px;
  }
  html[lang="en"] h2 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Motion explains continuity; product pixels remain unmodified. */
.hero-display {
  animation: screen-float 7s ease-in-out infinite;
}
.agent-trace {
  animation: trace-float 7s ease-in-out infinite;
}
.trace-row.is-active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
  animation: trace-progress 2.2s linear infinite;
}
.hero-visual:before {
  content: "";
  position: absolute;
  inset: 15% 0 20%;
  z-index: -1;
  background: radial-gradient(ellipse at 75% 50%, #35d4c716, transparent 65%);
  animation: scene-glow 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes screen-float {
  50% {
    translate: 0 -7px;
  }
}
@keyframes trace-float {
  50% {
    translate: 0 4px;
  }
}
@keyframes trace-progress {
  from {
    width: 0;
    opacity: 0.4;
  }
  to {
    width: 85%;
    opacity: 1;
  }
}
@keyframes scene-glow {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-display,
  .agent-trace,
  .trace-row.is-active:after,
  .hero-visual:before {
    animation: none !important;
  }
}
