/* ============================================================
   Landing page — "from noise to understanding"
   Brand tokens come from styles/global.css. Everything here is
   namespaced `landing-` so it never collides with the product
   story sections (components/ProductSections.css).
   ============================================================ */

.landing {
  --night: #07090f;
  --night-2: #0b1020;
  --night-ink: #dfe4f3;
  --night-muted: rgba(223, 228, 243, 0.62);
  --night-faint: rgba(223, 228, 243, 0.28);
  --night-line: rgba(223, 228, 243, 0.12);
  --day: #ffffff;
  --day-2: #f4f5fa;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 72px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  position: relative;
  background: var(--night);
  color: var(--night-ink);
  overflow: clip;
}

.landing-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Stage (fixed WebGL field) ---------- */

.landing-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 10%, #10183a 0%, #0a0e1d 45%, var(--night) 100%);
}

.landing-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-stage::after {
  /* film grain keeps flat gradients from banding */
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: overlay;
}

.landing > section,
.landing > footer {
  position: relative;
  z-index: 1;
}

/* ---------- Loader ---------- */

.landing-loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--night);
}

.landing-loader[hidden] {
  display: none;
}

.landing-loader__mark {
  color: #fff;
  opacity: 0.95;
  filter: drop-shadow(0 0 18px rgba(50, 98, 255, 0.6));
}

.landing-loader__mark svg {
  width: 44px;
  height: auto;
}

.landing-loader__count {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
}

.landing-loader__bar {
  width: 120px;
  height: 2px;
  background: var(--night-line);
  overflow: hidden;
}

.landing-loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
}

/* ---------- Custom cursor ---------- */

.landing-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  /* The custom cursor only lives in the hero; `landing--cursor` is set while
     the hero is on screen and removed once it scrolls out. */
  .landing--cursor,
  .landing--cursor a,
  .landing--cursor button {
    cursor: none;
  }

  .landing--motion .landing-cursor {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    transition: opacity 240ms ease;
  }

  .landing--cursor .landing-cursor {
    opacity: 1;
  }

  .landing-cursor__dot,
  .landing-cursor__ring {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }

  .landing-cursor__dot {
    width: 6px;
    height: 6px;
    background: #fff;
  }

  .landing-cursor__ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: width 220ms var(--ease-out), height 220ms var(--ease-out), border-color 220ms ease;
  }

  .landing-cursor--hover .landing-cursor__ring {
    width: 64px;
    height: 64px;
    border-color: rgba(255, 255, 255, 0.35);
  }
}

/* ---------- Nav ---------- */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  color: #fff;
  transition: background-color 320ms ease, backdrop-filter 320ms ease, color 320ms ease,
    border-color 320ms ease;
  border-bottom: 1px solid transparent;
}

.landing-nav--scrolled {
  background: rgba(7, 9, 15, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--night-line);
}

.landing-nav--light {
  color: var(--brand-ink);
}

.landing-nav--light.landing-nav--scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: var(--color-border);
}

.landing-nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-magenta));
  transform-origin: left center;
  transform: scaleX(0);
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.landing-nav__mark svg {
  width: 26px;
  height: auto;
  display: block;
}

.landing-nav__word {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.landing-nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.landing-nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.landing-nav__links a:hover {
  opacity: 1;
}

.landing-nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease;
}

.landing-nav--light .landing-nav__cta {
  background: var(--brand-ink);
  color: #fff;
}

.landing-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.landing-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.landing-nav--open .landing-nav__burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.landing-nav--open .landing-nav__burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.landing-nav__drawer {
  display: none;
}

/* ---------- Chapter rail ---------- */

.landing-rail {
  position: fixed;
  right: 28px;
  top: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
  color: var(--night-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 320ms ease, opacity 320ms ease;
}

.landing-rail--light {
  color: var(--color-text-muted);
}

.landing-rail--hidden {
  opacity: 0;
}

.landing-rail__index {
  display: flex;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.landing-rail__of {
  opacity: 0.5;
}

.landing-rail__track {
  position: relative;
  width: 1px;
  height: 140px;
  background: currentColor;
  opacity: 0.35;
}

.landing-rail__progress {
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--brand-blue);
  transform-origin: top center;
  transform: scaleY(0);
}

.landing-rail__label {
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* ---------- Type ---------- */

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.landing-kicker__index {
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

.landing-kicker__rule {
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.landing-chapter--light .landing-kicker {
  color: var(--color-text-muted);
}

.landing-h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
}

.landing-h2--ink {
  color: var(--brand-ink);
}

.landing-h3 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}

.landing-lede {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--night-muted);
}

.landing-lede--ink {
  color: var(--color-text-muted);
}

.landing-line {
  display: block;
}

.landing-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.landing-word__inner {
  display: inline-block;
  will-change: transform;
}

/* ---------- Buttons ---------- */

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  will-change: transform;
}

