/* Momo — momowrite.com
   Architectural editorial design system. Plain CSS, zero dependencies, strict CSP safe. */

@font-face {
  font-family: "Helix Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/HelixMono-SemiBold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #fcfcfc;
  --panel: #f5f5f5;
  --sunken: #f1f1f1;
  --raise: #ffffff;
  --line: #e4e4e4;
  --line-strong: #bdbdbd;
  --fg: #141414;
  --fg-2: #3d3d3d;
  --muted: #6e6e6e;
  --hover: #ededed;
  --side-on: #e4e4e4;

  /* Momo sky-cobalt brand accent */
  --accent: #2570b8;
  --accent-text: #1c5fa3;
  --on-accent: #ffffff;
  --accent-soft: rgba(37, 112, 184, 0.12);

  --btn: #141414;
  --btn-hover: #000000;
  --on-btn: #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --brand-font: "Helix Mono", var(--mono);
  --display: "New York", ui-serif, "Iowan Old Style", "Baskerville", "Songti SC", "STSong",
    "Noto Serif CJK SC", Georgia, serif;

  --wrap: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Momo Affect Design System radii (from AffectTokens.swift) */
  --r-key: 6px;
  --r-row: 8px;
  --r-ctrl: 10px;
  --r-btn: 12px;
  --r-card: 14px;
  --r-panel: 18px;
  --r-pill: 999px;

  --glass: color-mix(in srgb, var(--bg) 62%, transparent);
  --glass-blur: blur(20px) saturate(1.35);
  --glass-line: color-mix(in srgb, var(--fg) 11%, transparent);
  --glass-on: color-mix(in srgb, var(--fg) 8%, transparent);
  --glass-btn: color-mix(in srgb, var(--fg) 13%, transparent);
  --glass-btn-hover: color-mix(in srgb, var(--fg) 20%, transparent);

  --shot-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 24px -8px rgba(15, 23, 42, 0.08),
    0 36px 80px -28px rgba(15, 30, 60, 0.22);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0b;
    --panel: #101012;
    --sunken: #121215;
    --raise: #161619;
    --line: #232327;
    --line-strong: #3a3a40;
    --fg: #ededef;
    --fg-2: #bdbdc2;
    --muted: #8a8a92;
    --hover: #1b1b1f;
    --side-on: #232328;
    --accent: #6eb4f7;
    --accent-text: #85c2fa;
    --on-accent: #0a0a0b;
    --accent-soft: rgba(110, 180, 247, 0.16);
    --btn: #ededef;
    --btn-hover: #ffffff;
    --on-btn: #0a0a0b;
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px -28px rgba(0, 0, 0, 0.88);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #101012;
  --sunken: #121215;
  --raise: #161619;
  --line: #232327;
  --line-strong: #3a3a40;
  --fg: #ededef;
  --fg-2: #bdbdc2;
  --muted: #8a8a92;
  --hover: #1b1b1f;
  --side-on: #232328;
  --accent: #6eb4f7;
  --accent-text: #85c2fa;
  --on-accent: #0a0a0b;
  --accent-soft: rgba(110, 180, 247, 0.16);
  --btn: #ededef;
  --btn-hover: #ffffff;
  --on-btn: #0a0a0b;
  --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px -28px rgba(0, 0, 0, 0.88);
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
kbd {
  font: 500 12px/1 var(--mono);
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  background: var(--sunken);
  color: var(--fg);
  white-space: nowrap;
}
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

/* Bilingual toggle */
html[data-lang="en"] [lang="zh-Hans"]:not([data-lang-set]),
html[data-lang="zh"] [lang="en"]:not([data-lang-set]) { display: none !important; }

h1:lang(zh-Hans), h2:lang(zh-Hans), h3:lang(zh-Hans) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--btn);
  color: var(--on-btn);
  font-size: 13.5px;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 900px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.display {
  --k: 1.22;
  font-family: var(--display);
  font-size: calc(var(--size, 1em) * var(--k));
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
html[data-lang="zh"] .display {
  --k: 1;
  letter-spacing: 0;
  line-height: 1.18;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.1em;
}
.eyebrow i {
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

/* ==========================================================================
   Sticky Architectural Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 68%, transparent) 66%, transparent 100%);
  animation: rise 0.6s var(--ease) backwards;
  --rise: -8px;
}
.site-header .wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .wrap > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 13px 0 8px;
  margin-right: auto;
  border: 1px solid var(--glass-line);
  background: var(--noise) 0 0 / 160px 160px, var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  font-family: var(--brand-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.brand span {
  font-family: var(--brand-font);
  font-weight: 600;
  letter-spacing: -0.04em;
  translate: 0 0.02em;
}
.brand img {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--glass-line);
  background: var(--noise) 0 0 / 160px 160px, var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.nav a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="true"] {
  color: var(--fg);
  background: var(--glass-on);
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seg {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--glass-line);
  background: var(--noise) 0 0 / 160px 160px, var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.seg button {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  height: 32px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] {
  color: var(--fg);
  background: var(--glass-on);
}

.icon-btn {
  appearance: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-line);
  background: var(--noise) 0 0 / 160px 160px, var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .moon { display: none; }
.icon-btn[aria-pressed="true"] .sun { display: none; }
.icon-btn[aria-pressed="true"] .moon { display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  border: 1px solid transparent;
  background: var(--noise) 0 0 / 160px 160px, var(--glass-btn);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover {
  background: var(--noise) 0 0 / 160px 160px, var(--glass-btn-hover);
}
.nav-cta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Buttons (Sharp Architectural + Shimmering Aurora Blinds)
   ========================================================================== */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.18s var(--ease);
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--on-btn);
}
.btn.primary:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}
.btn .ic { width: 16px; height: 16px; flex: none; }
.btn .go { transition: translate 0.15s var(--ease); }
.btn:hover .go { translate: 3px 0; }

