/* NODO page: one real NODO replayed on a chart as you scroll, then the app,
   the markets and access. Builds on nodo-orbita-base.css (header, footer, type). */

.nl {
  --night: #05080f;
  --deep: #0a0f1b;
  --panel: #0e1524;
  --rule: #1b2537;
  --ink: #eaf4fa;
  --soft: #b7c3d0;
  --muted: #7f8ca0;
  --cyan: #43dfff;
  --amber: #f2b45a;
  background: var(--night);
}
.nl .site-header { background: color-mix(in srgb, var(--night) 82%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; border-color: var(--rule); }
.nl .button { border-radius: 4px; }
.nl .button:not(.button-primary) { background: color-mix(in srgb, var(--night) 70%, transparent); }

/* ── The story: a tall section with a sticky chart stage ─────────────────── */
.nl-story { position: relative; }
.js .nl-story { height: 580vh; }
.nl-stage { position: relative; }
.js .nl-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.nl-chart {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.js .nl-chart { display: block; }
/* Left scrim so the words read over the chart. */
.js .nl-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--night) 0%, color-mix(in srgb, var(--night) 80%, transparent) 34%, transparent 50%),
    linear-gradient(180deg, transparent 72%, var(--night) 100%);
}

.nl-tag {
  display: none;
  position: absolute;
  z-index: 2;
  top: 96px;
  right: max(24px, calc((100% - var(--max)) / 2));
  align-items: center;
  gap: 8px;
  font: 11px var(--mono);
  letter-spacing: .12em;
  color: var(--muted);
}
.js .nl-tag { display: inline-flex; }
.nl-tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Chapters: stacked without JS; one at a time over the chart with JS. */
.nl-chapter {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  padding: 72px 0;
}
.nl-chapter + .nl-chapter { border-top: 1px solid var(--rule); }
.js .nl-chapter {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  padding: 0;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 26px));
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .6s;
}
.js .nl-chapter.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.js .nl-chapter:not(.nl-hero) > * { max-width: 450px; }

.nl-eyebrow { color: var(--cyan); margin-bottom: 26px; }
.nl-by { color: var(--muted); }
.nl-hero h1 {
  font-size: clamp(64px, 10.5vw, 172px);
  line-height: .95;
  letter-spacing: -.065em;
  max-width: 11.5em;
}
.nl-h1-b { display: block; color: var(--soft); }
.nl-hero .nl-lead {
  max-width: 520px;
  margin: 30px 0 30px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--soft);
}
.nl-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  font: 11px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nl-cue__line { position: relative; width: 1px; height: 38px; background: var(--rule); overflow: hidden; }
.nl-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--cyan);
  animation: nl-cue 1.8s ease-in-out infinite;
}
@keyframes nl-cue { to { top: 100%; } }

.nl-step {
  font: 500 12px var(--mono);
  letter-spacing: .2em;
  color: var(--cyan);
  margin-bottom: 18px;
}
.nl-chapter h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -.055em;
  margin-bottom: 22px;
}
.nl-chapter:not(.nl-hero) p:not(.nl-step):not(.nl-fine) { font-size: 18px; line-height: 1.7; color: var(--soft); }
.nl-fine { margin-top: 22px; font: 12px/1.7 var(--mono); color: var(--muted); }

.nl-progress {
  display: none;
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100% - var(--max)) / 2));
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 28px;
  height: 1px;
  background: var(--rule);
}
.js .nl-progress { display: block; }
.nl-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cyan); }

