/* Nexa page — builds on site.css (paper, glass, type). */

.nx { max-width: 1140px; margin: 0 auto; padding: 0 clamp(22px, 4.5vw, 56px); }

/* hero */
.nx-hero { padding: clamp(44px, 8vh, 88px) 0 0; }
.trio {
  font-weight: 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.trio .ln { display: block; overflow: hidden; padding-bottom: 0.13em; margin-bottom: -0.13em; }
.trio .ln > span {
  display: inline-block;
  transform: translateY(130%);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
.trio .muted { color: var(--ink-40); }
.trio em { color: var(--blue); }
.nx-sub {
  margin-top: 24px;
  max-width: 50ch;
  font-size: clamp(15.5px, 1.7vw, 18px);
  color: var(--ink-60);
}
.nx-sub b { color: var(--ink); font-weight: 600; }
.nx-sub em { color: var(--blue); }
.inline-logo { display: inline-flex; width: 17px; height: 17px; margin-right: 7px; vertical-align: -3px; }
.inline-logo img { width: 100%; height: 100%; display: block; }

/* feature chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(28, 32, 68, 0.06), 0 1px 1px rgba(255, 255, 255, 0.9) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.chip em { font-size: 14px; color: var(--blue); }

/* orchestrates strip */
.orch { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.orch span {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-40);
  margin-right: 2px;
}
.orch img {
  height: 19px; width: auto; max-width: 92px;
  opacity: 0.75;
  filter: grayscale(1) brightness(0.35);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.orch img:hover { opacity: 1; filter: none; }
.orch img.inv { filter: invert(1) brightness(0.35); }
.orch img.inv:hover { filter: invert(1); }

/* ---------- mockup slideshow ---------- */
.mock {
  margin-top: clamp(34px, 6vh, 54px);
  width: min(760px, 100%);
  border-radius: 22px;
  overflow: hidden;
}
.mock-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16, 16, 19, 0.14); }
.mock-title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-60); }
.mock-tabs { margin-left: auto; display: flex; gap: 4px; }
.mock-tabs button {
  font-family: var(--grotesk); font-size: 12px; font-weight: 600;
  color: var(--ink-40);
  background: none; border: 0; cursor: pointer;
  padding: 6px 13px; border-radius: 999px;
  transition: color 0.3s ease, background 0.3s ease;
}
.mock-tabs button.active { color: var(--ink); background: rgba(255, 255, 255, 0.75); box-shadow: 0 1px 4px rgba(28, 32, 68, 0.08); }
.mock-body { position: relative; height: clamp(280px, 38vw, 330px); }
.stage {
  position: absolute; inset: 0;
  padding: 20px;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.stage.active { opacity: 1; transform: none; }

/* stage 1 — chat */
.bubble {
  max-width: 78%;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.55;
}
.bubble.user {
  margin-left: auto;
  background: var(--ink);
  color: #f4f7fd;
  border-bottom-right-radius: 6px;
}
.bubble.agent {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 10px rgba(28, 32, 68, 0.06);
}
.bubble .who { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.todo { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12.5px; color: var(--ink-60); }
.todo .ok { color: #1d7a4f; font-style: normal; }
.todo .spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--blue-soft); border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* stage 2 — code */
.editor {
  height: 100%;
  border-radius: 14px;
  background: #101013;
  color: #d9dae6;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.9;
  padding: 14px 18px;
  overflow: hidden;
}
.editor .file { font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.08em; color: rgba(217, 218, 230, 0.45); margin-bottom: 8px; }
.editor .cl { display: flex; gap: 14px; white-space: nowrap; }
.editor .no { width: 14px; text-align: right; color: rgba(217, 218, 230, 0.25); flex: none; }
.editor .k { color: #7591ff; }
.editor .s { color: #8fd9a8; }
.editor .f { color: #f0b27a; }
.editor .c { color: rgba(217, 218, 230, 0.35); }
.editor .caret { background: #7591ff; }

/* stage 3 — preview */
.browser { height: 100%; border-radius: 14px; background: #fff; box-shadow: 0 2px 14px rgba(28, 32, 68, 0.08); overflow: hidden; display: flex; flex-direction: column; }
.browser .url {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; color: var(--ink-40);
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
}
.browser .live { margin-left: auto; color: #1d7a4f; font-weight: 600; font-size: 10.5px; letter-spacing: 0.1em; }
.browser .page { flex: 1; padding: 22px 26px; }
.page .p-eyebrow { width: 90px; height: 7px; border-radius: 4px; background: var(--blue-soft); }
.page .p-h { margin-top: 12px; font-weight: 600; font-size: clamp(17px, 2.6vw, 24px); letter-spacing: -0.02em; }
.page .p-line { height: 8px; border-radius: 4px; background: rgba(16, 16, 19, 0.08); margin-top: 10px; }
.page .p-line.short { width: 62%; }
.page .p-btn {
  display: inline-block; margin-top: 16px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}

/* section scaffolding */
.nx-sec { padding: clamp(80px, 13vh, 150px) 0 0; }
.nx-label {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-40);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.nx-h2 {
  margin-top: 26px;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.nx-h2 em { color: var(--blue); }

/* what — editorial columns */
.cols { margin-top: clamp(36px, 6vh, 56px); display: grid; grid-template-columns: repeat(3, 1fr); }
.col { padding: 4px 28px 8px 0; }
.col + .col { border-left: 1px solid var(--hairline); padding-left: 28px; }
.col .num { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-40); }
.col h3 { margin-top: 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.col p { margin-top: 9px; font-size: 14px; color: var(--ink-60); line-height: 1.65; }

/* why — ledger */
.ledger { margin-top: clamp(36px, 6vh, 56px); }
.ledger .row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(17px, 2.4vw, 24px);
  letter-spacing: -0.015em;
  color: var(--ink-40);
}
.ledger .row .who { flex: none; width: clamp(130px, 22vw, 220px); font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; }
.ledger .row.hero { color: var(--ink); font-weight: 500; }
.ledger .row.hero .who { color: var(--blue); }
.ledger .row.hero em { color: var(--blue); }

/* download — boarding rows */
.dl { margin-top: clamp(36px, 6vh, 56px); display: flex; flex-direction: column; gap: 14px; }
.dl-row {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 26px;
  border-radius: 18px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.dl-row:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.95) inset,
    0 -1px 1px rgba(16, 16, 19, 0.04) inset,
    0 22px 50px rgba(28, 32, 68, 0.14),
    0 4px 10px rgba(28, 32, 68, 0.06);
}
.dl-row .os { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; flex: none; width: 110px; }
.dl-row .arch { font-size: 12.5px; color: var(--ink-40); flex: 1; }
.dl-row .soon {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-60);
}
.dl-row .soon .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--blue-soft); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.dl-note { margin-top: 24px; font-size: 13px; color: var(--ink-40); }
.dl-note em { color: var(--ink-60); }

.nx-end { margin-top: clamp(80px, 13vh, 150px); }

@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .col + .col { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 26px; }
  .ledger .row { flex-direction: column; gap: 4px; }
  .dl-row .arch { display: none; }
  .mock-title { display: none; }
}
.dl a.dl-row { color: inherit; text-decoration: none; }
.dl-row .soon.ready { color: var(--blue); }
.dl-row .soon.ready .pulse { background: #10b981; }
