/* OneAgent public site.
   Structure follows a framed editorial grid (hairline rails, full-width section rules,
   mega-menu header). Colour comes from the monogram-v2 brand pack: charcoal, mint and
   graphite, with DESIGN.md status colours for review and success states. */

/* Michroma: SIL Open Font License 1.1, see /home/fonts/OFL.txt (copied from auth/fonts). */
@font-face {
  font-family: "Michroma";
  src: url("/home/fonts/Michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --charcoal: #151514;
  --stage-teal: #0C211F;
  --mint: #92F1BC;
  --graphite: #555454;
  --on-dark: #E4E7E5;
  --on-dark-2: oklch(80% 0.006 160);
  --ink: #151514;
  --ink-2: oklch(38% 0.006 160);
  --ink-3: oklch(51% 0.006 160);
  --canvas: oklch(97.4% 0.005 160);
  --canvas-2: oklch(94.6% 0.008 160);
  --surface: oklch(100% 0 0);
  --line: oklch(87% 0.007 160);
  --line-soft: oklch(92.4% 0.006 160);
  /* "trust" is the accent for text and small marks on light surfaces: a deep mint that keeps 4.5:1 on white. */
  --trust: oklch(46% 0.085 162);
  --trust-hover: oklch(38% 0.075 165);
  --trust-tint: oklch(95.6% 0.035 160);
  --signal: oklch(68% 0.16 155);
  --signal-ink: oklch(43% 0.1 155);
  --signal-tint: oklch(95.5% 0.04 155);
  --review: oklch(72% 0.14 80);
  --review-ink: oklch(46% 0.09 70);
  --review-tint: oklch(96.5% 0.045 85);
  --risk-ink: oklch(48% 0.16 28);
  --night: var(--charcoal);
  --dark-line: oklch(100% 0 0 / 0.09);

  --font-sans: "Geist", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --frame: 1376px;
  --gutter: clamp(16px, 2.4vw, 32px);
  --pad: clamp(20px, 4.4vw, 64px);
  --header-h: 64px;
  --bar-gap: 12px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Liquid glass, ported from the Identity sign-in recipe (auth/styles.css). */
  --glass-blur: blur(18px) saturate(170%);
  --glass-rim-dark: linear-gradient(142deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.12) 28%, rgb(255 255 255 / 0.03) 55%, rgb(146 241 188 / 0.32) 100%);
  --glass-rim-light: linear-gradient(142deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.3) 30%, rgb(21 21 20 / 0.08) 62%, rgb(31 115 80 / 0.28) 100%);
  --glass-fill-dark: linear-gradient(152deg, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0.05) 42%, rgb(255 255 255 / 0.02) 100%), rgb(14 30 27 / 0.94);
  --glass-fill-light: linear-gradient(160deg, rgb(255 255 255 / 0.85) 0%, rgb(255 255 255 / 0.5) 45%, rgb(255 255 255 / 0.35) 100%), rgb(146 241 188 / 0.12);

  --z-dropdown: 20;
  --z-sticky: 30;
  --z-drawer: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 2 * var(--bar-gap) + 16px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(zh-Hant-TW) body, body:lang(zh-Hant-TW) { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--trust); outline-offset: 3px; border-radius: 4px; }
