/* =========================================================
   UnifyX Technology: homepage styles
   Direction (unslop): exact, dependable, quietly technical.
   World: the operations desk, where paper documents become records.
   Ink neutrals tinted toward the brand navy, one blue accent used sparingly,
   brand teal reserved for the signature: a value lifted from a document.
   ========================================================= */

/* ---------- Tokens: dark first, light as a full theme ---------- */
:root {
  --bg: #08111f;
  --bg-2: #0b1626;
  --surface: #0f1b2d;
  --surface-2: #16243a;
  --line: rgba(238, 240, 245, 0.08);
  --line-strong: rgba(238, 240, 245, 0.14);
  --text: #eef0f5;
  --muted: #a3a9b8;
  --faint: #7a8296;
  --accent: #4a90f0;
  --accent-soft: rgba(74, 144, 240, 0.14);
  --teal: #64e3c2;
  --brand-ink: #eef0f5;
  --brand-teal: #64e3c2;
  --success: #4cc38a;
  --warning: #d9a03f;
  --danger: #e5484d;
  --shadow: none;
  --shadow-float: 0 24px 48px rgba(0, 0, 0, 0.45);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: "Montserrat", "Inter", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-mid: 200ms;
  --t-slow: 400ms;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7fa;
    --bg-2: #eef0f3;
    --surface: #ffffff;
    --surface-2: #eef0f3;
    --line: rgba(17, 24, 39, 0.08);
    --line-strong: rgba(17, 24, 39, 0.14);
    --text: #0a1e3f;
    --muted: #4a5568;
    --faint: #6b7280;
    --accent: #1f5bb5;
    --accent-soft: rgba(31, 91, 181, 0.08);
    --teal: #14a383;
    --brand-ink: #0a1e3f;
    --brand-teal: #14a383;
    --success: #16a34a;
    --warning: #b7791f;
    --danger: #dc2626;
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
    --shadow-float: 0 8px 24px rgba(17, 24, 39, 0.08);
    --highlight: none;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-2: #eef0f3;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --text: #0a1e3f;
  --muted: #4a5568;
  --faint: #6b7280;
  --accent: #1f5bb5;
  --accent-soft: rgba(31, 91, 181, 0.08);
  --teal: #14a383;
  --brand-ink: #0a1e3f;
  --brand-teal: #14a383;
  --success: #16a34a;
  --warning: #b7791f;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-float: 0 8px 24px rgba(17, 24, 39, 0.08);
  --highlight: none;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: var(--bg);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--text); color: var(--bg); box-shadow: var(--highlight); }
.btn--primary:hover { background: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.btn--ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-strong); }
.btn:disabled { opacity: 0.6; cursor: default; }

.icon-btn {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lang-label { font-size: 13px; font-weight: 500; }

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

kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1;
}

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease); }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__mark { width: 44px; height: 24px; flex: none; }
.brand__word { font-family: var(--font-brand); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--brand-ink); line-height: 1; }
.brand__word span { color: var(--brand-teal); }
.brand__cn { display: none; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-strong); line-height: 1; }
:root[lang="zh-CN"] .brand__cn { display: inline-block; }
.footer .brand__cn { display: inline-block; }

.nav__links { display: flex; gap: 4px; margin-left: 16px; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__burger { display: none; }

.cmdk-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 12px;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  color: var(--muted); font-size: 13px;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.cmdk-btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.cmdk-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.cmdk-btn__kbd { display: inline-flex; gap: 2px; height: 24px; }

.mobile-menu { display: grid; gap: 0; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-menu a:not(.btn) { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

@media (max-width: 1180px) { .cmdk-btn__text { display: none; } }
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-grid; }
  .cmdk-btn { width: 36px; padding: 0; justify-content: center; }
  .cmdk-btn__kbd { display: none; }
}
@media (max-width: 560px) { .nav__cta { display: none; } .nav .brand__cn { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 70% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(40px, 5.6vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
.hero__title .ln { display: block; }
.hero__title .ln + .ln { color: color-mix(in srgb, var(--text) 62%, var(--accent)); }
.hero__sub { margin-top: 24px; max-width: 34rem; font-size: clamp(17px, 1.4vw, 18px); line-height: 1.6; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 40px 0 0; border-top: 1px solid var(--line); }
.hero__facts > div { padding: 16px 24px 0 0; }
.hero__facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts dt { font-size: 13px; color: var(--faint); }
.hero__facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Engineering window: always a dark editor surface */
.devwin {
  --ed-bg: #0a0f1a; --ed-bar: #0f1624; --ed-line: rgba(214, 222, 235, 0.08); --ed-text: #d6deeb; --ed-dim: #6b7a93;
  --tk-k: #7fb4ff; --tk-s: #8fd6a8; --tk-c: #6b7a93; --tk-d: #f2c46d; --tk-n: #f29e74; --tk-f: #5fd4e0;
  border-radius: 16px; border: 1px solid rgba(214, 222, 235, 0.12); background: var(--ed-bg); color: var(--ed-text);
  box-shadow: 0 30px 80px -20px rgba(4, 10, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden; font-family: var(--font-mono); font-size: 12.5px; min-width: 0;
}
.devwin__bar { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 44px; background: var(--ed-bar); border-bottom: 1px solid var(--ed-line); }
.devwin__dots { display: flex; gap: 6px; flex: none; }
.devwin__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(214, 222, 235, 0.16); }
.devwin__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.devwin__tabs::-webkit-scrollbar { display: none; }
.devwin__tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; border: 0;
  background: transparent; color: var(--ed-dim); font-family: var(--font-sans); font-size: 12px; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.devwin__tabs button:hover { color: var(--ed-text); }
.devwin__tabs button[aria-selected="true"] { background: rgba(214, 222, 235, 0.08); color: var(--ed-text); }
.devwin__n { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(214, 222, 235, 0.18); font-family: var(--font-mono); font-size: 10px; }
.devwin__tabs button[aria-selected="true"] .devwin__n { border-color: var(--tk-f); color: var(--tk-f); }
.devwin__body { height: 420px; padding: 16px 0; overflow: hidden; }
.devwin__foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--ed-line); background: var(--ed-bar); font-size: 11px; color: var(--ed-dim); }
.devwin__live { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.devwin__progress { margin-left: auto; width: 96px; height: 2px; background: rgba(214, 222, 235, 0.1); border-radius: 2px; overflow: hidden; flex: none; }
.devwin__progress i { display: block; height: 100%; background: var(--tk-f); transform-origin: left; transform: scaleX(0); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0.55); } 100% { box-shadow: 0 0 0 8px rgba(76, 195, 138, 0); } }

.devwin__code { margin: 0; font: inherit; line-height: 1.6; }
.devwin__code .cl { display: flex; animation: rise 300ms var(--ease) both; }
.devwin__code .ln { flex: none; width: 40px; padding-right: 12px; text-align: right; color: rgba(107, 122, 147, 0.6); user-select: none; }
.devwin__code code { font: inherit; white-space: pre; }
.tk-k { color: var(--tk-k); } .tk-s { color: var(--tk-s); } .tk-c { color: var(--tk-c); font-style: italic; } .tk-d { color: var(--tk-d); } .tk-n { color: var(--tk-n); } .tk-f { color: var(--tk-f); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--tk-f); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.devwin__term { padding: 0 16px; display: grid; gap: 4px; line-height: 1.55; }
.tl { animation: rise 260ms var(--ease) both; white-space: pre-wrap; word-break: break-word; }
.tl--cmd { color: var(--ed-text); margin-top: 6px; }
.tl--cmd::before { content: "$ "; color: var(--tk-f); }
.tl--out { color: var(--ed-dim); }
.tl--ok { color: #8fd6a8; }
.tl--ok::before { content: "✓ "; }

.devwin__log { height: 100%; display: flex; flex-direction: column; padding: 0 16px; }
.devwin__logs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; line-height: 1.5; }
.rl { display: flex; gap: 12px; animation: rise 300ms var(--ease) both; }
.rt { color: var(--ed-dim); flex: none; }
.rm { min-width: 0; }
.rl--ok .rm::before { content: "✓ "; color: #8fd6a8; }
.rl--run .rm::before { content: "▸ "; color: var(--tk-k); }
.rl--warn .rm::before { content: "! "; color: var(--tk-d); }
.rl--ai .rm { color: var(--tk-f); }
.devwin__meter { display: flex; align-items: center; gap: 10px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--ed-line); color: var(--ed-dim); font-size: 11px; flex-wrap: wrap; }
.m-track { flex: 1; min-width: 80px; height: 5px; border-radius: 3px; background: rgba(214, 222, 235, 0.1); overflow: hidden; }
.m-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--tk-k), var(--tk-f)); transition: width 600ms var(--ease); }
.devwin__meter b { color: var(--ed-text); font-weight: 500; min-width: 3.5ch; text-align: right; }
.m-chip { padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(95, 212, 224, 0.35); color: var(--tk-f); }