.landing-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

.landing-btn:hover svg {
  transform: translateX(3px);
}

.landing-btn--light {
  background: #fff;
  color: var(--brand-ink);
}

.landing-btn--ink {
  background: var(--brand-ink);
  color: #fff;
}

.landing-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.landing-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.landing-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 160ms ease;
}

.landing-link:hover {
  border-bottom-color: #fff;
}

/* ---------- 00 Hero ---------- */

.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 150px;
}

.landing-hero__content {
  position: relative;
  max-width: 1100px;
  text-align: center;
}

.landing-hero__content::before {
  content: '';
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 50%, rgba(7, 9, 15, 0.55) 0%, rgba(7, 9, 15, 0) 100%);
  pointer-events: none;
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(223, 228, 243, 0.18);
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-ink);
}

.landing-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 10px rgba(50, 98, 255, 0.9), 0 0 0 3px rgba(50, 98, 255, 0.18);
}

.landing-hero__title {
  margin: 0;
  font-size: clamp(38px, 5.3vw, 74px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}

/* The gradient sits on the transformed word itself: background-clip:text on a
   parent never paints through composited children. */
.landing-hero__title .landing-line:last-child .landing-word__inner {
  background: linear-gradient(90deg, #ffffff 0%, #b8c8ff 60%, #ecc4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero__sub {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--night-muted);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.landing-hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.landing-hero__cue-line {
  position: relative;
  width: 48px;
  height: 1px;
  background: var(--night-line);
  overflow: hidden;
}

.landing-hero__cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left center;
  animation: landing-cue 2.2s var(--ease-out) infinite;
}

@keyframes landing-cue {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  45% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  55% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

.landing-hero__note {
  position: absolute;
  right: var(--gutter);
  bottom: 92px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-muted);
}

/* live learning ticker */
.landing-hero__ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--night-line);
  background: linear-gradient(180deg, rgba(7, 9, 15, 0) 0%, rgba(7, 9, 15, 0.6) 100%);
}

.landing-ticker {
  display: flex;
  align-items: center;
  height: 52px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.landing-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 100%;
  padding: 0 20px 0 var(--gutter);
  border-right: 1px solid var(--night-line);
  color: var(--night-ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-family: var(--font-sans);
}

.landing-ticker__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: landing-pulse 2s ease-out infinite;
}

@keyframes landing-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
}

.landing-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 60px), transparent 100%);
}

.landing-ticker__track {
  display: flex;
  width: max-content;
  gap: 48px;
  padding-left: 24px;
  animation: landing-ticker 60s linear infinite;
}

.landing-ticker:hover .landing-ticker__track {
  animation-play-state: paused;
}

@keyframes landing-ticker {
  to {
    transform: translateX(calc(-50% - 24px));
  }
}

.landing-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--night-muted);
}

.landing-ticker__source {
  color: var(--night-ink);
}

.landing-ticker__arrow {
  color: var(--brand-blue);
}

.landing-ticker__fact {
  color: #9fe3b8;
}

/* ---------- Pinned chapters (01, 02) ---------- */

.landing-chapter {
  position: relative;
}

.landing-chapter--pinned {
  min-height: 100vh;
}

.landing-chapter__pin {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 48px;
  row-gap: 36px;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 96px;
  max-width: 1240px;
  margin: 0 auto;
}

.landing-chapter__head {
  grid-column: 1;
  grid-row: 1;
}

.landing-chapter--pinned .landing-h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.landing-chapter--pinned .landing-lede {
  margin-top: 16px;
  font-size: 16px;
  max-width: 46ch;
}

/* beats slide in as panels along a horizontal rail */
.landing-track {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  border-top: 1px solid var(--night-line);
  padding-top: 24px;
  /* bleed so a sliding panel is never clipped by the gutter */
  margin-left: -12px;
  padding-left: 12px;
}