.i { width: 20px; height: 20px; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: var(--z-drawer); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.frame {
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin-inline: auto;
  border-inline: 1px solid var(--line-soft);
}
.frame--bare { border-inline-color: transparent; }
.section { border-top: 1px solid var(--line-soft); }
.section:first-child { border-top: 0; }
.inset { padding: clamp(56px, 8vw, 112px) var(--pad); }
.inset--tight { padding-block: clamp(40px, 5vw, 72px); }
.inset--head { padding-bottom: 0; }
.inset--head .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.nb { white-space: nowrap; }
.measure { max-width: 68ch; }

/* ---------- Type ---------- */
.kicker {
  font: 400 14px/1.4 var(--font-mono);
  color: var(--ink-3);
  letter-spacing: 0;
}
.display {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}
:lang(zh-Hant-TW) .display { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.2; letter-spacing: 0.01em; font-weight: 600; }
.h-page {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
:lang(zh-Hant-TW) .h-page { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; letter-spacing: 0.01em; font-weight: 600; }
.h-section {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-3);
  max-width: 30ch;
}
.h-section b { color: var(--ink); font-weight: inherit; }
:lang(zh-Hant-TW) .h-section { line-height: 1.38; letter-spacing: 0.01em; max-width: 26em; font-weight: 500; }
.h-sub { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .h-sub { letter-spacing: 0.01em; font-weight: 600; }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
:lang(zh-Hant-TW) .lede { line-height: 1.8; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.55; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }

/* ---------- Buttons and chips ---------- */
/* Every button is a liquid-glass pill: tinted fill, backdrop blur, a specular cap on the
   upper half, a gradient rim, and a light sheen that sweeps across on hover. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; letter-spacing: 0.01em;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: box-shadow 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(104deg, transparent 40%, rgb(255 255 255 / 0.34) 48%, rgb(146 241 188 / 0.3) 50%, rgb(255 255 255 / 0.18) 52%, transparent 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, var(--cap, rgb(255 255 255 / 0.42)), rgb(255 255 255 / 0)) 0 0 / 100% 52% no-repeat;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background: var(--rim, var(--glass-rim-light));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn:active { transform: scale(0.985); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
/* Dark glass: the primary call to action on light surfaces. */
.btn--primary, .btn--dark, .btn--glass-dark {
  color: var(--on-dark);
  background: var(--glass-fill-dark);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 0 0 1px rgb(146 241 188 / 0.18), inset 0 -10px 18px -12px rgb(146 241 188 / 0.4), 0 10px 22px -14px rgb(12 33 31 / 0.75);
}
.btn--primary, .btn--dark, .btn--glass-dark { --cap: rgb(255 255 255 / 0.2); --rim: var(--glass-rim-dark); }
.btn--primary:hover, .btn--dark:hover, .btn--glass-dark:hover {
  color: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(146 241 188 / 0.36), inset 0 -10px 18px -10px rgb(146 241 188 / 0.6), 0 12px 26px -14px rgb(9 234 149 / 0.55);
}
/* Mint glass: dark sections, same recipe as the Identity primary action. */
.btn--mint {
  color: var(--on-dark);
  background: linear-gradient(180deg, rgb(146 241 188 / 0.34), rgb(146 241 188 / 0.14)), rgb(8 26 22 / 0.35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 0 0 1px rgb(146 241 188 / 0.34), inset 0 -10px 18px -12px rgb(146 241 188 / 0.5), 0 10px 24px -18px rgb(9 234 149 / 0.8);
}
.btn--mint { --cap: rgb(255 255 255 / 0.22); --rim: var(--glass-rim-dark); }
.btn--mint:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.48), inset 0 0 0 1px rgb(146 241 188 / 0.48), inset 0 -10px 18px -10px rgb(146 241 188 / 0.62), 0 12px 26px -16px rgb(9 234 149 / 0.9); }
/* Clear glass: secondary actions on light surfaces. */
.btn--outline, .btn--light {
  color: var(--ink);
  background: var(--glass-fill-light);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 1), inset 0 0 0 1px rgb(21 21 20 / 0.09), inset 0 -8px 16px -12px rgb(31 115 80 / 0.25), 0 8px 18px -14px rgb(21 21 20 / 0.35);
}
.btn--outline:hover, .btn--light:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 1), inset 0 0 0 1px rgb(31 115 80 / 0.28), inset 0 -8px 16px -10px rgb(31 115 80 / 0.35), 0 10px 22px -14px rgb(21 21 20 / 0.4); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover::before { animation: glass-sweep 0.9s var(--ease) both; }
}
@keyframes glass-sweep { to { background-position: 150% 0, 0 0; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn--primary, .btn--dark, .btn--glass-dark { background: rgb(20 36 33); }
  .btn--outline, .btn--light { background: var(--surface); }
}
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); }
.link-arrow .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow--trust { color: var(--trust); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font: 500 12.5px/1.5 var(--font-sans); white-space: nowrap;
  background: var(--canvas-2); color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.chip--plain::before { display: none; }
.chip--review { background: var(--review-tint); color: var(--review-ink); }
.chip--signal { background: var(--signal-tint); color: var(--signal-ink); }
.chip--trust { background: var(--trust-tint); color: var(--trust); }
.chip--glass { background: oklch(100% 0 0 / 0.16); color: var(--surface); backdrop-filter: blur(6px); }

/* ---------- Header ---------- */
/* Floating liquid-glass top bar (liquid-glass-panel skill). The tint alpha is the only
   transparency control: .66 keeps the light nav text at 4.5:1 even over white. */
.site-header {
  --bar-tint: 5 20 15;
  --bar-alpha: 0.66;
  position: sticky; top: var(--bar-gap); z-index: var(--z-sticky);
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin: var(--bar-gap) auto 0;
  border-radius: 20px;
  color: #F2F6F4;
  border: 1px solid rgb(221 255 235 / 0.3);
  background:
    linear-gradient(135deg, rgb(221 255 239 / 0.12), transparent 34%, rgb(146 241 188 / 0.06)),
    rgb(var(--bar-tint) / var(--bar-alpha));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), inset 0 -1px 0 rgb(146 241 188 / 0.12), 0 8px 24px -12px rgb(5 20 15 / 0.45);
  isolation: isolate;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(38% 160% at 0% 0%, rgb(146 241 188 / 0.18), transparent 70%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #10251b; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header { background: #10251b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .site-header { background: Canvas; color: CanvasText; border-color: CanvasText; }
}
.site-header__inner {
  width: 100%;
  padding-inline: clamp(14px, 1.6vw, 22px);
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--mint); border-radius: 10px; }
.brand__mark { width: 38px; height: auto; flex: none; }
.brand__wordmark { font: 400 14px/1 "Michroma", var(--font-sans); letter-spacing: 0.22em; white-space: nowrap; }
.brand--on-dark { color: var(--mint); }
.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav__item { position: static; height: 100%; display: flex; align-items: center; }
.nav__trigger, .nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 15.5px; color: var(--on-dark-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__trigger .i { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.nav__trigger:hover, .nav__link:hover, .nav__trigger[aria-expanded="true"] { color: var(--surface); }
.nav__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }
[data-nav-current="product"] .nav__item[data-nav="product"] > .nav__trigger,
[data-nav-current="solutions"] .nav__item[data-nav="solutions"] > .nav__trigger,
[data-nav-current="customers"] .nav__item[data-nav="customers"] > .nav__link,
[data-nav-current="resources"] .nav__item[data-nav="resources"] > .nav__trigger,
[data-nav-current="company"] .nav__item[data-nav="company"] > .nav__trigger { color: var(--mint); font-weight: 500; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-link { padding: 8px 12px; font-size: 15.5px; color: var(--on-dark-2); border-radius: 8px; }
.header-link:hover { color: var(--surface); }
.header-signin { min-height: 40px; padding: 8px 20px; font-size: 15px; }
.header-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.header-lang .i { width: 16px; height: 16px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; color: var(--on-dark); }
.menu-toggle .i { width: 24px; height: 24px; }

.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%; color: var(--ink);
  width: min(100vw - 2 * var(--gutter), var(--frame)); margin-inline: auto;
  z-index: var(--z-dropdown);
  padding-top: 8px;
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.nav__item.is-open .nav-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-panel__inner {
  width: 100%;
  display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
  gap: 8px; padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav-feature {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 188px; padding: 22px;
  border-radius: var(--radius-sm);
  color: var(--surface);
  background: var(--night);
}
.nav-feature::before {
  content: ""; position: absolute; inset: 0;
  background:
    url("/home/brand/oneagent-node-outline-v2.svg") right -18px top 14px / 150px auto no-repeat,
    radial-gradient(80% 90% at 0% 0%, oklch(86% 0.1 160 / 0.42), transparent 62%);
  opacity: 0.9;
}
.nav-feature > * { position: relative; }
.nav-feature strong { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.nav-feature span { font-size: 14px; color: oklch(100% 0 0 / 0.78); }
.nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 14px 18px; align-content: start; }
.nav-links__label { grid-column: 1 / -1; padding: 2px 10px 8px; font: 400 13px/1.4 var(--font-mono); color: var(--ink-3); border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.nav-link {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 12px;
  padding: 12px 10px; border-radius: var(--radius-sm);
  transition: background-color 0.18s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--canvas); }
.nav-link .i { grid-row: span 2; margin-top: 2px; color: var(--ink-2); }
.nav-link b { font-weight: 500; font-size: 15.5px; }
.nav-link small { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.nav-link .lang-tag { font: 400 12px var(--font-mono); color: var(--ink-3); margin-left: 6px; }
/* The glass bar's backdrop-filter makes it the containing block for fixed children,
   so the page dim lives on body instead of inside the header. */
.nav-scrim { display: none; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: calc(var(--z-sticky) - 1); pointer-events: none;
  background: oklch(18% 0.035 250 / 0.22);
  opacity: 0; transition: opacity 0.2s var(--ease);
}
body.nav-open::after { opacity: 1; }

.drawer {
  position: fixed; inset: 0; z-index: calc(var(--z-sticky) - 2);
  background: var(--surface); overflow-y: auto;
  padding: calc(var(--header-h) + 2 * var(--bar-gap) + 4px) var(--gutter) 32px;
  display: none;
}
.drawer.is-open { display: block; }
.drawer__group { border-bottom: 1px solid var(--line-soft); }
.drawer__trigger, .drawer__link {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; font-size: 18px; font-weight: 500; text-align: left;
}
.drawer__trigger .i { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.drawer__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }
.drawer__panel { display: grid; gap: 2px; padding: 0 0 14px; }
.drawer__panel[hidden] { display: none; }
.drawer__panel a { padding: 10px 0; color: var(--ink-2); font-size: 16px; }
.drawer__actions { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(64px, 9vw, 120px) var(--pad) clamp(44px, 5vw, 64px); }
.hero .kicker { margin-bottom: 22px; }
.hero .display { max-width: 18ch; margin-inline: auto; }
:lang(zh-Hant-TW) .hero .display { max-width: 15em; }
.hero .lede { margin: 24px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 36px; }
.hero--split { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.hero--split .hero__actions { justify-content: flex-start; }
.hero--split .lede { margin: 22px 0 0; }
.hero--plain { text-align: left; padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 64px); }
.hero--plain .lede { margin: 22px 0 0; }
.hero--plain .hero__actions { justify-content: flex-start; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font: 400 13.5px/1.4 var(--font-mono); color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.hero .breadcrumb { justify-content: center; }
.hero--split .breadcrumb, .hero--plain .breadcrumb { justify-content: flex-start; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.note .chip { flex: none; }

/* ---------- Stage (hero visual panel) ---------- */
.stage-wrap { padding: 0 var(--pad) clamp(40px, 5vw, 64px); }
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  min-height: clamp(380px, 44vw, 600px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: clamp(56px, 7vw, 96px) clamp(16px, 5vw, 72px) 0;
  background:
    radial-gradient(58% 72% at 0% 0%, oklch(86% 0.11 160 / 0.5), transparent 62%),
    radial-gradient(50% 60% at 100% 100%, oklch(34% 0.05 178 / 0.85), transparent 70%),
    var(--charcoal);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(oklch(100% 0 0 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.055) 1px, transparent 1px),
    linear-gradient(to top right, transparent calc(50% - 0.6px), oklch(100% 0 0 / 0.09) 50%, transparent calc(50% + 0.6px));
  background-size: 64px 64px, 64px 64px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
}
.stage__label { position: absolute; top: 18px; right: 18px; }
.stage__caption { position: absolute; top: 18px; left: 22px; font: 400 13px/1.4 var(--font-mono); color: oklch(100% 0 0 / 0.82); }
.stage--compact { min-height: 0; padding: clamp(48px, 5vw, 64px) clamp(16px, 3vw, 36px) 0; }
.stage--report { background: radial-gradient(58% 72% at 100% 0%, oklch(86% 0.11 160 / 0.45), transparent 62%), radial-gradient(50% 60% at 0% 100%, oklch(34% 0.05 178 / 0.85), transparent 70%), var(--charcoal); }
.stage--night { background: radial-gradient(60% 80% at 100% 0%, oklch(86% 0.11 160 / 0.32), transparent 65%), var(--stage-teal); }
.stage--center { align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Product window mock ---------- */
.app {
  width: min(100%, 1060px);
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -1px 0 oklch(100% 0 0 / 0.4), 0 6px 8px oklch(18% 0.035 250 / 0.12);
  text-align: left;
  font-size: 13.5px; line-height: 1.5;
  overflow: hidden;
}
.app--card { border-radius: 12px; }
.app__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft);
}
.app__crumbs { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.app__crumbs span { color: var(--ink-3); font-weight: 400; }
.app__crumbs .brand__mark { width: 18px; height: 18px; }
.app__bar .chip { margin-left: auto; }
.app__avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--trust-tint); color: var(--trust); font-size: 11.5px; font-weight: 600; flex: none; }
.app__body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 248px; min-height: 340px; }
.app__side { border-right: 1px solid var(--line-soft); padding: 14px 10px; display: grid; align-content: start; gap: 2px; background: var(--canvas); }
.app__side h4, .app__panel h4 { font: 400 11.5px/1.4 var(--font-mono); color: var(--ink-3); padding: 2px 8px 8px; }
.file { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 6px; color: var(--ink-2); }
.file .i { width: 16px; height: 16px; }
.file.is-active { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-soft); }
.app__main { padding: 14px 16px; min-width: 0; }
.app__main-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.app__main-head b { font-weight: 500; }
.tabs-mini { display: flex; gap: 4px; }
.tabs-mini span { padding: 3px 9px; border-radius: 6px; color: var(--ink-3); font-size: 12.5px; }
.tabs-mini span.is-on { background: var(--canvas-2); color: var(--ink); }
.sheet { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td { border: 1px solid var(--line-soft); padding: 7px 9px; vertical-align: top; overflow-wrap: anywhere; }
.sheet th { background: var(--canvas); font-weight: 500; color: var(--ink-2); text-align: left; font-size: 12.5px; }
.sheet td.num, .sheet th.num { width: 34px; text-align: center; color: var(--ink-3); }
.sheet td.is-flag { background: var(--review-tint); box-shadow: inset 0 0 0 1.5px var(--review); }
.sheet td.is-src { color: var(--ink-2); }
.sheet .ref { font: 400 11.5px var(--font-mono); color: var(--trust); }
.app__panel { border-left: 1px solid var(--line-soft); padding: 14px 14px; display: grid; align-content: start; gap: 12px; }
.flag-item { display: grid; gap: 2px; padding: 10px; border-radius: 8px; background: var(--review-tint); }
.flag-item b { font-weight: 500; color: var(--review-ink); font-size: 12.5px; }
.flag-item span { color: var(--ink-2); font-size: 12.5px; }
.app__buttons { display: flex; gap: 8px; }
.app__buttons span { flex: 1; text-align: center; padding: 7px 8px; border-radius: 999px; font-weight: 500; font-size: 12.5px; }
.app__buttons .is-primary { background: var(--ink); color: var(--surface); }
.app__buttons .is-secondary { box-shadow: inset 0 0 0 1px var(--line); }
.trace { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.trace li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; font-size: 12px; color: var(--ink-2); }
.trace time { font-family: var(--font-mono); color: var(--ink-3); }
.trace .is-wait { color: var(--review-ink); }

/* ---------- Strip (after hero) ---------- */
.strip { display: grid; grid-template-columns: minmax(220px, 0.8fr) repeat(2, minmax(0, 1fr)); }
.strip > * { padding: 28px clamp(20px, 3vw, 40px); }
.strip > * + * { border-left: 1px solid var(--line-soft); }
.strip__label { display: flex; align-items: center; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .strip__label { font-weight: 500; letter-spacing: 0.01em; }
.strip__item { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 4px 14px; align-items: start; transition: background-color 0.2s var(--ease); }
.strip__item:hover { background: var(--canvas); }
.strip__item .i { color: var(--trust); margin-top: 3px; }
.strip__item b { font-weight: 500; font-size: 17px; }
.strip__item p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.strip__item .chip { grid-column: 2; justify-self: start; margin-top: 6px; }
.strip__item .arrow { grid-column: 3; grid-row: 1; color: var(--ink-3); }

/* ---------- Steps (ordered sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.step { position: relative; padding: 26px 22px 30px; display: grid; gap: 10px; align-content: start; }
.step + .step { border-left: 1px solid var(--line-soft); }
.step__n { font: 400 13px var(--font-mono); color: var(--trust); }
.step h3 { font-size: 19px; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .step h3 { font-weight: 600; letter-spacing: 0.01em; }
.step p { color: var(--ink-2); font-size: 15px; }
.step__bar { height: 3px; border-radius: 3px; background: var(--canvas-2); overflow: hidden; }
.step__bar::after { content: ""; display: block; height: 100%; width: var(--fill, 20%); background: var(--trust); }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > * { padding: clamp(40px, 6vw, 80px) var(--pad); }
.split > * + * { border-left: 1px solid var(--line-soft); }
.dots { background-image: radial-gradient(var(--line) 1px, transparent 1.3px); background-size: 22px 22px; }
.features { display: grid; }
.feature { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line-soft); }
.feature:last-child { border-bottom: 1px solid var(--line-soft); }
.feature .i { width: 22px; height: 22px; color: var(--ink); margin-top: 3px; }
.feature b { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.feature p { grid-column: 2; color: var(--ink-2); }
.statement { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.statement .h-section { color: var(--ink); font-size: clamp(28px, 3.3vw, 44px); }

/* ---------- Framed cells ---------- */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line-soft); }
.cell { padding: 28px clamp(20px, 2.6vw, 32px) 32px; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line-soft); }
.cell + .cell { border-left: 1px solid var(--line-soft); }
.cell .i { color: var(--ink-2); }
.cell h3 { font-size: 18px; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .cell h3 { font-weight: 600; letter-spacing: 0.01em; }
.cell p { color: var(--ink-2); font-size: 15.5px; }
.cell--muted { background: var(--canvas); }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-top: 1px solid var(--line-soft); }
.compare thead th { border-top: 0; padding-top: 0; font: 400 13.5px/1.4 var(--font-mono); color: var(--ink-3); }
.compare td:first-child { color: var(--ink-2); width: 46%; }
.compare td:last-child { font-weight: 500; }
.compare td:last-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--signal); vertical-align: 0.1em; }
.compare tr:last-child td { border-bottom: 1px solid var(--line-soft); }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow__step { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--canvas); }
.flow__step--review { background: var(--review-tint); }
.flow__step .chip { justify-self: start; }
.flow__step h3 { font-size: 18px; }
:lang(zh-Hant-TW) .flow__step h3 { font-weight: 600; }
.flow__step p { color: var(--ink-2); font-size: 15px; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -11px; z-index: 1;
  width: 10px; height: 10px; border-top: 1.5px solid var(--ink-3); border-right: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
}