.devwin__mon { padding: 0 16px; display: grid; gap: 16px; font-family: var(--font-sans); }
.mon__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mon__kpi { padding: 12px; border-radius: 10px; background: rgba(214, 222, 235, 0.04); border: 1px solid var(--ed-line); display: grid; gap: 4px; animation: rise 300ms var(--ease) both; }
.mon__kpi span { font-size: 11px; color: var(--ed-dim); }
.mon__kpi b { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mon__chart { display: grid; gap: 8px; font-size: 11px; color: var(--ed-dim); }
.mon__chart svg { width: 100%; height: 96px; display: block; }
.mon__area { fill: rgba(127, 180, 255, 0.12); }
.mon__line { fill: none; stroke: var(--tk-k); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mon__chart svg { animation: rise 500ms var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mon__uptime { display: grid; gap: 8px; font-size: 11px; color: var(--ed-dim); }
.mon__uptime b { color: var(--ed-text); font-weight: 500; }
.mon__bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.mon__bars i { height: 18px; border-radius: 2px; background: rgba(76, 195, 138, 0.7); }
.mon__bars i.is-warn { background: rgba(242, 196, 109, 0.85); }
.mon__note { font-size: 11px; color: var(--ed-dim); }
.mon__events { display: grid; gap: 6px; font-size: 11px; color: var(--ed-dim); }
.mon__events p { display: flex; gap: 12px; color: var(--ed-text); font-size: 12px; animation: rise 300ms var(--ease) both; }
.mon__events time { font-family: var(--font-mono); color: var(--ed-dim); }
.tk-t { color: #f2c46d; }

/* One project across the five panes: tab progress, ontology inspector, object flow */
.devwin { position: relative; isolation: isolate; }
.devwin::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--dw-a, 0deg), transparent 0 62%, rgba(100, 227, 194, 0.85) 74%, rgba(127, 180, 255, 0.6) 80%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: dw-spin 7s linear infinite;
}
@property --dw-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes dw-spin { to { --dw-a: 360deg; } }
.devwin__body { position: relative; background-image: radial-gradient(rgba(214, 222, 235, 0.07) 1px, transparent 1px); background-size: 18px 18px; }
.devwin__tabs button { position: relative; overflow: hidden; }
.devwin__tp { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--tk-f); transform-origin: left; transform: scaleX(0); }
.devwin__tabs button.is-past .devwin__n { border-color: rgba(95, 212, 224, 0.45); color: var(--tk-f); }
.devwin__model { height: 100%; padding: 0 14px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.devwin__graph { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.devwin__graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.devwin__graph::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(100, 227, 194, 0.035) 80%, rgba(100, 227, 194, 0.14) 99%, transparent);
  animation: dw-scan 3.2s var(--ease) infinite;
}
@keyframes dw-scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.devwin__insp { min-height: 96px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(95, 212, 224, 0.22); background: rgba(10, 30, 63, 0.55); display: grid; gap: 4px; font-size: 11.5px; line-height: 1.45; }
.devwin__insp.is-in { animation: rise 300ms var(--ease) both; }
.devwin__ih { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.devwin__ih b { font-weight: 600; }
.devwin__icount { margin-left: auto; color: var(--ed-dim); font-size: 11px; }
.devwin__irow { display: flex; gap: 10px; min-width: 0; color: var(--ed-text); }
.devwin__irow > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devwin__ik { flex: none; width: 56px; color: var(--ed-dim); }
.devwin__flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--ed-line); font-family: var(--font-sans); font-size: 12px; }
.devwin__obj { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--ed-line); color: var(--ed-dim); transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.devwin__obj.is-done { color: var(--ed-text); border-color: rgba(95, 212, 224, 0.3); }
.devwin__obj.is-on { color: #0a1e3f; background: var(--tk-f); border-color: var(--tk-f); box-shadow: 0 0 16px rgba(95, 212, 224, 0.45); }
.devwin__arrow { color: var(--ed-dim); }
.mon__bars i { animation: og-fade 300ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .devwin::after, .devwin__graph::after { animation: none; } }

.stack { display: flex; align-items: center; gap: 24px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.stack__label { flex: none; font-size: 13px; color: var(--faint); }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* SVG <g> nodes are placed with the transform attribute, so they fade only (a CSS transform would override their position) */
@keyframes og-fade { from { opacity: 0; } }

@media (max-width: 1040px) { .hero__inner { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .devwin__body { height: 360px; }
  .devwin { font-size: 11px; }
  .devwin__code .ln { width: 28px; padding-right: 8px; }
  .mon__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devwin__tabs button { padding: 0 8px; }
  .devwin__tabs .devwin__n { display: none; }
  .hero__facts > div { padding-right: 12px; }
  .hero__facts > div + div { padding-left: 12px; }
  .hero__facts dd { font-size: 16px; }
  .stack { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin: 0 0 48px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; line-height: 1.1; }
.section__lede { margin-top: 16px; max-width: 40rem; font-size: 17px; color: var(--muted); }
.kicker { margin-bottom: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }

/* ---------- Live document demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.demo__doc { display: grid; gap: 12px; min-width: 0; }
.demo__samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.demo__sample {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; text-align: left;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.demo__sample img { flex: none; width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); }
.demo__sample-t { display: grid; min-width: 0; }
.demo__sample-t b { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__sample-t small { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__sample:hover { border-color: var(--line-strong); }
.demo__sample[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) { .demo__samples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo__clauses { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.demo__clauses li { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); display: grid; gap: 4px; }
.demo__clauses li.is-high { border-left-color: var(--danger); }
.demo__clauses li.is-medium { border-left-color: var(--warning); }
.demo__clauses li.is-low { border-left-color: var(--success); }
.demo__clause-head { display: flex; align-items: baseline; gap: 10px; }
.demo__clause-head b { font-size: 14px; font-weight: 500; }
.demo__ref { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.demo__risk { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 4px; }
.demo__risk--high { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.demo__risk--medium { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.demo__risk--low { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.demo__clause-val { font-size: 14px; }
.demo__clause-note { font-size: 13px; color: var(--muted); }
.demo__table .mono { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.demo__table.demo__table--x { font-size: 12.5px; }
.demo__table.demo__table--x td:first-child { min-width: 92px; }
.demo__table.demo__table--x th, .demo__table.demo__table--x td { padding-inline: 6px; }
.demo__table.demo__table--x th:first-child, .demo__table.demo__table--x td:first-child { padding-left: 12px; }
.demo__viewer {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-2); max-width: 100%; display: grid; place-items: center;
}
.demo__viewer img { width: 100%; height: auto; }
.demo__pdf { display: grid; justify-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.demo__pdf svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.demo__pdf b { color: var(--text); font-weight: 500; font-size: 15px; word-break: break-all; }
.demo__drop {
  position: absolute; inset: 8px; border-radius: 8px; border: 2px dashed var(--accent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  display: grid; place-items: center; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease);
}
.demo__viewer.is-drop .demo__drop { opacity: 1; }
/* reading line: only while a live request runs */
.demo__viewer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent calc(100% - 2px), var(--teal) 0);
  transform: translateY(-100%);
}
.demo__viewer.is-scanning::after { opacity: 0.9; animation: scan 1.8s var(--ease) infinite alternate; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.demo__privacy { font-size: 12px; color: var(--faint); }

.demo__panel { display: grid; min-width: 0; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); min-height: 48px; }
.demo__mode { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.demo__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.demo__dot.is-live { background: var(--success); }
.demo__steps { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--faint); }
.demo__steps li { display: inline-flex; align-items: center; gap: 4px; }
.demo__step-n { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 10px; }
.demo__steps li.is-active { color: var(--text); }
.demo__steps li.is-active .demo__step-n { border-color: var(--accent); color: var(--accent); }
.demo__steps li.is-done { color: var(--muted); }
.demo__steps li.is-done .demo__step-n { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.demo__out { display: grid; gap: 20px; padding: 20px; min-height: 420px; align-content: start; transition: opacity var(--t-mid) var(--ease); }
.demo__out.is-loading { opacity: 0.45; }
.demo__head { display: grid; gap: 8px; }
.demo__type { justify-self: start; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.demo__summary { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.demo__block { display: grid; gap: 8px; min-width: 0; align-content: start; }
.demo__block h4 { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.demo__block h4.demo__sub { margin-top: 8px; }
.demo__fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.demo__field { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.demo__field dt { font-size: 13px; color: var(--muted); flex: none; }
.demo__field dd { margin: 0; display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.demo__val {
  font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(var(--teal), var(--teal)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; padding-bottom: 2px;
}
.demo__legend { font-size: 12px; color: var(--faint); }
.demo__conf { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.demo__conf--medium, .demo__conf--low { color: var(--warning); }
.demo__tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.demo__table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.demo__table th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.demo__table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.demo__table td:first-child { min-width: 180px; }
.demo__table .n { text-align: right; white-space: nowrap; }
.demo__table tbody tr:last-child td { border-bottom: 0; }
.demo__table tfoot td { border-bottom: 0; border-top: 1px solid var(--line); color: var(--muted); padding-block: 8px; }
.demo__table tfoot td:first-child { text-align: right; }
.demo__table tfoot tr.is-total td { color: var(--text); font-weight: 600; }
.demo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.demo__checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; }
.demo__checks li { display: flex; gap: 8px; align-items: flex-start; }
.demo__icon { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; display: grid; place-items: center; }
.demo__icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo__checks .is-ok .demo__icon { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.demo__checks .is-warn .demo__icon { color: var(--warning); background: color-mix(in srgb, var(--warning) 16%, transparent); }
.demo__muted { font-size: 13px; color: var(--faint); }
.demo__warn { font-size: 13px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--warning) 12%, transparent); }
.demo__hand { font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--line-strong); }
.demo__json summary { cursor: pointer; font-size: 13px; color: var(--muted); width: max-content; }
.demo__json summary:hover { color: var(--text); }
.demo__json pre { margin: 8px 0 0; max-height: 280px; overflow: auto; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
.demo__msg { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.demo__foot { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }

@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } .demo__viewer { max-height: 560px; overflow-y: auto; } }
@media (max-width: 640px) {
  .demo__fields, .demo__grid { grid-template-columns: 1fr; }
  .demo__viewer { max-height: 440px; }
  .demo__table td:first-child { min-width: 140px; }
  .demo__out { padding: 16px; }
  .demo__bar { padding: 12px 16px; }
}

/* ---------- Showcase ---------- */
.sc { display: grid; gap: 16px; }
.sc__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sc__tab {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  text-align: left; cursor: pointer; min-width: 0; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.sc__tab:hover { border-color: var(--line-strong); }
.sc__tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sc__ico { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.sc__tab[aria-selected="true"] .sc__ico { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.sc__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc__tt { display: grid; min-width: 0; }
.sc__tt b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__tt small { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc__stage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.9fr); border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-float); overflow: hidden; min-height: 500px; }
.sc__info { padding: 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.sc__tag { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; color: var(--faint); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line); }
.sc__info h3 { font-size: 22px; letter-spacing: -0.02em; }
.sc__text { font-size: 14px; color: var(--muted); }
.sc__label { font-size: 12px; color: var(--faint); margin-top: 4px; }
.sc__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.sc__points li { display: flex; gap: 8px; }
.sc__points li::before { content: ""; flex: none; width: 4px; height: 4px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.sc__kpis { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc__kpis div { padding: 12px 8px; border-radius: 10px; background: var(--surface-2); display: grid; gap: 2px; }
.sc__kpis dt { order: 2; font-size: 11px; color: var(--faint); line-height: 1.3; }
.sc__kpis dd { order: 1; margin: 0; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sc__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.sc__stack span { padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.sc__view { position: relative; min-width: 0; padding: 20px; background: var(--bg-2); display: flex; flex-direction: column; }
.sc__view > * { flex: 1; min-height: 0; }

/* fleet map */
.fleet { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.fleet__map { position: relative; align-self: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.fleet__map svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 420; }
.map-sea { fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.map-land { fill: var(--surface-2); stroke: var(--line-strong); }
.map-grid { stroke: var(--line); stroke-width: 1; }
.map-road { fill: none; stroke: var(--line-strong); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map-jam { fill: none; stroke: var(--warning); stroke-width: 5; stroke-linecap: round; transition: opacity 400ms; animation: jam 1.2s ease-in-out infinite alternate; }
@keyframes jam { from { stroke-opacity: 0.4; } }
.map-city { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.map-city.is-hub { fill: var(--text); stroke: none; }
.map-label { fill: var(--muted); font-size: 15px; font-family: var(--font-sans); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.map-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.map-ring { fill: var(--accent); opacity: 0.25; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(0.5); opacity: 0.5; } to { transform: scale(1.6); opacity: 0; } }
.map-tlabel { fill: var(--text); font-size: 14px; font-family: var(--font-mono); font-weight: 500; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.fleet__badge { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 2px 8px; border-radius: 4px; }
.fleet__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fleet__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.fleet__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; transition: border-color 300ms, background-color 300ms; }
.fleet__list li b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); }
.fleet__list li span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet__list li em { font-style: normal; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.fleet__list li.is-hot { border-color: var(--accent); background: var(--accent-soft); }
.fleet__feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fleet__feed li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 12px; color: var(--muted); animation: rise 300ms var(--ease) both; }
.fleet__feed time { font-family: var(--font-mono); color: var(--faint); }

/* support agent */
.chat2 { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.chat2__log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; max-height: 520px; }
.chat2__msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; animation: rise 300ms var(--ease) both; }
.chat2__msg p { margin-top: 2px; }
.chat2__who { font-size: 11px; color: var(--faint); }
.chat2__msg--user { align-self: flex-end; background: var(--surface-2); border-bottom-right-radius: 4px; }
.chat2__msg--agent { align-self: flex-start; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-bottom-left-radius: 4px; }
.chat2__tool { align-self: flex-start; display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted); animation: rise 300ms var(--ease) both; }
.chat2__tool code { font-family: var(--font-mono); color: var(--text); }
.chat2__tool code::before { content: "✓ "; color: var(--success); }
.chat2__tool.is-running code::before { content: "◌ "; color: var(--warning); }
.chat2__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chat2__done { font-size: 13px; color: var(--success); }

/* façade progress */
.site { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.site__tower { display: grid; grid-template-columns: 32px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; align-content: start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.site__lv { font-family: var(--font-mono); font-size: 10px; color: var(--faint); align-self: center; }
.site__p { display: block; height: 18px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); transition: background-color 300ms, border-color 300ms; }
.site__p.is-in { background: color-mix(in srgb, var(--teal) 75%, var(--surface)); border-color: transparent; }
.site__p.is-del { background: var(--accent-soft); border-color: var(--accent); }
.site__p.is-def { background: var(--warning); border-color: transparent; }
.site__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.site__kpis { display: grid; gap: 8px; }
.site__kpis div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.site__kpis span { font-size: 13px; color: var(--muted); }
.site__kpis b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.site__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.site__legend span { display: inline-flex; align-items: center; gap: 6px; }
.site__legend .site__p { width: 14px; height: 10px; }
.site__feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site__feed li { font-size: 12px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--teal); animation: rise 300ms var(--ease) both; }

/* forecast */
.fc { display: flex; flex-direction: column; gap: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 16px; }
.fc__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc__head .sc__label { margin: 0; }
.fc__toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.fc__toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.fc__chart { width: 100%; height: auto; display: block; }
.fc-grid { stroke: var(--line); stroke-width: 1; }
.fc-axis { fill: var(--faint); font-size: 11px; font-family: var(--font-mono); }
.fc-today { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.fc-band { fill: var(--accent); fill-opacity: 0.12; }
.fc-actual { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
line.fc-actual { stroke-dasharray: none; animation: none; }
.fc-fore { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.fc-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.fc-note { fill: var(--text); font-size: 12px; font-weight: 500; font-family: var(--font-sans); }
.fc__rec { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; color: var(--muted); }
.fc__rec b { font-size: 18px; font-weight: 500; color: var(--text); }

/* knowledge search */
.kb { display: flex; flex-direction: column; gap: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 16px; }
.kb__q { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 15px; }
.kb__q::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); }
.kb__perm { font-size: 12px; color: var(--faint); transition: opacity 300ms; }
.kb__a { font-size: 15px; line-height: 1.65; min-height: 96px; }
.kb__a sup { color: var(--accent); font-family: var(--font-mono); font-size: 11px; margin: 0 2px; }
.kb__src { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 13px; }
.kb__src li { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); animation: rise 300ms var(--ease) both; }
.kb__src li::marker { color: var(--accent); font-family: var(--font-mono); }
.kb__src b { font-weight: 500; }
.kb__src span { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.kb__src q { display: block; margin-top: 4px; color: var(--muted); quotes: none; border-left: 2px solid var(--teal); padding-left: 8px; }
.kb__replay { align-self: flex-start; }

@media (max-width: 1100px) { .sc__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .sc__stage { grid-template-columns: 1fr; }
  .sc__info { border-right: 0; border-bottom: 1px solid var(--line); }
  .fleet, .site { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sc__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sc__tabs::-webkit-scrollbar { display: none; }
  .sc__tab { flex: none; width: 200px; }
  .sc__view { padding: 12px; }
  .chat2__msg { max-width: 92%; }
}


/* ---------- Ontology graph ---------- */
.og { --og-box: var(--surface); --og-line: var(--line-strong); --og-text: var(--text); --og-dim: var(--faint); --og-acc: var(--accent); --og-teal: var(--teal); display: block; width: 100%; height: auto; overflow: visible; }
.og--dark { --og-box: #111a2b; --og-line: rgba(214, 222, 235, 0.16); --og-text: #d6deeb; --og-dim: #6b7a93; --og-acc: #7fb4ff; --og-teal: #5fd4e0; }
.og-edge { fill: none; stroke: var(--og-line); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease) forwards; }
.og-edge.is-on { stroke: var(--og-teal); stroke-width: 2; }
.og-elabel { fill: var(--og-dim); font-size: 10px; font-family: var(--font-mono); transition: fill var(--t-fast); }
.og-elabel.is-on { fill: var(--og-teal); }
.og-pulse { fill: var(--og-acc); opacity: 0.55; }
.og-pulse.is-on { fill: var(--og-teal); opacity: 1; }
.og-node { animation: og-fade 450ms var(--ease) both; cursor: default; outline: none; }
.og-node[role="button"] { cursor: pointer; }
.og-box { fill: var(--og-box); stroke: var(--og-line); stroke-width: 1; transition: stroke var(--t-fast), fill var(--t-fast); }
.og-name { fill: var(--og-text); font-size: 13px; font-weight: 500; font-family: var(--font-sans); }
.og-count { fill: var(--og-dim); font-size: 10px; font-family: var(--font-mono); }
.og-node:hover .og-box, .og-node:focus-visible .og-box { stroke: var(--og-acc); }
.og-node.is-near .og-box { stroke: color-mix(in srgb, var(--og-teal) 60%, transparent); }
.og-node.is-on .og-box { stroke: var(--og-teal); stroke-width: 2; fill: color-mix(in srgb, var(--og-teal) 14%, var(--og-box)); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero kicker ---------- */
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.hero__kicker span:first-child { font-weight: 500; color: var(--text); }
.hero__kicker span:first-child::before { content: ""; display: inline-block; width: 24px; height: 2px; margin-right: 10px; vertical-align: 4px; background: var(--teal); }
.hero__loc { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }

/* ---------- Delivery (FDE) ---------- */
.dl { display: grid; gap: 20px; }
.dl__lanes { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: stretch; gap: 0; }
.dl__lane { padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: 4px; }
.dl__lane:first-child { border-color: color-mix(in srgb, var(--teal) 50%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 10%, transparent); }
.dl__lane-h { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.dl__lane b { font-size: 20px; font-weight: 500; }
.dl__lane small { font-size: 13px; color: var(--muted); }
.dl__link { display: grid; align-content: center; gap: 10px; padding: 0 12px; }
.dl__link i { display: block; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal) 40%, transparent 0) 0 0 / 12px 2px repeat-x; animation: dash 0.9s linear infinite; }
.dl__link i:nth-child(2) { animation-direction: reverse; opacity: 0.6; }
.dl__pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl__pillars article { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.dl__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dl__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dl__pillars h3 { font-size: 17px; margin-top: 8px; }
.dl__pillars p { font-size: 14px; color: var(--muted); }
.dl__phases { position: relative; list-style: none; margin: 8px 0 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl__phases::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--line-strong); }
.dl__phases::after { content: ""; position: absolute; left: 6px; top: 6px; height: 2px; width: 25%; background: var(--teal); animation: phase 6s var(--ease) infinite; }
@keyframes phase { 0% { width: 0; } 85%, 100% { width: calc(100% - 12px); } }
.dl__phases li { position: relative; display: grid; gap: 4px; }
.dl__dot { position: absolute; top: -28px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal); z-index: 1; }
.dl__phases b { font-size: 16px; font-weight: 500; }
.dl__phases small { font-size: 13px; color: var(--muted); }
.dl__principles { list-style: none; margin: 8px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; font-weight: 500; }
.dl__principles li { display: flex; align-items: center; gap: 10px; }
.dl__principles li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@media (max-width: 1040px) { .dl__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dl__lanes { grid-template-columns: 1fr; }
  .dl__link { grid-auto-flow: column; height: 32px; padding: 0; justify-content: center; }
  .dl__link i { width: 2px; height: 100%; background: linear-gradient(180deg, var(--teal) 40%, transparent 0) 0 0 / 2px 10px repeat-y; }
  .dl__pillars, .dl__phases { grid-template-columns: 1fr; }
  .dl__phases { padding: 0 0 0 28px; }
  .dl__phases::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .dl__phases::after { display: none; }
  .dl__dot { top: 4px; left: -28px; }
}

/* ---------- Research ---------- */
.rs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rs__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: r; }
.rs__steps li { counter-increment: r; position: relative; padding: 20px 24px 20px 72px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.rs__steps li::before { content: "0" counter(r); position: absolute; left: 24px; top: 20px; font-family: var(--font-mono); font-size: 14px; color: var(--teal); }
.rs__steps li + li::after { content: ""; position: absolute; left: 33px; top: -13px; width: 2px; height: 14px; background: var(--line-strong); }
.rs__steps b { display: block; font-size: 17px; font-weight: 500; }
.rs__steps p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.rs__side { display: grid; gap: 12px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rs__label { font-size: 12px; color: var(--faint); }
.rs__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs__chips span { padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); font-size: 13px; }
.rs__policy { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .rs { grid-template-columns: 1fr; } }

/* ---------- Contact extras ---------- */
.contact__ways { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__ways li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact__ways b { font-weight: 500; }
.contact__ways span { color: var(--muted); }
.contact__addr { margin-top: 24px; display: grid; gap: 6px; font-style: normal; font-size: 14px; color: var(--muted); }
.contact__addr a { font-size: 17px; font-weight: 500; color: var(--text); }
.contact__addr a:hover { color: var(--accent); }
.footer__addr { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) { .contact__ways li { grid-template-columns: 1fr; gap: 2px; } }


/* ---------- Engine: Connect → Model → Act (deep navy stage) ---------- */
.eng2 {
  --e-text: #e8eef6; --e-dim: #8fa2bd; --e-line: rgba(232, 238, 246, 0.1); --e-card: rgba(16, 38, 74, 0.72); --e-teal: #64e3c2; --e-blue: #7fb4ff;
  position: relative; display: grid; gap: 20px; padding: clamp(16px, 2.4vw, 28px); border-radius: 24px; overflow: hidden; color: var(--e-text);
  background: radial-gradient(90% 120% at 50% 0%, #15305a 0%, #0a1e3f 45%, #061226 100%); border: 1px solid rgba(100, 227, 194, 0.16); box-shadow: var(--shadow-float);
}
.eng2::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(232, 238, 246, 0.06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.eng2 > * { position: relative; }
.eng2__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eng2__step { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: baseline; padding: 14px 16px 16px; border-radius: 14px; border: 1px solid var(--e-line); background: rgba(10, 30, 63, 0.55); color: var(--e-dim); text-align: left; cursor: pointer; overflow: hidden; transition: border-color var(--t-fast), color var(--t-fast); }
.eng2__n { grid-row: span 2; font-family: var(--font-mono); font-size: 13px; color: var(--e-dim); }
.eng2__step b { font-size: 17px; font-weight: 600; color: var(--e-text); }
.eng2__step small { font-size: 12px; }
.eng2__step i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--e-teal); }
.eng2__step[aria-selected="true"] { border-color: rgba(100, 227, 194, 0.55); color: var(--e-text); background: rgba(100, 227, 194, 0.08); }
.eng2__step[aria-selected="true"] .eng2__n { color: var(--e-teal); }
.eng2__step[aria-selected="true"] i { animation: stepbar 5.2s linear forwards; }
.eng2[data-step="3"] .eng2__step[aria-selected="true"] i { animation-duration: 9s; }
.eng2__step.is-past i { width: 100%; opacity: 0.4; }
@keyframes stepbar { to { width: 100%; } }
.eng2__stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; align-items: center; min-height: 440px; }
.eng2__col { display: grid; gap: 10px; align-content: center; min-width: 0; }
.eng2__h { font-family: var(--font-mono); font-size: 12px; color: var(--e-dim); margin-bottom: 2px; }
.eng2__src-card { position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(143, 162, 189, 0.35); background: rgba(6, 18, 38, 0.6); opacity: 0.55; transition: opacity 400ms, border-color 400ms, background-color 400ms; }
.eng2__kind { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(143, 162, 189, 0.14); text-align: center; }
.eng2__desc { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng2__src-card em { position: absolute; right: 10px; top: -8px; font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--e-teal); color: #062018; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity 300ms, transform 300ms; }
.eng2__src-card::after { content: ""; position: absolute; left: 100%; top: 50%; width: 28px; height: 1px; background: linear-gradient(90deg, var(--e-teal) 50%, transparent 0) 0 0 / 6px 1px repeat-x; opacity: 0; animation: dash 0.8s linear infinite; }
.eng2__src-card.is-on { opacity: 1; border-style: solid; border-color: rgba(100, 227, 194, 0.45); background: var(--e-card); }
.eng2__src-card.is-on em { opacity: 1; transform: none; }
.eng2__src-card.is-on::after { opacity: 1; }
.eng2__core { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.eng2__graph { width: 100%; border-radius: 18px; padding: 10px; background: radial-gradient(60% 60% at 50% 50%, rgba(100, 227, 194, 0.08), transparent 70%); }
.eng2__graph svg { width: 100%; height: auto; }
.eng2 .og-name { font-size: 16px; }
.eng2 .og-count { font-size: 12px; }
.eng2__core-label { font-family: var(--font-mono); font-size: 12px; color: var(--e-teal); letter-spacing: 0.04em; }
.og .og-off { opacity: 0.07; }
.og .og-node, .og .og-edge, .og .og-elabel, .og .og-pulse { transition: opacity 500ms var(--ease); }
.eng2[data-step="1"] .eng2__graph { opacity: 0.5; }
.eng2__out-card { position: relative; display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--e-line); background: rgba(6, 18, 38, 0.6); opacity: 0.35; transition: opacity 500ms, border-color 500ms; }
.eng2__out-card b { font-size: 14px; font-weight: 600; }
.eng2__out-card span { font-size: 12px; color: var(--e-dim); }
.eng2__out-card::before { content: ""; position: absolute; right: 100%; top: 50%; width: 28px; height: 1px; background: linear-gradient(90deg, var(--e-teal) 50%, transparent 0) 0 0 / 6px 1px repeat-x; opacity: 0; animation: dash 0.8s linear infinite; }
.eng2[data-step="3"] .eng2__out-card { opacity: 1; border-color: rgba(100, 227, 194, 0.4); }
.eng2[data-step="3"] .eng2__out-card::before { opacity: 1; }
.eng2__action { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid rgba(127, 180, 255, 0.4); background: rgba(127, 180, 255, 0.08); opacity: 0.35; pointer-events: none; transition: opacity 500ms; }
.eng2[data-step="3"] .eng2__action { opacity: 1; pointer-events: auto; }
.eng2__action-h { font-family: var(--font-mono); font-size: 11px; color: var(--e-blue); }
.eng2__action-b { font-size: 13px; line-height: 1.5; }
.eng2__diff { display: none; margin: 0; gap: 4px; padding: 8px 10px; border-radius: 8px; background: rgba(6, 18, 38, 0.7); font-family: var(--font-mono); font-size: 11px; }
.eng2__diff div { display: flex; justify-content: space-between; gap: 8px; }
.eng2__diff dt { color: var(--e-dim); }
.eng2__diff dd { margin: 0; color: var(--e-teal); }
.eng2__action.is-preview .eng2__diff, .eng2__action.is-done .eng2__diff { display: grid; }
.eng2__btns { display: flex; gap: 8px; }
.eng2__btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(232, 238, 246, 0.2); background: transparent; color: var(--e-text); font-size: 12px; font-weight: 500; cursor: pointer; }
.eng2__btn:hover:not(:disabled) { border-color: var(--e-teal); }
.eng2__btn--primary { background: var(--e-teal); border-color: var(--e-teal); color: #062018; }
.eng2__btn:disabled { opacity: 0.4; cursor: default; }
.eng2__done { font-size: 12px; color: var(--e-teal); }
.eng2__done:empty { display: none; }
.eng2__link { border: 0; background: none; padding: 0; color: var(--e-dim); font-size: 12px; text-decoration: underline; cursor: pointer; }
.eng2__note { font-size: 11px; color: var(--e-dim); }
.eng2__caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(6, 18, 38, 0.55); border: 1px solid var(--e-line); }
.eng2__caption p:first-child { font-size: 15px; line-height: 1.55; animation: rise 350ms var(--ease); }
.eng2__solves { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; }
.eng2__solves-l { font-size: 12px; color: var(--e-dim); margin-right: 2px; }
.eng2__chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(100, 227, 194, 0.45); color: var(--e-teal); }
.eng2__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.eng2__points li { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 2px solid var(--teal); }
.eng2__points b { font-size: 16px; font-weight: 600; }
.eng2__points span { font-size: 14px; color: var(--muted); }
@media (max-width: 1100px) {
  .eng2__stage { grid-template-columns: 1fr; min-height: 0; }
  .eng2__src-card::after, .eng2__out-card::before { display: none; }
  .eng2__src { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .eng2__src .eng2__h, .eng2__out .eng2__h { grid-column: 1 / -1; }
  .eng2__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .eng2__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .eng2__step { grid-template-columns: 1fr; padding: 10px; }
  .eng2__step small, .eng2__n { display: none; }
  .eng2__caption { grid-template-columns: 1fr; }
  .eng2__solves { justify-content: flex-start; }
  .eng2__points { grid-template-columns: 1fr; }
}

/* ---------- Work: one row of case tabs, case info rows, wide docs tab ---------- */
.sc .sc__tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sc .sc__tab { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
.sc .sc__tt b { white-space: normal; line-height: 1.3; }
.sc__rows { margin: 4px 0 0; display: grid; }
.sc__rows > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.sc__rows dt { font-size: 12px; color: var(--teal); }
.sc__rows dd { margin: 0; font-size: 14px; line-height: 1.5; }
.sc__stage.is-wide { grid-template-columns: 1fr; }
.sc__stage.is-wide .sc__info { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: baseline; }
.sc__stage.is-wide .sc__info > :not(.sc__tag):not(h3):not(.sc__text) { display: none; }
.sc__stage.is-wide .sc__info .sc__tag { grid-column: 1 / -1; justify-self: start; }
.sc__view .demo { width: 100%; }
@media (max-width: 1100px) {
  .sc .sc__tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sc .sc__tabs::-webkit-scrollbar { display: none; }
  .sc .sc__tab { flex: none; width: 168px; }
}
@media (max-width: 640px) {
  .sc__stage.is-wide .sc__info { grid-template-columns: 1fr; }
}

/* ---------- Real case demo: financial risk ---------- */
.fin { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.fin__graph { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.fin-edge { stroke: var(--line-strong); stroke-width: 1.2; transition: stroke 300ms, opacity 300ms, stroke-width 300ms; }
.fin-edge.is-on { stroke: var(--teal); stroke-width: 2.4; }
.fin-edge.is-dim { opacity: 0.25; }
.fin-ring { fill: none; stroke: none; transition: fill 400ms, stroke 400ms; }
.fin-ring.is-found { fill: color-mix(in srgb, var(--teal) 6%, transparent); stroke: color-mix(in srgb, var(--teal) 40%, transparent); stroke-dasharray: 4 4; }
.fin-ring.is-on { fill: color-mix(in srgb, var(--teal) 12%, transparent); stroke: var(--teal); stroke-dasharray: none; }
.fin-node circle, .fin-node rect, .fin-node path { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.fin-node--c rect { fill: var(--surface-2); }
.fin-node--k circle { stroke: var(--accent); }
.fin-node--a path { stroke: var(--warning); }
.fin-node--d circle { stroke-dasharray: 2 2; }
.fin-legend text { fill: var(--faint); font-size: 11px; font-family: var(--font-sans); dominant-baseline: middle; }
.fin__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fin__side > .btn { align-self: flex-start; }
.fin__hint { font-size: 13px; color: var(--muted); }
.fin__finds { display: grid; gap: 8px; }
.fin__find { display: grid; gap: 2px; padding: 10px 12px; text-align: left; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; animation: rise 300ms var(--ease) both; }
.fin__find b { font-size: 14px; font-weight: 600; color: var(--text); }
.fin__find span { font-size: 13px; color: var(--muted); }
.fin__find small { display: none; margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--teal); font-family: var(--font-mono); font-size: 11px; color: var(--text); line-height: 1.5; }
.fin__find.is-on { border-color: var(--teal); }
.fin__find.is-on small { display: block; }
.fin__queue { display: grid; gap: 8px; }
.fin__queue .btn { justify-self: start; }
.fin__q { font-size: 13px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--text); }
@media (max-width: 960px) { .fin { grid-template-columns: 1fr; } }

/* ---------- Real case demo: container operations ---------- */
.haul { display: grid; gap: 12px; }
.haul__map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.haul__map svg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 220; }
.haul__map .map-label { font-size: 12px; }
.haul__map .map-tlabel { font-size: 11px; }
.haul__board { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.haul__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; }
.haul__event { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--text); }
.haul__grid { display: grid; gap: 6px; }
.haul__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; }
.haul__truck { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.haul__track { position: relative; height: 26px; border-radius: 6px; background: var(--surface-2); }
.haul__row--hours .haul__track { height: 14px; background: none; }
.haul__row--hours i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.haul__row--hours i:first-child { transform: none; }
.haul__row--hours i:last-child { transform: translateX(-100%); }
.haul__job { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; padding: 0 6px; border-radius: 4px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-family: var(--font-mono); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 300ms; }
.haul__job.is-new { background: color-mix(in srgb, var(--teal) 16%, transparent); border-color: var(--teal); animation: rise 300ms var(--ease) both; }
.haul__job.is-preview { border-style: dashed; }
.haul__job.is-moved { opacity: 0.35; text-decoration: line-through; border-style: dashed; }
.haul__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 40px; }
.haul__hint { font-size: 12px; color: var(--muted); flex: 1 1 240px; }
.haul__sum { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 300px; }
.haul__sum span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.haul__ok { font-size: 13px; color: var(--success); flex: 1 1 280px; }

/* ---------- Delivery commitments + compact services ---------- */
.dl__commit { display: grid; gap: 12px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.dl__commit-h { font-size: 13px; color: var(--faint); }
.dl__commit ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl__commit li { display: grid; gap: 4px; align-content: start; }
.dl__commit b { font-size: 15px; font-weight: 600; }
.dl__commit span { font-size: 13px; color: var(--muted); }
.svc3 { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.svc3 li { counter-increment: s; position: relative; display: grid; gap: 2px; padding: 16px 16px 16px 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.svc3 li::before { content: "0" counter(s); position: absolute; left: 16px; top: 17px; font-family: var(--font-mono); font-size: 12px; color: var(--teal); }
.svc3 b { font-size: 15px; font-weight: 600; }
.svc3 span { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .dl__commit ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dl__commit ul, .svc3 { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 2; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color var(--t-fast) var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }
.card--xl { grid-column: span 4; justify-content: space-between; gap: 32px; }
.card--xl h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.02em; }
.card--xl .card__text { max-width: 520px; display: grid; gap: 12px; }
.card--tall { grid-row: span 2; }
.card--wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.card--wide > div:not(.card__icon) { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.card__icon { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.card__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__link { display: inline-flex; gap: 8px; font-weight: 500; font-size: 15px; color: var(--accent); }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.flow { display: flex; align-items: center; }
.flow__node {
  flex: none; display: grid; justify-items: center; gap: 8px; padding: 12px; min-width: 96px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted);
}
.flow__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow__node b { font-weight: 500; white-space: nowrap; }
.flow__node--ai { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--text); }
.flow__node--ai .flow__ico { color: var(--accent); }
.flow__line { flex: 1; min-width: 16px; height: 1px; background: var(--line-strong); }
.flow__line i { display: none; }

.chat { margin-top: auto; display: grid; gap: 8px; font-size: 13px; }
.chat__q { justify-self: end; max-width: 90%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.chat__a { max-width: 92%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; border: 1px solid var(--line); }
.chat__a sup { color: var(--accent); font-family: var(--font-mono); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card--xl, .card--wide { grid-column: span 2; }
  .card--tall { grid-row: auto; }
  .card:not(.card--xl):not(.card--wide):not(.card--tall) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .card:not(.card--xl):not(.card--wide):not(.card--tall) { grid-column: span 2; }
  .flow { flex-wrap: wrap; gap: 8px; }
  .flow__node { min-width: 0; flex: 1 1 40%; }
  .flow__line { display: none; }
}

/* ---------- Architecture explorer ---------- */
.arch { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.arch__diagram { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 961px) { .arch__diagram { position: sticky; top: 88px; } }
.arch__stack { display: grid; gap: 16px; align-content: start; }
.arch__stack > .arch__layer:not(:last-child)::after, .arch__row::after {
  content: ""; position: absolute; left: 50%; bottom: -17px; width: 1px; height: 16px; background: var(--line-strong);
}
.arch__row { position: relative; }
.arch__stack > .arch__layer:not(:last-child)::before, .arch__row::before {
  content: ""; position: absolute; left: calc(50% - 2px); bottom: -17px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  opacity: 0; animation: packet 2.4s var(--ease) infinite;
}
@keyframes packet { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(2px); opacity: 0; } }
.arch__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arch__layer, .arch__rail {
  position: relative; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; cursor: pointer; color: var(--text);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.arch__layer { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; align-content: center; padding: 16px; text-align: left; min-height: 76px; }
.arch__n { grid-row: span 2; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.arch__name { font-weight: 500; font-size: 15px; }
.arch__sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch__rail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; text-align: center; }
.arch__rail svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.arch__rail[aria-pressed="true"] svg { stroke: var(--accent); }
.arch__rail-label { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--muted); text-wrap: balance; }
.arch__layer:hover, .arch__rail:hover { border-color: var(--line-strong); }
.arch__layer[aria-pressed="true"], .arch__rail[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--highlight); }
.arch__layer[aria-pressed="true"] .arch__n, .arch__rail[aria-pressed="true"] .arch__rail-label { color: var(--accent); }
.arch__layer.is-hit, .arch__rail.is-hit { animation: hit 700ms var(--ease); }
@keyframes hit { from { background-color: color-mix(in srgb, var(--teal) 22%, var(--surface-2)); } }

.arch__side { display: grid; gap: 20px; min-width: 0; }
.arch__detail { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; min-height: 260px; animation: rise var(--t-slow) var(--ease); }
.arch__detail.is-swapping { animation: none; }
.arch__detail h3 { font-size: 20px; }
.arch__detail p { color: var(--muted); font-size: 15px; }
.arch__detail ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.arch__detail li { display: flex; gap: 12px; }
.arch__detail li::before { content: ""; flex: none; width: 4px; height: 4px; margin-top: 10px; border-radius: 50%; background: var(--faint); }
.arch__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.arch__chips span { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.arch__trace { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; min-width: 0; }
.arch__trace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.arch__trace-q { display: grid; gap: 4px; font-size: 12px; color: var(--faint); min-width: 0; }
.arch__trace-q b { font-size: 14px; font-weight: 500; color: var(--text); }
.arch__log { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 12px; display: grid; gap: 8px; min-height: 24px; }
.arch__log:empty::before { content: attr(data-empty); color: var(--faint); }
.arch__log li { display: grid; grid-template-columns: 168px 1fr; gap: 12px; animation: rise var(--t-slow) var(--ease) both; }
.arch__log li b { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch__log li span { min-width: 0; }
.arch__log li.is-done span::before { content: "✓ "; color: var(--success); }

@media (max-width: 960px) { .arch { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .arch__diagram { grid-template-columns: 1fr 1fr; padding: 8px; }
  .arch__stack { grid-column: 1 / -1; order: -1; }
  .arch__rail { flex-direction: row; padding: 12px; }
  .arch__row { grid-template-columns: 1fr; }
  .arch__layer { padding: 12px; }
  .arch__log li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Industries ---------- */
.ind { display: grid; gap: 20px; }
.ind__nav { display: grid; gap: 16px; }
.ind__lens { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ind__lens button { height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 14px; color: var(--muted); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ind__lens button span { margin-left: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.ind__lens button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line); color: var(--text); box-shadow: var(--highlight); }
.ind__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ind__chips button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.ind__chips button:hover { color: var(--text); border-color: var(--line-strong); }
.ind__chips button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.tabs__panel { display: grid; gap: 16px; animation: rise var(--t-slow) var(--ease); }
.tabs__panel.is-swapping { animation: none; }
.ind-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.ind-intro { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ind-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.ind-intro h3 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.025em; }
.ind-intro p { color: var(--muted); }
.ind-intro .ind-impact { margin-top: auto; display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); }
.ind-impact span { font-size: 12px; color: var(--faint); }
.ind-impact b { font-size: 16px; font-weight: 500; color: var(--text); }
.ind-flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; background: var(--bg-2); border-left: 1px solid var(--line); }
.ind-flow__col { position: relative; display: grid; gap: 8px; align-content: center; min-width: 0; }
.ind-flow__h { font-size: 12px; color: var(--faint); }
.ind-flow i { position: relative; font-style: normal; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; animation: rise 300ms var(--ease) both; }
.ind-flow__out { font-family: var(--font-mono); font-size: 12px !important; color: var(--muted); }
.ind-flow__in::after, .ind-flow__out::before { content: ""; position: absolute; top: 50%; width: 32px; height: 1px; background: linear-gradient(90deg, var(--line-strong) 50%, transparent 0) 0 0 / 6px 1px repeat-x; animation: dash 1s linear infinite; }
.ind-flow__in::after { left: 100%; }
.ind-flow__out::before { right: 100%; }
@keyframes dash { to { background-position: 6px 0; } }
.ind-flow__core { display: grid; justify-items: center; gap: 8px; padding: 20px 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--surface); text-align: center; box-shadow: 0 0 0 6px var(--accent-soft); }
.ind-flow__mark svg { width: 56px; height: 30px; }
.ind-flow__core b { font-size: 14px; font-weight: 500; }
.ind-flow__core small { font-size: 11px; color: var(--faint); line-height: 1.4; }
.ind-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ind-case { position: relative; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; transition: border-color var(--t-fast) var(--ease); }
.ind-case:hover { border-color: var(--line-strong); }
.ind-case__n { font-family: var(--font-mono); font-size: 28px; color: color-mix(in srgb, var(--accent) 35%, var(--line-strong)); line-height: 1; }
.ind-case__tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 8px; }
.ind-case h4 { font-size: 17px; }
.ind-case p { font-size: 14px; color: var(--muted); }
@media (max-width: 1040px) { .ind-top { grid-template-columns: 1fr; } .ind-flow { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) {
  .ind__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .ind__chips::-webkit-scrollbar { display: none; }
  .ind-flow { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .ind-flow__in::after, .ind-flow__out::before { display: none; }
  .ind-cases { grid-template-columns: 1fr; }
}

/* ---------- ROI calculator ---------- */
.roi { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 20px; align-items: start; }
.roi__inputs { display: grid; gap: 32px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.roi__inputs fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; }
.roi__inputs legend { padding: 0; margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--faint); }
.range { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.range label { font-size: 14px; color: var(--muted); }
.range output { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; --pct: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--line-strong) var(--pct)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); transition: transform var(--t-fast) var(--ease); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }

.roi__results { display: grid; gap: 20px; padding: 24px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.roi__label { font-size: 13px; color: var(--muted); }
.roi__big { margin-top: 4px; font-size: clamp(40px, 5vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.roi__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.roi__stats > div { padding: 16px 0; }
.roi__stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.roi__val { margin-top: 4px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.roi__chart { margin: 0; display: grid; gap: 8px; }
.roi__chart-title { font-size: 13px; color: var(--muted); }
.roi__plot { position: relative; height: 220px; touch-action: pan-y; }
.roi__plot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.roi__plot .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.roi__plot .axis text { fill: var(--faint); font-size: 11px; font-family: var(--font-mono); }
.roi__plot .area { fill: var(--accent); fill-opacity: 0.1; }
.roi__plot .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.roi__plot .ref { stroke: var(--muted); stroke-width: 1; shape-rendering: crispEdges; }
.roi__plot .ref-label, .roi__plot .be-label { fill: var(--muted); font-size: 12px; }
.roi__plot .be-label { fill: var(--text); font-weight: 500; }
.roi__plot .be-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.roi__plot .cross { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.roi__plot .hover-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.roi__plot .hit { fill: transparent; cursor: crosshair; }
.roi__plot .hit:focus-visible { outline: none; }
.roi__plot.is-focus { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.roi__tip { position: absolute; top: 0; pointer-events: none; z-index: 2; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow-float); font-size: 12px; white-space: nowrap; display: grid; gap: 4px; }
.roi__tip .tip-x { color: var(--muted); }
.roi__tip .tip-row { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.roi__tip .tip-row b { color: var(--text); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.roi__tip .key { width: 12px; height: 2px; border-radius: 1px; background: var(--accent); }
.roi__tip .key--ref { background: var(--muted); height: 1px; }
.roi__table summary { cursor: pointer; font-size: 13px; color: var(--muted); width: max-content; }
.roi__table summary:hover { color: var(--text); }
.roi__table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.roi__table th, .roi__table td { padding: 8px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.roi__table th:first-child, .roi__table td:first-child { text-align: left; }
.roi__table th { font-weight: 500; color: var(--muted); }
.roi__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.roi__note { flex: 1 1 280px; font-size: 12px; color: var(--faint); }
@media (max-width: 960px) { .roi { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .roi__stats { grid-template-columns: 1fr; }
  .roi__stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; }
  .roi__stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .roi__val { margin-top: 0; font-size: 20px; }
  .roi__plot { height: 188px; }
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.step__time { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.step h3 { margin-top: 16px; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.trust .section__head { position: sticky; top: 104px; margin-bottom: 0; }
.trust .btn { margin-top: 32px; }
.pillars { display: grid; border-top: 1px solid var(--line); }
.pillar { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.pillar h3 { font-size: 17px; }
.pillar p { color: var(--muted); }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr; } .trust .section__head { position: static; } }
@media (max-width: 640px) { .pillar { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--muted), var(--muted)) center/12px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center/1.5px 12px no-repeat;
  transition: transform var(--t-mid) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Contact: self-service plan desk ---------- */
.contact .section__head h2 .ln, .section__head h2 .ln { display: block; }
/* One dark stage: ask on the left, the plan assembling on the right */
.desk {
  --d-ink: #e8eef7; --d-dim: #a3a9ad; --d-faint: #7d8a99; --d-cyan: #64e3c2; --d-line: rgba(163, 169, 173, 0.2);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 36px); align-items: start;
  padding: clamp(20px, 3vw, 32px); border-radius: 24px; color: var(--d-ink);
  background-color: #08172f;
  background-image: radial-gradient(rgba(214, 222, 235, 0.07) 1px, transparent 1px), radial-gradient(70% 60% at 0% 0%, rgba(100, 227, 194, 0.1), transparent 70%);
  background-size: 20px 20px, 100% 100%;
  border: 1px solid rgba(100, 227, 194, 0.16); box-shadow: 0 40px 90px -40px rgba(4, 12, 30, 0.7);
}
.desk__left { position: relative; display: grid; gap: 20px; min-width: 0; }
.desk__asklabel { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.desk__askbox {
  display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(100, 227, 194, 0.35);
  box-shadow: 0 0 0 4px rgba(100, 227, 194, 0.06), 0 0 40px -10px rgba(100, 227, 194, 0.35);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.desk__askbox:focus-within { border-color: var(--d-cyan); box-shadow: 0 0 0 4px rgba(100, 227, 194, 0.14), 0 0 48px -8px rgba(100, 227, 194, 0.5); }
.desk__input { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; color: var(--d-ink); font: inherit; font-size: 17px; line-height: 1.5; outline: none; }
.desk__input::placeholder { color: var(--d-faint); }
.desk__go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--d-cyan); color: #04211a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.desk__go:hover { filter: brightness(1.06); }
.desk__go kbd { font: 12px var(--font-mono); opacity: 0.7; }
.desk__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--d-faint); }
.desk__ex {
  max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--d-line); background: rgba(255, 255, 255, 0.03);
  color: var(--d-dim); font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.desk__ex:hover { border-color: rgba(100, 227, 194, 0.5); color: var(--d-ink); }
.desk__left:not(.is-idle) .desk__examples { display: none; }
.desk__ainote { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--d-faint); }
.desk__plan.is-static .plan__obj, .desk__plan.is-static .plan__spoke, .desk__plan.is-static .plan__builds li { animation: none; }

.desk__run:empty { display: none; }
.desk__run { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--d-line); font-family: var(--font-mono); font-size: 12.5px; }
.desk__echo { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--d-dim); animation: og-fade 300ms var(--ease) both; }
.desk__echo mark { background: rgba(100, 227, 194, 0.16); color: var(--d-cyan); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1px 0 rgba(100, 227, 194, 0.6); }
.desk__log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.desk__line { display: flex; align-items: baseline; gap: 8px; min-width: 0; animation: rise 260ms var(--ease) both; }
.desk__line::before { content: "▸"; color: var(--d-faint); flex: none; }
.desk__lk { flex: none; color: var(--d-ink); }
.desk__ldots { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(163, 169, 173, 0.35); transform: translateY(-3px); }
.desk__lv { min-width: 0; text-align: right; color: var(--d-cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.desk__line.is-ok .desk__lv::after { content: " ✓"; }
.desk__line.is-warn .desk__lv { color: #f2c46d; }
.desk__line.is-soft .desk__lv { color: var(--d-faint); }
.desk__line.is-running .desk__lv { visibility: hidden; }
.desk__line.is-running .desk__ldots { background: linear-gradient(90deg, transparent, rgba(100, 227, 194, 0.6), transparent) 0 100% / 40% 1px no-repeat; animation: desk-scan 0.6s linear infinite; }
@keyframes desk-scan { from { background-position: -40% 100%; } to { background-position: 140% 100%; } }
.desk__line--done { color: var(--d-cyan); }
.desk__line--done::before { content: "●"; color: var(--d-cyan); }

.desk__edit:empty, .desk__contact { display: none; }
.desk__left.is-ready .desk__contact { display: grid; }

/* What we read: an inspector card of editable tokens */
.desk__edit {
  position: relative; border-radius: 16px; padding: 4px 16px 8px; animation: rise 300ms var(--ease) both;
  background: linear-gradient(180deg, rgba(100, 227, 194, 0.06), rgba(255, 255, 255, 0.015) 40%);
  border: 1px solid rgba(100, 227, 194, 0.22);
}
.desk__edit::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(100, 227, 194, 0.9), transparent); }
.desk__ehead { display: flex; align-items: baseline; gap: 10px; padding: 12px 0 10px; border-bottom: 1px solid var(--d-line); }
.desk__ehead b { font-size: 14px; font-weight: 600; }
.desk__ehead > span:not(.desk__src) { font-size: 12px; color: var(--d-faint); }
.desk__src { margin-left: auto; padding: 2px 8px; border-radius: 999px; font: 11px var(--font-mono); color: var(--d-dim); border: 1px solid var(--d-line); white-space: nowrap; }
.desk__src.is-ai { color: var(--d-cyan); border-color: rgba(100, 227, 194, 0.45); background: rgba(100, 227, 194, 0.08); }
.desk__rows { display: grid; }
.desk__erow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(163, 169, 173, 0.14); }
.desk__erow:last-child { border-bottom: 0; }
.desk__ek { font-size: 13px; color: var(--d-faint); }
.desk__ev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }

.desk__tag, .desk__plus { display: inline-flex; align-items: center; gap: 7px; font: inherit; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.desk__tag {
  height: 30px; padding: 0 6px 0 11px; border-radius: 999px; font-size: 13px; color: var(--d-ink);
  background: linear-gradient(180deg, rgba(100, 227, 194, 0.16), rgba(100, 227, 194, 0.06)); border: 1px solid rgba(100, 227, 194, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.desk__tag:hover { border-color: var(--d-cyan); box-shadow: 0 0 0 3px rgba(100, 227, 194, 0.12), 0 0 18px -4px rgba(100, 227, 194, 0.55); }
.desk__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--d-cyan); box-shadow: 0 0 8px var(--d-cyan); }
.desk__ti { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--d-dim); transition: background-color var(--t-fast), color var(--t-fast); }
.desk__ti svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.desk__tag:hover .desk__ti { color: var(--d-ink); }
.desk__tag:hover .desk__ti--x { background: rgba(255, 138, 122, 0.18); color: #ffb3a8; }
.desk__plus { justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; color: var(--d-dim); background: transparent; border: 1px dashed rgba(163, 169, 173, 0.5); }
.desk__plus .desk__ti { width: auto; height: auto; color: inherit; }
.desk__plus:hover { border-style: solid; border-color: var(--d-cyan); color: #04211a; background: var(--d-cyan); box-shadow: 0 0 16px -2px rgba(100, 227, 194, 0.6); }
.desk__plus--need, .desk__tag.is-missing {
  width: auto; height: 30px; padding: 0 8px 0 11px; border-radius: 999px; border: 1px solid rgba(242, 196, 109, 0.6); border-style: solid;
  background: rgba(242, 196, 109, 0.1); color: #f6d48f; font-size: 13px;
}
.desk__plus--need .desk__dot, .desk__tag.is-missing .desk__dot { background: #f2c46d; box-shadow: 0 0 8px #f2c46d; animation: desk-blink 1.4s var(--ease) infinite; }
.desk__plus--need:hover, .desk__tag.is-missing:hover { background: rgba(242, 196, 109, 0.18); color: #ffe2a8; border-color: #f2c46d; box-shadow: 0 0 0 3px rgba(242, 196, 109, 0.14); }
@keyframes desk-blink { 50% { opacity: 0.35; } }

/* How to start: three stages on one track */
.desk__steps { --at: 1; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding-top: 2px; }
.desk__steps::before, .desk__steps::after { content: ""; position: absolute; top: 9px; left: calc(100% / 6); height: 2px; border-radius: 2px; }
.desk__steps::before { right: calc(100% / 6); background: rgba(163, 169, 173, 0.22); }
.desk__steps::after { width: calc((100% / 3) * var(--at)); background: linear-gradient(90deg, var(--d-cyan), #4a90f0); box-shadow: 0 0 10px rgba(100, 227, 194, 0.5); transition: width 400ms var(--ease); }
.desk__stp { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; padding: 0 4px 2px; border: 0; background: transparent; color: var(--d-dim); font: inherit; text-align: center; cursor: pointer; }
.desk__node { width: 18px; height: 18px; margin-bottom: 4px; border-radius: 50%; background: #0b1d3a; border: 2px solid rgba(163, 169, 173, 0.45); transition: all 300ms var(--ease); }
.desk__stp:hover .desk__node { border-color: var(--d-cyan); }
.desk__stp.is-on .desk__node { border-color: var(--d-cyan); background: radial-gradient(circle, var(--d-cyan) 0 4px, #0b1d3a 5px); }
.desk__stp.is-cur .desk__node { background: var(--d-cyan); box-shadow: 0 0 0 5px rgba(100, 227, 194, 0.16), 0 0 16px rgba(100, 227, 194, 0.7); }
.desk__stp b { font-size: 13px; font-weight: 500; }
.desk__stp.is-on b { color: var(--d-ink); }
.desk__stp small { font: 11px var(--font-mono); color: var(--d-faint); }
.desk__stp em { position: absolute; top: -14px; left: 50%; transform: translateX(calc(-50% + 30px)); padding: 0 6px; border-radius: 999px; font-style: normal; font-size: 10px; line-height: 16px; color: #04211a; background: var(--d-cyan); white-space: nowrap; }

.desk__menu {
  position: absolute; z-index: 20; width: 260px; max-height: 280px; overflow: auto; padding: 6px; border-radius: 12px;
  background: rgba(13, 33, 66, 0.96); backdrop-filter: blur(10px); border: 1px solid rgba(100, 227, 194, 0.3); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7); animation: rise 160ms var(--ease) both;
}
.desk__mi { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--d-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.desk__mi:hover, .desk__mi:focus-visible { background: rgba(100, 227, 194, 0.12); outline: none; }
.desk__mi.is-on { color: var(--d-cyan); }
.desk__mi.is-on::after { content: "✓"; }

/* Contact: one command bar */
.desk__contact { gap: 10px; padding-top: 4px; animation: rise 300ms var(--ease) both; }
.desk__ch { font-size: 14px; font-weight: 600; }
.desk__cbar {
  display: flex; align-items: center; gap: 0; padding: 5px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(100, 227, 194, 0.28);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.desk__cbar:focus-within { border-color: var(--d-cyan); box-shadow: 0 0 0 4px rgba(100, 227, 194, 0.12), 0 0 36px -10px rgba(100, 227, 194, 0.5); }
.desk__cbar.is-invalid { border-color: #ff8a7a; box-shadow: 0 0 0 4px rgba(255, 138, 122, 0.12); }
.desk__cin { width: 100%; height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--d-ink); font: inherit; font-size: 15px; outline: none; }
.desk__cin::placeholder { color: var(--d-faint); }
.desk__cin--name { flex: 0 0 34%; min-width: 0; }
.desk__csep { flex: none; width: 1px; height: 22px; background: var(--d-line); }
.desk__reach { position: relative; flex: 1; min-width: 0; }
.desk__reach .desk__cin { padding-right: 64px; }
.desk__badge { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 2px 8px; border-radius: 999px; font: 11px var(--font-mono); color: var(--d-cyan); background: rgba(100, 227, 194, 0.12); opacity: 0; transition: opacity var(--t-fast); pointer-events: none; }
.desk__badge.is-on { opacity: 1; }
.desk__send {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 16px; border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #7aebce, var(--d-cyan)); color: #04211a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 20px -8px rgba(100, 227, 194, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.desk__send:hover .desk__sendi { transform: translateX(2px); }
.desk__sendi { display: grid; transition: transform var(--t-fast) var(--ease); }
.desk__sendi svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.desk__send:disabled { opacity: 0.6; cursor: default; }
.desk__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.desk__slotsbox summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--d-dim); list-style: none; }
.desk__slotsbox summary::-webkit-details-marker { display: none; }
.desk__slotsbox summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--t-fast) var(--ease); }
.desk__slotsbox[open] summary::before { transform: rotate(45deg); }
.desk__slotsbox summary:hover { color: var(--d-ink); }
.desk__slotsd { margin: 6px 0 8px; font-size: 12px; color: var(--d-faint); }
.desk__slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.desk__day { display: grid; gap: 4px; min-width: 0; }
.desk__dayname { font-size: 11px; color: var(--d-faint); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk__slot { height: 30px; border-radius: 7px; border: 1px solid var(--d-line); background: transparent; color: var(--d-dim); font: inherit; font-size: 12px; cursor: pointer; }
.desk__slot:hover { border-color: rgba(100, 227, 194, 0.5); }
.desk__slot[aria-pressed="true"] { border-color: var(--d-cyan); background: rgba(100, 227, 194, 0.14); color: var(--d-ink); }
.desk__note { min-height: 1.4em; font-size: 13px; color: var(--d-dim); }
.desk__note.is-ok { color: var(--d-cyan); }
.desk__note.is-err { color: #ff9c8a; }
.desk__sent { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: 14px; border: 1px solid var(--d-cyan); background: rgba(100, 227, 194, 0.08); }
.desk__sent-h { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--d-cyan); }

/* The plan: a dark blueprint that redraws as the visitor chooses */
.desk__plan {
  --p-ink: #e8eef7; --p-dim: #a3a9ad; --p-faint: #7d8a99; --p-cyan: #64e3c2; --p-line: rgba(163, 169, 173, 0.22);
  position: sticky; top: 88px; min-width: 0; padding: 20px; border-radius: 18px; color: var(--p-ink);
  border: 1px solid rgba(100, 227, 194, 0.22); background-color: #0b2148;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px), radial-gradient(80% 60% at 70% 0%, rgba(100, 227, 194, 0.12), transparent 70%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}
.desk__plan [data-r] { transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.desk__plan[data-reveal="1"] [data-r="2"], .desk__plan[data-reveal="1"] [data-r="3"], .desk__plan[data-reveal="1"] [data-r="4"],
.desk__plan[data-reveal="2"] [data-r="3"], .desk__plan[data-reveal="2"] [data-r="4"], .desk__plan[data-reveal="3"] [data-r="4"] { opacity: 0; transform: translateY(8px); }
.plan__wait { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); }
.plan__cursor { width: 8px; height: 15px; background: var(--p-cyan); animation: blink 1s steps(1) infinite; }
.desk__plan.is-thinking .plan__empty .plan__svg { animation: desk-pulse 1.4s var(--ease) infinite; }
@keyframes desk-pulse { 50% { opacity: 0.45; } }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--p-line); }
.plan__k { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--p-cyan); }
.plan__id { font-family: var(--font-mono); font-size: 18px; font-weight: 500; letter-spacing: 0.02em; }
.plan__status { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--p-dim); padding: 3px 8px; border: 1px solid var(--p-line); border-radius: 6px; }
.desk__plan.is-sent .plan__status { color: var(--p-cyan); border-color: var(--p-cyan); }
.plan__graph { position: relative; padding-top: 10px; }
.plan__ind { position: absolute; top: 12px; left: 0; font-size: 12px; color: var(--p-dim); }
.plan__svg { display: block; width: 100%; height: auto; }
.plan__ring { stroke: rgba(163, 169, 173, 0.14); stroke-width: 1; }
.plan__spoke { stroke: rgba(100, 227, 194, 0.35); stroke-width: 1; stroke-dasharray: 3 4; animation: og-fade 400ms var(--ease) both; }
.plan__spoke.is-new { stroke: var(--p-cyan); stroke-dasharray: none; }
.plan__core rect { fill: var(--p-cyan); }
.plan__core text { fill: #0a1e3f; font: 600 13px var(--font-sans); }
.plan__obj { animation: og-fade 400ms var(--ease) both; }
.plan__obj rect { fill: #0f2a52; stroke: rgba(163, 169, 173, 0.35); }
.plan__obj text { fill: var(--p-ink); font: 500 12.5px var(--font-sans); }
.plan__obj.is-new rect { fill: rgba(100, 227, 194, 0.14); stroke: var(--p-cyan); }
.plan__sec { padding: 12px 0; border-top: 1px dashed var(--p-line); }
.plan__sec h4 { margin: 0 0 10px; font: 500 12px var(--font-mono); color: var(--p-cyan); }
.plan__builds { list-style: none; counter-reset: b; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan__builds li { counter-increment: b; position: relative; display: grid; gap: 2px; padding-left: 30px; animation: og-fade 400ms var(--ease) both; }
.plan__builds li::before { content: counter(b, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 12px var(--font-mono); color: var(--p-cyan); }
.plan__builds b { font-size: 14px; font-weight: 500; }
.plan__builds span { font-size: 13px; color: var(--p-dim); line-height: 1.5; }
.plan__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.plan__tags span { padding: 3px 9px; border-radius: 6px; font-size: 12.5px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--p-line); }
.plan__tags em { font-size: 13px; font-style: normal; color: var(--p-faint); }
.plan__phases { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.plan__phase { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; align-content: start; }
.plan__phase b { font-size: 13px; font-weight: 500; line-height: 1.3; }
.plan__phase small { font-size: 11px; color: var(--p-faint); font-family: var(--font-mono); white-space: nowrap; }
.plan__phase i { display: block; height: 8px; margin-top: 6px; border-radius: 4px; border: 1px dashed rgba(163, 169, 173, 0.45); }
.plan__phase.is-on i { border: 0; background: linear-gradient(90deg, var(--p-cyan), #4a90f0); }
.plan__phase:not(.is-on) { opacity: 0.55; }
.plan__duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; border-top: 1px dashed var(--p-line); }
.plan__duo .plan__sec { border-top: 0; }
.plan__ctx { margin: 0; padding-left: 18px; font-size: 13px; color: #c9d3e0; display: grid; gap: 4px; }
.plan__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 14px; border-top: 1px dashed var(--p-line); }
.plan__guard { font-size: 12px; color: #c9d3e0; }
.plan__note { margin-top: 4px; font-size: 11.5px; color: var(--p-faint); }
.plan__pdf { flex: none; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(100, 227, 194, 0.5); background: transparent; color: var(--p-cyan); font: inherit; font-size: 13px; cursor: pointer; }
.plan__pdf:hover { background: rgba(100, 227, 194, 0.1); }
.plan__empty { padding: 16px 0 8px; text-align: center; }
.plan__empty .plan__svg { opacity: 0.22; }
.plan__empty p { max-width: 34ch; margin: 8px auto 0; font-size: 14px; color: var(--p-dim); }

.contact__alt { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
.contact__alt-h { font-size: 18px; font-weight: 500; }
.contact__alt .contact__list { margin-top: 16px; }
.contact__alt .contact__ways { margin: 0; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

@media (max-width: 1080px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .desk__plan { position: static; }
  .contact__alt { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .desk { padding: 14px; border-radius: 18px; }
  .desk__input { font-size: 16px; }
  .desk__ex { white-space: normal; }
  .desk__cbar { flex-wrap: wrap; }
  .desk__cin--name { flex: 1 1 100%; border-bottom: 1px solid var(--d-line); }
  .desk__csep { display: none; }
  .desk__reach { flex: 1 1 100%; }
  .desk__send { flex: 1 1 100%; justify-content: center; margin-top: 4px; }
  .desk__erow { grid-template-columns: 1fr; gap: 6px; }
  .desk__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desk__plan { padding: 16px; }
  .desk__lv { max-width: 55%; }
  .plan__duo { grid-template-columns: 1fr; }
  .plan__duo .plan__sec + .plan__sec { border-top: 1px dashed var(--p-line); }
  .plan__foot { flex-direction: column; align-items: stretch; }
  .contact__alt .contact__ways { grid-template-columns: 1fr; }
}

/* Download PDF prints only the plan */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  body > :not(main), main > :not(#contact), #contact .section__head, .contact__alt, .desk__left, .plan__pdf { display: none !important; }
  #contact { padding: 0 !important; }
  .desk { display: block; padding: 0; background: none; border: 0; box-shadow: none; }
  .desk__plan { position: static; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plan__obj, .plan__spoke, .plan__builds li { animation: none !important; }
  .desk__plan [data-r] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 280px; }
.footer__cols { display: flex; gap: clamp(32px, 8vw, 96px); flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 12px; align-content: start; }
.footer__cols h4 { font-size: 13px; color: var(--faint); font-weight: 500; margin-bottom: 4px; }
.footer__cols a { font-size: 14px; color: var(--muted); transition: color var(--t-fast) var(--ease); }
.footer__cols a:hover { color: var(--text); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer__legal a:hover { color: var(--text); }

/* ---------- Command menu ---------- */
.cmdk {
  width: min(640px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); margin: 12vh auto auto; padding: 0;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-float), var(--highlight); overflow: hidden;
}
.cmdk[open] { display: flex; flex-direction: column; animation: menu var(--t-mid) var(--ease); }
@keyframes menu { from { opacity: 0; transform: translateY(-6px); } }
.cmdk::backdrop { background: rgba(5, 7, 12, 0.5); }
.cmdk__search { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.cmdk__search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.cmdk__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.cmdk__search input::placeholder { color: var(--faint); }
.cmdk__list { flex: 1; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.cmdk__group { padding: 12px 8px 4px; font-size: 12px; color: var(--faint); }
.cmdk__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); }
.cmdk__item[aria-selected="true"] { background: var(--surface-2); box-shadow: var(--highlight); }
.cmdk__ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); }
.cmdk__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cmdk__item[aria-selected="true"] .cmdk__ico { color: var(--text); }
.cmdk__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk__hint { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.cmdk__empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk__foot { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.cmdk__foot kbd { margin-right: 2px; }
.cmdk__brand { margin-left: auto; font-family: var(--font-brand); font-weight: 800; color: var(--muted); }
@media (max-width: 560px) { .cmdk { margin-top: 72px; } .cmdk__foot > span:not(.cmdk__brand) { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-size: 14px; box-shadow: var(--shadow-float);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chinese typography ---------- */
:root[lang="zh-CN"] h1, :root[lang="zh-CN"] h2, :root[lang="zh-CN"] h3 { letter-spacing: 0; }
:root[lang="zh-CN"] .hero__title { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.18; letter-spacing: 0; }
:root[lang="zh-CN"] .hero__title .ln { white-space: nowrap; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.devwin__code { overflow-x: auto; scrollbar-width: none; }