.landing-track__rail {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.landing-panel {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 32px;
  box-sizing: border-box;
  transform-origin: left center;
}

.landing-panel__index {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

[data-chapter='problem'] .landing-panel__index {
  color: var(--brand-orange);
}

.landing-panel__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}

.landing-panel__body {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--night-muted);
}

.landing-panel__note {
  margin: 16px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--night-faint);
}

.landing-track__dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.landing-track__dot {
  width: 28px;
  height: 2px;
  background: var(--night-line);
  transition: background-color 300ms ease;
}

.landing-track__dot--active {
  background: var(--brand-orange);
}

/* evidence: the mono "console line" under each problem */
.landing-evidence {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
}

.landing-evidence__line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--night-line);
  background: rgba(11, 16, 32, 0.6);
  color: var(--night-ink);
}

.landing-evidence__who {
  color: var(--night-faint);
}

.landing-evidence__line--wrong s {
  color: #ff9b73;
  text-decoration-color: rgba(255, 155, 115, 0.8);
}

.landing-evidence__line--right {
  border-color: rgba(74, 222, 128, 0.3);
}

.landing-evidence__line--right span:last-child {
  color: #9fe3b8;
}

.landing-evidence__line--leak {
  border-color: rgba(243, 126, 0, 0.4);
}

.landing-evidence__flag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(243, 126, 0, 0.18);
  color: #ffb067;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-evidence--meter {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 8px;
}

.landing-evidence__meter {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-orange);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.landing-evidence__meter-label {
  color: var(--night-faint);
}

.landing-evidence__bar {
  grid-column: 1 / -1;
  display: block;
  width: min(360px, 100%);
  height: 4px;
  border-radius: 2px;
  background: var(--night-line);
  overflow: hidden;
}

.landing-evidence__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-orange), #ff4d4d);
  transform-origin: left center;
  transform: scaleX(0);
}

.landing-evidence__tag {
  grid-column: 1 / -1;
  color: #ffb067;
  font-size: 12px;
}

/* step rail (02) */
.landing-steps {
  position: relative;
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--night-line);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-faint);
}

.landing-steps__item {
  display: inline-flex;
  gap: 8px;
  transition: color 320ms ease;
}

.landing-steps__num {
  color: var(--brand-blue);
  opacity: 0.6;
}

.landing-steps__item--active {
  color: #fff;
}

.landing-steps__item--active .landing-steps__num {
  opacity: 1;
}

.landing-steps__cursor {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 60px;
  background: #fff;
}

/* source chips riding the clusters (02) */
.landing-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-chip {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  color: var(--night-ink);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.landing-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

/* the agent's question flies into the field (02, compose) */
.landing-query {
  position: absolute;
  left: 50%;
  top: 44%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.landing-query__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
}

.landing-query__avatar svg {
  width: 14px;
  height: auto;
}

/* composed payload card (02) */
.landing-payload {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  width: min(420px, 100%);
  padding: 18px 20px 10px;
  border-radius: 14px;
  border: 1px solid var(--night-line);
  background: rgba(11, 16, 32, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  font-family: var(--mono);
}

.landing-payload__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--night-line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.landing-payload__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-magenta);
  box-shadow: 0 0 12px var(--brand-magenta);
}

.landing-payload__via {
  margin-left: auto;
  color: var(--night-faint);
}

.landing-payload__rows {
  margin: 0;
}

.landing-payload__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(223, 228, 243, 0.06);
  font-size: 12.5px;
  line-height: 1.45;
}

.landing-payload__row:last-child {
  border-bottom: 0;
}

.landing-payload__row dt {
  color: var(--night-faint);
}

.landing-payload__row dd {
  margin: 0;
  color: var(--night-ink);
  word-break: break-word;
  min-height: 1.45em;
}

.landing-payload__row dd.is-typing::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--brand-magenta);
  animation: landing-caret 0.8s steps(2) infinite;
}

@keyframes landing-caret {
  to {
    opacity: 0;
  }
}

.landing-payload__row:last-child dd {
  color: #9fe3b8;
}

/* ---------- Light chapters (03, 04) ---------- */

.landing-chapter--light {
  background: var(--day);
  color: var(--brand-ink);
}

.landing-value {
  padding: 0 0 clamp(64px, 8vw, 120px);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

/* pinned horizontal gallery */
.landing-value__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) 0 40px;
}