/* ---------- Lists ---------- */
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.ticks .i { width: 20px; height: 20px; margin-top: 3px; color: var(--signal-ink); }
.ticks--minus .i { color: var(--ink-3); }
.ticks--flag .i { color: var(--review-ink); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.two-col h3 { margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--font-sans); color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 72ch; display: grid; gap: 10px; }
.faq details > div a { color: var(--trust); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font: 400 14px/1.4 var(--font-mono); color: var(--ink-3); margin-bottom: 8px; }

/* ---------- Related and CTA ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.related a { display: grid; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--canvas); transition: background-color 0.2s var(--ease); }
.related a:hover { background: var(--canvas-2); }
.related .chip { justify-self: start; }
.related b { font-size: 18px; font-weight: 500; }
.related p { color: var(--ink-2); font-size: 15px; }
.cta-band { display: grid; grid-template-columns: minmax(180px, 0.5fr) minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
.cta-band > * { padding: 32px clamp(20px, 3vw, 40px); }
.cta-band > * + * { border-left: 1px solid var(--line-soft); }
.cta-band__brand { display: flex; align-items: center; justify-content: center; }
.cta-band__brand img { width: 64px; height: auto; }
.cta-band__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 32px; }
.cta-band__copy h2 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.25; }
:lang(zh-Hant-TW) .cta-band__copy h2 { letter-spacing: 0.01em; font-weight: 600; }
.cta-band__copy p { grid-column: 1; grid-row: 2; color: var(--ink-2); }
.cta-band__copy .btn { grid-column: 2; grid-row: 1 / span 2; }
.cta-band__art { position: relative; overflow: hidden; padding: 0; min-height: 160px; }
.cta-band__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 0% 0%, oklch(86% 0.11 160 / 0.4), transparent 65%), var(--stage-teal); }
.cta-band__art::after { content: ""; position: absolute; inset: 14px; background: url("/home/brand/oneagent-node-outline-v2.svg") center / contain no-repeat; opacity: 0.9; }
.section--dark { background: var(--charcoal); color: var(--on-dark); border-top-color: var(--charcoal); }
.section--dark .frame { border-inline-color: var(--dark-line); }
.section--dark .cta-band > * + * { border-left-color: var(--dark-line); }
.section--dark .cta-band__copy p { color: var(--on-dark-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 0; background: var(--charcoal); color: var(--on-dark); }
main > .section--dark:last-child { border-bottom: 1px solid var(--dark-line); }
.site-footer .frame { border-inline-color: var(--dark-line); }
.site-footer .footer-grid > * + *, .site-footer .footer-base { border-color: var(--dark-line); }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.1fr) repeat(4, minmax(0, 1fr)); }
.footer-grid > * { padding: 40px clamp(20px, 2.4vw, 32px) 48px; }
.footer-grid > * + * { border-left: 1px solid var(--line-soft); }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { color: var(--on-dark-2); font-size: 14.5px; max-width: 30ch; }
.footer-brand .link-arrow { color: var(--on-dark); }
.footer-brand .brand__mark { width: 44px; }
.footer-brand .brand__wordmark { font-size: 15px; }
.footer-col h2 { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--on-dark-2); font-size: 15px; }
.footer-col a:hover { color: var(--mint); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--dark-line); color: oklch(68% 0.006 160); font-size: 13.5px; }

/* ---------- Architecture diagram ---------- */
.arch { width: min(100%, 980px); display: grid; gap: 28px; justify-items: center; padding-bottom: 8px; color: var(--surface); }
.arch__node { display: grid; gap: 2px; justify-items: center; padding: 14px 22px; border-radius: 12px; background: oklch(100% 0 0 / 0.1); box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.22); text-align: center; }
.arch__node--lead { background: var(--surface); color: var(--ink); box-shadow: none; padding: 16px 28px; }
.arch__node b { font-weight: 500; font-size: 15px; }
.arch__node small { font-size: 12.5px; opacity: 0.8; }
.arch__row { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; }
.arch__row::before { content: ""; position: absolute; left: 8%; right: 8%; top: -16px; border-top: 1px dashed oklch(100% 0 0 / 0.45); }
.arch__row .arch__node { position: relative; }
.arch__row .arch__node::before { content: ""; position: absolute; top: -16px; left: 50%; height: 16px; border-left: 1px dashed oklch(100% 0 0 / 0.45); }
.arch__row .arch__node.is-live { background: oklch(100% 0 0 / 0.22); box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.75); }

