:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --tile: #f5f5f7;
  --acid: #1677ff;
  --acid-soft: rgba(22, 119, 255, 0.12);
  --pane: #0c0c0e;
  --pane-ink: #eceae4;
  --pane-dim: #8c8980;
  --pane-acid: #7aa2ff;
  --sans: "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --lift: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px -14px rgba(0, 0, 0, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  background: var(--ink); color: #fff;
  padding: 0.5rem 0.8rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Sign in: the header's mono label in a hairline pill, as on Software */
.nav-aux { align-items: center; }
.nav-aux .nav-signin {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-aux .nav-signin:hover { background: var(--ink); color: #fff; }

.kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cp-cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 0 0.35rem;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cp-cta:hover { color: var(--acid); border-bottom-color: var(--acid); }

/* Section heads: kicker, headline, a paragraph */
.cp-head { max-width: 40rem; }
.cp-head h2 {
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.cp-head p:not(.kicker) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 34rem;
}

/* Hero: the platform pages' lockup, and where to jump */
.cp-hero { padding: 8.5rem var(--gutter) 4rem; max-width: 50rem; }
.cp-hero h1 {
  margin-top: 0.7rem;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.lede { margin-top: 1.1rem; font-size: 1.05rem; line-height: 1.6; color: var(--muted); max-width: 36rem; }
.cp-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.cp-jump a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s ease;
}
.cp-jump a::after { content: "↓"; color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.cp-jump a:hover { border-color: var(--ink); }
.cp-jump a:hover::after { color: var(--ink); transform: translateY(2px); }

/* Topology: Mac, workspace and nodes as a triangle, every corner joined; compute.js draws the edges between the boxes */
.cp-topo {
  margin: 0 var(--gutter) 6rem;
  padding: 3.6rem clamp(1.5rem, 3.5vw, 3.5rem) 2.4rem;
  background: var(--tile);
  border-radius: 28px;
}
.cp-tri { position: relative; height: 640px; }
.cp-tier { position: absolute; z-index: 1; width: 29%; }
.cp-tier[data-at="mac"] { left: 0; top: 0; }
.cp-tier[data-at="cloud"] { right: 0; top: 0; }
.cp-tier[data-at="cortex"] { left: 35.5%; bottom: 0; }
.cp-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cp-edges path { fill: none; stroke: #c4c7ce; stroke-width: 2; stroke-dasharray: 4 4; }
.cp-edges circle { fill: var(--acid); }
.cp-edges circle.back { fill: var(--ink); }
.cp-edge { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 0.35rem; transform: translate(-50%, -50%); padding: 0.5rem 0.7rem; background: var(--tile); text-align: center; white-space: nowrap; }
.cp-edge span { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.cp-tier-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.cp-box { background: var(--bg); border-radius: 16px; padding: 1.15rem 1.25rem 0.6rem; box-shadow: var(--lift); }
.cp-box b { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; padding-bottom: 0.6rem; }
.cp-box em { font-style: normal; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.cp-box ul { list-style: none; }
.cp-box li { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.cp-box li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9ccd2; flex-shrink: 0; }
.cp-box-key { box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.28), var(--lift); }
.cp-box-key li:last-child { color: var(--ink); }
.cp-box-key li:last-child::before { background: var(--acid); box-shadow: 0 0 0 4px var(--acid-soft); animation: cp-pulse 1.6s ease-in-out infinite; }

@keyframes cp-pulse { 50% { box-shadow: 0 0 0 7px rgba(22, 119, 255, 0.04); } }

.cp-nodes { list-style: none; display: grid; gap: 0.5rem; }
.cp-nodes li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg); border-radius: 12px; box-shadow: var(--lift);
}
.cp-nodes b { font-weight: 500; font-size: 0.9rem; }
.cp-dots { display: flex; gap: 0.3rem; }
.cp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); }
.cp-nodes em { grid-column: 1 / -1; font-style: normal; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acid); }
.cp-nodes .cp-node-new { background: transparent; box-shadow: none; border: 1px dashed rgba(22, 119, 255, 0.5); }
.cp-topo figcaption { margin-top: 2.6rem; text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* Feature rows: copy beside a film, as on Software */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: center;
  padding: 5.5rem var(--gutter);
  border-top: 1px solid var(--line);
}
.feat-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.feat-flip .feat-copy { order: 2; }
.feat-copy h2 {
  margin: 0.65rem 0 0.85rem;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.feat-copy p:not(.kicker) { color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 28rem; }
.feat-copy p a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.feat-copy p a:hover { color: var(--acid); text-decoration-color: currentColor; }
.feat-copy .cp-cta { margin-top: 1.5rem; }
.pane { background: var(--pane); color: var(--pane-ink); border: 1px solid #1c1c1f; border-radius: 12px; overflow: hidden; }
.pane-film { aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.pane-film video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Facts under the workspace film */
.cp-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 0 var(--gutter) 6rem; }
.cp-facts li { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.cp-facts b { font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.cp-facts span { margin-top: 0.45rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* What's different: six tiles, the swarm dark */
.cp-new { padding: 7rem var(--gutter); border-top: 1px solid var(--line); }
.cp-tiles { list-style: none; margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.cp-tiles li { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.7rem 1.6rem 1.8rem; background: var(--tile); border-radius: 24px; min-height: 15rem; }
.cp-tile-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid); }
.cp-tiles b { font-weight: 500; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.15; }
.cp-tiles li > p:last-child { margin-top: auto; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.cp-tiles .cp-tile-dark { grid-row: span 2; background: var(--pane); color: var(--pane-ink); }
.cp-tile-dark .cp-tile-k { color: var(--pane-acid); }
.cp-tile-dark > p:last-child { color: var(--pane-dim); }
.cp-stat { display: flex; flex-direction: column; margin-top: 1.2rem; font-weight: 500; font-size: clamp(4.5rem, 9vw, 7.5rem); letter-spacing: -0.05em; line-height: 0.9; }
.cp-stat small { margin-top: 0.9rem; font-size: 0.95rem; letter-spacing: -0.01em; font-weight: 400; line-height: 1.4; color: var(--pane-ink); }

/* Branches: Weave itself, recorded */
.cp-branch { padding: 7rem var(--gutter); border-top: 1px solid var(--line); }
.cp-branch .pane-film { margin-top: 3rem; }

/* Access: three cards, the certificate dark */
.cp-access { padding: 7rem var(--gutter); border-top: 1px solid var(--line); }
.cp-cards { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.cp-card { display: flex; flex-direction: column; gap: 1.4rem; padding: 1.6rem; background: var(--tile); border-radius: 20px; }
.cp-card > p:last-child { margin-top: auto; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.cp-card-kicker { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acid); }
.cp-cert { background: var(--pane); color: var(--pane-ink); }
.cp-cert .cp-card-kicker { color: var(--pane-acid); }
.cp-cert > p:last-child { color: var(--pane-dim); }
.cp-cert dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #222226; font-size: 0.88rem; }
.cp-cert dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pane-dim); padding-top: 0.15rem; }
.cp-cert dd output { font-family: var(--mono); color: var(--pane-acid); font-variant-numeric: tabular-nums; }
.cp-secrets, .cp-sizes { list-style: none; display: grid; gap: 0.5rem; }
.cp-secrets li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.cp-secrets code { font-family: var(--mono); font-size: 0.74rem; }
.cp-secrets span { color: #b4b6bc; letter-spacing: 0.08em; font-size: 0.74rem; }
.cp-sizes li { display: flex; flex-direction: column; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cp-sizes b { font-weight: 500; }
.cp-sizes span { font-size: 0.88rem; color: var(--muted); }

/* On-prem pointer: one hairline row */
.cp-onprem {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  margin: 0 var(--gutter);
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cp-onprem p { font-size: 1.15rem; letter-spacing: -0.01em; }

/* Closer */
.cp-close { min-height: 70svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9rem var(--gutter) 4rem; }
.cp-close h2 { margin-top: 0.9rem; font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.02; }
.cp-close p:not(.kicker) { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }
.cp-close .cp-cta { margin-top: 2.2rem; }

@media (prefers-reduced-motion: reduce) {
  .cp-box-key li:last-child::before { animation: none; }
  .cp-edges circle { display: none; }
}

@media (max-width: 900px) {
  .cp-hero { padding: 7.5rem 1.1rem 2.5rem; }
  .cp-topo { margin: 0 1.1rem 4rem; padding: 2rem 1.25rem 1.6rem; border-radius: 22px; }
  .cp-tri { height: auto; display: flex; flex-direction: column; gap: 8.5rem; }
  .cp-tier { position: relative; width: 62%; }
  .cp-tier[data-at] { left: auto; right: auto; top: auto; bottom: auto; }
  .cp-tier[data-at="cloud"] { align-self: flex-end; }
  .cp-edge { white-space: normal; max-width: 8.5rem; padding: 0.4rem 0.5rem; }
  .cp-topo figcaption { margin-top: 1.6rem; text-align: left; }
  .feat, .feat-flip { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 1.1rem; }
  .feat-flip .feat-copy { order: 0; }
  .cp-facts { grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 0 1.1rem 4rem; }
  .cp-new, .cp-branch, .cp-access { padding: 4.5rem 1.1rem; }
  .cp-tiles { grid-template-columns: 1fr; }
  .cp-tiles li { min-height: 0; }
  .cp-tiles .cp-tile-dark { grid-row: auto; }
  .cp-branch .pane-film { margin-top: 2rem; }
  .cp-cards { grid-template-columns: 1fr; }
  .cp-onprem { flex-direction: column; margin: 0 1.1rem; gap: 0.6rem; }
  .cp-close { min-height: 0; padding: 6rem 1.1rem 3rem; }
}