.landing-value__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.landing-value__head .landing-h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.landing-value__progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 180px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.landing-value__counter {
  display: flex;
  gap: 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
}

.landing-value__of {
  color: var(--color-text-muted);
}

.landing-value__bar {
  position: relative;
  width: 180px;
  height: 2px;
  background: var(--color-border);
  overflow: hidden;
}

.landing-value__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand-blue);
  transform-origin: left center;
  transform: scaleX(0.2);
}

.landing-value__viewport {
  overflow: hidden;
  padding: 0 var(--gutter);
}

.landing-value__track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.landing-value__panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 48px);
  width: min(74vw, 1040px);
  min-height: min(58vh, 560px);
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: 28px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(38, 38, 38, 0.04);
  transition: border-color 400ms ease, box-shadow 400ms ease;
}

.landing-value__panel--active {
  border-color: rgba(38, 38, 38, 0.18);
  box-shadow: var(--shadow-lg);
}

.landing-value__copy {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.landing-value__num {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--brand-blue);
}

.landing-value__label {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.landing-value__copy h3 {
  margin: 18px 0 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--brand-ink);
}

.landing-value__copy p {
  margin: 14px 0 0;
  max-width: 40ch;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* visuals */
.landing-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 320px;
  padding: clamp(20px, 2.2vw, 32px);
  border-radius: 20px;
  background: var(--day-2);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.landing-visual__caption {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* 01 mosaic */
.landing-mosaic {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.landing-mosaic__tile {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.landing-mosaic__tile--s {
  background: var(--brand-blue);
}

.landing-mosaic__tile--u {
  background: var(--brand-magenta);
}

.landing-mosaic__tile--t {
  background: var(--brand-orange);
}

.landing-mosaic__legend {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.landing-mosaic__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-mosaic__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* 02 signal */
.landing-signal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
}

.landing-signal__line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--brand-ink);
}

.landing-signal__mark {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #fff;
}

.landing-signal__line--signal.is-on {
  border-color: rgba(50, 98, 255, 0.5);
  background: rgba(50, 98, 255, 0.06);
}

.landing-signal__line--signal.is-on .landing-signal__mark {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.landing-signal__line--signal.is-on .landing-signal__mark::after {
  content: '✓';
}

.landing-signal__line--noise.is-on {
  opacity: 0.38;
}

.landing-signal__line--noise .landing-signal__text::after {
  content: '';
  position: absolute;
  left: 38px;
  right: 12px;
  top: 50%;
  height: 1.5px;
  background: var(--brand-orange);
  transform: scaleX(var(--strike, 0));
  transform-origin: left center;
}

/* 03 tokens */
.landing-tokens {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-tokens__row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.landing-tokens__label {
  font-weight: 500;
  color: var(--brand-ink);
}

.landing-tokens__bar {
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.landing-tokens__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 5px;
  transform-origin: left center;
  transform: scaleX(0);
}

.landing-tokens__row--noise .landing-tokens__fill {
  background: linear-gradient(90deg, var(--brand-orange), #ff4d4d);
}

.landing-tokens__row--signal .landing-tokens__fill {
  background: var(--brand-blue);
}

.landing-tokens__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.landing-tokens__badge {
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
}

/* 04 matrix */
.landing-matrix {
  display: grid;
  grid-template-columns: 120px repeat(var(--cols), minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.landing-matrix__col,
.landing-matrix__row {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.landing-matrix__col {
  text-align: center;
}

.landing-matrix__cell {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transform: rotateX(90deg);
  opacity: 0;
}

.landing-matrix__cell--allowed {
  background: #22c55e;
}

.landing-matrix__cell--denied {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* 05 orbit */
.landing-orbit {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.landing-orbit__ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed var(--color-border-strong);
  transform: scale(0.6);
  opacity: 0;
}

.landing-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 16px 40px rgba(50, 98, 255, 0.35);
  transform: translate(-50%, -50%) scale(0);
}

.landing-orbit__core svg {
  width: 32px;
  height: auto;
}

.landing-orbit__spin {
  position: absolute;
  inset: 0;
  animation: landing-orbit 28s linear infinite;
}

.landing-orbit__seat {
  /* a full-width spoke rotated about the centre; the chip sits near its end */
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  transform: rotate(var(--angle));
}

.landing-orbit__chip {
  position: absolute;
  left: 88%;
  top: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-ink);
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle)));
  animation: landing-orbit-counter 28s linear infinite;
  opacity: 0;
}

@keyframes landing-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes landing-orbit-counter {
  from {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle)));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--angle) - 360deg));
  }
}