.btn.glow {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border: 0;
  background: #0a1220;
  color: #ffffff;
  padding: 0 21px;
  font-weight: 600;
}
.btn.glow:hover { background: #0a1220; }
.btn.glow .sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.btn-blinds {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.btn-blinds canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Atmospheric Canvas Layers (ASCII Sea & Glow Field)
   ========================================================================== */
.ascii, .glow-field {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.ascii canvas, .glow-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease-out;
}
.ascii.lit canvas, .glow-field.lit canvas { opacity: 1; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 9.5vw, 136px) 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-bg {
  inset: var(--hero-bg-top, -64px) 0 auto;
  height: calc(var(--hero-top, 360px) * 1.38);
  --fade: linear-gradient(#000 32%, rgba(0, 0, 0, 0.42) 64%, transparent 100%);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}

.hero .eyebrow {
  text-transform: none;
  letter-spacing: 0.08em;
}

.hero-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 28px 24px;
}
.hero-title {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero h1 {
  --size: clamp(32px, 4.1vw, 54px);
  text-wrap: balance;
}
html[data-lang="zh"] .hero h1 {
  --size: clamp(34px, 4.3vw, 54px);
  text-wrap: balance;
}
.hero-deck {
  --size: clamp(20px, 2.3vw, 31px);
  color: var(--fg-2);
  font-style: italic;
  margin-top: -6px;
  animation: rise 0.85s var(--ease) 0.24s both;
}
html[data-lang="zh"] .hero-deck {
  font-style: normal;
  font-size: clamp(19px, 2.1vw, 27px);
}
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero h1 .ln > span {
  display: block;
  animation: line-up 0.92s var(--ease) 0.16s both;
}
.hero h1 .ln + .ln > span { animation-delay: 0.25s; }
.hero h1 .ln + .ln { font-style: italic; }
html[data-lang="zh"] .hero h1 .ln + .ln { font-style: normal; }

.hero-side {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 6px;
}
.lede {
  color: var(--fg-2);
  font-size: 16.5px;
  line-height: 1.8;
  text-wrap: pretty;
}
html[data-lang="zh"] .lede { line-height: 1.85; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: -6px;
}
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.meta-link:hover { color: var(--fg); }
.meta-link .ic { width: 14px; height: 14px; flex: none; }
.meta-link .go { transition: translate 0.15s var(--ease); }
.meta-link:hover .go { translate: 2px 0; }
.spark-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  animation: spark-twinkle 2.8s ease-in-out infinite;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
}
.pillars li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pillars svg {
  width: 13px;
  height: 13px;
  color: var(--fg);
  flex: none;
}

/* Entrance animations */
@keyframes rise {
  0% { opacity: var(--from, 0.01); translate: 0 var(--rise, 14px); }
}
@keyframes line-up {
  0% { translate: 0 106%; }
}
@keyframes spark-twinkle {
  0%, 100% { opacity: 1; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.35; transform: rotate(45deg) scale(0.6); }
}

.hero .eyebrow { animation: rise 0.8s var(--ease) 0.08s both; }
.hero .lede { animation: rise 0.8s var(--ease) 0.34s both; }
.hero .cta-row { animation: rise 0.8s var(--ease) 0.42s both; }
.hero .hero-meta-links { animation: rise 0.8s var(--ease) 0.47s both; }
.hero .pillars { animation: rise 0.8s var(--ease) 0.52s both; }
.win-stage {
  --from: 0;
  --rise: 54px;
  animation: rise 1.05s var(--ease) 0.56s both;
}
.demo-steps {
  --from: 0;
  animation: rise 0.8s var(--ease) 0.82s both;
}

/* ==========================================================================
   Scroll-Driven 3D Interactive Stage (#stage)
   ========================================================================== */
.demo {
  margin-top: clamp(32px, 4.5vw, 56px);
}

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.win-stage {
  --tilt: 20deg;
  --shrink: 0.07;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raise);
  box-shadow: var(--shot-shadow);
  overflow: hidden;
  transform: perspective(1600px)
    rotateX(calc(var(--tilt) * (1 - var(--p))))
    scale(calc(1 - var(--shrink) * (1 - var(--p))));
  transform-origin: 50% 40%;
  will-change: transform;
}

.stage-pane {
  display: none;
  position: relative;
}
.stage-pane.active { display: block; }

/* Pane 0: Interactive Momo macOS Window Simulator */
.momo-app {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 540px;
  background: var(--raise);
  color: var(--fg);
  font-size: 13.5px;
}
.app-sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 14px;
}
.traffic {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 6px;
}
.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.traffic .win-name {
  margin-left: 8px;
  font-family: var(--brand-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg-2);
}

.side-group-label {
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-files {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-file {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-row);
  font-size: 13px;
  color: var(--fg-2);
  transition: background 0.14s, color 0.14s;
}
.side-file:hover { background: var(--hover); color: var(--fg); }
.side-file.active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 500;
}
.side-file .fbadge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-text);
}
.side-foot {
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.side-foot .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  flex: none;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-toolbar {
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
}
.app-crumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-crumb b { color: var(--fg); font-weight: 500; }

.mode-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  background: var(--panel);
  padding: 2px;
}
.mode-tabs button {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  height: 26px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.14s, background 0.14s;
}
.mode-tabs button:hover { color: var(--fg); }
.mode-tabs button.active {
  background: var(--raise);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line);
}

