/* Weft website. No web fonts, no third-party anything: the system font is SF on a Mac. */

:root {
  --bg: #05061a;
  --bg-raised: #0b0d27;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0ff;
  --muted: #a4a9cf;
  --dim: #6f7499;

  --code: #4f7cff;
  --writing: #2bb8a4;
  --design: #c356f0;
  --productivity: #e2b93b;
  --entertainment: #f44336;
  --claude: #d97757;
  --codex: #10a37f;
  --waiting: #bf5af2;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --radius: 22px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:lang(zh) body, body:lang(zh) { line-height: 1.75; }

a { color: inherit; text-decoration: none; }
p a, li a, .fine a, dd a { color: #9db4ff; text-decoration: underline; text-decoration-color: rgba(157, 180, 255, 0.35); text-underline-offset: 3px; }
p a:hover, li a:hover, dd a:hover { text-decoration-color: currentColor; }

img, svg { display: block; }
svg.i { width: 1em; height: 1em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.12em 0.4em; border-radius: 6px; background: var(--panel-strong); border: 1px solid var(--line); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid #8fa8ff; outline-offset: 3px; border-radius: 6px; }

/* MARK: Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 26, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover, .nav-lang:hover, .nav-gh:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-gh svg { width: 20px; height: 20px; }

/* MARK: Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #ffffff, #dfe5ff);
  color: #0b0d27;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 40px -8px rgba(110, 140, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 50px -6px rgba(110, 140, 255, 0.75); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-small svg { width: 16px; height: 16px; }

/* MARK: Hero */

.hero { position: relative; padding: 64px 0 40px; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 900px;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(43, 50, 112, 0.95), transparent 70%),
    radial-gradient(35% 30% at 20% 35%, rgba(79, 124, 255, 0.18), transparent 70%),
    radial-gradient(35% 30% at 82% 40%, rgba(195, 86, 240, 0.14), transparent 70%);
}
.hero-threads {
  position: absolute;
  left: 0;
  top: 470px;
  width: 100%;
  height: 420px;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero-threads path { fill: none; stroke-linecap: round; }
.hero-threads .line path { stroke-width: 1.6; opacity: 0.55; stroke-dasharray: 260 40; animation: flow 18s linear infinite; animation-delay: calc(var(--i) * -2.7s); }
.hero-threads .glow path { stroke-width: 10; opacity: 0.16; filter: blur(8px); }
@keyframes flow { to { stroke-dashoffset: -600; } }

.hero-copy { text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: var(--muted);
}
.eyebrow .dots { display: inline-flex; gap: 3px; }
.eyebrow .dots i { width: 7px; height: 7px; border-radius: 50%; }
h1 {
  margin: 22px 0 0;
  font: 700 clamp(44px, 7.4vw, 84px)/1.04 var(--display);
  letter-spacing: -0.028em;
}
:lang(zh) h1 { letter-spacing: -0.01em; line-height: 1.12; }
.woven {
  background: linear-gradient(100deg, #86a5ff 0%, #6fd8c8 32%, #d59bff 66%, #ffcf7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 680px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--dim); }
.fine span + span::before { content: "·"; margin: 0 8px; }

.hero-stage { margin: 56px auto 0; max-width: 1280px; position: relative; }
.hero-stage [data-mock="hero"] { aspect-ratio: 1280 / 800; }
@media (max-width: 639px) { .hero-stage [data-mock="hero"] { aspect-ratio: 380 / 452; } }

/* MARK: Pillars */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.pillar { padding: 26px 26px 24px; background: var(--bg); }
.pillar b { display: block; font: 700 30px/1.1 var(--rounded); letter-spacing: -0.02em; }
.pillar span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* MARK: Sections */

.section { padding: 130px 0 0; position: relative; }
.section-head { max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 600 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #8fa8ff; }
:lang(zh) .kicker { letter-spacing: 0.08em; }
h2 { margin: 16px 0 0; font: 700 clamp(32px, 4.6vw, 54px)/1.08 var(--display); letter-spacing: -0.03em; }
:lang(zh) h2 { letter-spacing: -0.005em; line-height: 1.22; }
:lang(zh) h1, :lang(zh) h2 { word-break: keep-all; }
.section-head p { margin: 22px 0 0; font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); }
h3 { margin: 0; font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
.section-head p, .lede { text-wrap: pretty; }

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.reveal { transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }

/* MARK: Weave */

.weave { margin-top: 56px; padding: 34px 36px 30px; }
.weave-grid { display: grid; grid-template-columns: 150px 1fr; column-gap: 22px; }
.weave-label { font-size: 14px; color: var(--muted); line-height: 1.35; }
.weave-label strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.weave-label b { font: 700 26px/1.2 var(--rounded); color: var(--text); display: block; margin-top: 6px; }
.weave-track { position: relative; height: 30px; }
.weave-barcode { height: 56px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.025); }
.weave-barcode i { position: absolute; top: 0; bottom: 0; background: var(--c); opacity: 0.85; box-shadow: -1px 0 0 rgba(5, 6, 26, 0.9); }
.weave-arrow { grid-column: 2; display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--dim); font-size: 13.5px; }
.weave-arrow::before, .weave-arrow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.weave-arrow svg { width: 18px; height: 18px; }
.weave-threads { display: grid; gap: 9px; }
.weave-lane { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.weave-lane .weave-name { font-size: 13px; font-weight: 600; text-align: right; }
.thread {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  box-shadow: inset 4px 0 0 var(--c);
  display: flex;
  align-items: center;
  padding: 0 10px 0 14px;
  overflow: hidden;
  transform-origin: left;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity 1s;
  transition-delay: calc(0.25s + var(--i) * 0.12s);
}
.thread span { font-size: 12.5px; white-space: nowrap; color: rgba(255, 255, 255, 0.88); }
.js .weave:not(.in) .thread { transform: scaleX(0.02); opacity: 0; }
.weave-axis-lane { grid-column: 2; margin-top: 14px; }
.weave-axis { position: relative; height: 18px; font: 12px/1 var(--mono); color: var(--dim); }
.weave-axis span { position: absolute; transform: translateX(-50%); }
.weave-axis span:first-child { transform: none; }
.weave-axis span:last-child { transform: translateX(-100%); }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.point { padding: 26px; }
.point p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.point .swatch { display: flex; gap: 4px; margin-bottom: 16px; }
.point .swatch i { height: 6px; border-radius: 3px; background: var(--c); }

/* MARK: Split layouts */

.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 56px; }
.split.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.split.flip > :first-child { order: 2; }

.stage-card { padding: 26px; overflow: hidden; }
.stage-card.agents-card { background: linear-gradient(180deg, rgba(217, 119, 87, 0.09), rgba(16, 163, 127, 0.05) 60%, rgba(255, 255, 255, 0.015)); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.steps .n {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 14px/1 var(--rounded);
  background: rgba(191, 90, 242, 0.16); color: #dfb2ff; border: 1px solid rgba(191, 90, 242, 0.35);
}
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.note { margin-top: 30px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.55; display: flex; gap: 12px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #8fa8ff; }

.agent-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.agent-logos span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.agent-logos i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* MARK: Privacy */

.privacy-flow { margin-top: 56px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.mac {
  position: relative;
  border-radius: 18px;
  border: 1.5px solid rgba(143, 168, 255, 0.35);
  background: radial-gradient(80% 120% at 50% 0%, rgba(79, 124, 255, 0.12), transparent 70%);
  padding: 44px 28px 28px;
}
.mac-label { position: absolute; top: 14px; left: 20px; font-size: 13px; font-weight: 600; color: #a9bcff; display: flex; align-items: center; gap: 7px; }
.mac-label svg { width: 16px; height: 16px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.flow-node { padding: 18px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-align: center; }
.flow-node svg { width: 26px; height: 26px; margin: 0 auto 10px; color: #a9bcff; }
.flow-node b { display: block; font-size: 15px; font-weight: 600; }
.flow-node span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.flow-node code { font-size: 11px; padding: 1px 5px; }
.flow-link { width: 34px; height: 2px; background: repeating-linear-gradient(90deg, #8fa8ff 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: dash 1.1s linear infinite; }
@keyframes dash { to { background-position: 22px 0; } }
.cloud { text-align: center; width: 180px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.cloud svg { width: 74px; height: 74px; margin: 0 auto 12px; }

.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.list { padding: 26px; }
.list ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; font-size: 15.5px; color: #d5d8f2; line-height: 1.45; }
.list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.list.yes li svg { color: #6fd8c8; }
.list.no li svg { color: #ff7a72; }
.list.you li svg { color: #a9bcff; }
.aside { margin-top: 20px; font-size: 14.5px; color: var(--dim); max-width: 860px; line-height: 1.6; }

/* MARK: Native */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tile { padding: 30px 28px; overflow: hidden; }
.tile .big { font: 700 54px/1 var(--rounded); letter-spacing: -0.03em; }
.tile .big small { font-size: 0.45em; margin-left: 4px; color: var(--muted); letter-spacing: 0; }
.tile h3 { margin-top: 14px; }
.tile p { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.pulse { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.pulse i { width: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); height: 6px; }
.pulse i.hit { background: #6fd8c8; height: 100%; box-shadow: 0 0 14px rgba(111, 216, 200, 0.55); }
.pulse i.beat { background: rgba(111, 216, 200, 0.45); height: 45%; }
.idle { display: flex; align-items: center; gap: 10px; height: 54px; }
.idle span { flex: 1; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--code) 0 52%, transparent 52% 64%, var(--code) 64%); position: relative; }
.idle span::after { content: "zZ"; position: absolute; left: 53%; top: -22px; font: 600 13px/1 var(--rounded); color: var(--muted); }

/* MARK: Features */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.feature { padding: 26px 24px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: center; }
.feature.wide .terminal { font-size: 12.5px; }

.terminal { border-radius: 14px; background: #0a0b1c; border: 1px solid var(--line-strong); overflow: hidden; font: 13.5px/1.75 var(--mono); }
.terminal-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.terminal pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; color: #d5d8f2; }
.terminal .p { color: #6fd8c8; user-select: none; }
.terminal .s { color: #ffcf7a; }
.terminal .c { color: var(--dim); }

/* MARK: Compare */

.compare { margin-top: 48px; overflow-x: auto; padding: 8px 8px 4px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.compare thead th.weft { color: var(--text); }
.compare thead th.weft span { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 16px; }
.compare thead th.weft img { width: 22px; height: 22px; }
.compare tbody th { font-weight: 500; color: var(--muted); width: 28%; }
.compare td.weft { color: var(--text); font-weight: 600; background: rgba(79, 124, 255, 0.07); }
.compare td.weft svg { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: 8px; color: #6fd8c8; }
.compare th.weft { background: rgba(79, 124, 255, 0.07); border-radius: 14px 14px 0 0; }
.compare tr:last-child td.weft { border-radius: 0 0 14px 14px; }
.compare td.them { color: var(--dim); }

/* MARK: Get started */

.start { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.start .card { padding: 32px; }
.start ol.steps { margin-top: 22px; }
.build p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; }
.copy { margin-left: auto; font: 500 12px/1 var(--sans); color: var(--muted); background: none; border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.copy:hover { color: var(--text); }
.copy.copied { color: #6fd8c8; border-color: rgba(111, 216, 200, 0.5); }
.copy .done { display: none; }
.copy.copied .done { display: inline; }
.copy.copied .idle-label { display: none; }
.terminal-bar .copy { margin-top: -3px; }

/* MARK: FAQ */

.faq { max-width: 860px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: background 0.2s; }
.faq details[open] { background: var(--panel-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s; flex: none; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.faq dd, .faq .answer { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 16px; }

/* MARK: Final CTA + footer */

.final { margin-top: 140px; padding: 90px 24px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 50% 100%, rgba(43, 50, 112, 0.9), transparent 70%); }
.final img { width: 88px; height: 88px; margin: 0 auto 26px; filter: drop-shadow(0 18px 40px rgba(79, 124, 255, 0.45)); }
.final p { color: var(--muted); font-size: 19px; margin: 16px 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--dim); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 14px; }

/* MARK: Responsive */

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .privacy-flow { grid-template-columns: 1fr; }
  .cloud { width: auto; display: flex; align-items: center; gap: 14px; text-align: left; }
  .cloud svg { margin: 0; width: 54px; height: 54px; flex: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-top: 96px; }
  .hero { padding-top: 40px; }
  .points, .lists, .tiles, .start { grid-template-columns: 1fr; }
  .weave { padding: 24px 18px; }
  .weave-grid { grid-template-columns: 1fr; }
  .weave-label { margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
  .weave-label b { display: inline; font-size: 20px; margin: 0; }
  .weave-arrow { grid-column: 1; }
  .weave-lane { grid-template-columns: 74px 1fr; gap: 8px; }
  .weave-axis-lane { grid-column: 1; }
  .thread span { font-size: 11px; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { width: 2px; height: 24px; margin: 0 auto; background: repeating-linear-gradient(180deg, #8fa8ff 0 6px, transparent 6px 11px); background-size: 2px 22px; animation: dash-v 1.1s linear infinite; }
  .privacy-flow { padding: 22px; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .stage-card { padding: 14px; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .pillar { padding: 20px 18px; }
  .pillar b { font-size: 22px; }
  .pillar span { font-size: 13.5px; }
  .nav-right .nav-gh { display: none; }
  .btn:not(.btn-small) { height: 46px; padding: 0 20px; font-size: 15px; }
  .thread.short span { display: none; }
  .fine span { display: block; }
  .compare { padding: 0; }
  .compare table { min-width: 0; font-size: 14px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare td.weft svg { display: none; }
  .compare thead th { font-size: 11px; letter-spacing: 0.02em; }
  .fine span + span::before { content: none; }
}

@keyframes dash-v { to { background-position: 0 22px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in), .js .weave:not(.in) .thread { opacity: 1; transform: none; }
}

/* MARK: - Mockups (macOS 26, dark appearance) */

[data-mock] { position: relative; width: 100%; }
.m-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: #f5f5f7;
  text-align: left;
  letter-spacing: 0;
  user-select: none;
  -webkit-user-select: none;
}
.m-canvas * { line-height: inherit; }
.m-place { position: absolute; }
.m-icon { width: 14px; height: 14px; flex: none; }
.m-icon.tint { color: var(--c); }

.m-menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(30, 34, 74, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}
.m-menus { display: flex; gap: 18px; }
.m-menus b { font-weight: 700; }
.m-status { display: flex; align-items: center; gap: 14px; }
.m-status .m-icon { width: 16px; height: 16px; }
.m-weft-glyph { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.m-battery { width: 24px; height: 11px; border: 1.2px solid rgba(255, 255, 255, 0.8); border-radius: 3.5px; padding: 1.2px; position: relative; }
.m-battery::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 3.5px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.6); }
.m-battery i { display: block; height: 100%; width: 72%; border-radius: 1.5px; background: #fff; }

/* Window */

.m-window {
  position: relative;
  display: grid;
  grid-template-columns: 216px 1fr;
  border-radius: 18px;
  background: #1d1d22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.m-sidebar { margin: 8px 0 8px 8px; border-radius: 12px; padding: 50px 8px 8px; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.06); position: relative; }
.m-traffic { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.m-traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.m-traffic i:nth-child(2) { background: #febc2e; }
.m-traffic i:nth-child(3) { background: #28c840; }
.m-side-item { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: 8px; color: rgba(255, 255, 255, 0.85); }
.m-side-item .m-icon { width: 16px; height: 16px; color: #0a84ff; }
.m-side-item.on { background: rgba(255, 255, 255, 0.11); }
.m-side-item em { margin-left: auto; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.55); }

.m-main { padding: 8px 22px 0; min-width: 0; overflow: hidden; }
.m-toolbar { height: 46px; display: flex; align-items: center; gap: 12px; }
.m-toolbar b { font-size: 15px; font-weight: 700; }
.m-toolbar span { color: rgba(235, 235, 245, 0.6); }
.m-nav { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); }
.m-nav .m-icon { width: 26px; height: 22px; padding: 3px 6px; color: rgba(255, 255, 255, 0.8); }

.m-overview { display: flex; align-items: center; gap: 22px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); margin-top: 6px; }
.m-ov-main { flex: 1; min-width: 0; display: grid; gap: 10px; }
.m-tracked { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.m-tracked b { font: 600 34px/1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.m-tracked span { color: rgba(235, 235, 245, 0.6); }
.m-tracked em { font-style: normal; font-size: 12px; color: #30d158; display: inline-flex; align-items: center; gap: 2px; }
.m-tracked em .m-icon { width: 12px; height: 12px; }
.m-ov-divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, 0.1); }
.m-facts { width: 200px; display: grid; gap: 9px; }
.m-fact { display: flex; gap: 9px; align-items: flex-start; }
.m-fact > .m-icon { width: 15px; height: 15px; margin-top: 2px; color: rgba(235, 235, 245, 0.6); }
.m-fact div { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; }
.m-fact span { color: rgba(235, 235, 245, 0.6); font-size: 12px; }
.m-fact b { font-weight: 600; font-size: 12px; }
.m-fact small { grid-column: 1 / -1; font-size: 11px; color: rgba(235, 235, 245, 0.4); }

.m-ring { position: relative; width: var(--size); display: grid; justify-items: center; gap: 4px; flex: none; }
.m-ring b { position: absolute; top: 0; left: 0; width: var(--size); height: var(--size); display: grid; place-items: center; font: 700 calc(var(--size) * 0.34)/1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }
.m-ring span { font-size: 11px; color: rgba(235, 235, 245, 0.6); }
.m-ring-value { transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1) 0.4s; }

.m-goal { display: flex; gap: 2px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.m-goal i { display: block; height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); transition: opacity 0.3s; }
.m-goal i.dim { opacity: 0.28; }
.m-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.m-legend.compact { gap: 16px; }
.m-legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-legend-item i { width: 7px; height: 7px; border-radius: 50%; }
.m-legend-item em { font-style: normal; color: rgba(235, 235, 245, 0.6); }

.m-tabs { display: inline-flex; padding: 2px; margin: 16px 0 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); font-size: 12px; }
.m-tabs span { padding: 3px 13px; border-radius: 6px; color: rgba(255, 255, 255, 0.85); }
.m-tabs span.on { background: rgba(255, 255, 255, 0.17); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.m-scroll { position: relative; padding-top: 8px; }

/* Timeline */

.m-timeline { position: relative; }
.m-hour { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; transform: translateY(-50%); }
.m-hour span { width: 44px; font-size: 11px; color: rgba(235, 235, 245, 0.45); font-variant-numeric: tabular-nums; }
.m-hour i { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.m-item { position: absolute; display: flex; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--c) 15%, rgba(29, 29, 34, 0.94)); box-shadow: inset 4px 0 0 var(--c); }
.m-item.agent { box-shadow: none; }
.m-item-body { min-width: 0; flex: 1; padding: 5px 8px 5px 12px; }
.m-agent-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.m-agent-bar i { position: absolute; left: 0; width: 4px; background: var(--c); }
.m-item.live .m-agent-bar i:last-child { animation: working 2.2s ease-in-out infinite; }
@keyframes working { 50% { opacity: 0.45; } }
.m-line { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; height: 100%; margin-top: -1px; }
.m-line b { color: var(--c); font-weight: 600; }
.m-desc { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.m-desc.strong { font-weight: 500; }
.m-time { color: rgba(235, 235, 245, 0.6); font-variant-numeric: tabular-nums; flex: none; }
.m-cap { display: flex; gap: 6px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.m-cap .m-time { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.m-cap b { color: var(--c); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.m-cap b .m-icon { width: 12px; height: 12px; }
.m-title { font-size: 13px; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-title.two { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-rows { margin-top: 6px; display: grid; gap: 2px; font-size: 11.5px; color: rgba(235, 235, 245, 0.6); }
.m-row { display: flex; justify-content: space-between; gap: 8px; height: 16px; align-items: center; }
.m-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rows.details .m-row { justify-content: flex-start; gap: 6px; }
.m-rows.details .m-icon { width: 12px; height: 12px; }
.m-session { position: absolute; border-radius: 5px; background: color-mix(in srgb, var(--c) 78%, transparent); color: rgba(0, 0, 0, 0.82); padding: 5px 7px; font-size: 11px; display: grid; align-content: start; gap: 1px; }
.m-session b { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.m-session .m-icon { width: 12px; height: 12px; }
.m-now { position: absolute; right: 0; height: 8px; display: flex; align-items: center; }
.m-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; flex: none; }
.m-now::after { content: ""; flex: 1; height: 1.5px; background: #ff453a; }
.m-away { position: absolute; border-radius: 6px; border: 1.5px dashed rgba(191, 90, 242, 0.6); background: repeating-linear-gradient(135deg, rgba(191, 90, 242, 0.1) 0 6px, transparent 6px 12px); display: grid; place-items: center; text-align: center; font-size: 11.5px; color: #dfb2ff; line-height: 1.35; }

/* Numbered callouts, matched by the list next to the mockup. */
[data-note]:not([data-note=""])::after {
  content: attr(data-note);
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 11.5px/1 ui-rounded, -apple-system, sans-serif;
  color: #fff;
  background: #bf5af2;
  box-shadow: 0 0 0 3px rgba(191, 90, 242, 0.25);
}

/* Menu bar popover */

.m-pop {
  width: 340px;
  padding: 16px;
  border-radius: 24px;
  display: grid;
  gap: 14px;
  background: rgba(40, 42, 66, 0.72);
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.m-pop-place .m-pop { background: rgba(44, 46, 72, 0.8); }
.m-pop-today { display: flex; align-items: center; justify-content: space-between; }
.m-pop-today > div:first-child { display: grid; gap: 2px; }
.m-caption { font-size: 11.5px; color: rgba(235, 235, 245, 0.6); }
.m-pop-big { font: 600 30px/1.1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.m-pop .m-goal { margin-top: -4px; }
.m-pop .m-legend { margin-top: -6px; }
.m-current { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.m-app-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; background: linear-gradient(160deg, #ffb340, #ff7b2c); position: relative; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.m-app-icon::after { content: ""; position: absolute; left: 9px; top: 6px; width: 12px; height: 18px; border-radius: 1px 1px 6px 1px; background: rgba(255, 255, 255, 0.92); transform: rotate(18deg); }
.m-current-text { display: grid; min-width: 0; flex: 1; }
.m-current-text b { font-weight: 600; }
.m-current-text span { font-size: 12px; color: rgba(235, 235, 245, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-capsule { font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-tile { display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); }
.m-tile .m-icon { width: 20px; height: 20px; margin-bottom: 2px; }
.m-tile b { font-weight: 500; }
.m-tile span { font-size: 11.5px; color: rgba(235, 235, 245, 0.6); }
.m-pop hr { margin: 0; border: 0; height: 1px; background: rgba(255, 255, 255, 0.1); }
.m-pop-foot { display: flex; align-items: center; gap: 12px; }
.m-pop-foot .m-icon { width: 15px; height: 15px; color: rgba(235, 235, 245, 0.75); }
.m-tracking { display: inline-flex; align-items: center; gap: 6px; }
.m-tracking i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px rgba(48, 209, 88, 0.7); }
.m-spacer { flex: 1; }

/* Agents mockup */

.m-agents { display: grid; gap: 22px; }
.m-agents-head { display: flex; align-items: center; gap: 22px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); height: 58px; margin-bottom: -14px; }
.m-agents-head .m-fact { width: 210px; }
.m-agents-head .m-fact > .m-icon { color: var(--claude); }
.m-agents-goal { flex: 1; display: grid; gap: 6px; }

/* Agent session detail */

.m-detail { width: 340px; gap: 12px; background: rgba(44, 46, 72, 0.86); }
.m-detail-head { display: grid; gap: 4px; }
.m-detail-head b { font-size: 14.5px; font-weight: 700; }
.m-detail-who { display: flex; align-items: center; gap: 6px; }
.m-detail-who span { display: inline-flex; align-items: center; gap: 4px; }
.m-detail-who span:last-child { color: rgba(235, 235, 245, 0.6); }
.m-detail-who i { font-style: normal; color: rgba(235, 235, 245, 0.3); }
.m-detail-head small { font-size: 11.5px; color: rgba(235, 235, 245, 0.6); }
.m-detail-time { display: grid; gap: 3px; }
.m-muted { color: rgba(235, 235, 245, 0.6); }
.m-detail-meanwhile { display: grid; gap: 5px; }
.m-detail-meanwhile .m-row { height: 18px; }
.m-detail-meanwhile .m-row span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.m-detail-meanwhile .m-row span:last-child { color: rgba(235, 235, 245, 0.6); font-variant-numeric: tabular-nums; }
.m-detail-meanwhile i { width: 7px; height: 7px; border-radius: 50%; }
.m-detail-meanwhile i.ring { border: 1.2px solid rgba(235, 235, 245, 0.6); }

/* Agent stats */

.agent-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat { padding: 26px 24px 24px; }
.stat b { display: block; font: 700 44px/1 var(--rounded); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: 0.42em; margin-left: 6px; color: var(--muted); letter-spacing: 0; font-weight: 600; }
.stat h3 { margin-top: 14px; font-size: 16px; }
.stat p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.stat .bar { display: flex; gap: 3px; margin-top: 18px; height: 6px; }
.stat .bar i { border-radius: 3px; background: var(--c); }

.agent-visual { margin-top: 20px; padding: 30px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.agent-detail { display: grid; gap: 18px; }
.agent-detail-caption p { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

.agent-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent-points li { padding: 26px; }
.agent-points .n {
  width: 28px; height: 28px; border-radius: 50%; margin-bottom: 16px;
  display: grid; place-items: center;
  font: 700 13.5px/1 var(--rounded); color: #fff; background: #bf5af2; box-shadow: 0 0 0 4px rgba(191, 90, 242, 0.22);
}
.agent-points p { margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.agent-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 26px; }
.agent-foot .agent-logos { margin: 0; }
.agent-foot .note { margin: 0; flex: 1; min-width: 300px; max-width: 640px; }

@media (max-width: 1020px) {
  .agent-stats { grid-template-columns: repeat(2, 1fr); }
  .agent-visual { grid-template-columns: 1fr; padding: 18px; }
  .agent-detail { max-width: 380px; }
  .agent-points { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .agent-stats { gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat b { font-size: 32px; }
}

.eyebrow.news { color: var(--text); border-color: rgba(217, 119, 87, 0.45); background: linear-gradient(90deg, rgba(217, 119, 87, 0.16), rgba(16, 163, 127, 0.12)); transition: border-color 0.2s; }
.eyebrow.news:hover { border-color: rgba(217, 119, 87, 0.8); }
.eyebrow.news .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--claude); color: #1b0d07; }
.eyebrow.news svg { width: 14px; height: 14px; color: var(--muted); }