/* stats strip */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: clamp(32px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--color-border);
}

.landing-stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.landing-stats__value {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

.landing-stats__label {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.landing-stats__note {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* approach */
.landing-approach {
  padding: 0 0 clamp(96px, 12vw, 160px);
  overflow: hidden;
}

.landing-marquee {
  padding: 22px 0;
  margin-bottom: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--day-2);
}

.landing-marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  will-change: transform;
}

.landing-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--brand-ink);
}

.landing-marquee__mark {
  color: var(--brand-blue);
}

.landing-marquee__mark svg {
  width: 20px;
  height: auto;
}

.landing-display {
  margin: 0;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--brand-ink);
}

.landing-display__line {
  display: block;
}

.landing-strike {
  position: relative;
  font-style: normal;
  color: var(--color-text-muted);
}

.landing-strike::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 0.06em;
  background: var(--brand-orange);
  transform: scaleX(var(--strike, 0));
  transform-origin: left center;
}

.landing-earn {
  font-style: normal;
  color: var(--brand-blue);
}

.landing-approach__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  perspective: 1400px;
}

.landing-approach__item {
  padding: 28px 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: box-shadow 320ms ease;
  will-change: transform;
}

.landing-approach__item:hover {
  box-shadow: var(--shadow-lg);
}

.landing-approach__index {
  display: block;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--brand-magenta);
}

.landing-approach__item h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.landing-approach__item p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ---------- 05 Enterprise ---------- */

.landing-enterprise {
  padding: clamp(96px, 12vw, 160px) 0 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  background: var(--night-2);
}

.landing-enterprise__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.landing-enterprise__head .landing-h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}

.landing-guarantees {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-guarantees__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.landing-guarantees__dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 10px rgba(50, 98, 255, 0.7);
}

.landing-guarantees__item--magenta .landing-guarantees__dot {
  background: var(--brand-magenta);
  box-shadow: 0 0 10px rgba(228, 74, 255, 0.6);
}

.landing-guarantees__item--green .landing-guarantees__dot {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.landing-guarantees__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--night-muted);
}

.landing-guarantees__copy strong {
  font-weight: 500;
  color: #fff;
}

/* the perimeter diagram */
.landing-perimeter {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 66;
  font-family: var(--mono);
  font-size: 12px;
}

.landing-perimeter__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.landing-perimeter__lines path {
  fill: none;
  stroke-linecap: round;
}

/* Stroke widths are viewBox units: the diagram keeps a 100:66 ratio, so the
   SVG scales uniformly with the HTML nodes placed in percentages. */
.landing-perimeter__wire {
  stroke: rgba(50, 98, 255, 0.55);
  stroke-width: 0.22;
}

.landing-perimeter__out {
  stroke: rgba(228, 74, 255, 0.75);
  stroke-width: 0.26;
}

.landing-perimeter__raw {
  stroke: rgba(243, 126, 0, 0.55);
  stroke-width: 0.22;
}

.landing-perimeter__box {
  position: absolute;
  left: 3%;
  top: 6%;
  width: 63%;
  height: 62%;
  border-radius: 16px;
  border: 1px dashed rgba(223, 228, 243, 0.3);
  background: rgba(50, 98, 255, 0.04);
  box-shadow: inset 0 0 60px rgba(50, 98, 255, 0.08);
}

.landing-perimeter__label {
  position: absolute;
  left: 16px;
  top: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.landing-perimeter__zero {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: var(--night-muted);
}

.landing-perimeter__zero span {
  color: #9fe3b8;
  font-weight: 700;
}

.landing-perimeter__node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  background: rgba(11, 16, 32, 0.92);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--night-ink);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.landing-perimeter__node img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.landing-perimeter__node--agent {
  transform: translate(0, -50%);
  padding: 7px 12px;
  border-color: rgba(228, 74, 255, 0.35);
}

.landing-perimeter__agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-magenta);
  box-shadow: 0 0 10px var(--brand-magenta);
}

.landing-perimeter__gateway {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(11, 16, 32, 1), 0 0 40px rgba(50, 98, 255, 0.6);
  transform: translate(-50%, -50%);
}