.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  min-height: 0;
}
.app-doc {
  padding: 26px 30px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.doc-view { display: none; }
.doc-view.active { display: block; }
.doc-view.doc-split.active { display: grid; }

.doc-preview h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.doc-preview p {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.doc-mark {
  background: color-mix(in srgb, #f5c542 32%, transparent);
  padding: 1px 5px;
  border-radius: 5px;
  border-bottom: 2px solid #d99f18;
  color: var(--fg);
}
.doc-callout {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 11px 14px;
  margin: 14px 0;
  font-size: 13.5px;
  color: var(--fg);
}
.doc-callout strong {
  display: block;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent-text);
  margin-bottom: 3px;
}
.doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-ctrl);
  overflow: hidden;
  font-size: 13px;
  margin-top: 12px;
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.doc-table th:last-child, .doc-table td:last-child { border-right: 0; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table th {
  background: var(--panel);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.doc-source pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-2);
  white-space: pre-wrap;
}
.doc-source .tok-h { color: var(--accent-text); font-weight: 500; }
.doc-source .tok-m { color: var(--fg); background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }
.doc-source .tok-q { color: var(--muted); }

.doc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.doc-split > div:first-child {
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

/* Interactive Comments Panel inside App Simulator */
.app-comments {
  background: var(--panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cm-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-quote {
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}
.cm-body {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.55;
}
.cm-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-text);
}
.cm-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-btn {
  appearance: none;
  cursor: pointer;
  width: 100%;
  height: 36px;
  border: 1px solid var(--btn);
  border-radius: var(--r-ctrl);
  background: var(--btn);
  color: var(--on-btn);
  font-size: 12.5px;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
}
.cm-btn:hover { opacity: 0.88; }
.cm-btn.done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.cm-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Pane 2: Full Snapshot Preview */
.shot-pane img {
  width: 100%;
  aspect-ratio: 16 / 9.55;
  object-fit: cover;
  object-position: top;
}

/* 3-Step Animated Progress Strip beneath Stage */
.demo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.demo-step {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  display: block;
  padding: 16px 18px 4px 0;
  color: var(--muted);
}
.demo-step + .demo-step { padding-left: 18px; }
.demo-step i {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.demo-step + .demo-step i { left: 18px; }
.demo-step.on i { transform: scaleX(1); }
.demo-step.run i { transition: transform linear; }
.demo-step b {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
}
.demo-step .num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.demo-step .desc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
}
.demo-step.on b, .demo-step:hover b { color: var(--fg); }
.demo-step.on .num, .demo-step.on .desc { color: var(--accent-text); }
.demo-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ==========================================================================
   The 5-Step Loop / Stats Strip (Editorial Architectural Hairline Strip)
   ========================================================================== */
.loop-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(56px, 7vw, 88px);
}
.loop-item {
  border-left: 1px solid var(--line);
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loop-item:first-child { border-left: 0; padding-left: 0; }
.loop-item .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-text);
  letter-spacing: 0.06em;
}
.loop-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 2px;
}
.loop-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* ==========================================================================
   Architectural Sections
   ========================================================================== */
.sec {
  border-top: 1px solid var(--line);
  margin-top: clamp(72px, 9vw, 124px);
  padding-block: clamp(72px, 9vw, 124px);
}
.sec + .sec { margin-top: 0; }

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