/* ---------- Mini panels (product controls) ---------- */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.panel { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); background: var(--canvas); overflow: hidden; }
.panel__copy { padding: 24px 24px 18px; display: grid; gap: 8px; }
.panel__copy h3 { font-size: 19px; }
:lang(zh-Hant-TW) .panel__copy h3 { font-weight: 600; }
.panel__copy p { color: var(--ink-2); font-size: 15px; }
.panel__ui { margin: 0 16px 16px; align-self: end; padding: 14px; border-radius: 10px; background: var(--surface); font-size: 13px; display: grid; gap: 10px; }
.panel__ui .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cite { padding: 10px 12px; border-radius: 8px; background: var(--trust-tint); color: var(--ink-2); font-size: 12.5px; }
.cite b { color: var(--trust); font-weight: 500; font-family: var(--font-mono); font-size: 11.5px; display: block; }

/* ---------- Gantt (pilot timeline) ---------- */
.gantt { display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2.4fr); border-top: 1px solid var(--line-soft); }
.gantt__head, .gantt__row { display: contents; }
.gantt__head > * { padding: 12px 0; font: 400 12.5px var(--font-mono); color: var(--ink-3); border-bottom: 1px solid var(--line-soft); }
.gantt__weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.gantt__weeks span { text-align: center; }
.gantt__row > * { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.gantt__phase b { display: block; font-weight: 500; }
.gantt__phase small { color: var(--ink-2); font-size: 14px; line-height: 1.5; display: block; }
.gantt__track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: center; background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 12.5% 100%; }
.gantt__bar { grid-column: var(--from) / var(--to); height: 30px; border-radius: 999px; background: var(--trust); color: var(--surface); font-size: 12.5px; display: flex; align-items: center; padding: 0 12px; white-space: nowrap; overflow: hidden; margin-inline: 4px; }
.gantt__bar--soft { background: var(--trust-tint); color: var(--trust); }