/* ── The app ──────────────────────────────────────────────────────────────── */
.nl-phone { border-top: 1px solid var(--rule); background: radial-gradient(ellipse 60% 70% at 78% 50%, #0d2230 0, transparent 70%); }
.nl-phone__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px 72px; align-items: center; }
.nl-sub { margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--soft); max-width: 520px; }
.nl-facts { margin: 44px 0 0; display: grid; gap: 0; }
.nl-facts div { display: grid; grid-template-columns: 136px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.nl-facts dt { font: 500 12px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.nl-facts dd { margin: 0; color: var(--soft); line-height: 1.7; }

.nl-phones { position: relative; display: flex; justify-content: center; gap: 28px; padding: 20px 0; }
.nl-device {
  width: min(250px, 42%);
  aspect-ratio: 9 / 16;
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #233044, #0b111c 40%, #1a2434);
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px #2a3850, inset 0 0 0 1px #0007;
  position: relative;
}
.nl-device--a { transform: translateY(-26px) rotate(-3deg); }
.nl-device--b { transform: translateY(30px) rotate(2.5deg); }
.nl-device__video { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; display: block; background: var(--deep); }
.nl-device figcaption {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.nl-phone__note { grid-column: 2; text-align: center; margin-top: 30px; }

/* ── Markets ──────────────────────────────────────────────────────────────── */
.nl-markets { border-top: 1px solid var(--rule); }
.nl-markets__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 60px; flex-wrap: wrap; margin-bottom: 56px; }
.nl-markets__head .nl-sub { margin-top: 0; }
.nl-muted { color: var(--muted); }
.nl-board { display: grid; grid-template-columns: 1fr 1fr 2.4fr; border-top: 1px solid var(--rule); }
.nl-board__group { padding: 26px 28px 30px 0; }
.nl-board__group + .nl-board__group { padding-left: 28px; border-left: 1px solid var(--rule); }
.nl-board__label { font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.nl-board ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nl-board li { font: 500 clamp(20px, 2.1vw, 30px)/1.35 var(--mono); letter-spacing: -.02em; color: var(--ink); }

/* ── Access ───────────────────────────────────────────────────────────────── */
.nl-access { border-top: 1px solid var(--rule); background: linear-gradient(180deg, var(--deep), var(--night)); }
.nl-access__in { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 36px 60px; align-items: end; }
.nl-price { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.nl-price__amt { font: 500 clamp(64px, 8vw, 120px)/.9 var(--sans); letter-spacing: -.06em; }
.nl-price__per { font: 14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nl-access__actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }

/* ── Smaller screens ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nl-phone__grid { grid-template-columns: 1fr; }
  .nl-phone__note { grid-column: auto; }
  .nl-board { grid-template-columns: 1fr 1fr; }
  .nl-board__group--wide { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .nl-access__in { grid-template-columns: 1fr; }
  .nl-access__actions { min-width: 0; }
}
@media (max-width: 720px) {
  .nl-chapter { width: calc(100% - 40px); }
  /* Phones: the chart takes the top of the screen, the words sit below it. */
  .js .nl-stage::before {
    background: linear-gradient(180deg, transparent 0%, transparent 44%, var(--night) 60%);
  }
  .js .nl-chapter { top: auto; bottom: 64px; transform: translateY(26px); }
  .js .nl-chapter.is-on { transform: none; }
  .js .nl-hero { top: 50%; bottom: auto; transform: translateY(calc(-50% + 26px)); }
  .js .nl-hero.is-on { transform: translateY(-50%); }
  .nl-hero h1 { font-size: clamp(56px, 18vw, 80px); line-height: 1; }
  .nl-hero .nl-lead { font-size: 15.5px; margin: 18px 0 20px; }
  .nl-cue { display: none; }
  .nl-hero .nl-eyebrow { display: none; }
  .nl-chapter h2 { font-size: 34px; margin-bottom: 14px; }
  .nl-chapter:not(.nl-hero) p:not(.nl-step):not(.nl-fine) { font-size: 16px; }
  .nl-tag { top: 88px; right: 20px; }
  .nl-progress { left: 20px; right: 20px; bottom: 22px; }
  .nl-facts div { grid-template-columns: 1fr; gap: 4px; }
  .nl-sub { font-size: 16px; }
  .nl-phones { gap: 16px; }
  .nl-device { width: 46%; border-radius: 26px; padding: 6px; }
  .nl-device__video { border-radius: 21px; }
  .nl-device figcaption { font-size: 9.5px; bottom: -32px; }
  .nl-board li { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-cue__line::after { animation: none; }
}

/* The app: three taps, then what else comes with it. */
.nl-taps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; }
.nl-taps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--rule); }
.nl-taps li:last-child { border-bottom: 1px solid var(--rule); }
.nl-taps__n { font: 500 12px var(--mono); letter-spacing: .2em; color: var(--cyan); }
.nl-taps strong { display: block; font-weight: 500; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.2; color: var(--ink); }
.nl-taps strong + span { display: block; margin-top: 4px; color: var(--muted); font-size: 16px; }
.nl-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nl-chips li { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font: 12px var(--mono); letter-spacing: .06em; color: var(--soft); }
@media (max-width: 720px) {
  .nl-taps li { grid-template-columns: 40px 1fr; }
  .nl-taps strong { font-size: 22px; }
}

/* ── Community: the NODO's chat, with agents and members ─────────────────── */
.nc { position: relative; border-top: 1px solid var(--rule); }
.js .nc { height: 600vh; }
.nc-stage { position: relative; padding: 120px 0; }
.js .nc-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: 92px 0 32px; overflow: hidden;
}
.nc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.nc-grid {
  width: min(var(--max), calc(100% - 96px)); height: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 72px; align-items: center;
}
.nc-copy { align-self: center; }
.nc-heads { position: relative; min-height: 3.3em; margin-top: 14px; font-size: clamp(38px, 4vw, 60px); }
.nc-head {
  position: absolute; inset: 0 auto auto 0; max-width: 520px; margin: 0;
  font-size: 1em; font-weight: 500; line-height: 1.04; letter-spacing: -.055em; color: var(--ink);
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.nc-head.is-on { opacity: 1; transform: none; }
.nc-legend { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 22px; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nc-legend li { display: flex; align-items: center; gap: 10px; transition: color .4s; }
.nc-legend .nc-ava { width: 22px; height: 22px; font-size: 9px; }
.nc-grid:has(.nc-app.is-agents) .nc-legend li:first-child { color: var(--ink); }

/* The app panel */
.nc-app {
  position: relative; height: min(780px, 100%); display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--deep) 60%);
  border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 50px 120px -50px rgba(67, 223, 255, .25), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.nc-app__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); font: 500 13px var(--mono); color: var(--ink); }