.head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 18px 24px;
}
.head .eyebrow { grid-column: 1 / -1; }
.head h2 {
  grid-column: 1 / span 6;
  --size: clamp(28px, 3.6vw, 44px);
}
.head .head-copy {
  grid-column: 8 / span 5;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}
html[data-lang="zh"] .head .head-copy { line-height: 1.85; }

/* Framed App Screenshots (keeps Momo macOS window corner radius) */
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raise);
  box-shadow: var(--shot-shadow);
  overflow: hidden;
}
.shot img { width: 100%; display: block; }
.shot-zoomable { cursor: zoom-in; }
.shot-zoomable::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 0.2s;
  pointer-events: none;
}
.shot-zoomable:hover::after { border-color: var(--accent); }

/* 1px Hairline 3-Column Architectural Feature Grid (app windows inside stay rounded) */
.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feats > li {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: background 0.2s;
}
.feats > li:hover {
  background: var(--raise);
}

.feat-media {
  position: relative;
  height: 236px;
  overflow: hidden;
  background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--fg) 5%, transparent), transparent);
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
  padding: 20px 20px 0;
}
.feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transition: transform 0.55s var(--ease);
}
.feats > li:hover .feat-media img { transform: translateY(-4px); }

.feat-media.tall {
  height: 310px;
  padding: 22px 26px 0;
}

.feat-t {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 24px 28px;
}
.feat-t h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
}
.feat-t .n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-text);
}
.feat-t p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-2);
}

/* Secondary 3-column mini features */
.feat-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
.feat-more li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-content: start;
  gap: 4px 12px;
}
.feat-more svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--accent-text);
}
.feat-more h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.feat-more p {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 36px 24px;
}
.split-text {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-media { grid-column: 7 / span 6; }

.split.flip .split-text { grid-column: 7 / span 6; order: 2; }
.split.flip .split-media { grid-column: 1 / span 5; order: 1; }

.split-text h2 { --size: clamp(28px, 3.6vw, 44px); }
.split-text h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
html[data-lang="zh"] .split-text h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.26; }
.split-text p.body {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.75;
}
.ticks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
}
.ticks svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: var(--accent-text);
  flex: none;
}

.narrow-shot {
  max-width: 390px;
  margin-inline: auto;
}

/* ==========================================================================
   26 AI Coding Tools Architectural Matrix
   ========================================================================== */
.tools-block {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tools-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
}
.tools-head h3 {
  font-size: 18px;
  font-weight: 600;
}
.tools-head p {
  font-size: 14px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tool-grid li {
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-2);
  transition: background 0.14s, color 0.14s;
}
.tool-grid li:hover {
  background: var(--raise);
  color: var(--fg);
}