.landing-perimeter__gateway svg {
  width: 24px;
  height: auto;
}

.landing-perimeter__gateway-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(50, 98, 255, 0.8);
  opacity: 0;
}

.landing-perimeter__gateway-label {
  position: absolute;
  top: calc(100% + 14px);
  white-space: nowrap;
  letter-spacing: 0.08em;
  color: var(--night-muted);
}

.landing-perimeter__packet {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.landing-perimeter__packet--raw {
  background: var(--brand-orange);
  box-shadow: 0 0 14px rgba(243, 126, 0, 0.9);
}

.landing-perimeter__packet--context {
  background: #fff;
  box-shadow: 0 0 16px rgba(228, 74, 255, 0.9);
}

.landing-perimeter__stop {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.landing-perimeter__stop-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
}

.landing-perimeter__stop-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 16px;
  background: var(--brand-orange);
  transform: translate(-50%, -50%) rotate(45deg);
}

.landing-perimeter__stop-label {
  color: #ffb067;
  white-space: nowrap;
}

.landing-perimeter__context-label {
  position: absolute;
  left: 68%;
  top: 70%;
  color: rgba(228, 74, 255, 0.9);
  white-space: nowrap;
  opacity: 0;
}

/* initial states the diagram animates out of */
.landing--motion .landing-perimeter__box,
.landing--motion .landing-perimeter__node,
.landing--motion .landing-perimeter__gateway {
  opacity: 0;
}

.landing-enterprise__seals {
  margin-top: clamp(56px, 7vw, 96px);
}

/* The seals component ships its own light-surface colors; recolor on night. */
.landing-enterprise .compliance__seal {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(223, 228, 243, 0.08);
}

.landing-enterprise .compliance__ring-outer,
.landing-enterprise .compliance__ring-inner {
  stroke: rgba(223, 228, 243, 0.22);
}

.landing-enterprise .compliance__tick {
  stroke: rgba(223, 228, 243, 0.35);
}

.landing-enterprise .compliance__mark,
.landing-enterprise .compliance__mark strong {
  color: #fff;
}

.landing-enterprise .compliance__mark em,
.landing-enterprise .compliance__note {
  color: var(--night-muted);
}

.landing-enterprise .compliance__ring {
  transition: transform 1.2s var(--ease-out);
}

.landing-stack {
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(48px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--night-line);
  background: var(--night-2);
}

.landing-stack__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.landing-stack__marquee {
  height: 220px;
}

/* ---------- Finale ---------- */

.landing-finale {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
}

.landing-finale__content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.landing-finale__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(38px, 5.6vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}

.landing-finale .landing-lede {
  max-width: 46ch;
}

.landing-finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.landing-footer {
  padding: 32px 0 28px;
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-muted);
}

.landing-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--night-line);
}

.landing-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.landing-footer__brand svg {
  width: 30px;
  height: auto;
}

.landing-footer__contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-footer__contact a {
  color: var(--night-ink);
}

.landing-footer__socials img {
  filter: invert(1);
  opacity: 0.8;
}

.landing-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 20px;
  font-size: 13px;
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.landing-footer__links a {
  color: var(--night-muted);
  transition: color 160ms ease;
}

.landing-footer__links a:hover {
  color: #fff;
}

.landing-footer__copy {
  margin: 0;
}

/* ---------- Motion-only hooks ---------- */

/* The module sets these once it owns the page; everything above renders
   fully static without them. */
.landing--motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.landing--motion .landing-word__inner {
  transform: translateY(110%);
}

.landing--motion .landing-hero__sub,
.landing--motion .landing-hero__actions,
.landing--motion .landing-hero__eyebrow,
.landing--motion .landing-hero__cue,
.landing--motion .landing-hero__note,
.landing--motion .landing-hero__ticker {
  opacity: 0;
}

.landing--motion .landing-panel:not(:first-child) {
  opacity: 0;
}

/* Without motion (no WebGL / reduced motion / no JS) every beat stacks. */
.landing:not(.landing--motion) .landing-track__rail {
  flex-direction: column;
  gap: 36px;
}

.landing:not(.landing--motion) .landing-panel {
  flex-basis: auto;
}

.landing:not(.landing--motion) .landing-payload {
  opacity: 1;
  visibility: visible;
}