/* ---------- Ledger (trust status) ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 20px 18px 20px 0; border-top: 1px solid var(--line-soft); }
.ledger thead th { border-top: 0; font: 400 13.5px var(--font-mono); color: var(--ink-3); padding-top: 0; }
.ledger td:first-child { font-weight: 500; width: 24%; }
.ledger td:nth-child(2) { color: var(--ink-2); }
.ledger td:last-child { width: 18%; }
.ledger tr:last-child td { border-bottom: 1px solid var(--line-soft); }

/* ---------- Demo steps ---------- */
.walk { display: grid; gap: 0; }
.walk__step { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line-soft); }
.walk__copy { display: grid; gap: 12px; }
.walk__copy .step__n { font-size: 14px; }
.walk__copy h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.25; }
:lang(zh-Hant-TW) .walk__copy h2 { font-weight: 600; letter-spacing: 0.01em; }
.walk__copy p { color: var(--ink-2); }
.walk__visual { border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); background: var(--canvas); }
.upload { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; border-radius: 10px; border: 1.5px dashed var(--line); background: var(--surface); text-align: center; }
.upload .i { width: 28px; height: 28px; color: var(--trust); }
.filecard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 14px; }
.filecard .i { color: var(--signal-ink); }
.filecard > div { min-width: 0; }
.filecard b { overflow-wrap: anywhere; font-weight: 500; }
.filecard small { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; display: block; }
.log { display: grid; gap: 8px; padding: 16px; border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.log li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.log .i { width: 16px; height: 16px; color: var(--signal-ink); }
.log .is-wait .i { color: var(--review-ink); }
.log small { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; }

/* ---------- Form ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.form-shell > * { padding: clamp(40px, 6vw, 80px) var(--pad); }
.form-shell > * + * { border-left: 1px solid var(--line-soft); background: var(--canvas); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14.5px; font-weight: 500; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--trust); box-shadow: 0 0 0 3px var(--trust-tint); }
.field [aria-invalid="true"] { border-color: var(--risk-ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .error { font-size: 13px; color: var(--risk-ink); min-height: 0; }
.field--check { grid-column: 1 / -1; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; }
.field--check input { width: 18px; height: 18px; min-height: 0; margin-top: 4px; accent-color: var(--trust); }
.field--check label { font-weight: 400; color: var(--ink-2); }
.field--check a { color: var(--trust); text-decoration: underline; text-underline-offset: 2px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status--info { background: var(--trust-tint); color: var(--ink); }
.form-status--error { background: oklch(96% 0.03 28); color: var(--risk-ink); }
.contact-facts { display: grid; gap: 22px; margin-top: 36px; }
.contact-facts div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 14px; }
.contact-facts .i { color: var(--ink-2); margin-top: 2px; }
.contact-facts b { font-weight: 500; }
.contact-facts p { grid-column: 2; color: var(--ink-2); font-size: 15px; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; display: grid; gap: 16px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 22px; margin-top: 24px; }
:lang(zh-Hant-TW) .prose h2 { font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }

/* ---------- Claim review overlay (?review=claims) ---------- */
.review-claims [data-claim] { outline: 2px dashed var(--review); outline-offset: 4px; position: relative; }
.review-claims [data-claim]::after {
  content: attr(data-claim); position: absolute; top: -12px; right: -6px; z-index: 2;
  padding: 1px 6px; border-radius: 6px; background: var(--review); color: var(--ink);
  font: 600 11px/1.5 var(--font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .app__body { grid-template-columns: 172px minmax(0, 1fr) 220px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; border-bottom: 1px solid var(--line-soft); }
  .footer-grid > .footer-col:nth-child(2) { border-left: 0; }
  .footer-grid > .footer-col:nth-child(5) { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 1060px) {
  .nav, .header-lang { display: none; }
  .menu-toggle { display: inline-flex; }
  .steps { --cols: 1 !important; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-soft); }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .step > * { grid-column: 2; }
  .step__n { grid-column: 1; grid-row: 1 / span 2; padding-top: 4px; }
  .step__bar { display: none; }
  .panels { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .app__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app__side, .app__panel { display: none; }
  .hero--split, .split, .two-col, .form-shell, .walk__step { grid-template-columns: minmax(0, 1fr); }
  .split > * + *, .form-shell > * + * { border-left: 0; border-top: 1px solid var(--line-soft); }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip > * + * { border-left: 0; border-top: 1px solid var(--line-soft); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band > * + * { border-left: 0; border-top: 1px solid var(--line-soft); }
  .cta-band__brand { display: none; }
  .cta-band > .cta-band__copy { border-left: 0; }
  .cta-band__copy { grid-template-columns: minmax(0, 1fr); }
  .cta-band__copy p, .cta-band__copy .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .cta-band__art { min-height: 88px; }
  .cell + .cell { border-left: 0; }
  .arch__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .arch__row::before { display: none; }
  .gantt { grid-template-columns: minmax(0, 1fr); }
  .gantt__head > :first-child { display: none; }
  .gantt__row > .gantt__phase { border-bottom: 0; padding-bottom: 4px; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; --bar-gap: 8px; }
  .frame { border-inline-color: transparent; width: 100%; }
  .site-header { width: calc(100% - 2 * var(--bar-gap)); border-radius: 16px; }
  .site-header__inner { gap: 8px; }
  .header-signin { padding-inline: 12px; }
  .stage-wrap { padding-inline: var(--gutter); }
  .stage { padding-inline: 12px; }
  .stage__caption { display: none; }
  .sheet .col-vi, .sheet .col-status { display: none; }
  .app__crumbs span, .app__avatar, .tabs-mini { display: none; }
  .app__bar { padding: 10px 12px; }
  .app__main { padding: 12px; }
  .app__main-head b { font-size: 12px; overflow-wrap: anywhere; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__step::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > * { padding-block: 28px; }
  .footer-grid > .footer-col:nth-child(4) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .footer-grid > .footer-col:nth-child(5) { border-left: 1px solid var(--line-soft); }
  .compare th, .compare td { padding: 14px 10px; }
  .compare td:first-child { width: 44%; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100% !important; }
  .ledger thead { display: none; }
  .ledger tr { padding: 16px 0; border-top: 1px solid var(--line-soft); }
  .ledger td { border: 0; padding: 4px 0; }
  .ledger tr:last-child td { border-bottom: 0; }
  .section-head--row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__actions .btn { width: 100%; }
  .hero--split .hero__actions .btn, .hero--plain .hero__actions .btn { width: auto; }
}
@media (max-width: 480px) {
  .nb { white-space: normal; }
  .filecard { flex-wrap: wrap; }
  .filecard .chip { margin-left: 34px !important; }
  .arch__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gantt__bar { font-size: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Footer borders on charcoal ---------- */
.site-footer .footer-grid > * { border-color: var(--dark-line) !important; }

/* ---------- Home hero: live dispatch demo (no frame rails) ---------- */
.hero-x { position: relative; overflow: hidden; }
.hero-x__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 75%);
  opacity: 0.7;
}
.hero-x__inner { position: relative; width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-x__copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero-x .display { font-size: clamp(38px, 5vw, 64px); }
:lang(zh-Hant-TW) .hero-x .display { font-size: clamp(34px, 4.8vw, 62px); line-height: 1.16; }
.hero-x .lede { max-width: 34em; }
.hero-x .hero__actions { justify-content: flex-start; margin-top: 28px; }

.dispatch {
  position: relative; isolation: isolate; overflow: hidden; margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 20px clamp(16px, 2.6vw, 32px) clamp(24px, 3vw, 34px);
  border-radius: 16px;
  background: linear-gradient(180deg, oklch(99% 0.004 160), oklch(96.5% 0.008 160));
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 2px 6px oklch(19% 0.003 106 / 0.06);
}
.dispatch__aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dispatch__aurora i { position: absolute; border-radius: 50%; filter: blur(60px); }
.dispatch__aurora i:nth-child(1) { width: 52%; height: 78%; top: -30%; left: -10%; background: radial-gradient(circle, oklch(88% 0.1 160 / 0.75), transparent 70%); animation: au-drift-a 22s ease-in-out infinite alternate; }
.dispatch__aurora i:nth-child(2) { width: 46%; height: 70%; top: -22%; right: -8%; background: radial-gradient(circle, oklch(90% 0.05 190 / 0.7), transparent 70%); animation: au-drift-b 18s ease-in-out infinite alternate; }
.dispatch__aurora i:nth-child(3) { width: 50%; height: 80%; bottom: -36%; left: 22%; background: radial-gradient(circle, oklch(86% 0.04 170 / 0.55), transparent 70%); animation: au-drift-a 26s ease-in-out infinite alternate-reverse; }
@keyframes au-drift-a { to { transform: translate(6%, 8%) scale(1.06); } }
@keyframes au-drift-b { to { transform: translate(-7%, 6%) scale(1.08); } }
.dispatch__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dispatch__wires .wire { fill: none; stroke: oklch(70% 0.03 165); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.75; }
.dispatch__wires .beam { fill: none; stroke: var(--trust); stroke-width: 1.8; stroke-linecap: round; opacity: 0; }
.dispatch__wires .spark { fill: var(--trust); opacity: 0; }
.dispatch__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dispatch__label { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--font-mono); color: var(--ink-3); }
.dispatch__dots { display: inline-flex; gap: 8px; }
.dispatch__dots button { width: 8px; height: 8px; border-radius: 50%; background: oklch(80% 0.006 160); transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
.dispatch__dots button.is-on { background: var(--charcoal); transform: scale(1.2); }
.dispatch__prompt {
  position: relative; display: flex; align-items: center; gap: 10px;
  max-width: 640px; margin: 0 auto; padding: 8px 8px 8px 18px;
  background: var(--surface); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 8px -4px oklch(19% 0.003 106 / 0.1);
}
.dispatch__prompt:focus-within { box-shadow: inset 0 0 0 1.5px var(--trust), 0 6px 8px -4px oklch(19% 0.003 106 / 0.1); }
.dispatch__prompt input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); padding: 6px 0; }
.dispatch__prompt input::placeholder { color: var(--ink-3); }
.dispatch__prompt input:focus { outline: none; }
.dispatch__send {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--on-dark); background: var(--glass-fill-dark);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), inset 0 0 0 1px rgb(146 241 188 / 0.22), inset 0 -8px 14px -10px rgb(146 241 188 / 0.5);
  transition: color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dispatch__send:hover, .dispatch__send.is-firing { color: var(--mint); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 0 0 1px rgb(146 241 188 / 0.45), inset 0 -8px 14px -8px rgb(146 241 188 / 0.7), 0 8px 18px -10px rgb(9 234 149 / 0.6); }
.dispatch__send .i { width: 18px; height: 18px; transform: rotate(-90deg); }
.dispatch__stage { position: relative; margin-top: 40px; }
/* Supervisor hub: liquid glass with a sheen that sweeps while it routes. */
.dispatch__hub {
  position: relative; isolation: isolate; overflow: hidden; width: max-content; max-width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  color: var(--on-dark); background: var(--glass-fill-dark);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -12px 20px -14px rgb(146 241 188 / 0.55), 0 12px 26px -16px rgb(12 33 31 / 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.dispatch__hub::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
  background: var(--glass-rim-dark);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.dispatch__hub::after {
  content: ""; position: absolute; inset: -10% -60%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(104deg, transparent 40%, rgb(255 255 255 / 0.14) 47%, rgb(146 241 188 / 0.3) 50%, rgb(255 255 255 / 0.1) 53%, transparent 60%);
}
.dispatch__hub.is-busy { transform: scale(1.04); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -12px 20px -12px rgb(146 241 188 / 0.75), 0 14px 30px -14px rgb(9 234 149 / 0.55); }
.dispatch__hub.is-busy::after { animation: hub-sheen 1.1s var(--ease) infinite; }
@keyframes hub-sheen { 0% { opacity: 1; transform: translateX(-40%); } 100% { opacity: 1; transform: translateX(40%); } }
.hub-mark { width: 22px; height: auto; }
.hub-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.hub-div { width: 1px; height: 16px; background: oklch(100% 0 0 / 0.2); }
.hub-status { font: 400 12.5px var(--font-mono); color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dispatch__hub.is-busy .hub-status { color: var(--mint); }
.dispatch__depts { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dept {
  display: grid; gap: 6px; align-content: start; padding: 13px 14px; border-radius: 12px;
  background: oklch(100% 0 0 / 0.86); box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.dept__icon { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dept b { font-size: 14.5px; font-weight: 600; }
.dept__status { font: 400 12px var(--font-mono); color: var(--ink-3); min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept.is-active { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--review), 0 6px 8px -4px oklch(19% 0.003 106 / 0.12); }
.dept.is-active .dept__icon { stroke: var(--review-ink); }
.dept.is-active .dept__status { color: var(--review-ink); }
.dept.is-done { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--mint); }
.dept.is-done .dept__icon, .dept.is-done .dept__status { stroke: var(--trust); color: var(--trust); }

/* ---------- Icon tiles ---------- */
.icon-tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--charcoal); color: var(--mint); }
.icon-tile .i { width: 22px; height: 22px; }
.icon-tile--soft { background: var(--trust-tint); color: var(--trust); }
.icon-tile--line { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Bento tiles ---------- */
.bento { display: grid; grid-template-columns: repeat(var(--bento-cols, 2), minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; background: var(--canvas); overflow: hidden; transition: background-color 0.25s var(--ease); }
a.tile:hover { background: var(--canvas-2); }
a.tile:hover .tile__art .mini { transform: translateY(-4px); }
.tile__art {
  position: relative; isolation: isolate; overflow: hidden; min-height: 248px;
  display: flex; align-items: flex-end; justify-content: center; padding: 40px 28px 0;
  background: radial-gradient(70% 80% at 0% 0%, oklch(86% 0.11 160 / 0.45), transparent 62%), var(--charcoal);
}
.tile__art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(oklch(100% 0 0 / 0.05) 1px, transparent 1px), linear-gradient(90deg, oklch(100% 0 0 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.tile__art--teal { background: radial-gradient(70% 80% at 100% 0%, oklch(86% 0.11 160 / 0.4), transparent 62%), var(--stage-teal); }
.tile__art--light { background: radial-gradient(70% 80% at 0% 0%, oklch(90% 0.08 160 / 0.7), transparent 62%), var(--canvas-2); }
.tile__art--light::before { background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); }
.tile__art > .chip { position: absolute; top: 16px; right: 16px; }
.tile__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-content: start; padding: 24px 26px 28px; }
.tile__body .icon-tile { grid-row: span 3; }
.tile__body h3 { font-size: 20px; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .tile__body h3 { font-weight: 600; letter-spacing: 0.01em; }
.tile__body p { color: var(--ink-2); font-size: 15.5px; }
.tile__body .link-arrow { margin-top: 6px; font-size: 15px; }
.mini { width: min(100%, 460px); background: var(--surface); border-radius: 12px 12px 0 0; padding: 14px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 -1px 0 oklch(100% 0 0 / 0.3); transition: transform 0.35s var(--ease); }
.mini--card { border-radius: 12px; margin-bottom: 28px; }
.mini__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 500; }
.mini .sheet th, .mini .sheet td { padding: 6px 8px; font-size: 12px; }
.mini .trace li { font-size: 12px; }
.mini .app__buttons span { padding: 6px 8px; font-size: 12px; }

/* ---------- Pipeline (ordered five steps on a node line) ---------- */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0 var(--pad) clamp(48px, 6vw, 80px); }
.pipeline::before { content: ""; position: absolute; left: calc(var(--pad) + 22px); right: calc(var(--pad) + 22px); top: 59px; height: 2px; background: linear-gradient(90deg, var(--graphite), var(--mint)); opacity: 0.55; }
.pipe { position: relative; display: grid; gap: 10px; align-content: start; padding-right: 20px; }
.pipe .icon-tile { position: relative; z-index: 1; }
.pipe__node { position: relative; z-index: 1; width: 12px; height: 12px; margin: 10px 0 6px 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--graphite); }
.pipe:nth-child(n+3) .pipe__node { box-shadow: 0 0 0 2px var(--trust); }
.pipe:last-child .pipe__node { background: var(--mint); box-shadow: 0 0 0 2px var(--trust); }
.pipe .step__n { font: 400 13px var(--font-mono); color: var(--trust); }
.pipe h3 { font-size: 19px; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .pipe h3 { font-weight: 600; letter-spacing: 0.01em; }
.pipe p { color: var(--ink-2); font-size: 15px; }

/* ---------- Light feature band with icon rows ---------- */
.band-canvas { background: var(--canvas); }
.iconrows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.iconrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-content: start; padding: 24px; border-radius: 14px; background: var(--surface); }
.iconrow .icon-tile { grid-row: span 2; }
.iconrow h3 { font-size: 18px; letter-spacing: -0.01em; }
:lang(zh-Hant-TW) .iconrow h3 { font-weight: 600; letter-spacing: 0.01em; }
.iconrow p { color: var(--ink-2); font-size: 15px; }
.iconrows--canvas .iconrow { background: var(--canvas); }
.iconrow .step__n { font: 400 13px var(--font-mono); color: var(--trust); }

@media (max-width: 1060px) {
  .dispatch__depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pipeline::before { left: calc(var(--pad) + 21px); right: auto; top: 0; bottom: 48px; width: 2px; height: auto; background: linear-gradient(180deg, var(--graphite), var(--mint)); }
  .pipe { grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding-right: 0; }
  .pipe .icon-tile { grid-column: 1; grid-row: 1 / span 3; }
  .pipe > :not(.icon-tile) { grid-column: 2; }
  .pipe__node { display: none; }
  .iconrows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-x__copy { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dispatch__depts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
  .hub-status { max-width: 46vw; }
  .dispatch__wires .wire { display: none; }
  .tile__art { min-height: 210px; padding: 36px 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dispatch__aurora i { animation: none; }
}

/* ---------- Bento alignment: equal art frames, mini UIs share one top line ---------- */
.bento .tile__art { height: 280px; min-height: 0; align-items: flex-start; padding-top: 44px; }
.bento .tile__art .mini { min-height: calc(100% + 1px); }
.bento .tile__art .mini--card { min-height: 0; }
.bento[style*="--bento-cols:3"] .tile__art { height: 236px; align-items: center; padding-top: 0; }

/* ---------- Hero side: rotating keyword pill (Notion-style word swap) ---------- */
.rotator-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0.4em; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; color: var(--ink); }
:lang(zh-Hant-TW) .rotator-line { letter-spacing: 0.01em; }
.rotator-line__lead { white-space: nowrap; }
.rotator { display: inline-flex; }
.rotator__pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
  height: 1.6em; padding: 0 0.6em 0 0.5em; border-radius: 999px;
  background: var(--tone-bg, oklch(94% 0.06 160)); color: var(--ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 0 0 1px rgb(21 21 20 / 0.05);
  transition: width 0.5s var(--ease), background-color 0.5s var(--ease);
}
.rotator__dot { width: 0.5em; height: 0.5em; flex: none; border-radius: 50%; background: var(--tone-dot, oklch(62% 0.15 155)); transition: background-color 0.5s var(--ease); }
.rotator__word { display: inline-block; white-space: nowrap; transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease); }
.rotator__word.is-out { transform: translateY(-70%); opacity: 0; filter: blur(4px); }
.rotator__word.is-in { transform: translateY(70%); opacity: 0; filter: blur(4px); transition: none; }
.rotator[data-tone="mint"] { --tone-bg: oklch(93% 0.07 160); --tone-dot: oklch(62% 0.15 155); }
.rotator[data-tone="amber"] { --tone-bg: oklch(93% 0.07 85); --tone-dot: oklch(74% 0.16 75); }
.rotator[data-tone="sky"] { --tone-bg: oklch(93% 0.04 220); --tone-dot: oklch(60% 0.13 235); }
.rotator[data-tone="graphite"] { --tone-bg: oklch(92% 0.004 160); --tone-dot: var(--graphite); }
.rotator-sub { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- Product line marquee ---------- */
.marquee-strip { position: relative; height: 118px; overflow: hidden; }
/* Liquid-glass brand cell: the marquee keeps moving behind it, faintly visible through the tint. */
.marquee-strip__brand {
  position: absolute; z-index: 1; inset: 0 auto 0 0; width: clamp(150px, 24%, 334px); margin: 0;
  border-right: 1px solid rgb(221 255 235 / 0.3);
  background:
    url("/home/brand/oneagent-node-outline-v2.svg") center / auto 70% no-repeat,
    radial-gradient(80% 120% at 0% 0%, rgb(146 241 188 / 0.34), transparent 65%),
    linear-gradient(135deg, rgb(221 255 239 / 0.1), transparent 34%, rgb(146 241 188 / 0.05)),
    rgb(5 20 15 / 0.74);
  -webkit-backdrop-filter: blur(2.5px) saturate(145%); backdrop-filter: blur(2.5px) saturate(145%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset -1px 0 0 rgb(146 241 188 / 0.12);
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .marquee-strip__brand { background: url("/home/brand/oneagent-node-outline-v2.svg") center / auto 70% no-repeat, #10251b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.marquee { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.marquee__track { display: flex; height: 100%; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; height: 100%; gap: clamp(36px, 5vw, 72px); padding: 0 clamp(18px, 2.5vw, 36px); }
.product-mark { display: inline-flex; align-items: center; gap: 12px; color: oklch(48% 0.006 160); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.product-mark .i { width: 26px; height: 26px; color: var(--trust); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Five-step milestones (animated) ---------- */
.milestones {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--pad) clamp(48px, 6vw, 80px);
  padding: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 44px) clamp(28px, 3.5vw, 44px);
  border-radius: 16px; color: var(--on-dark);
  background: radial-gradient(55% 90% at 0% 0%, oklch(86% 0.11 160 / 0.32), transparent 62%), radial-gradient(45% 80% at 100% 100%, oklch(34% 0.05 178 / 0.9), transparent 70%), var(--charcoal);
  --n: 5; --done: 4;
}
.milestones::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(oklch(100% 0 0 / 0.05) 1px, transparent 1px), linear-gradient(90deg, oklch(100% 0 0 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 95%); mask-image: linear-gradient(180deg, #000, transparent 95%);
}
.milestones__list { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 18px; }
.milestones__track { position: absolute; left: 28px; right: calc((100% - 4 * 18px) / 5 - 28px); top: 27px; height: 2px; background: oklch(100% 0 0 / 0.12); border-radius: 2px; }
.milestones.is-instant .milestones__fill, .milestones.is-instant .milestones__runner, .milestones.is-instant .milestone__node { transition: none; }
.milestones__fill { position: absolute; inset: 0 auto 0 0; width: var(--fill-px, calc(var(--done) / (var(--n) - 1) * 100%)); border-radius: inherit; background: linear-gradient(90deg, var(--graphite), var(--mint)); box-shadow: 0 0 12px rgb(146 241 188 / 0.55); transition: width 0.9s var(--ease); }
.milestones__runner { position: absolute; top: 50%; left: var(--fill-px, calc(var(--done) / (var(--n) - 1) * 100%)); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(146 241 188 / 0.18), 0 0 18px rgb(146 241 188 / 0.9); transition: left 0.9s var(--ease); }
.milestone { position: relative; display: grid; gap: 10px; align-content: start; }
.milestone__node {
  position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  color: var(--on-dark-2); background: rgb(14 30 27 / 0.9);
  box-shadow: inset 0 0 0 1.5px oklch(100% 0 0 / 0.16);
  transition: color 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.milestone__node .i { width: 24px; height: 24px; }
.milestone__node::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(146 241 188 / 0.5); opacity: 0; transform: scale(0.8); }
.milestone.is-done .milestone__node { color: var(--charcoal); background: var(--mint); box-shadow: 0 0 18px rgb(146 241 188 / 0.45); }
.milestone.is-current .milestone__node { color: var(--mint); background: rgb(12 33 31 / 0.95); box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 22px rgb(146 241 188 / 0.5); transform: scale(1.06); }
.milestone.is-current .milestone__node::after { animation: node-pulse 1.4s var(--ease) infinite; }
@keyframes node-pulse { 0% { opacity: 0.9; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.35); } }
.milestone__meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font: 400 12.5px var(--font-mono); color: oklch(70% 0.01 165); }
.milestone__state { padding: 1px 8px; border-radius: 999px; background: oklch(100% 0 0 / 0.08); transition: color 0.3s var(--ease), background 0.3s var(--ease); }
.milestone.is-done .milestone__state { color: var(--mint); background: rgb(146 241 188 / 0.14); }
.milestone.is-current .milestone__state { color: var(--charcoal); background: var(--mint); }
.milestone h3 { font-size: 19px; letter-spacing: -0.01em; color: var(--surface); }
:lang(zh-Hant-TW) .milestone h3 { font-weight: 600; letter-spacing: 0.01em; }
.milestone p { color: var(--on-dark-2); font-size: 14.5px; }
.milestone .state-label-pending, .milestone .state-label-current { display: none; }
.milestone.is-pending .state-label-done, .milestone.is-current .state-label-done { display: none; }
.milestone.is-pending .state-label-pending, .milestone.is-current .state-label-current { display: inline; }
.milestone.is-pending h3, .milestone.is-pending p { opacity: 0.62; }
.milestone h3, .milestone p { transition: opacity 0.45s var(--ease); }

@media (max-width: 1060px) {
  .milestones__list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .milestone { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; }
  .milestone__node { grid-row: 1 / span 3; }
  .milestone > :not(.milestone__node) { grid-column: 2; }
  .milestone__meta { margin-top: 0; }
  .milestones__track { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .milestones__fill { inset: 0 0 auto 0; width: 100%; height: var(--fill-px, calc(var(--done) / (var(--n) - 1) * 100%)); transition: height 0.9s var(--ease); }
  .milestones__runner { top: var(--fill-px, calc(var(--done) / (var(--n) - 1) * 100%)); left: 50%; transition: top 0.9s var(--ease); }
}
@media (max-width: 720px) {
  .marquee-strip { height: 96px; }
  .marquee-strip__brand { width: 120px; background-size: auto 56%, auto, auto, auto; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .milestone.is-current .milestone__node::after, .dispatch__hub.is-busy::after { animation: none; }
}

/* ---------- Agent feed: department bots reason, read files and talk ---------- */
.agent-feed { position: relative; margin-top: 30px; min-height: 236px; }
.agent-shelf { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2.4vw, 30px); min-height: 236px; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.agent-shelf .bot-avatar { opacity: 0.92; }
.agent-feed.is-working .agent-shelf { position: absolute; inset: 0; opacity: 0; transform: scale(0.96); pointer-events: none; }
.agent-board { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.agent-board.is-solo { grid-template-columns: minmax(0, 520px); justify-content: center; }
.agent-feed.is-working .agent-board { display: grid; }

.bot-avatar { position: relative; flex: none; display: inline-block; width: 52px; height: 52px; }
.bot-avatar--sm { width: 30px; height: 30px; }
.bot { width: 100%; height: 100%; overflow: visible; }
.bot__body { transform-box: fill-box; transform-origin: 50% 100%; animation: bot-bob 3.4s var(--ease) infinite; animation-delay: var(--bob-delay, 0s); }
.bot__eyes { fill: #fff; transform-box: fill-box; transform-origin: center; animation: bot-blink 4.8s infinite; animation-delay: var(--bob-delay, 0s); }
.bot__happy { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.is-thinking .bot__eyes { animation: bot-glance 1.8s var(--ease) infinite alternate; }
.is-talking .bot__eyes, .bubble.is-typing .bot__eyes { animation: bot-chatter 0.36s ease-in-out infinite alternate; }
.is-talking .bot__body { animation-duration: 0.9s; }
.is-done .bot__eyes { opacity: 0; animation: none; }
.is-done .bot__happy { opacity: 1; }
.agent-shelf__slot { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.agent-shelf__slot:nth-child(odd) .bot__body { animation-duration: 3.9s; }
@keyframes bot-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-2.5px) scale(0.98, 1.03); } 55% { transform: translateY(-2.5px) scale(0.98, 1.03); } 80% { transform: translateY(0) scale(1.03, 0.97); } }
@keyframes bot-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }
@keyframes bot-glance { from { transform: translateX(-2px); } to { transform: translateX(2.5px) translateY(-0.6px); } }
@keyframes bot-chatter { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-1.5px) scaleY(0.82); } }

.bot-card {
  display: grid; gap: 12px; padding: 16px; border-radius: 14px;
  background: oklch(100% 0 0 / 0.9); box-shadow: inset 0 0 0 1px var(--line-soft), 0 6px 8px -6px oklch(19% 0.003 106 / 0.12);
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bot-card.is-in { opacity: 1; transform: none; }
.bot-card.is-done { box-shadow: inset 0 0 0 1.5px var(--mint), 0 6px 8px -6px oklch(19% 0.003 106 / 0.12); }
.bot-card__head { display: flex; align-items: center; gap: 12px; }
.bot-card__head b { display: block; font-size: 15px; font-weight: 600; }
.bot-card__status { font: 400 12px var(--font-mono); color: var(--ink-3); }
.bot-card.is-thinking .bot-card__status { color: var(--review-ink); }
.bot-card.is-done .bot-card__status { color: var(--trust); }
.bot-card__thoughts { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.bot-card__thoughts li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; animation: rise-in 0.35s var(--ease) both; }
.bot-card__thoughts li::before { content: ""; width: 6px; height: 6px; margin: 7px 0 0 4px; border-radius: 50%; background: var(--line); }
.bot-card__thoughts li.is-latest::before { background: var(--review); box-shadow: 0 0 0 3px oklch(72% 0.14 80 / 0.2); }
.bot-card__files { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: var(--canvas); font: 400 12px var(--font-mono); color: var(--ink-2); animation: rise-in 0.35s var(--ease) both; }
.file-chip .i { width: 14px; height: 14px; color: var(--ink-3); }
.file-chip.is-reading { background: var(--review-tint); color: var(--review-ink); }
.file-chip.is-read .i { color: var(--trust); }

.agent-chat { display: grid; gap: 10px; align-content: start; padding-top: 6px; }
.agent-chat__label { text-align: center; font: 400 12px var(--font-mono); color: var(--ink-3); }
.bubble { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; animation: rise-in 0.35s var(--ease) both; }
.bubble p { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.bubble--right { flex-direction: row-reverse; }
.bubble--right p { border-radius: 14px 14px 4px 14px; background: var(--trust-tint); box-shadow: none; }
.bubble.is-typing p { color: var(--ink-3); letter-spacing: 0.2em; }
@keyframes rise-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1060px) {
  .agent-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .agent-chat { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .agent-board { grid-template-columns: minmax(0, 1fr); }
  .agent-chat { grid-column: auto; grid-row: auto; }
  .agent-shelf { flex-wrap: wrap; gap: 14px; min-height: 140px; }
  .agent-feed { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .bot__body, .bot__eyes, .is-thinking .bot__eyes, .is-talking .bot__eyes { animation: none !important; }
  .bot-card, .bot-card__thoughts li, .file-chip, .bubble { animation: none; transition: none; }
}