.mark {
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.mark.none {
  -webkit-mask: none;
  mask: none;
  width: 6px;
  height: 6px;
  margin-inline: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.m-amp { --m: url(/assets/marks/amp.svg); }
.m-antigravity { --m: url(/assets/marks/antigravity.svg); }
.m-claudecode { --m: url(/assets/marks/claudecode.svg); }
.m-cline { --m: url(/assets/marks/cline.svg); }
.m-codebuddy { --m: url(/assets/marks/codebuddy.svg); }
.m-codex { --m: url(/assets/marks/codex.svg); }
.m-cursor { --m: url(/assets/marks/cursor.svg); }
.m-deepseek { --m: url(/assets/marks/deepseek.svg); }
.m-devin { --m: url(/assets/marks/devin.svg); }
.m-geminicli { --m: url(/assets/marks/geminicli.svg); }
.m-githubcopilot { --m: url(/assets/marks/githubcopilot.svg); }
.m-goose { --m: url(/assets/marks/goose.svg); }
.m-grok { --m: url(/assets/marks/grok.svg); }
.m-kilocode { --m: url(/assets/marks/kilocode.svg); }
.m-kimi { --m: url(/assets/marks/kimi.svg); }
.m-mistral { --m: url(/assets/marks/mistral.svg); }
.m-opencode { --m: url(/assets/marks/opencode.svg); }
.m-openhands { --m: url(/assets/marks/openhands.svg); }
.m-pi { --m: url(/assets/marks/pi.svg); }
.m-qwen { --m: url(/assets/marks/qwen.svg); }
.m-trae { --m: url(/assets/marks/trae.svg); }
.m-workbuddy { --m: url(/assets/marks/workbuddy.svg); }
.m-zai { --m: url(/assets/marks/zai.svg); }

/* ==========================================================================
   Native & Private Section (#native) with Glow Field + Vertical Rolling Drum
   ========================================================================== */
#native {
  position: relative;
  isolation: isolate;
}
#native > .wrap { position: relative; z-index: 1; }

.native-bg {
  inset: 0 0 0 44%;
  opacity: 0.65;
  --fade: linear-gradient(to right, transparent, #000 38%),
    linear-gradient(transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .native-bg { opacity: 0.48; }
}
:root[data-theme="dark"] .native-bg { opacity: 0.48; }

.native-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 48px 24px;
}
.native-text {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.native-text h2 { --size: clamp(28px, 3.6vw, 44px); }
.native-p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.75;
}

.native-share {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.native-n {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.native-n b {
  font-family: var(--mono);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.native-n > span {
  font-size: 15px;
  color: var(--fg-2);
}
.native-bar {
  height: 6px;
  background: var(--line);
  display: flex;
}
.native-bar i {
  width: 100%;
  background: var(--accent);
}
.native-share figcaption {
  font-size: 13px;
  color: var(--muted);
}

/* Rolling Vertical Spec Drum */
.native-live {
  grid-column: 8 / span 5;
  --h: 84px;
  --gap: 16px;
  height: calc(var(--h) * 5 + var(--gap) * 4);
  overflow: hidden;
}
.native-list {
  --k: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap);
  translate: 0 calc(var(--k) * -1 * (var(--h) + var(--gap)));
  transition: translate 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.native-list li {
  height: var(--h);
  padding: 0 26px 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.8s, filter 0.8s, border-color 0.8s;
}
.native-list .mark-ic {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex: none;
  transition: color 0.8s;
}
.native-list .no { color: var(--muted); }
.native-list .no b {
  font-weight: 500;
  text-decoration: line-through 2px;
}
.native-list [data-d="1"] { opacity: 0.5; filter: blur(1px); }
.native-list [data-d="2"] { opacity: 0.24; filter: blur(2.6px); }
.native-list [data-d="3"] { opacity: 0; filter: blur(4px); }
.native-list [data-d="0"] { border-color: var(--line-strong); }
.native-list [data-d="0"]:not(.no) { border-color: var(--accent); }
.native-list [data-d="0"]:not(.no) .mark-ic { color: var(--accent-text); }
.native-list.jump, .native-list.jump li, .native-list.jump .mark-ic { transition: none; }

/* Dual Appearance + Local Privacy Pair */
.native-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 72px);
}
.native-duo-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
  gap: 14px;
}
.native-duo-card h3 {
  font-size: 17px;
  font-weight: 600;
}
.native-duo-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-2);
}
.pair-stage {
  margin-top: auto;
  padding-top: 12px;
  position: relative;
  aspect-ratio: 16 / 10;
}
.pair-stage .shot {
  position: absolute;
  width: 76%;
}
.pair-stage .shot:first-child { left: 0; top: 0; }
.pair-stage .shot:last-child { right: 0; top: 22%; }

.private-stage {
  margin-top: auto;
  padding-top: 12px;
}
.private-stage .shot {
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
}
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary .plus {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
  transition: rotate 0.2s var(--ease), color 0.15s;
}
.faq-i summary:hover .plus, .faq-i[open] summary .plus { color: var(--fg); }
.faq-i[open] summary .plus { rotate: 45deg; }
.faq-a {
  max-width: 720px;
  padding-bottom: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-2);
}

/* ==========================================================================
   Closing CTA (#get) with Bottom Horizon ASCII Sea
   ========================================================================== */
#get {
  position: relative;
  isolation: isolate;
  --glow: clamp(130px, 16vw, 210px);
  padding-bottom: var(--glow);
}
#get > .wrap { position: relative; z-index: 1; }