.landing:not(.landing--motion) .landing-loader,
.landing:not(.landing--motion) .landing-cursor,
.landing:not(.landing--motion) .landing-chips,
.landing:not(.landing--motion) .landing-query,
.landing:not(.landing--motion) .landing-track__dots,
.landing:not(.landing--motion) .landing-steps__cursor {
  display: none;
}

.landing:not(.landing--motion) .landing-evidence__bar span {
  transform: scaleX(0.82);
}

.landing:not(.landing--motion) .landing-chapter__pin {
  min-height: 0;
  padding-top: 96px;
  padding-bottom: 96px;
}

.landing:not(.landing--motion) .landing-value__pin {
  min-height: 0;
  padding-top: 96px;
}

.landing:not(.landing--motion) .landing-value__track {
  flex-direction: column;
  width: auto;
}

.landing:not(.landing--motion) .landing-value__panel {
  width: auto;
}

.landing:not(.landing--motion) .landing-value__progress,
.landing:not(.landing--motion) .landing-orbit__spin {
  display: none;
}

.landing:not(.landing--motion) .landing-tokens__fill {
  transform: scaleX(1);
}

.landing:not(.landing--motion) .landing-matrix__cell,
.landing:not(.landing--motion) .landing-tokens__badge,
.landing:not(.landing--motion) .landing-orbit__ring,
.landing:not(.landing--motion) .landing-orbit__chip {
  opacity: 1;
  transform: none;
}

.landing:not(.landing--motion) .landing-orbit__core {
  transform: translate(-50%, -50%);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .landing-chapter__pin {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .landing-payload {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    width: min(420px, 100%);
  }

  /* below 1024px the gallery is not pinned: panels stack */
  .landing-value__pin {
    min-height: 0;
    padding-top: 96px;
  }

  .landing-value__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-value__progress {
    display: none;
  }

  .landing-value__track {
    flex-direction: column;
    width: auto;
  }

  .landing-value__panel {
    width: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-enterprise__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-rail {
    display: none;
  }
}

@media (max-width: 768px) {
  .landing {
    --nav-h: 64px;
  }

  .landing-nav {
    gap: 16px;
  }

  .landing-nav__links,
  .landing-nav > .landing-nav__cta {
    display: none;
  }

  .landing-nav__burger {
    display: flex;
  }

  .landing-nav--open .landing-nav__drawer {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px var(--gutter) 32px;
    background: rgba(7, 9, 15, 0.96);
    border-bottom: 1px solid var(--night-line);
    font-size: 20px;
    color: #fff;
  }

  .landing-nav--light.landing-nav--open .landing-nav__drawer {
    background: rgba(255, 255, 255, 0.98);
    color: var(--brand-ink);
  }

  .landing-nav__drawer .landing-nav__cta {
    align-self: flex-start;
  }

  .landing-hero {
    padding-bottom: 140px;
  }

  .landing-hero__note {
    display: none;
  }

  .landing-hero__cue {
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .landing-ticker__label {
    padding-left: 20px;
  }

  .landing-chapter__pin {
    align-content: start;
    row-gap: 28px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: calc(var(--nav-h) + 32px);
  }

  /* On portrait screens the field sits behind the copy; keep the copy legible. */
  .landing-chapter__pin::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.55) 0%, rgba(7, 9, 15, 0.72) 55%, rgba(7, 9, 15, 0.2) 100%);
    pointer-events: none;
  }

  .landing-steps {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 11px;
  }

  .landing-steps__num {
    display: none;
  }

  .landing-chip span:last-child,
  .landing-perimeter__node--source span:last-child,
  .landing-perimeter__gateway-label,
  .landing-perimeter__context-label {
    display: none;
  }

  .landing-perimeter {
    font-size: 10px;
  }

  .landing-chip {
    padding: 6px;
  }

  .landing-query {
    display: none;
  }

  .landing-payload {
    display: none;
  }

  .landing:not(.landing--motion) .landing-payload {
    display: block;
  }

  .landing-value__panel {
    padding: 18px;
    min-height: 0;
  }

  .landing-mosaic {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .landing-tokens__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .landing-matrix {
    grid-template-columns: 90px repeat(var(--cols), minmax(0, 1fr));
    font-size: 11px;
  }

  .landing-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .landing-approach__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-stack__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-stack__marquee {
    height: 180px;
  }

  .landing-footer__top,
  .landing-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-finale {
    align-items: flex-start;
    padding-bottom: 60vh;
  }
}
