/* Entity OS marketing site. Two themes share one set of tokens; [data-theme] on <html> picks one. */
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/assets/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("/assets/fonts/source-code-pro.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root,
[data-theme="dark"] {
  --bg: #070c1a;
  --bg-alt: #0a1124;
  --surface: #0f172d;
  --surface-2: #141d38;
  --surface-3: #1b2647;
  --line: rgba(173, 189, 255, 0.1);
  --line-strong: rgba(173, 189, 255, 0.19);
  --rail: rgba(173, 189, 255, 0.07);
  --text: #f3f5fb;
  --text-soft: #c0c9de;
  --muted: #8693b1;
  --accent: #b996f0;
  --accent-strong: #dbc7ff;
  --accent-soft: rgba(185, 150, 240, 0.14);
  --accent-line: rgba(185, 150, 240, 0.38);
  --on-accent: #120c22;
  --button-bg: #b996f0;
  --button-hover: #cfb4f7;
  --button-text: #120c22;
  --ok: #74dca0;
  --ok-soft: rgba(116, 220, 160, 0.14);
  --warn: #f2c46e;
  --warn-soft: rgba(242, 196, 110, 0.14);
  --bad: #ff8f8f;
  --bad-soft: rgba(255, 143, 143, 0.14);
  --info: #93b9ff;
  --info-soft: rgba(147, 185, 255, 0.14);
  --glow-a: rgba(140, 108, 232, 0.34);
  --glow-b: rgba(232, 129, 196, 0.18);
  --glow-c: rgba(108, 162, 240, 0.18);
  --ribbon-opacity: 0.82;
  --grid-line: rgba(173, 189, 255, 0.05);
  --shadow-app: 0 50px 100px -20px rgba(0, 0, 0, 0.6), 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-strong);
  --shadow-card: 0 13px 27px -5px rgba(0, 0, 0, 0.45), 0 8px 16px -8px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(7, 12, 26, 0.74);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eceff8;
  --line: rgba(10, 37, 64, 0.09);
  --line-strong: rgba(10, 37, 64, 0.15);
  --rail: rgba(10, 37, 64, 0.06);
  --text: #0a2540;
  --text-soft: #425466;
  --muted: #64748d;
  --accent: #6c47a8;
  --accent-strong: #4f2f86;
  --accent-soft: rgba(108, 71, 168, 0.08);
  --accent-line: rgba(108, 71, 168, 0.3);
  --on-accent: #ffffff;
  --button-bg: #6c47a8;
  --button-hover: #0a2540;
  --button-text: #ffffff;
  --ok: #1d8a4b;
  --ok-soft: rgba(29, 138, 75, 0.1);
  --warn: #a2650a;
  --warn-soft: rgba(162, 101, 10, 0.1);
  --bad: #c03a3a;
  --bad-soft: rgba(192, 58, 58, 0.09);
  --info: #2d62c4;
  --info-soft: rgba(45, 98, 196, 0.09);
  --glow-a: rgba(185, 150, 240, 0.4);
  --glow-b: rgba(244, 170, 210, 0.28);
  --glow-c: rgba(160, 196, 255, 0.3);
  --ribbon-opacity: 1;
  --grid-line: rgba(10, 37, 64, 0.045);
  --shadow-app: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--line);
  --shadow-card: 0 13px 27px -5px rgba(50, 50, 93, 0.16), 0 8px 16px -8px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(255, 255, 255, 0.8);
  color-scheme: light;
}

:root {
  --font-display: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1200px;
  /* Brand colours that stay the same in both themes */
  --lavender: #b996f0;
  --lavender-light: #dbc7ff;
  --lavender-dark: #6c47a8;
  --ink: #17131f;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.025em; }
h3 { font-weight: 400; letter-spacing: -0.012em; }
.tone { color: var(--muted); }
p { margin: 0; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-soft);
  font: 600 0.78em/1.6 var(--font-mono);
  text-align: center;
}

.shell { width: min(100% - 48px, var(--shell)); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--lavender); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Buttons and labels ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 20px;
  border: 0; border-radius: 6px;
  background: var(--button-bg);
  color: var(--button-text); font: 500 15.5px/1 var(--font-sans); text-decoration: none; letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:hover { background: var(--button-hover); }
.button-small { min-height: 36px; padding: 0 14px 0 16px; font-size: 14.5px; }
.button-ghost {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.button-ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }

.hover-arrow {
  display: inline-block; flex: none; width: 10px; height: 10px; margin-left: 2px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.hover-arrow .arrow-shaft { opacity: 0; transition: opacity 0.15s var(--ease); }
.hover-arrow .arrow-tip { transition: transform 0.15s var(--ease); }
a:hover .hover-arrow .arrow-shaft, button:hover .hover-arrow .arrow-shaft { opacity: 1; }
a:hover .hover-arrow .arrow-tip, button:hover .hover-arrow .arrow-tip { transform: translateX(3px); }
.hover-arrow-down { transform: rotate(90deg); }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  color: var(--accent); font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em;
}
.eyebrow-center { display: flex; justify-content: center; }
.eyebrow-pill { color: var(--text-soft); font-size: 15px; }
.eyebrow-pill b { color: var(--text); font-weight: 500; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ok); animation: pulse 2.2s var(--ease) infinite;
}

.section-caption {
  margin: 0 0 26px; color: var(--muted); text-align: center;
  font-size: 15px; font-weight: 400;
}
.section-caption.align-left { text-align: left; }

.lede { color: var(--text-soft); font-size: 19px; line-height: 1.6; max-width: 640px; }
.lede-center { margin-inline: auto; text-align: center; }
.fine-print { margin-top: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: var(--header-bg); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand-mark { border-radius: 8px; }
.nav-menu { flex: 1; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-soft); font-size: 14.5px; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent-line); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; grid-area: 1 / 1; transition: opacity 0.3s, transform 0.5s var(--ease); }
[data-theme="dark"] .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: scale(0.5) rotate(-60deg); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 0; overflow: hidden; isolation: isolate; }
.hero-ribbon {
  position: absolute; top: -40px; right: max(-160px, calc(50% - 860px)); z-index: -1; pointer-events: none;
  width: min(900px, 64vw); opacity: var(--ribbon-opacity);
  mask-image: linear-gradient(100deg, transparent 6%, #000 38%);
  -webkit-mask-image: linear-gradient(100deg, transparent 6%, #000 38%);
}
.hero-ribbon svg { width: 100%; height: auto; overflow: visible; transform-origin: 70% 0; animation: ribbon-sway 16s ease-in-out infinite alternate; }
.ribbon-under { opacity: 0.55; }
.ribbon-streaks path { stroke-width: 1.2; opacity: 0.32; }
.ribbon-streaks path:nth-child(2n) { stroke-width: 2.4; opacity: 0.16; }
@keyframes ribbon-sway { from { transform: rotate(0deg) translateY(0); } to { transform: rotate(2.5deg) translateY(-18px); } }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero h1 { max-width: 820px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; font-weight: 300; letter-spacing: -0.032em; }
.hero-rotator {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 0.3em;
  margin-top: 26px; color: var(--text-soft); font-size: clamp(19px, 2.2vw, 25px); line-height: 1.35;
}
.rotator-line { white-space: nowrap; }
.rotator { position: relative; display: inline-block; min-width: 6.2em; text-align: left; }
.rotator b {
  display: inline-block; color: var(--accent); font-weight: 500;
  background: linear-gradient(90deg, var(--accent) 0%, #e58ac6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rotator b.is-leaving { animation: word-out 0.35s var(--ease) forwards; }
.rotator b.is-entering { animation: word-in 0.5s var(--ease) both; }
.hero-subtitle { max-width: 640px; margin-top: 22px; color: var(--text-soft); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 34px; }

.hero-stage { position: relative; margin-top: 72px; perspective: 2000px; }
.hero-stage .app { transform: rotateX(7deg) scale(0.985); transform-origin: 50% 0; transition: transform 1.2s var(--ease); }
.hero-stage.is-visible .app { transform: none; }
.hero-stage::before {
  content: ""; position: absolute; inset: 14% 12% -4%; z-index: -1; border-radius: 40px; opacity: 0.6;
  background: radial-gradient(ellipse at center, var(--glow-a), transparent 70%); filter: blur(40px);
}

.stage-caption { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; }
.demo-toggle {
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: transparent; color: var(--muted); font: 500 12.5px/1.2 var(--font-sans); cursor: pointer;
}
.demo-toggle:hover { color: var(--text); border-color: var(--accent-line); }

.harness-band { padding: 72px 0 20px; }
.marquee {
  display: flex; overflow: hidden; gap: 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; flex-shrink: 0; gap: 56px; margin: 0; padding: 0 28px; list-style: none;
  animation: marquee 32s linear infinite;
}
.marquee-track li { display: flex; align-items: center; font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; color: var(--text-soft); white-space: nowrap; opacity: 0.9; }
.marquee-track .logo { width: 0.95em; height: 0.95em; margin-right: 0.35em; }
.marquee-track li:last-child { color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- App mock (shared by every animated demo) ---------- */
.app {
  position: relative; overflow: hidden;
  border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow-app);
  font-size: 13px; line-height: 1.4; text-align: left; color: var(--text);
}
.app-chrome {
  display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.app-dots i:nth-child(1) { background: #f17d74; }
.app-dots i:nth-child(2) { background: #f3c360; }
.app-dots i:nth-child(3) { background: #6fcf86; }
.app-url {
  flex: 1; max-width: 360px; margin-inline: auto; padding: 4px 12px; border-radius: 8px;
  background: var(--surface); color: var(--muted); font: 12px/1.4 var(--font-mono); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-presence { display: flex; }
.app-presence .av + .av { margin-left: -6px; }

.av {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em; color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
}
.av-logo { max-width: none; border-radius: 7px; object-fit: contain; background: var(--surface); }
.av-logo.is-mark { padding: 3px; background: var(--surface-3); }
.logo {
  display: inline-block; flex-shrink: 0; width: 1.15em; height: 1.15em; margin-right: 0.4em;
  border-radius: 22%; object-fit: contain; vertical-align: -0.22em;
}
.logo-plate { padding: 2px; background: #fff; }
.av-maya { background: linear-gradient(135deg, #f0a65d, #d9673b); }
.av-sam { background: linear-gradient(135deg, #5fb8d9, #3a7bbf); }
.av-ade { background: linear-gradient(135deg, #63c99a, #2f8f67); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: 0.5; flex-shrink: 0; transition: background 0.4s, opacity 0.4s, box-shadow 0.4s; }
.dot.on { background: var(--ok); opacity: 1; box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.degraded { background: var(--warn); opacity: 1; box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.idle { background: var(--muted); opacity: 0.55; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-soft);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-status="doing"] { background: var(--info-soft); color: var(--info); }
.pill[data-status="review"] { background: var(--warn-soft); color: var(--warn); }
.pill[data-status="done"] { background: var(--ok-soft); color: var(--ok); }
.pill[data-status="blocked"] { background: var(--bad-soft); color: var(--bad); }
.pill.is-changed { animation: pop 0.5s var(--ease); }

.mini-btn {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-soft);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.mini-btn-primary { border-color: transparent; background: var(--lavender); color: var(--ink); }
.mini-btn.is-pressed { animation: press 0.45s var(--ease); }

.side-label { margin: 14px 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.tid { color: var(--muted); font: 600 11.5px/1 var(--font-mono); }
.caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }

/* Toasts */
.app-toasts { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; max-width: 360px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: var(--shadow-card), 0 8px 24px -12px rgba(0, 0, 0, 0.35);
  font-size: 12.5px; color: var(--text);
  animation: toast-life 4s var(--ease) forwards;
}
.toast b { font-weight: 600; }
.toast .tone { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.toast-ok .tone { background: var(--ok); }
.toast-warn .tone { background: var(--warn); }
.toast-bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.toast-bad .tone { background: var(--bad); }

/* Hero app */
.app-hero .app-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 0; min-height: 440px; transition: grid-template-columns 0.7s var(--ease); }
.app-hero.show-inspect .app-body { grid-template-columns: 210px minmax(0, 1fr) 270px; }
.app-side { padding: 14px 12px; border-right: 1px solid var(--line); background: var(--surface-2); }
.side-ws { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: 13.5px; }
.side-ws img { border-radius: 5px; }
.side-search {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px;
}
.side-search kbd { font-size: 10px; }
.side-nav { display: grid; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--text-soft); }
.side-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.side-item.is-active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.side-badge { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--lavender); color: var(--ink); font-size: 10.5px; text-align: center; }
.side-badge.is-bumped { animation: pop 0.5s var(--ease); }
.side-agents { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.side-agents li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; color: var(--text-soft); font-size: 12px; }
.side-agents em { display: inline-flex; align-items: center; margin-left: auto; color: var(--muted); font-style: normal; font-size: 10.5px; white-space: nowrap; }
.side-agents .logo { width: 12px; height: 12px; margin-right: 4px; }

.app-main { min-width: 0; padding: 14px 18px; }
.app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.app-head h4 { font-size: 15px; font-weight: 600; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.seg span { padding: 2px 9px; border-radius: 6px; color: var(--muted); font-size: 11.5px; }
.seg .is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.app-filter { color: var(--muted); font-size: 11.5px; }
.app-new { margin-left: auto; color: var(--text-soft); font-size: 12px; }
.app-new kbd { font-size: 10px; }

.task-list { margin: 0; padding: 0; list-style: none; }
.trow {
  position: relative; display: grid; align-items: center; gap: 12px;
  grid-template-columns: 18px 44px minmax(0, 1fr) auto 118px 84px 64px;
  min-height: 46px; padding: 0 10px; border-radius: 10px;
  transition: background 0.4s var(--ease);
}
.trow + .trow { box-shadow: inset 0 1px 0 var(--line); }
.trow.is-hot { background: var(--accent-soft); }
.trow.is-shake { animation: shake 0.5s var(--ease); }
.tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tags { display: flex; gap: 5px; }
.tags i, .bmeta i { padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-style: normal; font-size: 10.5px; }
.who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.who em { color: var(--muted); font-style: normal; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.prio i { width: 3px; border-radius: 1px; background: var(--line-strong); }
.prio i:nth-child(1) { height: 5px; } .prio i:nth-child(2) { height: 8px; } .prio i:nth-child(3) { height: 12px; }
.prio-low i:nth-child(1), .prio-med i:nth-child(-n+2), .prio-high i { background: var(--text-soft); }
.tprog { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.tprog i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--lavender), #e58ac6); transition: width 1.6s var(--ease); }
.receipt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); font-size: 10.5px; font-weight: 600; }

.app-inspect { overflow: hidden; padding: 16px; border-left: 1px solid var(--line); background: var(--surface-2); opacity: 0; transition: opacity 0.5s var(--ease) 0.2s; white-space: nowrap; }
.show-inspect .app-inspect { opacity: 1; }
.inspect-kicker { color: var(--warn); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.app-inspect h5 { margin: 8px 0 10px; font-size: 14px; font-weight: 600; white-space: normal; }
.inspect-meta { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 12px; }
.inspect-proof { display: grid; gap: 6px; margin: 14px 0; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.inspect-proof i { height: 6px; border-radius: 4px; background: var(--surface-3); }
.inspect-proof i:nth-child(2) { width: 80%; } .inspect-proof i:nth-child(3) { width: 55%; }
.inspect-actions { display: flex; gap: 8px; }

/* ---------- Trust ---------- */
.trust-section { padding: 56px 0 64px; }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); }
.trust-grid span {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px;
  min-height: 88px; border-right: 1px solid var(--line); color: var(--text);
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; text-align: center;
}
.trust-grid span:last-child { border-right: 0; }
.trust-grid .logo { width: 28px; height: 28px; margin: 0; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Sections ---------- */
.section { padding: 136px 0; }
.section-alt { background: var(--bg-alt); }

main > section { position: relative; isolation: isolate; }
main > section + section { border-top: 1px solid var(--line); }
main > section::after {
  content: ""; position: absolute; inset: 0 auto 0 50%; z-index: -1; pointer-events: none;
  width: min(100% - 24px, calc(var(--shell) + 48px)); transform: translateX(-50%);
  border-inline: 1px solid var(--rail);
}
.section-head { margin-bottom: 56px; }
.section-head h2 { max-width: 860px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; margin-bottom: 22px; }
.section-head-center { text-align: center; }
.section-head-center h2 { margin-inline: auto; }

/* Problem: scattered fragments converge into one task */
.converge { position: relative; margin-bottom: 40px; }
.converge-stage {
  position: relative; height: 420px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background:
    radial-gradient(ellipse at 50% 50%, var(--accent-soft), transparent 70%), var(--surface-2);
}
.frag {
  position: absolute; width: 250px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-card);
  font-size: 14px; transition: transform 1.1s var(--ease), opacity 0.8s var(--ease), filter 0.8s;
  animation: float 6s ease-in-out infinite alternate;
}
.frag p { margin-top: 4px; font-weight: 500; }
.frag-kicker { color: var(--muted); font-size: 12px; font-weight: 500; }
.frag-sub, .frag-reply { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.frag-platforms p { display: flex; flex-wrap: wrap; gap: 5px; }
.frag-platforms i { display: inline-flex; align-items: center; padding: 2px 8px 2px 5px; border-radius: 6px; background: var(--surface-3); font-style: normal; font-size: 12px; }
.frag-platforms .logo { width: 14px; height: 14px; margin-right: 5px; }
.frag-chat { left: 6%; top: 12%; transform: rotate(-4deg); }
.frag-doc { left: 38%; top: 6%; transform: rotate(3deg); animation-delay: -2s; }
.frag-board { right: 6%; top: 14%; transform: rotate(5deg); animation-delay: -4s; }
.frag-approve { left: 14%; bottom: 10%; transform: rotate(3deg); animation-delay: -1s; }
.frag-platforms { right: 10%; bottom: 9%; transform: rotate(-3deg); animation-delay: -3s; }
.converged {
  position: absolute; left: 50%; top: 50%; width: min(460px, 88%); padding: 18px 20px;
  border-radius: 12px; border: 1px solid var(--accent-line); background: var(--surface);
  box-shadow: var(--shadow-app); opacity: 0; transform: translate(-50%, -40%) scale(0.92);
  transition: transform 0.9s var(--ease) 0.25s, opacity 0.6s var(--ease) 0.25s;
}
.cv-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cv-head b { flex: 1; font-size: 15px; font-weight: 600; }
.cv-lines { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-soft); }
.cv-lines li { display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.cv-lines em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }
.cv-receipt { display: inline-grid; place-items: center; width: 22px; }
.converge-stage.is-merged .frag { opacity: 0; filter: blur(4px); }
.converge-stage.is-merged .frag-chat { transform: translate(140px, 80px) scale(0.6) rotate(0); }
.converge-stage.is-merged .frag-doc { transform: translate(0, 120px) scale(0.6) rotate(0); }
.converge-stage.is-merged .frag-board { transform: translate(-140px, 80px) scale(0.6) rotate(0); }
.converge-stage.is-merged .frag-approve { transform: translate(140px, -70px) scale(0.6) rotate(0); }
.converge-stage.is-merged .frag-platforms { transform: translate(-140px, -70px) scale(0.6) rotate(0); }
.converge-stage.is-merged .converged { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.converge-stage.is-merged .cv-lines li { opacity: 1; transform: none; }
.converge-stage.is-merged .cv-lines li:nth-child(1) { transition-delay: 0.8s; }
.converge-stage.is-merged .cv-lines li:nth-child(2) { transition-delay: 1.1s; }
.converge-stage.is-merged .cv-lines li:nth-child(3) { transition-delay: 1.4s; }
.converge-switch {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 600;
}
.converge-switch span { padding: 5px 14px; border-radius: 999px; white-space: nowrap; color: var(--muted); transition: background 0.4s var(--ease), color 0.4s; }
.converge-switch .is-on { background: var(--lavender); color: var(--ink); }
.converge > .demo-toggle { position: absolute; right: 16px; top: 16px; background: var(--surface); }

.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.compare-col { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.compare-entity { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.compare-col h3 { margin-bottom: 18px; font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.scatter, .pillars { display: grid; margin: 0; padding: 0; list-style: none; }
.scatter li, .pillars li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.5; }
.scatter b, .pillars b { display: block; color: var(--text); font-size: 16px; font-weight: 500; }
.scatter b { text-decoration: line-through; text-decoration-color: var(--accent-line); }
.pillars b { color: var(--accent); }

/* Control plane band */
.control-band { position: relative; padding: 140px 0; overflow: hidden; text-align: center; isolation: isolate; }
.control-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, var(--glow-a), transparent 70%);
  opacity: 0.6;
}
.control-title { max-width: 980px; margin: 0 auto 22px; font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; }
.control-title em { font-style: normal; color: var(--accent); }
.control-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 64px 0 0; padding: 0; list-style: none; text-align: left; }
.control-card {
  display: grid; align-content: start; gap: 10px; padding: 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.control-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.control-card b { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.control-card > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.55; }
.control-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.control-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* Harnesses */
.harness-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.harness-copy h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; margin-bottom: 22px; }
.connect-steps { display: grid; gap: 14px; margin: 34px 0 28px; padding: 0; list-style: none; counter-reset: connect; }
.connect-steps li { position: relative; display: grid; gap: 2px; padding-left: 46px; counter-increment: connect; }
.connect-steps li::before {
  content: counter(connect); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 500; font-size: 13px; font-family: var(--font-mono);
}
.connect-steps b { font-weight: 500; }
.connect-steps span { color: var(--muted); font-size: 15px; }
.prompt-card { border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 600; }
.copy-button { padding: 6px 12px; border: 0; border-radius: 5px; background: var(--lavender); color: var(--ink); font: 600 12.5px/1 var(--font-sans); cursor: pointer; }
.copy-button.is-done { background: var(--ok); color: #fff; }
.prompt-card pre { margin: 0; padding: 16px; overflow-x: auto; color: var(--text-soft); font: 12.5px/1.7 var(--font-mono); white-space: pre-wrap; }
.prompt-status { min-height: 0; padding: 0 16px; color: var(--ok); font-size: 12.5px; }
.prompt-status:not(:empty) { padding-bottom: 12px; }

.roster { padding: 18px 20px 20px; }
.roster-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.roster-head h4 { font-size: 15px; font-weight: 600; }
.roster-list { display: grid; margin: 0; padding: 0; list-style: none; }
.roster-list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 100px 76px; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 8px; border-top: 1px solid var(--line); border-radius: 8px;
  transition: background 0.5s var(--ease);
}
.roster-list li.is-pairing { background: var(--accent-soft); }
.roster-list .av { width: 26px; height: 26px; font-size: 10px; }
.r-name { display: grid; min-width: 0; }
.r-name b { font-weight: 600; font-size: 13.5px; }
.r-name em { overflow: hidden; color: var(--muted); font-style: normal; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.r-health { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.roster-list li.is-online .r-health { color: var(--ok); }
.r-beat { color: var(--muted); font: 11px/1 var(--font-mono); text-align: right; }
.roster-people { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.roster-people span:last-child { margin-left: 10px; }

/* Product tour tabs */
.tab-list {
  display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 48px; padding: 5px;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); overflow-x: auto;
}
.tab {
  padding: 10px 18px; border: 0; border-radius: 5px; background: transparent; color: var(--muted);
  font: 500 14.5px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: color 0.2s, background 0.3s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--lavender); color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: center; animation: panel-in 0.6s var(--ease); }
.tab-panel[hidden] { display: none; }
.tour-copy h3 { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; }
.tour-copy > p { margin-bottom: 18px; color: var(--text-soft); }
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; color: var(--text-soft); font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%23b996f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.inbox-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.inbox-kinds li { color: var(--muted); font-size: 14px; line-height: 1.4; }
.inbox-kinds b { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; }

/* Board demo */
.app-board, .app-doc, .app-goals { min-height: 400px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.bcol { display: grid; align-content: start; gap: 8px; min-height: 320px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.bcol-head { display: flex; justify-content: space-between; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.bcol-head em { color: var(--muted); font-style: normal; }
.bcard {
  display: grid; gap: 6px; padding: 10px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.bcard b { font-weight: 600; font-size: 12.5px; line-height: 1.3; }
.bcard.is-arriving { animation: card-in 0.6s var(--ease); }
.bcard.is-lifted { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45); transform: rotate(-2deg) scale(1.03); transition: transform 0.3s var(--ease); }
.bcard.is-done b { color: var(--muted); }
.bmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bmeta .av { width: 18px; height: 18px; font-size: 8px; }
.bmeta .av-logo.is-mark { padding: 2px; }
.rv { margin-left: auto; }
.palette, .newtask {
  position: absolute; left: 50%; top: 70px; z-index: 6; width: min(440px, 86%);
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: var(--shadow-app); opacity: 0; transform: translate(-50%, -10px) scale(0.97); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.palette.is-open, .newtask.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.palette-results { margin: 0; padding: 6px; list-style: none; }
.palette-results li { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.palette-results li:first-child { background: var(--accent-soft); }
.palette-results em { min-width: 34px; color: var(--muted); font-style: normal; font-size: 11.5px; }
.palette.has-results li { opacity: 1; transform: none; }
.palette.has-results li:nth-child(2) { transition-delay: 0.08s; }
.palette.has-results li:nth-child(3) { transition-delay: 0.16s; }
.newtask { padding: 16px 18px; }
.newtask-head { color: var(--muted); font-size: 12px; font-weight: 600; }
.newtask-title { min-height: 28px; margin: 8px 0 12px; font-size: 18px; font-weight: 600; }
.newtask-meta { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }
.newtask-meta b { display: inline-flex; align-items: center; color: var(--text); }
.newtask-meta .logo { width: 14px; height: 14px; margin-right: 5px; }

/* Docs demo */
.doc-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px; min-height: 360px; }
.doc-spaces { display: grid; align-content: start; gap: 2px; padding: 14px 12px; border-right: 1px solid var(--line); background: var(--surface-2); }
.doc-spaces .side-label { margin-top: 0; }
.space { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 7px; color: var(--text-soft); font-size: 12.5px; }
.space em { color: var(--muted); font-style: normal; font-size: 11px; }
.space.is-active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.doc-page { position: relative; padding: 18px 22px; font-size: 13.5px; line-height: 1.65; color: var(--text-soft); }
.doc-page > p + p { margin-top: 10px; }
.doc-page h5 { margin: 6px 0 10px; color: var(--text); font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.doc-crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; }
.doc-ver { padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; }
.doc-ver.is-changed { animation: pop 0.5s var(--ease); background: var(--ok-soft); color: var(--ok); }
.doc-listen { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--accent); font-weight: 600; }
.doc-listen i { width: 2px; height: 8px; border-radius: 2px; background: currentColor; margin-right: 1px; }
.doc-listen.is-playing i { animation: wave 0.9s ease-in-out infinite; }
.doc-listen.is-playing i:nth-child(2) { animation-delay: -0.2s; }
.doc-listen.is-playing i:nth-child(3) { animation-delay: -0.4s; }
.doc-listen.is-playing i:nth-child(4) { animation-delay: -0.6s; margin-right: 6px; }
.doc-sugg del { color: var(--muted); text-decoration-color: var(--bad); transition: opacity 0.4s; }
.doc-sugg ins { color: var(--ok); text-decoration: none; background: var(--ok-soft); border-radius: 4px; }
.doc-sugg ins:empty { display: none; }
.doc-sugg.is-accepted del { display: none; }
.doc-sugg.is-accepted ins { background: transparent; color: var(--text-soft); transition: background 0.8s, color 0.8s; }
.doc-sugg-card {
  display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 10px; width: fit-content;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-card);
  font-size: 12px; opacity: 0; transform: translateY(6px); overflow: hidden;
  max-height: 0; margin-block: 0; padding-block: 0; border-color: transparent; box-shadow: none;
  transition: opacity 0.4s, transform 0.4s var(--ease), max-height 0.5s var(--ease), margin 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.doc-sugg-card.is-open { opacity: 1; transform: none; max-height: 120px; margin-block: 10px; padding-block: 8px; border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.doc-highlight { transition: background 0.5s; border-radius: 4px; }
.doc-highlight.is-cited { background: var(--warn-soft); }
.doc-comment {
  display: flex; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px;
  opacity: 0; transform: translateX(10px); transition: opacity 0.5s, transform 0.5s var(--ease);
}
.doc-comment b { display: block; color: var(--text); }
.doc-comment.is-open { opacity: 1; transform: none; }
.doc-ask { padding: 14px; border-left: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; }
.ask-tabs { display: flex; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 11.5px; }
.ask-tabs b { color: var(--accent); }
.ask-q { min-height: 36px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.ask-a { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--text-soft); opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.ask-a.is-open { opacity: 1; transform: none; }
.cite { display: block; margin-top: 6px; color: var(--accent); font: 11px/1.4 var(--font-mono); }

/* Goals demo */
.lanes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 16px; }
.lane { display: grid; align-content: start; gap: 10px; min-height: 320px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.lane-head { display: grid; color: var(--text); font-weight: 600; font-size: 13px; }
.lane-head em { color: var(--muted); font-style: normal; font-weight: 400; font-size: 11px; }
.goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.goal b { font-size: 13px; font-weight: 600; }
.health { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; align-self: start; transition: background 0.5s, color 0.5s; }
.health[data-health="on_track"] { background: var(--ok-soft); color: var(--ok); }
.health[data-health="at_risk"] { background: var(--warn-soft); color: var(--warn); }
.health[data-health="off_track"] { background: var(--bad-soft); color: var(--bad); }
.health[data-health="unknown"] { background: var(--surface-3); color: var(--muted); }
.health.is-changed { animation: pop 0.5s var(--ease); }
.gbar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.gbar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--lavender), #e58ac6); transition: width 1.2s var(--ease); }
.gmeta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11.5px; }

/* ---------- Video players ---------- */
.player { margin: 0; }
.player-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: #110e18; box-shadow: var(--shadow-app); aspect-ratio: 16 / 9;
}
.player-video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.player-progress i { display: block; height: 100%; background: var(--lavender); transform: scaleX(0); transform-origin: left; }
.player-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.player-button {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text-soft);
  font: 500 13px/1 var(--font-sans); cursor: pointer;
}
.player-button:hover { color: var(--text); border-color: var(--accent-line); }
.player-button svg { width: 13px; height: 13px; fill: currentColor; }
.player .icon-pause, .player.is-playing .icon-play, .player .icon-sound, .player.has-sound .icon-muted { display: none; }
.player.is-playing .icon-pause, .player.has-sound .icon-sound { display: block; }
.player-caption { margin-top: 4px; }
.player-caption p { max-width: 760px; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.player-wide { margin-bottom: 0; }

.watch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

/* Workflow */
.workflow { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.workflow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.workflow-head h3 { font-family: var(--font-display); font-size: 28px; font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps-five { grid-template-columns: repeat(5, 1fr); margin-top: 28px; }
.steps li { display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.steps li::before { content: "0" counter(step); color: var(--accent); font: 500 12.5px/1.4 var(--font-mono); }
.steps b { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.steps span { color: var(--muted); font-size: 15px; }
.gate-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text-soft); font-size: 15px;
}
.gate-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); color: var(--bad); font-size: 13px; font-weight: 600; }
.gate-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Teams */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.team-card {
  display: grid; align-content: start; gap: 12px; padding: 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.team-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.team-kicker { color: var(--accent); font-size: 14px; font-weight: 500; }
.team-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
.team-card p { color: var(--muted); font-size: 15px; }
.team-flow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.team-flow i { padding: 3px 9px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); font-style: normal; font-size: 12px; }
.team-flow i + i::before { content: "→ "; color: var(--muted); }

/* Workspace areas */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.area { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, box-shadow 0.4s var(--ease); }
.area:hover { border-color: var(--accent-line); box-shadow: var(--shadow-card); }
.area svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.area h3 { margin: 22px 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.area p { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing-section { padding: 120px 0; }
.pricing-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding: 56px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background: radial-gradient(ellipse at 0% 0%, var(--accent-soft), transparent 60%), var(--surface);
}
.pricing-card h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.pricing-copy { display: grid; gap: 20px; align-content: start; color: var(--text-soft); }
.pricing-copy ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pricing-copy li { position: relative; padding-left: 26px; }
.pricing-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Demo CTA */
.demo-section { position: relative; padding: 150px 0; overflow: hidden; text-align: center; isolation: isolate; }
.demo-orb {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: 900px; height: 900px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, var(--glow-a), transparent 60%); filter: blur(30px);
  animation: breathe 9s ease-in-out infinite;
}
.demo-inner h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 24px; }
.demo-inner > p:not(.eyebrow) { max-width: 560px; margin: 0 auto 32px; color: var(--text-soft); font-size: 18px; }

/* ---------- Contact form ---------- */
.contact-form {
  display: grid; gap: 16px; width: 100%; max-width: 640px; margin: 0 auto; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-card); text-align: left;
}
.contact-page-form { max-width: none; margin-top: 32px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface-2); color: var(--text); font: 400 15px/1.4 var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { min-height: 0; color: var(--bad); font-size: 12.5px; font-weight: 500; }
.field-error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-actions .button { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.form-actions .button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.form-status { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 14px; }
.form-status[data-tone="ok"] { color: var(--ok); }
.form-status[data-tone="bad"] { color: var(--bad); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-inner > p { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--text-soft); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer small { width: 100%; color: var(--muted); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.is-paused *, .is-paused { animation-play-state: paused !important; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes word-out { to { opacity: 0; transform: translateY(-0.5em); filter: blur(4px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.5em); filter: blur(4px); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes press { 0% { transform: scale(1); } 40% { transform: scale(0.92); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes toast-life { 0% { opacity: 0; transform: translateY(12px) scale(0.96); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes card-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 12px; } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .trow { grid-template-columns: 18px 44px minmax(0, 1fr) 108px 80px 56px; }
  .trow .tags { display: none; }
  .app-hero.show-inspect .app-body { grid-template-columns: 190px minmax(0, 1fr) 240px; }
  .app-hero .app-body { grid-template-columns: 190px minmax(0, 1fr) 0; }
  .control-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-panel { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .doc-layout { grid-template-columns: 140px minmax(0, 1fr) 190px; }
}

@media (max-width: 1020px) {
  .harness-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .steps-five { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 920px) {
  .nav { gap: 12px; }
  .menu-toggle {
    display: grid; align-content: center; gap: 5px; width: 40px; height: 38px; padding: 0 10px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 72px 0 auto; padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line); background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .app-hero .app-body, .app-hero.show-inspect .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-hero .app-side, .app-hero .app-inspect { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .app-toasts .toast:not(:last-child) { display: none; }
  .hero { padding-top: 120px; }
  .hero-ribbon { top: -90px; right: -30vw; width: 105vw; opacity: calc(var(--ribbon-opacity) * 0.75); }
  main > section::after { display: none; }
  .hero-stage { margin-top: 48px; }
  .section { padding: 96px 0; }
  .control-band { padding: 104px 0; }
  .section-head { margin-bottom: 40px; }
  .lede { font-size: 17px; }
  .trow { grid-template-columns: 40px minmax(0, 1fr) 22px 84px; gap: 8px; padding: 0 6px; }
  .trow .prio, .trow .who em, .trow .tprog { display: none; }
  .app-hero .app-body { min-height: 0; }
  .app-head .seg, .app-filter { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .trust-grid span { justify-content: flex-start; gap: 8px; min-height: 64px; padding: 0 14px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--line); }
  .trust-grid .logo { width: 22px; height: 22px; border-radius: 6px; }
  .trust-grid span:nth-child(2n) { border-right: 0; }
  .trust-grid span:nth-last-child(-n+2) { border-bottom: 0; }
  .converge-stage { height: 520px; }
  .frag { width: 200px; font-size: 13px; }
  .frag-chat { left: 4%; top: 5%; } .frag-doc { left: auto; right: 4%; top: 22%; } .frag-board { right: auto; left: 6%; top: 40%; }
  .frag-approve { left: auto; right: 6%; bottom: 24%; } .frag-platforms { right: auto; left: 4%; bottom: 8%; }
  .converge-stage.is-merged .frag { transform: translate(0, 0) scale(0.6) rotate(0); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcol { min-height: 160px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-spaces, .doc-ask { display: none; }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane { min-height: 0; }
  .roster-list li { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .r-beat { display: none; }
  .steps-five { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .workflow { margin-top: 40px; padding: 24px 20px; }
  .compare-col { padding: 24px 20px; }
  .area-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .area { padding: 24px; }
  .pricing-card { padding: 32px 24px; }
  .demo-section { padding: 110px 0; }
  .stage-caption { flex-wrap: wrap; }
  .tab-list { justify-content: flex-start; margin-bottom: 32px; }
  .tab { padding: 9px 14px; font-size: 13.5px; }
  .marquee-track li { font-size: 24px; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .nav-actions .button-small { display: none; }
  .hero h1 { font-size: 42px; }
  .control-grid, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps-five { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .inbox-kinds { grid-template-columns: minmax(0, 1fr); }
  .gate-note { padding: 16px; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .bcol[data-col="todo"], .bcol[data-col="done"] { display: none; }
  .tab-list { gap: 2px; padding: 4px; }
  .tab { padding: 9px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; -webkit-mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: 12px 36px; animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .hero-stage .app { transform: none; }
}