.dl-bg {
  --f: var(--foot-h, 0px);
  inset: auto 0 calc(-1 * var(--f));
  height: calc(var(--glow) * 2.3 + var(--f));
  --fade: linear-gradient(to top, rgba(0, 0, 0, 0.58), #000 var(--f), transparent calc(var(--f) + var(--glow) * 0.72));
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}
.dl h2 {
  --size: clamp(30px, 4.2vw, 52px);
  margin-bottom: 16px;
}
.dl .dl-lead {
  color: var(--fg-2);
  max-width: 34em;
  margin-bottom: 28px;
  font-size: 15.5px;
}
.dl .dl-meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.dl-icon {
  width: clamp(112px, 15vw, 176px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(20, 60, 120, 0.2));
  transition: transform 0.35s var(--ease);
}
.dl-icon:hover { transform: translateY(-4px) rotate(-3deg); }

/* ==========================================================================
   Frosted Noise-Glass Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-line);
  background: var(--noise) 0 0 / 160px 160px, var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.75;
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(130px, max-content));
  gap: 36px clamp(36px, 6vw, 84px);
  padding-block: 56px 40px;
}
.foot-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 34em;
}
.foot-about .brand {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  margin-right: 0;
  font-size: 25px;
}
.foot-h {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-col a {
  color: var(--muted);
  transition: color 0.15s;
}
.foot-col a:hover { color: var(--fg); }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
}
.credits summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.credits summary:hover { color: var(--fg); }
.credits p {
  margin-top: 10px;
  max-width: 880px;
  color: var(--muted);
  font-size: 13px;
}
.credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.credits a:hover { color: var(--fg); }

/* ==========================================================================
   Lightbox Modal for Screenshots
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 10, 14, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-inner {
  position: relative;
  max-width: min(1240px, 94vw);
  max-height: 90vh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: var(--raise);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 16, 20, 0.8);
  color: #fff;
  cursor: pointer;
}
.lightbox-close:hover { background: #000; }

/* ==========================================================================
   404 Page Compatibility
   ========================================================================== */
.lost {
  min-height: calc(100svh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.lost .spirit {
  width: 132px;
  height: 132px;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
}
.lost h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  margin-top: 24px;
}
.lost .lead {
  color: var(--fg-2);
  margin-top: 12px;
  max-width: 34em;
  margin-inline: auto;
}
.lost .btn { margin-top: 28px; }

.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* ==========================================================================
   Scroll Reveals
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-title, .hero-side { grid-column: 1 / -1; }
  .head h2, .head .head-copy { grid-column: 1 / -1; }
  .loop-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 16px 18px 0;
  }
  .loop-item:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 16px; }
  .loop-item:nth-child(-n+2) { border-top: 0; }
  .loop-item:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }

  .feats, .feat-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats > li:last-child:nth-child(3) { grid-column: span 2; }

  .split-text, .split-media,
  .split.flip .split-text, .split.flip .split-media {
    grid-column: 1 / -1;
    order: 0;
  }

  .native-text, .native-live { grid-column: 1 / -1; }
  .native-live { --h: 58px; --gap: 12px; }
  .native-list li { gap: 12px; padding: 0 18px 0 16px; font-size: 22px; }
  .native-bg { inset: auto 0 0; height: 420px; }
  .native-duo { grid-template-columns: 1fr; }

  .momo-app { grid-template-columns: 1fr; min-height: auto; }
  .app-sidebar { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-doc { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 660px) {
  .nav-cta { display: none; }
  .win-stage { --tilt: 10deg; --shrink: 0.04; }
  .demo-steps { grid-template-columns: 1fr; }
  .demo-step + .demo-step { padding-left: 0; border-top: 1px solid var(--line); }
  .demo-step + .demo-step i { left: 0; }
  .feats, .feat-more { grid-template-columns: 1fr; }
  .feats > li:last-child:nth-child(3) { grid-column: auto; }
  .dl { grid-template-columns: 1fr; }
  .dl-icon { display: none; }
  .foot-main { grid-template-columns: 1fr; }
  .doc-split { grid-template-columns: 1fr; }
  .doc-split > div:first-child { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
}

/* ==========================================================================
   Rich Interactive Simulator & Section Controls (sim.js)
   ========================================================================== */
.momo-app { position: relative; }
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.side-nav-btn {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: var(--r-row);
  font-size: 13px;
  color: var(--fg-2);
  transition: background 0.14s, color 0.14s;
}
.side-nav-btn svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.side-nav-btn:hover { background: var(--hover); color: var(--fg); }
.side-nav-btn.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.side-nav-btn.active svg { color: var(--accent-text); }

.app-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.tb-icon-btn {
  appearance: none;
  cursor: pointer;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}
.tb-icon-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.tb-icon-btn.active { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.tb-icon-btn svg { width: 15px; height: 15px; }
.bell-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.bell-popover {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 20;
  width: 290px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--raise);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bell-sec-h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 6px;
}
.bell-item {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--panel);
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.14s, background 0.14s;
}
.bell-item:hover { border-color: var(--accent); background: var(--raise); }
.bell-item b { font-size: 12.5px; font-weight: 500; color: var(--fg); }
.bell-item span { font-size: 11.5px; color: var(--muted); }

.app-body.no-comments { grid-template-columns: minmax(0, 1fr); }
.app-body.no-comments .app-doc { border-right: 0; }

/* Live AI Cursor & Inline Diff */
.ai-cursor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
  background: var(--accent);
  vertical-align: 1px;
  animation: spark-twinkle 1.4s ease-in-out infinite;
}
.diff-del {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
  text-decoration: line-through;
  padding: 1px 5px;
  border-radius: var(--r-key);
}
.diff-ins {
  background: rgba(22, 163, 74, 0.16);
  color: #15803d;
  text-decoration: none;
  border-bottom: 2px solid #16a34a;
  padding: 1px 5px;
  border-radius: var(--r-key);
}
.diff-committed {
  background: var(--accent-soft);
  color: var(--fg);
  padding: 1px 5px;
  border-radius: var(--r-key);
}
:root[data-theme="dark"] .diff-del { color: #fca5a5; }
:root[data-theme="dark"] .diff-ins { color: #86efac; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .diff-del { color: #fca5a5; }
  :root:not([data-theme="light"]) .diff-ins { color: #86efac; }
}

.callout-important { border-left-color: #7c3aed; background: rgba(124, 58, 237, 0.08); }
.callout-important strong { color: #7c3aed; }
.callout-tip { border-left-color: #16a34a; background: rgba(22, 163, 74, 0.09); }
.callout-tip strong { color: #15803d; }
.callout-warn { border-left-color: #d97706; background: rgba(217, 119, 6, 0.1); }
.callout-warn strong { color: #b45309; }

.sim-mermaid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
}
.mnode {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-row);
  background: var(--raise);
  color: var(--fg);
}
.mnode-accent {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 500;
}
.marrow { color: var(--muted); }

.sim-math {
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--panel);
  font-family: var(--display);
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.01em;
}
.sim-code {
  padding: 12px 14px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  color: var(--fg-2);
}
.sim-code .ln-no {
  display: inline-block;
  width: 22px;
  color: var(--muted);
  user-select: none;
}

/* Interactive Comments Composer & Actions */
.cm-reply {
  padding: 8px 10px;
  border-radius: var(--r-row);
  background: var(--panel);
  border-left: 2px solid var(--line-strong);
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.5;
}
.cm-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.cm-btn.ghost {
  background: var(--raise);
  color: var(--fg);
  border-color: var(--line-strong);
}
.cm-btn.ghost:hover { border-color: var(--fg); opacity: 1; }
.cm-btn[disabled] { opacity: 0.65; cursor: default; }

.cm-composer {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cm-composer input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--raise);
  color: var(--fg);
  font-size: 12px;
}
.cm-composer input:focus { outline: none; border-color: var(--accent); }
.cm-composer button {
  appearance: none;
  cursor: pointer;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
}
.cm-composer button:hover { border-color: var(--fg); }

/* Simulator Home Cards & AI Projects Views */
.sim-subview {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sim-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.sim-subhead h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sim-subhead span { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); }

.sim-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sim-hcard {
  appearance: none;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.14s, background 0.14s;
}
.sim-hcard:hover { border-color: var(--accent); background: var(--raise); }
.sim-hcard b { font-size: 14px; font-weight: 600; color: var(--fg); }
.sim-hcard p { font-size: 12.5px; color: var(--fg-2); line-height: 1.55; }
.sim-hcard small { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: auto; }

.sim-proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sim-pill {
  appearance: none;
  cursor: pointer;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--fg-2);
  font-size: 12px;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}
.sim-pill:hover { border-color: var(--line-strong); color: var(--fg); }
.sim-pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

.sim-proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sim-pcard {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sim-pcard-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sim-pcard-top b { font-size: 14px; font-weight: 600; }
.sim-pcard-top span { font-size: 11.5px; color: var(--muted); }
.sim-pcard-meta { font-size: 12.5px; color: var(--fg-2); }
.sim-pcard-foot {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}
.sim-continue {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
}
.sim-continue:hover { text-decoration: underline; }

.sim-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 10px);
  z-index: 25;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: var(--btn);
  color: var(--on-btn);
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.sim-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Interactive Read Tabs & Inline Jump Links */
.shot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.shot-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 3px;
  gap: 2px;
}
.shot-tabs button {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.14s, background 0.14s;
}
.shot-tabs button:hover { color: var(--fg); }
.shot-tabs button.active {
  background: var(--raise);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line);
}
.try-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-text);
  transition: opacity 0.15s;
}
.try-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Interactive 27 AI Coding Tools Filter + Telemetry Readout (site-level square chrome) */
.tool-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-controls .sim-pill { border-radius: 0; }
.tool-grid li { cursor: pointer; }
.tool-grid li.selected {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 500;
}
.tool-readout {
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}

