:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --tile: #f5f5f7;
  --acid: #1677ff;
  --sans: "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
}

* { 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;
}
img { display: block; max-width: 100%; }
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; }

.kicker {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero: same lockup as the other platform pages */
.cx-hero {
  padding: 8.5rem var(--gutter) 4.5rem;
  max-width: 46rem;
}
.cx-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: 34rem;
}
.cx-cta {
  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;
}
.cx-cta:hover { color: var(--acid); border-bottom-color: var(--acid); }

/* Exploded view: a tall scroll track with a sticky viewport inside */
.cx-explode { height: calc(100svh + 6 * 70svh); }
.cx-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.35fr);
  grid-template-rows: auto 1fr;
  gap: 0 2.5rem;
  padding: 5rem var(--gutter) 1.5rem;
  overflow: hidden;
}
.cx-head { grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 1.5rem; }
.cx-head h2 {
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cx-stage { position: relative; min-height: 0; grid-column: 1; grid-row: 1 / -1; }
.cx-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx-leaders {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  font-family: var(--mono);
}
.cx-leaders path { fill: none; stroke: var(--acid); stroke-width: 1; opacity: 0.9; }
.cx-leaders circle { fill: var(--acid); stroke: var(--bg); stroke-width: 1.5; }
.cx-leaders line { stroke: var(--ink); stroke-width: 1; opacity: 0.3; }
.cx-leaders line.is-on { stroke: var(--acid); opacity: 1; }
.cx-leaders text {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--muted);
  transition: fill 0.3s ease;
}
.cx-leaders text.is-on { fill: var(--acid); }

/* Legend */
.cx-layers {
  list-style: none;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cx-layers li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.15rem 0.6rem;
  padding: 0.8rem 0 0.8rem 0.9rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.cx-layers li i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding-top: 0.2rem;
}
.cx-layers li b { font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); }
.cx-layers li span {
  grid-column: 2;
  font-size: 0.86rem;
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.cx-layers li.is-on { border-left-color: var(--acid); color: var(--ink); }
.cx-layers li.is-on i { color: var(--acid); }
.cx-layers li.is-on span { max-height: 6rem; opacity: 1; }

/* Section heads shared below the exploded view */
.cx-section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.cx-section-head h2 {
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Facts: a bento of tiles, wide ones on the diagonal */
.cx-facts { padding: 6rem var(--gutter) 7rem; }
.cx-facts ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.cx-facts li {
  background: var(--tile);
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.8rem;
  min-height: 12.5rem;
  display: flex;
  flex-direction: column;
}
.cx-facts li.is-wide { grid-column: span 2; }
.cx-facts i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--acid);
}
.cx-facts b {
  margin-top: auto;
  padding-top: 2.5rem;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.02em;
}
.cx-facts span {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 30rem;
}

/* Closer */
.cx-close {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem var(--gutter) 4rem;
  border-top: 1px solid var(--line);
}
.cx-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;
  max-width: 16em;
}
.cx-close-fact { margin-top: 1.1rem; color: var(--muted); font-size: 1.05rem; }
.cx-close .cx-cta { margin-top: 2.2rem; }

@media (max-width: 900px) {
  .cx-hero { padding: 7.5rem 1.1rem 3rem; }
  .cx-explode { height: calc(100svh + 6 * 55svh); }
  .cx-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 6.5rem 1.1rem 1.2rem;
  }
  .cx-head { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .cx-stage { grid-column: 1; grid-row: 2; }
  .cx-layers { grid-column: 1; grid-row: 3; }
  .cx-leaders { display: none; }
  .cx-layers { gap: 0; }
  .cx-layers li { padding: 0.45rem 0 0.45rem 0.7rem; }
  .cx-layers li b { font-size: 0.92rem; }
  .cx-layers li span { font-size: 0.8rem; }
  .cx-layers li:not(.is-on) span { display: none; }
  .cx-facts { padding: 4rem 1.1rem 4rem; }
  .cx-facts ul { grid-template-columns: 1fr; }
  .cx-facts li, .cx-facts li.is-wide { grid-column: auto; min-height: 0; }
  .cx-facts b { padding-top: 1.4rem; }
  .cx-close { min-height: 0; padding: 6rem 1.1rem 3rem; }
}