.nc-app__mkt em { font-style: normal; color: var(--muted); margin-left: 6px; font-weight: 400; }
.nc-app__chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(67, 223, 255, .08); color: var(--cyan); font-size: 11px; white-space: nowrap; }
.nc-app__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.nc-chart { display: block; width: 100%; flex: 0 0 36%; min-height: 0; }
.nc-room { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); position: relative; }
.nc-room__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 18px 6px; }
.nc-room__title { font-size: 14px; font-weight: 500; color: var(--ink); }
.nc-t-rooms { display: none; }
.nc-room__ai { font: 10.5px var(--mono); color: var(--muted); text-align: right; }
.nc-log {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 10px 4px; transition: opacity .4s;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%);
}
.nc-msgs { list-style: none; margin: 0; padding: 0; }
.nc-msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 8px 8px; border-radius: 10px; transition: opacity .4s, background .4s; }
.nc-msg[hidden] { display: none; }
.nc-msg.is-new { animation: nc-in .55s cubic-bezier(.2, .7, .2, 1); }
.nc-msg.is-agent.is-new { background: rgba(67, 223, 255, .05); }
@keyframes nc-in { from { opacity: 0; transform: translateY(14px); } }
.nc-app.is-agents .nc-msg:not(.is-agent) { opacity: .32; }
.nc-app.is-agents .nc-msg.is-agent { background: rgba(67, 223, 255, .045); }
.nc-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.nc-ava--member { background: #1a2436; color: var(--soft); font: 600 11px var(--sans); letter-spacing: .02em; }
.nc-ava--agent {
  background:
    radial-gradient(circle at 32% 38%, #d6f6ff 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 68% 30%, #d6f6ff 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 54% 70%, #43dfff 0 1.8px, transparent 2.6px),
    #071824;
  border: 1px solid rgba(67, 223, 255, .45);
}
.nc-ava.is-lit { animation: nc-lit 1.2s ease-out; }
@keyframes nc-lit { 0% { box-shadow: 0 0 0 0 rgba(67, 223, 255, .7), 0 0 22px rgba(67, 223, 255, .9); } 100% { box-shadow: 0 0 0 12px rgba(67, 223, 255, 0), 0 0 0 rgba(67, 223, 255, 0); } }
.nc-meta { display: flex; align-items: baseline; gap: 8px; margin: 0; font: 11px var(--mono); color: var(--muted); }
.nc-who { font: 500 12px var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: default; }
button.nc-who { color: #a9ecff; cursor: pointer; font-family: var(--mono); font-size: 11.5px; }
.nc-ai { font-size: 9px; letter-spacing: .08em; padding: 1px 5px; border: 1px solid rgba(67, 223, 255, .45); border-radius: 3px; color: var(--cyan); }
.nc-meta time { margin-left: auto; opacity: .7; }
.nc-body { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--soft); overflow-wrap: anywhere; }
.nc-at { color: var(--cyan); }
.nc-typing { display: flex; align-items: center; gap: 11px; padding: 6px 8px 2px; font: 11px var(--mono); color: var(--muted); }
.nc-typing[hidden] { display: none; }
.nc-typing .nc-ava { width: 22px; height: 22px; font-size: 9px; }
.nc-dots { display: inline-flex; gap: 3px; }
.nc-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); animation: nc-dot 1s infinite ease-in-out; }
.nc-dots i:nth-child(2) { animation-delay: .15s; }
.nc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nc-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.nc-compose { margin: 8px 14px 14px; padding: 11px 12px 11px 14px; border: 1px solid var(--rule); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.nc-compose i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: #05080f; font-style: normal; font-weight: 700; font-size: 13px; }
.nc-tip { position: absolute; left: 50%; bottom: 72px; transform: translate(-50%, 8px); margin: 0; padding: 8px 12px; border-radius: 8px; background: #eaf4fa; color: #05080f; font: 500 11px var(--mono); white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 3; }
.nc-tip.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Rooms: one per market */
.nc-rooms { position: absolute; inset: 44px 0 70px; padding: 6px 18px; display: grid; align-content: start; gap: 18px; opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.nc-rooms__label { margin: 0 0 8px; font: 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nc-rooms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nc-rooms li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; font: 500 13px var(--mono); color: var(--ink); background: rgba(255, 255, 255, .015); }
.nc-rooms li i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: nc-dot 2.4s infinite ease-in-out; }
.nc-rooms li:nth-child(2n) i { animation-delay: .8s; }
.nc-rooms li:nth-child(3n) i { animation-delay: 1.5s; }
.nc-rooms__group:first-child li:first-child { border-color: rgba(67, 223, 255, .5); background: rgba(67, 223, 255, .07); }
.nc-app.is-rooms .nc-log { opacity: 0; }
.nc-app.is-rooms .nc-rooms { opacity: 1; pointer-events: auto; transform: none; }
.nc-app.is-rooms .nc-t-chat { display: none; }
.nc-app.is-rooms .nc-t-rooms { display: inline; }

/* Without the script: a plain block with the copy. */
html:not(.js) .nc-head { position: static; opacity: 1; transform: none; margin-bottom: 12px; }
.nc--static .nc-msg[hidden] { display: grid; }

@media (max-width: 960px) {
  .nc-grid { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
}
@media (max-width: 720px) {
  .js .nc-stage { padding: 92px 0 12px; }
  .nc-grid { width: calc(100% - 24px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
  .nc-copy { padding: 0 6px; }
  .nc-copy .eyebrow, .nc-legend { display: none; }
  .nc-heads { margin-top: 0; font-size: 27px; min-height: 2.15em; }
  .nc-app { height: 100%; border-radius: 16px; }
  .nc-app__bar { padding: 11px 14px; font-size: 12px; }
  .nc-chart { flex-basis: 31%; }
  .nc-room__head { padding: 10px 14px 4px; }
  .nc-room__title { white-space: nowrap; font-size: 13px; }
  .nc-room__ai { font-size: 9.5px; max-width: 50%; }
  .nc-body { font-size: 13.5px; }
  .nc-rooms { padding: 4px 14px; gap: 14px; }
  .nc-rooms li { padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-head, .nc-rooms, .nc-msg.is-new { transition: none; animation: none; }
}