/* Interactive Light / Dark Curtain Comparison Slider */
.compare-stage {
  --split: 52%;
  position: relative;
  margin-top: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: 1280 / 764;
  background: var(--raise);
  user-select: none;
}
.compare-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-dark {
  clip-path: inset(0 0 0 var(--split));
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 2;
}
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  background: var(--raise);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.compare-tag {
  position: absolute;
  bottom: 10px;
  z-index: 2;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
}
.compare-tag.light { left: 10px; background: rgba(255, 255, 255, 0.88); color: #141414; border: 1px solid rgba(0,0,0,0.1); }
.compare-tag.dark { right: 10px; background: rgba(14, 14, 18, 0.86); color: #ededef; border: 1px solid rgba(255,255,255,0.16); }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

/* ==========================================================================
   Real 15,000-Note Benchmark Strip (.bench-strip) & New Interactive Views
   ========================================================================== */
.bench-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(56px, 7vw, 88px);
}
.bench-item {
  border-left: 1px solid var(--line);
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bench-item:first-child { border-left: 0; padding-left: 0; }
.bench-item b {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}
.bench-item b small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.bench-item span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
}
.bench-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .bench-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bench-item { border-left: 0; border-top: 1px solid var(--line); padding: 20px 16px 18px 0; }
  .bench-item:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 16px; }
  .bench-item:nth-child(-n+2) { border-top: 0; }
}

