:root {
  --black: #000;
  --white: #fff;
  --gray-100: #f1f1f1;
  --gray-200: #e6e6e6;
  --gray-300: #b3b3b3;
  --gray-500: #6c6b6b;
  --gray-700: #2e2e2e;
  --gray-900: #171717;
  --purple: #b154f9;
  --blue: #1961ed;
  --green: #3fcf8e;
  --grad-purple: linear-gradient(90deg, #8300e9 0.01%, #b154f9 99.99%);
  --grad-lead-bg: linear-gradient(90.01deg, #f8d1c9 0.01%, #dcf 99.99%);
  --grad-lead-text: linear-gradient(92.37deg, #b78aff 16.58%, #fe9c72 90.82%);
  --grad-agent-bg: linear-gradient(90deg, #8dc8ff 0.01%, #9dffca 99.99%);
  --grad-agent-text: linear-gradient(92.37deg, #a8dafa 16.58%, #99f8cd 90.82%);
  --grad-crm-bg: linear-gradient(90deg, #ccedff 0.01%, #c9a9ff 99.99%);
  --grad-crm-text: linear-gradient(95.66deg, #77b5ff 18.09%, #a782ff 88.64%);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --r-sm: max(0.625rem, 0.6944vw);
  --r-md: max(0.875rem, 0.9722vw);
  --gutter: max(1.25rem, 1.3889vw);
  --col: min(64.583vw, 58rem);
  --font: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gray-100);
  color: var(--black);
  font: 400 16px/1.3 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.85em; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
svg { overflow: visible; }

.lg {
  display: inline-block;
  width: 1em; height: 1em;
  background: var(--fg, currentColor);
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: max(3rem, 3.3333vw);
  padding: 0 max(1rem, 1.1111vw);
  border-radius: var(--r-sm);
  font-size: max(1rem, 1.1111vw);
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-purple { background: var(--grad-purple); color: var(--white); }
.btn-ghost { border: 1px solid var(--purple); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }

/* Dynamic island */
.island {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  height: 40px; padding: 4px 4px 4px 12px;
  border-radius: 9px;
  color: #111;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 8px 28px -14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  transition: top 0.45s var(--spring), background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.island-logo { display: inline-flex; align-items: center; gap: 7px; margin-right: 14px; color: inherit; }
.island-mark { display: block; width: 18px; height: 18px; flex: none; color: currentColor; cursor: pointer; }
.island-word { font-family: 'Geist', 'Inter Tight', system-ui, sans-serif; font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: -0.03em; }
.island-links { display: flex; align-items: center; gap: 2px; }
.island-links a { padding: 6px 10px; border-radius: 6px; font-size: 13px; line-height: 1; color: inherit; opacity: 0.72; transition: opacity 0.2s ease, background 0.2s ease; }
.island-links a:hover { opacity: 1; background: rgba(17, 17, 17, 0.06); }
.island-cta { height: 30px; margin-left: 6px; padding: 0 12px; border-radius: 6px; background: #111; color: #fff; font-size: 13px; font-weight: 500; line-height: 1; transition: background 0.2s ease, transform 0.2s ease; }
.island-cta:hover { background: #2a2a2a; }
.island-cta:active { transform: scale(0.97); }
.island.is-compact { top: 8px; }
.island.on-dark { color: #fff; background: rgba(24, 24, 27, 0.45); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 8px 28px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.island.on-dark .island-links a:hover { background: rgba(255, 255, 255, 0.1); }
.island.on-dark .island-cta { background: #fff; color: #111; }
.island.on-dark .island-cta:hover { background: #e9e9e9; }

/* Hero */
.hero { display: flex; flex-direction: column; height: 100svh; min-height: 40rem; background: var(--white); }
.scene { position: relative; flex: 1; min-height: 14rem; overflow: hidden; background: #f4dcd6; }
.scene img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: max(2rem, 3.2vh) max(1.5rem, 4.2vw) max(2rem, 3.6vh); }
.hero-title { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.6rem, 4.7vw, 5rem); line-height: 1; letter-spacing: -0.01em; color: #111; }
.hero-side { width: min(22rem, 100%); padding-top: 0.3rem; }
.hero-side p { color: #444; font-size: 15px; line-height: 1.45; margin-bottom: 1.1rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 17px; border-radius: 999px; font-size: 15px; white-space: nowrap; transition: transform 0.25s var(--spring), background 0.2s ease; }
.hbtn:hover { transform: translateY(-1px); }
.hbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hbtn.dark { background: #161616; color: var(--white); font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.hbtn.light { background: #efefef; color: #111; }
.hbtn.light:hover { background: #e6e6e6; }
.strip { display: flex; align-items: flex-start; justify-content: center; gap: clamp(3rem, 8vw, 9rem); padding: clamp(5.5rem, 13vh, 9rem) max(1.5rem, 4.2vw) clamp(3.5rem, 8vh, 5.5rem); border-bottom: 1px solid #ececec; color: #8a8a8a; background: #fff; }
.strip-group { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.strip-label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #b0b0b0; white-space: nowrap; }
.strip-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.1rem 2.25rem; }
.strip-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s ease; }
.strip-logo:hover { color: #222; }
.strip-logo .lg { font-size: 21px; }
.is-paused, .is-paused * { animation-play-state: paused !important; }
.app-icon { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 23%; background: var(--ib, #fff); color: var(--ic, #000); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -0.35vw 0.9vw rgba(0, 0, 0, 0.07), 0 1.3vw 2.4vw -1.1vw rgba(50, 25, 20, 0.4), 0 0.15vw 0.35vw rgba(0, 0, 0, 0.08); }
.app-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(155deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 42%), linear-gradient(0deg, rgba(0, 0, 0, 0.05), transparent 40%); pointer-events: none; }
.app-icon img, .app-icon .lg { width: 56%; height: 56%; }
.ic-gemini { --ib: #fff; }
.ic-openai { --ib: #0d0d0d; --ic: #fff; }
.ic-claude { --ib: #f4efe6; }
.ic-ollama { --ib: #fff; }
.ic-ollama img { width: 50%; height: 50%; }
.ic-groq { --ib: #f55036; --ic: #fff; }
.ic-openrouter { --ib: #fff; --ic: #6467f2; }

/* Side chapter menu */

/* Chapters */
.chapter { position: relative; padding: max(7.5rem, 8.3333vw) 0 max(6rem, 8.3333vw); }
.chapter.dark { background: var(--gray-900); color: var(--white); }
.chapter-title {
  display: flex; align-items: center; justify-content: center; gap: max(1.5rem, 2.2222vw);
  font-size: max(3rem, 6.6667vw); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: max(6rem, 10vw);
}

.panel {
  position: relative;
  margin: 0 var(--gutter);
  padding: max(4.5rem, 6.2vw) max(1.25rem, 5.5vw) 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel-lead { background: var(--grad-lead-bg); }
.panel-agent { background: var(--grad-agent-bg); }
.panel-crm { background: var(--grad-crm-bg); }
.demo-tag {
  position: absolute; top: max(1.5rem, 2vw); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); color: var(--black);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; white-space: nowrap;
}
.demo-tag span { padding: 3px 10px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 12px; }

/* Product windows */
.os { position: relative; height: max(38rem, 46vw); background: var(--white); color: #333; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 60px -20px rgba(60, 20, 80, 0.3); overflow: hidden; font-size: 13px; line-height: 1.4; letter-spacing: 0; }
.os svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.app { display: grid; grid-template-columns: 200px minmax(0, 1fr) 340px; }
.os-side { background: #fafafa; border-right: 1px solid #ededed; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.os-ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-weight: 500; color: #222; }
.os-ws svg { width: 12px; stroke: #888; stroke-width: 1.5; }
.os-ws-logo { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #ffe8e8; color: #e5484d; font-size: 10px; font-weight: 700; }
.os-quick { display: flex; gap: 6px; padding: 6px 4px 12px; }
.os-qi, .os-newchat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #e6e6e6; border-radius: 8px; background: var(--white); color: #333; font-size: 12px; white-space: nowrap; }
.os-newchat { gap: 5px; }
.os-qi svg, .os-newchat svg { width: 13px; height: 13px; stroke: #666; stroke-width: 1.3; }
.os-group { font-size: 11px; color: #999; padding: 6px 8px 4px; }
.os-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #444; text-align: left; font-size: 13px; transition: background 0.15s ease; }
.os-nav:hover { background: #f0f0f0; }
.os-nav.is-on { background: #ebebeb; color: #111; }
.os-ico { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--ib); }
.os-ico svg { width: 12px; height: 12px; stroke: var(--is); stroke-width: 1.4; }
.os-main { display: flex; flex-direction: column; min-width: 0; }
.os-top { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-bottom: 1px solid #ededed; }
.os-crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #222; }
.os-new { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: #1961ed; color: var(--white); font-size: 12px; white-space: nowrap; }
.os-kebab { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #e6e6e6; border-radius: 6px; color: #666; }
.os-bar { height: 40px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.os-view { display: inline-flex; align-items: center; gap: 6px; color: #444; }
.os-view svg { width: 14px; stroke: #777; stroke-width: 1.3; }
.os-count { color: #999; }
.os-tools { display: flex; gap: 18px; color: #666; }
.os-table { flex: 1; overflow: auto; border-top: 1px solid #ededed; }
.os-table table { width: 100%; border-collapse: collapse; }
.os-table th { position: sticky; top: 0; z-index: 1; height: 34px; padding: 0 10px; background: var(--white); color: #888; font-weight: 400; text-align: left; border-bottom: 1px solid #ededed; border-right: 1px solid #f3f3f3; white-space: nowrap; }
.os-table th svg { width: 13px; height: 13px; stroke: #999; stroke-width: 1.3; vertical-align: -2px; margin-right: 6px; }
.os-table td { height: 34px; padding: 0 10px; border-bottom: 1px solid #f3f3f3; border-right: 1px solid #f6f6f6; white-space: nowrap; color: #333; }
.os-table .cb { width: 34px; padding: 0 10px; }
.box { display: block; width: 14px; height: 14px; border: 1px solid #cfcfcf; border-radius: 3px; }
.os-table tbody tr:hover td { background: #fafafa; }
.os-table tr.is-new td { animation: rowIn 0.7s ease both; animation-delay: var(--rd, 0s); }
@keyframes rowIn { from { opacity: 0; background: #f3eeff; } 40% { opacity: 1; background: #f3eeff; } to { background: transparent; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 6px 1px 3px; border-radius: 4px; background: #f3f3f3; color: #222; }
.ini { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; font-size: 9px; background: var(--c, #eee); color: rgba(0, 0, 0, 0.65); }
.ini.round { border-radius: 50%; }
.pfp { width: 20px; height: 20px; flex: none; margin: -3px 0 -3px -2px; border-radius: 50%; object-fit: cover; background: #eee; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.logo-mark { width: 16px; height: 16px; flex: none; border-radius: 4px; object-fit: contain; background: #fff; }
.kc-row .chip { gap: 6px; }
.link { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; padding: 1px 8px; border: 1px solid #e3e3e3; border-radius: 99px; color: #333; vertical-align: middle; }
.muted { color: #bbb; }
.os-foot { display: flex; gap: 16px; padding: 8px 44px; color: #999; font-size: 12px; }
.os-foot b { color: #333; font-weight: 400; }

.os-chat { display: flex; flex-direction: column; border-left: 1px solid #ededed; background: var(--white); min-width: 0; }
.os-chat-top { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px; border-bottom: 1px solid #ededed; font-weight: 500; color: #222; }
.os-chat-icons { display: flex; gap: 12px; }
.os-chat-icons svg { width: 14px; stroke: #777; stroke-width: 1.3; }
.os-chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.os-empty { margin-top: auto; display: grid; gap: 10px; color: #555; transition: opacity 0.3s ease; }
.os-empty p { color: #333; font-weight: 500; }
.os-empty span { display: flex; align-items: center; gap: 8px; }
.os-empty svg { width: 14px; stroke: #777; stroke-width: 1.3; }
.u-msg { align-self: flex-end; max-width: 88%; padding: 8px 11px; border-radius: 10px; background: #f1f1f1; color: #222; animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.think, .tool { display: flex; align-items: center; gap: 8px; min-height: 24px; color: #999; animation: fadeUp 0.35s ease both; }
.think svg, .tool > span > svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.4; flex: none; }
.tool { justify-content: space-between; }
.tool > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tool-text { font-weight: 500; }
.tool-name { flex: none; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.04); color: #b3b3b3; font-size: 11px; }
.tool.done { cursor: pointer; }
.tool.done:hover { color: #222; }
.tool-out { display: none; padding: 10px; border: 1px solid #eee; border-radius: 6px; background: #fafafa; font: 11.5px/1.5 ui-monospace, Menlo, monospace; color: #555; white-space: pre; overflow-x: auto; }
.tool.open + .tool-out { display: block; }
.think.done, .tool.done { cursor: pointer; }
.think.done:hover, .tool.done:hover { color: #222; }
.tool-text { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tool-text .chev { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.5; fill: none; flex: none; transition: transform 0.2s ease; }
.think.open .chev, .tool.done.open .chev { transform: rotate(90deg); }
.think-body { display: none; margin: -6px 0 0 22px; padding-left: 10px; border-left: 1px solid #ececec; color: #888; font-size: 12px; line-height: 1.5; }
.think.open + .think-body { display: block; animation: fadeIn 0.25s ease both; }
.steps { display: none; margin: -6px 0 0 6px; padding: 2px 0 0 14px; border-left: 1px solid #ececec; list-style: none; }
.tool.open + .steps { display: grid; gap: 7px; }
.step { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; font-size: 12px; color: #666; animation: fadeUp 0.3s ease both; }
.step-ic { display: grid; place-items: center; width: 12px; height: 12px; color: #999; }
.step-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.spin { width: 10px; height: 10px; border: 1.5px solid #e2e2e2; border-top-color: #888; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step.ok .step-ic { color: #30a46c; }
.step.ok .step-ic svg { stroke-width: 1.8; animation: fadeIn 0.2s ease both; }
.step-label { min-width: 0; }
.step-out { color: #aaa; font-variant-numeric: tabular-nums; white-space: nowrap; }
.step-detail { grid-column: 2 / 4; display: grid; gap: 1px; margin-top: 3px; color: #999; font-size: 11.5px; overflow-wrap: anywhere; }
.shimmer { background: #b3b3b3 linear-gradient(90deg, #b3b3b3 0%, #333 50%, #b3b3b3 100%) no-repeat; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 1s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.a-msg { color: #222; line-height: 1.55; }
.a-msg ol { margin: 6px 0 0; padding-left: 18px; }
.a-msg .word { animation: fadeIn 0.25s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.os-reset { align-self: flex-start; color: #999; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.os-input { flex: none; margin: 10px; padding: 10px 10px 8px; border: 1px solid #d9d9d9; border-radius: 10px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.os-input:focus-within { border-color: #7d95ef; box-shadow: 0 0 0 3px #eaf0ff; }
.os-input textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: none; color: #222; font: inherit; }
.os-input textarea:disabled { color: #aaa; }
.os-input-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.os-clip { width: 14px; stroke: #888; stroke-width: 1.3; }
.os-model { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #eee; border-radius: 6px; font-size: 11.5px; color: #444; white-space: nowrap; }
.os-model img { width: 12px; height: 12px; }
.os-send { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: #111; color: var(--white); font-size: 11.5px; white-space: nowrap; animation: ping 1.8s ease-out infinite; }
.os-send kbd { font: inherit; opacity: 0.7; }
.os-send:disabled { opacity: 0.35; cursor: default; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(177, 84, 249, 0.55); } 100% { box-shadow: 0 0 0 8px rgba(177, 84, 249, 0); } }

/* Workflow preview */
.wf { display: flex; flex-direction: column; }
.wf-top { height: 50px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #ededed; white-space: nowrap; }
.wf-crumb { color: #222; overflow: hidden; text-overflow: ellipsis; }
.wf-crumb span { color: #999; }
.wf-status { padding: 2px 8px; border-radius: 5px; background: #f1f1f1; color: #666; font-size: 12px; transition: background 0.3s ease, color 0.3s ease; }
.wf-status.is-active { background: #e5f8ee; color: #1a8f57; }
.wf-actions { margin-left: auto; display: flex; gap: 8px; }
.wf-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #e6e6e6; border-radius: 6px; color: #444; font-size: 12px; transition: transform 0.15s ease; }
.wf-btn.dark { background: #111; border-color: #111; color: var(--white); }
.wf-btn svg { width: 10px; fill: currentColor; stroke: none; }
.wf-btn.press { transform: scale(0.92); }
.wf-canvas { position: relative; flex: 1; overflow: hidden; background: radial-gradient(circle, #dedede 1px, transparent 1.2px) 0 0 / 18px 18px; }
.wf-stage { position: absolute; left: 50%; top: 8px; width: 760px; height: 660px; transform: translateX(-50%) scale(var(--s, 1)); transform-origin: top center; }
.wf-lines { position: absolute; inset: 0; }
.wf-lines path { stroke: #cfcfcf; stroke-width: 1.3; transition: stroke 0.4s ease; }
.wf-lines path.lit { stroke: #30a46c; stroke-width: 2; }
.wnode, .wf-ghost { position: absolute; display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; background: var(--white); border: 1px solid #e3e3e3; border-radius: 8px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.wnode { transform: translateX(-50%) scale(0.92); opacity: 0; transition: opacity 0.35s ease, transform 0.45s var(--spring), border-color 0.3s ease, box-shadow 0.3s ease; }
.wnode.in { opacity: 1; transform: translateX(-50%); }
.wnode.placeholder { border-style: dashed; color: #888; }
.wnode.run { border-color: #8a5cf6; box-shadow: 0 0 0 4px #efe3ff; }
.wnode.ok { border-color: #30a46c; box-shadow: 0 0 0 3px #dff7ea; }
.wnode.skip { opacity: 0.35; }
.ni { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 6px; background: #f4f4f4; }
.ni svg { width: 14px; height: 14px; stroke: var(--nc, #666); stroke-width: 1.5; }
.wnode small, .wf-ghost small { display: block; font-size: 10px; color: #999; }
.wnode b, .wf-ghost b { display: block; font-weight: 400; font-size: 12px; color: #111; }
.wf-bubble { position: absolute; z-index: 3; max-width: 220px; padding: 8px 11px; border-radius: 12px 12px 12px 3px; background: #111; color: var(--white); font-size: 12px; line-height: 1.35; opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease, left 0.5s ease, top 0.5s ease; pointer-events: none; }
.wf-bubble.on { opacity: 1; transform: none; }
.wf-bubble.is-dock { left: 12px; right: 12px; top: auto; bottom: 12px; max-width: none; padding: 10px 12px; border-radius: 10px; font-size: 13px; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.35s var(--ease); }
.wf-bubble.is-dock.on { transform: none; }
.wf.is-compact .wf-panel { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; transform: translateY(calc(100% + 24px)); }
.wf.is-compact .wf-panel.on { transform: none; }
.wf-panel { position: absolute; right: 12px; top: 12px; z-index: 4; width: 230px; padding: 8px; border: 1px solid #e6e6e6; border-radius: 10px; background: var(--white); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.3); transform: translateX(calc(100% + 24px)); transition: transform 0.55s var(--ease); }
.wf-panel.on { transform: none; }
.wf-panel p { padding: 2px 6px 6px; font-size: 11px; color: #999; }
.wf-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: #333; font-size: 12px; transition: background 0.15s ease; }
.wf-item.hover { background: #f2f2f2; }
.wf-item svg { width: 14px; height: 14px; stroke: #666; stroke-width: 1.4; }
.wf-ghost { left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none; border-color: #cfcfcf; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.35); transform: rotate(-3deg); }
.wf-ghost.on { opacity: 1; }
.wf-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; pointer-events: none; transform: translate(var(--cx, 90%), var(--cy, 90%)); transition: transform var(--ct, 0.8s) cubic-bezier(0.65, 0, 0.35, 1); }
.wf-cursor svg { width: 22px; height: 22px; fill: #111; stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.wf-cursor::after { content: ''; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8a5cf6; opacity: 0; transform: scale(0.4); }
.wf-cursor.click::after { animation: clickRing 0.45s ease-out; }
@keyframes clickRing { 0% { opacity: 1; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.4); } }

/* Board */
.kanban { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.kb-cols { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); overflow: auto; border-top: 1px solid #ededed; }
.kb-col { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-right: 1px solid #f0f0f0; transition: background 0.2s ease; }
.kb-col.is-over { background: #f7f4ff; }
.kb-col header { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; }
.kb-stage { padding: 1px 6px; border-radius: 4px; background: var(--sc); color: var(--st); font-size: 12.5px; }
.kb-sum { color: #888; font-variant-numeric: tabular-nums; }
.kb-card { padding: 6px 8px 4px; border: 1px solid #e6e6e6; border-radius: 6px; background: var(--white); cursor: grab; touch-action: none; user-select: none; transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.35s var(--spring), box-shadow 0.2s ease; }
.kb-card:hover { box-shadow: 0 8px 20px -12px rgba(60, 20, 80, 0.35); }
.kc-name { display: flex; align-items: center; gap: 6px; padding: 1px 0 3px; color: #222; font-weight: 500; }
.kc-row { display: flex; align-items: center; gap: 8px; height: 24px; color: #444; white-space: nowrap; overflow: hidden; }
.kc-row .chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kc-row svg { width: 13px; height: 13px; stroke: #aaa; stroke-width: 1.3; flex: none; }
.kb-add { display: flex; align-items: center; gap: 6px; padding: 2px 6px; color: #999; font-size: 12.5px; }
.kb-ghost { position: fixed; z-index: 100; pointer-events: none; box-shadow: 0 24px 50px -18px rgba(60, 20, 80, 0.45); transition: none; }
.kb-card.is-placeholder { opacity: 0.25; border-style: dashed; }
.kb-card.is-dropped { animation: jiggle 0.6s var(--spring); }
@keyframes jiggle { 0% { transform: scale(1.05) rotate(-3deg); } 30% { transform: scale(0.98) rotate(2deg); } 60% { transform: rotate(-1deg); } 100% { transform: none; } }
.kb-col.is-bump .kb-sum { animation: bump 0.5s var(--spring); }
@keyframes bump { 50% { transform: scale(1.25); color: #7c3aed; } }

/* Statement */
.statement { width: var(--col); margin: max(7rem, 10vw) auto; font-size: max(2.25rem, 5.5556vw); line-height: 1.1; letter-spacing: -0.01em; }
.grad { -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-lead { background-image: var(--grad-lead-text); }
.g-agent { background-image: var(--grad-agent-text); }
.g-crm { background-image: var(--grad-crm-text); }

/* Stacked cards */
.stack { width: var(--col); margin: 0 auto; }
.scard {
  position: sticky; top: max(4.5rem, 4.8vw);
  height: max(34rem, 38.6vw);
  margin-bottom: max(6rem, 7.6vw);
  padding: max(2rem, 2.2222vw);
  border-radius: var(--r-md);
  overflow: hidden;
}
.scard:nth-child(2) { top: calc(max(4.5rem, 4.8vw) + max(6.8rem, 7.6vw)); }
.scard:nth-child(3) { top: calc(max(4.5rem, 4.8vw) + max(13.6rem, 15.2vw)); margin-bottom: 0; }
.scard.white { background: var(--white); color: var(--black); }
.scard.black { background: var(--black); color: var(--white); }
.scard h3 { font-size: max(1.75rem, 2.2222vw); line-height: 1.3; margin-bottom: max(1.5rem, 1.6667vw); }
.scard > p { max-width: 36.5vw; color: var(--gray-500); font-size: max(1.125rem, 1.25vw); line-height: 1.3; letter-spacing: 0.02em; }
.scard.black > p { color: var(--gray-300); }

.byo-note { position: absolute; left: max(2rem, 2.2222vw); bottom: max(2rem, 2.2222vw); z-index: 2; padding: 0.55em 0.95em; border-radius: 99px; background: var(--gray-100); font-size: max(0.9rem, 1.05vw); transition: background 0.3s ease; }
.byo-note.flash { animation: noteIn 0.45s var(--ease); }
@keyframes noteIn { from { opacity: 0; transform: translateY(6px); } }
.byo { position: absolute; left: 0; right: 0; top: 34%; bottom: 16%; }
.byo-tile { position: absolute; left: var(--x); top: var(--y); padding: 0; transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px)) rotate(var(--r)); transition: transform 0.7s var(--ease); }
.byo-tile .app-icon { width: max(3.6rem, 6vw); height: max(3.6rem, 6vw); transition: transform 0.35s var(--spring), outline-color 0.2s ease; outline: 3px solid transparent; outline-offset: 4px; animation: floaty 6s ease-in-out infinite; }
.byo-tile:nth-child(2n) .app-icon { animation-delay: -3s; }
.byo-tile:hover .app-icon { transform: scale(1.08); }
.byo-tile.is-picked .app-icon { outline-color: var(--purple); }
@keyframes floaty { 50% { translate: 0 -0.7vw; } }
.web { position: absolute; left: max(2rem, 2.2222vw); right: max(2rem, 2.2222vw); bottom: max(2rem, 2.4vw); display: grid; grid-template-columns: auto 1fr; gap: 1.2vw; align-items: end; }
.web-tabs { display: grid; gap: 0.7vw; }
.web-tabs button { display: grid; place-items: center; width: max(3rem, 4.6vw); height: max(3rem, 4.6vw); border-radius: max(0.7rem, 1vw); border: 1px solid #333; background: #1c1c1c; transition: background 0.25s ease, transform 0.3s var(--spring); }
.web-tabs button:hover { transform: scale(1.05); }
.web-tabs button.is-on { background: var(--white); border-color: var(--white); }
.web-tabs img, .web-tabs .lg { width: 50%; height: 50%; }
.web-box { padding: max(0.8rem, 1.1vw); border: 1px solid #2e2e2e; border-radius: max(0.9rem, 1.2vw); background: #161616; }
.web-query { display: flex; align-items: center; gap: 0.7vw; min-height: max(2.6rem, 3.2vw); padding: 0 1vw; border-radius: max(0.6rem, 0.8vw); background: var(--black); font-size: max(0.9rem, 1.15vw); }
.web-query svg { width: max(0.9rem, 1.1vw); fill: none; stroke: #888; stroke-width: 1.5; flex: none; }
.web-query span::after { content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--white); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.web-query em { margin-left: auto; font-style: normal; font-size: 0.8em; color: #888; }
.web-results { list-style: none; margin: 0.6vw 0 0; padding: 0; min-height: 9vw; }
.web-results li { display: flex; justify-content: space-between; gap: 1rem; padding: max(0.45rem, 0.65vw) 0.3vw; border-bottom: 1px solid #262626; font-size: max(0.85rem, 1.05vw); color: #e6e6e6; animation: fadeUp 0.4s ease both; }
.web-results li:last-child { border-bottom: 0; }
.web-results small { color: #888; }
.sieve { position: absolute; left: max(2rem, 2.2222vw); right: max(2rem, 2.2222vw); bottom: max(2rem, 3vw); display: grid; grid-template-columns: 1.3fr auto 1fr; align-items: center; gap: 2vw; }
.sieve-col, .sieve-out { display: grid; gap: 0.6vw; }
.url { display: flex; justify-content: space-between; align-items: center; gap: 1vw; padding: max(0.55rem, 0.8vw) max(0.8rem, 1.1vw); border-radius: 0.7vw; background: var(--gray-100); font-size: max(0.8rem, 1.05vw); transition: opacity 0.5s ease, background 0.5s ease; }
.url em { font-style: normal; font-size: 0.8em; color: #c2410c; opacity: 0; transition: opacity 0.4s ease; }
.sieve.is-on .url.bad { opacity: 0.4; text-decoration: line-through; background: #fff1ea; }
.sieve.is-on .url.bad em { opacity: 1; }
.sieve.is-on .url.good { background: #e5f8ee; }
.sieve-arrow svg { width: 4vw; fill: none; stroke: #bbb; stroke-width: 1.5; stroke-dasharray: 5 5; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.kept { display: flex; align-items: center; gap: 0.8vw; padding: max(0.7rem, 1vw) max(0.9rem, 1.2vw); border-radius: 0.8vw; background: var(--black); color: var(--white); font-size: max(0.9rem, 1.15vw); opacity: 0; transform: translateX(-1.5vw); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.kept::before { content: ''; width: 0.9vw; height: 0.9vw; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--green); }
.sieve.is-on .kept { opacity: 1; transform: none; }
.sieve.is-on .kept:nth-child(2) { transition-delay: 0.15s; }
.sieve.is-on .kept:nth-child(3) { transition-delay: 0.3s; }

.talk { position: absolute; left: 2.2vw; right: 2.2vw; bottom: 3vw; display: grid; gap: 0.8vw; }
.cl { justify-self: start; max-width: 72%; padding: max(0.7rem, 1.1vw) max(1rem, 1.5vw); border-radius: 1.4vw; background: var(--gray-700); font-size: max(0.95rem, 1.3vw); opacity: 0; transform: translateY(1vw); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.cl.me { justify-self: end; background: var(--white); color: var(--black); }
.cl.is-in { opacity: 1; transform: none; }

.chips-rows { position: absolute; left: 0; right: 0; bottom: 4vw; display: grid; gap: 1vw; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.chip-track { display: flex; gap: 0.8vw; width: max-content; animation: marquee 26s linear infinite; }
.chip-track.rev { animation-direction: reverse; animation-duration: 32s; }
.tchip { padding: max(0.7rem, 1vw) max(1rem, 1.4vw); border-radius: 999px; background: var(--gray-100); font-size: max(1rem, 1.4vw); white-space: nowrap; }
.tchip.trig { background: #e5f8ee; color: #136c43; }

.local { position: absolute; inset: auto 0 6vw; display: grid; place-items: center; }
.local-box { display: flex; align-items: center; gap: 1.6vw; padding: 1.6vw 2.2vw; border-radius: 2vw; background: var(--gray-700); font-size: max(1rem, 1.5278vw); }
.local-box .lg { font-size: 3vw; }
.local-box em { display: inline-flex; align-items: center; gap: 0.6vw; font-style: normal; color: #99f8cd; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pingG 1.6s ease-out infinite; }
@keyframes pingG { 0% { box-shadow: 0 0 0 0 rgba(63, 207, 142, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(63, 207, 142, 0); } }

.objects-demo { position: absolute; left: max(2rem, 2.2222vw); right: max(2rem, 2.2222vw); bottom: max(2rem, 2.5vw); display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6vw; align-items: end; }
.obj-tabs { display: flex; flex-wrap: wrap; gap: 0.7vw; }
.obj-tabs button { padding: max(0.7rem, 1vw) max(1rem, 1.3vw); border-radius: var(--r-md); background: var(--gray-100); font-size: max(1rem, 1.35vw); transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--spring); }
.obj-tabs button:hover { transform: translateY(-2px); }
.obj-tabs button.is-on { background: var(--black); color: var(--white); }
.obj-card { padding: max(1rem, 1.4vw); border-radius: 1.2vw; background: var(--gray-100); }
.obj-head { display: flex; align-items: center; gap: 0.8vw; margin-bottom: 0.9vw; font-size: max(1rem, 1.3vw); }
.obj-head b { font-weight: 500; }
.obj-icon { display: grid; place-items: center; width: 2.2vw; height: 2.2vw; min-width: 26px; min-height: 26px; border-radius: 0.5vw; background: var(--white); }
.obj-icon svg { width: 60%; fill: none; stroke: #111; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.obj-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45vw; }
.obj-card li { display: flex; justify-content: space-between; gap: 1vw; padding: max(0.45rem, 0.6vw) max(0.7rem, 0.9vw); border-radius: 0.6vw; background: var(--white); font-size: max(0.85rem, 1vw); animation: msgIn 0.45s var(--ease) both; }
.obj-card li span { color: var(--gray-500); }

.dash { position: absolute; left: max(2rem, 2.2222vw); right: max(2rem, 2.2222vw); bottom: max(2rem, 2.4vw); height: 58%; }
.dcard { position: absolute; padding: 1.2vw 1.3vw; border-radius: 1.4vw; background: var(--gray-700); color: var(--white); animation: bobCard 6s ease-in-out infinite; }
.dcard small { display: block; color: var(--gray-300); font-size: max(0.7rem, 0.85vw); margin-bottom: 0.6vw; }
.dcard strong { font-weight: 400; font-size: max(1.8rem, 3vw); line-height: 1; font-variant-numeric: tabular-nums; }
.dcard > span { color: var(--gray-300); font-size: max(0.75rem, 0.9vw); margin-left: 0.3vw; }
.d-num { left: 0; top: 4%; width: 26%; }
.d-bars { left: 29%; top: 0; width: 32%; height: 96%; animation-delay: -2s; }
.d-gauge { left: 64%; top: 8%; width: 25%; text-align: center; animation-delay: -4s; }
.d-line { left: 2%; bottom: 0; width: 24%; height: 44%; animation-delay: -1s; }
@keyframes bobCard { 50% { transform: translateY(-0.8vw) rotate(-0.6deg); } }
.dbars { display: flex; align-items: flex-end; gap: 0.7vw; height: calc(100% - 3.6vw); }
.dbars i { flex: 1; height: 100%; border-radius: 0.4vw; background: linear-gradient(#8a9cf5, #a782ff); transform-origin: bottom; transform: scaleY(0); }
.dash.is-on .dbars i { animation: grow 3.6s var(--ease) infinite; }
.dbars i:nth-child(2) { animation-delay: 0.1s !important; }
.dbars i:nth-child(3) { animation-delay: 0.2s !important; }
.dbars i:nth-child(4) { animation-delay: 0.3s !important; }
.dbars i:nth-child(5) { animation-delay: 0.4s !important; }
@keyframes grow { 0% { transform: scaleY(0); } 35%, 80% { transform: scaleY(var(--h)); } 100% { transform: scaleY(0); } }
.dlabels { display: flex; gap: 0.7vw; margin-top: 0.5vw; }
.dlabels span { flex: 1; text-align: center; font-size: max(0.55rem, 0.7vw); color: var(--gray-300); }
.d-gauge svg { width: 100%; }
.g-bg, .g-fg { fill: none; stroke-width: 9; stroke-linecap: round; }
.g-bg { stroke: #444; }
.g-fg { stroke: #99f8cd; stroke-dasharray: 157; stroke-dashoffset: 157; }
.dash.is-on .g-fg { animation: gauge 3.6s var(--ease) infinite; }
@keyframes gauge { 35%, 80% { stroke-dashoffset: 44; } 100% { stroke-dashoffset: 157; } }
.d-gauge strong { display: block; margin-top: -1.6vw; font-size: max(1.4rem, 2.2vw); }
.d-line svg { width: 100%; height: calc(100% - 1.6vw); }
.l-line { fill: none; stroke: #77b5ff; stroke-width: 2.5; stroke-dasharray: 260; stroke-dashoffset: 260; vector-effect: non-scaling-stroke; }
.l-area { fill: rgba(119, 181, 255, 0.18); opacity: 0; }
.dash.is-on .l-line { animation: draw 3.6s var(--ease) infinite; }
.dash.is-on .l-area { animation: fadeA 3.6s ease infinite; }
@keyframes draw { 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
@keyframes fadeA { 40%, 80% { opacity: 1; } 100% { opacity: 0; } }

.local-map { position: absolute; left: max(2rem, 2.2222vw); right: max(2rem, 2.2222vw); bottom: max(2rem, 3vw); display: grid; grid-template-columns: 1fr auto; gap: 2vw; align-items: center; }
.lm-machine { position: relative; padding: 2.6vw 1.8vw 1.6vw; border-radius: 1.4vw; border: 1.5px dashed #c9c9c9; background: var(--gray-100); }
.lm-label { position: absolute; top: -0.8vw; left: 1.4vw; padding: 0.2vw 0.8vw; border-radius: 99px; background: var(--white); font-size: max(0.75rem, 0.95vw); color: var(--gray-500); }
.lm-flow { display: flex; align-items: center; gap: 0.8vw; }
.lm-node { display: inline-flex; align-items: center; gap: 0.6vw; padding: max(0.6rem, 0.9vw) max(0.8rem, 1.1vw); border-radius: 0.8vw; background: var(--white); font-size: max(0.85rem, 1.15vw); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.25); white-space: nowrap; }
.lm-node img { width: 1.4vw; min-width: 16px; }
.lm-wire { position: relative; flex: 1; height: 2px; min-width: 2vw; background: #d9d9d9; overflow: hidden; }
.lm-wire i { position: absolute; top: -2px; left: -10%; width: 6px; height: 6px; border-radius: 50%; background: #8a5cf6; animation: packet 2.4s linear infinite; }
.lm-wire i:nth-child(2) { animation-delay: 0.8s; }
.lm-wire i:nth-child(3) { animation-delay: 1.6s; }
@keyframes packet { to { left: 110%; } }
.lm-lock { display: inline-flex; align-items: center; gap: 0.5vw; margin-top: 1.2vw; font-size: max(0.75rem, 0.95vw); color: #1a8f57; }
.lm-lock svg { width: 1.1vw; min-width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lm-cloud { display: grid; justify-items: center; gap: 0.5vw; color: var(--gray-500); font-size: max(0.75rem, 0.95vw); }
.lm-cloud svg { width: 5vw; min-width: 48px; fill: none; stroke: #bbb; stroke-width: 1.8; stroke-linejoin: round; }
.lm-cloud .x { stroke: #e5484d; stroke-linecap: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: cross 3s ease-in-out infinite; }
@keyframes cross { 30%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 50; } }

/* Integrations */
.integrations { background: var(--white); padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem); overflow: hidden; }
.statement.narrow { width: auto; max-width: 1120px; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); padding: 0 var(--gutter); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
.marquee { overflow: hidden; margin-bottom: 10px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; }
.reverse .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand-tile { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: clamp(10.5rem, 15vw, 13.5rem); height: clamp(4.25rem, 6vw, 5.25rem); border-radius: 12px; background: var(--bg); color: var(--fg, var(--white)); font-size: clamp(1rem, 1.35vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; transition: transform 0.4s var(--spring); }
.brand-tile:hover { transform: translateY(-2px); }
.brand-tile .lg { font-size: 1.1em; }
.essentials { max-width: 1120px; margin: clamp(3.5rem, 6vw, 5rem) auto 0; padding: 0 var(--gutter); }
.inline-list { max-width: 54rem; font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.5; letter-spacing: -0.015em; color: #1d1d1f; }
.ico { display: inline-block; vertical-align: -0.08em; margin: 0 0.25em 0 0.1em; }
.ico svg { height: 0.8em; width: auto; fill: none; stroke: #000; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: clamp(2.25rem, 4vw, 3rem); padding: 12px 12px 12px 24px; border-radius: 14px; background: var(--black); color: var(--white); }
.pill p { font-size: 1rem; line-height: 1.35; color: rgba(255, 255, 255, 0.86); }

/* Founder */
.founder { max-width: 1120px; margin: 0 auto; padding: clamp(4.5rem, 8vw, 7rem) var(--gutter) 0; }
.founder-note { max-width: 44rem; margin: 0 auto; padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); border-radius: 18px; background: var(--white); }
.founder-kicker { margin-bottom: 1rem; color: #8a8a8e; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.founder-text { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.5; letter-spacing: -0.015em; color: #141414; }
.founder-past { margin-top: 1rem; color: #55555c; font-size: 16px; line-height: 1.5; }
.founder-past a, .founder-links a { color: #141414; text-decoration: underline; text-decoration-color: rgba(20, 20, 20, 0.25); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease; }
.founder-past a:hover, .founder-links a:hover { text-decoration-color: #141414; }
.founder-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(0, 0, 0, 0.07); font-size: 15px; }
.founder-sign > span { color: #55555c; }
.founder-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.founder-links a { display: inline-block; padding: 6px 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(2rem, 5vw, 5rem); max-width: 1120px; margin: 0 auto; padding: clamp(4.5rem, 8vw, 7rem) var(--gutter); }
.faq-head h3 { font-size: clamp(2.1rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.faq-head p { margin-top: 0.9rem; max-width: 20rem; color: var(--gray-500); font-size: 17px; line-height: 1.45; }
.faq-card { background: var(--white); border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.05); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 24px 28px; text-align: left; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; transition: background 0.2s ease; }
.faq-q:hover { background: rgba(0, 0, 0, 0.018); }
.faq-q i { position: relative; width: 14px; height: 14px; flex: none; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-a > div { overflow: hidden; }
.faq-a p { max-width: 44rem; padding: 0 28px 24px; color: var(--gray-500); font-size: 17px; line-height: 1.55; opacity: 0; transform: translateY(-4px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: 0.05s; }

/* Footer */
.footer { position: relative; overflow: hidden; padding: clamp(0.75rem, 1.4vw, 1.25rem); color: #1d1d1f;
  background:
    radial-gradient(48vw 36vw at 6% 0%, rgba(248, 209, 201, 0.95), transparent 70%),
    radial-gradient(42vw 34vw at 52% 6%, rgba(221, 204, 255, 0.9), transparent 70%),
    radial-gradient(40vw 34vw at 98% 16%, rgba(141, 200, 255, 0.55), transparent 70%),
    radial-gradient(50vw 36vw at 18% 100%, rgba(204, 237, 255, 0.95), transparent 72%),
    radial-gradient(42vw 34vw at 88% 96%, rgba(157, 255, 202, 0.45), transparent 70%),
    #eef0fa; }
.foot-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: clamp(2.75rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 5rem); max-width: 1400px; min-height: clamp(24rem, 28.5vw, 27.5rem); margin: 0 auto; padding: clamp(2.5rem, 4vw, 3.75rem) clamp(1.75rem, 5vw, 4.75rem) clamp(1.9rem, 2.75vw, 2.5rem); border-radius: 18px; background: #fff; color: #141414; box-shadow: 0 20px 60px -30px rgba(60, 50, 110, 0.35); }
.foot-news h3 { max-width: 33rem; font-family: var(--font); font-weight: 500; font-size: clamp(1.85rem, 2.5vw, 2.45rem); line-height: 1.14; letter-spacing: -0.03em; }
.foot-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 27rem; margin-top: clamp(1.9rem, 3vw, 2.5rem); padding: 0 0 11px; border-bottom: 1px solid rgba(20, 20, 20, 0.35); color: #6b6b6b; font-size: 17px; transition: color 0.2s ease, border-color 0.2s ease; }
.foot-field:hover { color: #141414; border-color: #141414; }
.foot-field svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--spring); }
.foot-field:hover svg { transform: translateX(3px); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 14.5rem)); gap: 2.5rem; justify-content: end; }
.foot-col { display: grid; align-content: start; gap: 0.45rem; font-size: 17px; line-height: 1.35; }
.foot-col > span { margin-bottom: 1.1rem; font-size: 15px; font-weight: 500; color: #8a8a8e; }
.foot-col a { justify-self: start; color: #141414; transition: opacity 0.2s ease; }
.foot-col a:hover { opacity: 0.55; }
.foot-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 2rem; }
.foot-works { display: flex; align-items: center; gap: max(1.25rem, 2.2vw); color: #141414; }
.foot-works .lg { font-size: 27px; opacity: 0.85; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #141414; color: #fff; transition: transform 0.25s var(--spring), background 0.2s ease; }
.foot-social a:hover { transform: translateY(-2px); background: #333; }
.foot-social .lg { font-size: 21px; }
.foot-social svg { width: 19px; height: 19px; }
.foot-mark-link { justify-self: end; color: #141414; }
.foot-mark { display: block; width: 38px; height: 38px; }
.foot-meta { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; max-width: 1320px; min-height: clamp(5rem, 8vw, 7rem); margin: 0 auto; padding: 0 4px 2px; font-size: 13px; color: rgba(29, 29, 31, 0.62); }
.foot-credit a { text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 60; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; padding: 0.9rem 1.2rem; border-radius: var(--r-sm); background: var(--black); color: var(--white); font-size: 15px; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast code { color: #c9a9ff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(2.5rem); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1180px) {
  .app { grid-template-columns: 170px minmax(0, 1fr) 290px; }
  .kanban { grid-template-columns: 170px minmax(0, 1fr); }
}

/* Mobile */
@media (max-width: 999px) {
  .island { top: 10px; height: 36px; padding: 3px 3px 3px 10px; border-radius: 8px; }
  .island.is-compact { top: 8px; }
  .island-links { display: none; }
  .island-logo { gap: 6px; margin-right: 10px; }
  .island-mark { width: 16px; height: 16px; }
  .island-word { font-size: 14px; }
  .island-cta { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; }
  :root { --col: calc(100vw - 2.5rem); }
  .hero { min-height: 36rem; }
  .scene img { height: 100%; object-position: 55% 100%; }
  .hero-body { flex-direction: column; gap: 1rem; padding: 1.4rem 1.25rem 1.5rem; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-title br { display: none; }
  .hero-side { width: 100%; padding-top: 0; }
  .hero-side p { font-size: 14px; margin-bottom: 0.9rem; }
  .hbtn { height: 44px; padding: 0 16px; }
  .island-cta, .island-logo { position: relative; }
  .island-cta::after, .island-logo::after { content: ''; position: absolute; inset: -8px -4px; }
  .strip { flex-direction: column; align-items: center; gap: 2rem; padding: 3rem 1.25rem 2.5rem; }
  .strip-logos { gap: 0.9rem 1.5rem; }
  .strip-logo { font-size: 15px; }
  .strip-logo .lg { font-size: 18px; }
  .chapter { padding: 4.5rem 0 3.5rem; }
  .chapter-title { margin-bottom: 2.5rem; }
  .panel { padding: 4rem 0.75rem 0; }
  .demo-tag { top: 1.2rem; }
  .os { height: 36rem; border-radius: 14px 14px 0 0; }
  .app { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 17.5rem; }
  .kanban { grid-template-columns: 1fr; }
  .os.kanban { height: 31rem; }
  .os.wf { height: 43rem; }
  .kb-cols { scroll-snap-type: x proximity; }
  .kb-col { scroll-snap-align: start; }
  .os-side { display: none; }
  .os-chat { border-left: 0; border-top: 1px solid #ededed; }
  .os-tools, .os-kebab { display: none; }
  .os-model { display: none; }
  .os-send { margin-left: auto; }
  .wf-actions .wf-btn:not(.dark), .wf-crumb span { display: none; }
  .wf-panel { width: 200px; }
  .kb-cols { grid-template-columns: repeat(5, 70vw); }
  .byo-tile .app-icon { width: 3.4rem; height: 3.4rem; }
  .byo { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.1rem; max-width: 14rem; margin-left: auto; margin-right: auto; padding: 0.75rem 0 0.5rem; }
  .byo-tile { position: relative; left: auto; top: auto; }
  .web { grid-template-columns: 1fr; gap: 0.6rem; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
  .web-tabs { grid-auto-flow: column; justify-content: start; gap: 0.5rem; }
  .web-query { gap: 0.5rem; padding: 0 0.7rem; }
  .web-results { min-height: 7rem; }
  .statement { margin: 3.5rem auto; }
  .scard { position: relative; top: auto !important; height: auto; min-height: 0; margin-bottom: 1rem !important; padding: 1.75rem 1.25rem; }
  .scard h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
  .scard > p { font-size: 1rem; }
  .byo, .byo-note, .web, .sieve, .talk, .chips-rows, .local, .objects-demo, .dash, .local-map { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; margin-top: 1.5rem; }
  .byo-note { display: inline-block; font-size: 0.875rem; }
  .dash { height: 17rem; }
  .local { display: flex; justify-content: flex-start; }
  .url { min-width: 0; font-size: 0.8125rem; padding: 0.5rem 0.7rem; }
  .url em { font-size: 11px; }
  .url, .kept { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .os { height: 40rem; }
  .scard > p { max-width: none; }
  .sieve { grid-template-columns: 1fr; gap: 0.6rem; }
  .sieve-col { gap: 0.35rem; }
  .sieve-arrow { display: none; }
  .sieve-out { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .kept { gap: 0.45rem; font-size: 0.8125rem; padding: 0.5rem 0.7rem; border-radius: 0.5rem; }
  .kept::before { width: 8px; height: 8px; min-width: 8px; min-height: 8px; }
  .url { border-radius: 0.5rem; }
  .cl { border-radius: 1rem; max-width: 88%; }
  .talk { gap: 0.5rem; }
  .cl { font-size: 0.9375rem; }
  .chips-rows { gap: 0.5rem; margin: 1.5rem -1.25rem 0; }
  .chip-track { gap: 0.5rem; }
  .tchip { padding: 0.6rem 0.95rem; font-size: 0.9375rem; }
  .local-box { gap: 3vw; padding: 4vw; border-radius: 4vw; }
  .local-box .lg { font-size: 8vw; }
  .objects-demo { grid-template-columns: 1fr; gap: 0.8rem; }
  .obj-tabs { gap: 0.4rem; }
  .obj-card { border-radius: 0.8rem; }
  .obj-card ul { gap: 0.3rem; }
  .obj-card li { border-radius: 0.4rem; }
  .dcard { padding: 0.8rem; border-radius: 0.9rem; }
  .d-num { width: 46%; }
  .d-bars { left: 50%; width: 50%; }
  .d-gauge { left: 0; top: 50%; width: 46%; }
  .d-line { display: none; }
  .dbars { height: calc(100% - 3.5rem); gap: 0.3rem; }
  .d-gauge strong { margin-top: -1rem; }
  .local-map { grid-template-columns: 1fr; gap: 1rem; }
  .lm-machine { padding: 1.6rem 0.8rem 1rem; border-radius: 0.9rem; }
  .lm-label { top: -0.7rem; }
  .lm-flow { gap: 0.3rem; }
  .lm-node { padding: 0.5rem; border-radius: 0.5rem; font-size: 0.75rem; gap: 0.3rem; }
  .lm-node .lg { font-size: 12px; }
  .lm-lock { margin-top: 0.7rem; gap: 0.3rem; }
  .lm-cloud { grid-auto-flow: column; justify-content: start; gap: 0.6rem; }
  .faq { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .faq-q { padding: 20px; font-size: 17px; }
  .faq-a p { padding: 0 20px 20px; font-size: 16px; }
  .founder { padding-top: 3.5rem; }
  .founder-links a { padding: 10px 0; }
  .integrations { padding: 3.5rem 0 3.5rem; }
  .essentials { margin-top: 2.75rem; }
  .pill { padding: 16px; }
  .brand-tile { gap: 3vw; }
  .pill { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .foot-card { grid-template-columns: 1fr; gap: 2.25rem; padding: 2.5rem 1.5rem 1.75rem; }
  .foot-news h3 { font-size: 2.35rem; }
  .foot-cols { justify-content: start; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .foot-col { gap: 0; }
  .foot-col > span { margin-bottom: 0.4rem; }
  .foot-col a { display: flex; align-items: center; min-height: 40px; }
  .foot-field { padding-top: 10px; }
  .foot-mark-link { padding: 3px; }
  .foot-bottom { grid-template-columns: 1fr auto; gap: 1.5rem; }
  .foot-works { grid-column: 1 / -1; flex-wrap: wrap; }
  .foot-meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; min-height: 0; padding: 1.75rem 4px 1rem; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