/* Dual-agent Codex cursor pill */
.ai-cursor-pill.codex { background: #0f9473; }

/* Native Code Editor inside Simulator */
.sim-code-editor {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg);
}
.code-line {
  display: flex;
  align-items: center;
  padding: 0 10px;
  white-space: pre-wrap;
  position: relative;
}
.code-line .ln-no {
  width: 28px;
  flex: none;
  color: var(--muted);
  user-select: none;
}
.code-line.code-band {
  background: color-mix(in srgb, #6d5ce8 13%, transparent);
  border-left: 2.5px solid #6d5ce8;
  border-radius: var(--r-key);
}
.code-ai-flag {
  margin-left: 12px;
  padding: 1px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  background: #6d5ce8;
  color: #fff;
  white-space: nowrap;
}
.ck { color: #b63274; }
.cs { color: #1a7c4e; }
.ct { color: var(--accent-text); }
.code-num { color: #1d6ec2; }
:root[data-theme="dark"] .ck { color: #f472b6; }
:root[data-theme="dark"] .cs { color: #6ee7b7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ck { color: #f472b6; }
  :root:not([data-theme="light"]) .cs { color: #6ee7b7; }
}

/* Interactive Local HTML Element Pin Picker inside Simulator */
.sim-web-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sim-web-hint {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent-text);
}
.sim-web-page {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  padding: 20px;
}
.sim-web-page h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sim-web-page > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.sim-web-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sim-web-card {
  appearance: none;
  position: relative;
  text-align: left;
  cursor: pointer;
  padding: 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--raise);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s, background 0.15s;
}
.sim-web-card:hover { border-color: var(--line-strong); }
.sim-web-card.pinned {
  border-color: #6d5ce8;
  background: color-mix(in srgb, #6d5ce8 8%, var(--raise));
}
.sim-web-card b { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.sim-web-card > span:last-child { font-size: 12px; color: var(--fg-2); line-height: 1.5; }
.pin-badge {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6d5ce8;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.pin-ai-tag {
  position: absolute;
  top: -22px;
  left: 12px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #6d5ce8;
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

/* Interactive Native Dot-Grid Infinite Whiteboard inside Simulator */
.sim-wb-wrap {
  height: 100%;
  min-height: 410px;
  display: flex;
  flex-direction: column;
}
.sim-wb-canvas {
  position: relative;
  flex: 1;
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background-color: var(--bg);
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  user-select: none;
}
.wb-sticky {
  position: absolute;
  width: 25%;
  min-width: 135px;
  padding: 12px 13px;
  border-radius: var(--r-btn);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #141414;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.wb-sticky.dragging {
  cursor: grabbing;
  z-index: 10;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transform: scale(1.03);
}
.wb-yellow { background: #fef0a5; }
.wb-blue { background: #c5e0ff; }
.wb-green { background: #c7f0d3; }
.wb-pink { background: #ffd4e1; }
.sim-wb-bar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--raise) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.sim-wb-bar button {
  appearance: none;
  cursor: pointer;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
}
.sim-wb-bar button:hover { border-color: var(--accent); color: var(--accent-text); }
.wb-tip {
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sim-web-cards { grid-template-columns: 1fr; }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .win-stage { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Pricing card (the last section)
   ========================================================================== */
.price-card {
  max-width: 480px;
  margin-top: 28px;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--raise);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.18);
}
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-name { font-family: var(--brand-font); font-size: 15px; font-weight: 600; color: var(--fg); }
.price-tag {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 600;
}
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.price-amount b { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.price-amount s { font-size: 18px; color: var(--muted); text-decoration-thickness: 1.5px; }
.price-once { font-size: 14px; color: var(--muted); }
.price-note { margin: 8px 0 18px; font-size: 13.5px; color: var(--muted); }
.price-card .ticks { margin: 0 0 22px; }
.price-card .ticks svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--accent); }
.price-card .cta-row { margin-top: 0; }

/* Semantic interactive fallback inside #momo-window before React hydrates */
.mw-ssr-fallback {
  min-height: 420px;
  padding: 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mw-ssr-fallback textarea {
  width: 100%;
  min-height: 240px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--fg);
  font: 14px/1.7 var(--mono);
  resize: vertical;
}

/* Narrow screens: the section nav is gone, so the header becomes one glass bar and page text no longer slides
   under a bare logo. */
@media (max-width: 960px) {
  .site-header {
    pointer-events: auto;
    background: var(--noise) 0 0 / 160px 160px, var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-line);
  }
}
