/* Nigel · tokens de ui/theme.py do app: ônix de verdade, dourado só onde importa. */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --raised: #1b1b1e;
  --overlay: #232327;
  --fill-1: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.06);
  --fill-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.12);
  --edge: #221f19;
  --text: #edeae3;
  --text-2: #a29d93;
  --mute: #6e6a63;
  --gold: #c9a84c;
  --gold-hover: #d6b65c;
  --gold-soft: #dcbe6a;
  --success: #5bc48a;
  --danger: #e5675c;
  --info: #5ba8c4;
  --persona: #9b7ede;

  --f-display: "Archivo", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --settle: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(201, 168, 76, 0.3); color: var(--text); }
:focus-visible { outline: 2px solid rgba(201, 168, 76, 0.7); outline-offset: 2px; border-radius: 6px; }

/* o pelicano de fundo: fixo, transparente, sempre lá */
#bg {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* exemplos de uso que vêm de longe e somem, atrás da página */
.ghosts {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  perspective: 900px; perspective-origin: 50% 50%;
  opacity: 0.5;
}
.gh-wrap { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.gh {
  position: absolute; left: 0; top: 0;
  translate: -50% -50%;
  width: max-content; max-width: 270px;
  padding: 10px 12px;
  background: rgba(20, 20, 22, 0.88);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 14px;
  font-size: 13px; line-height: 1.4; color: var(--text);
  opacity: 0; will-change: transform, opacity;
}
.gh p { margin: 0; }
.gh-me {
  margin-left: auto !important; width: max-content; max-width: 100%;
  padding: 6px 10px; border-radius: 12px 12px 4px 12px;
  background: rgba(201, 168, 76, 0.16); color: var(--text);
}
.gh-ai { display: flex; gap: 8px; margin-top: 8px !important; color: var(--text2, #b8b3a8); }
.gh-ai i { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 2px; background: var(--gold, #c9a84c); }
.gh--step { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; }
.gh--notice { display: flex; align-items: center; gap: 10px; border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 18%, transparent); }
.gh--notice b { display: block; font-weight: 600; }
.gh--notice small { display: block; color: var(--text2, #b8b3a8); font-size: 12px; }
.gh-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--c) 16%, transparent); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px calc(var(--gutter) + 12px) 14px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled { background: rgba(11, 11, 12, 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 800; font-variation-settings: "wdth" 125;
  letter-spacing: 0.12em; font-size: 14px;
}
.nav__brand img { border-radius: 6px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14px; text-decoration: none; color: var(--text-2); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line-hi); border-radius: 8px; padding: 2px; }
.lang button { border: 0; background: transparent; color: var(--mute); font: 600 11px var(--f-mono); letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; }
.lang button[aria-pressed="true"] { background: var(--overlay); color: var(--text); }
.lang button:hover { color: var(--text); }
.login { position: relative; }
.login__btn {
  border: 1px solid var(--line-hi); background: var(--fill-1); color: var(--text);
  font: 500 13px var(--f-ui); padding: 7px 16px; border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.login__btn:hover, .login__btn[aria-expanded="true"] { background: var(--fill-2); border-color: rgba(255, 255, 255, 0.2); }
.login__pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: var(--surface); border: 1px solid var(--line-hi); border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  transform-origin: top right; animation: popIn 0.35s var(--spring) both;
}
.login__pop[hidden] { display: none; }
.login__pop b { display: block; font-size: 14px; color: var(--gold-soft); }
.login__pop p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
em { font-style: normal; }

/* ---------------------------------------------------------------- tipografia */
.kicker {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.kicker span { color: var(--gold); border: 1px solid rgba(201, 168, 76, 0.4); border-radius: 4px; padding: 2px 6px; }
.display {
  font-family: var(--f-display);
  font-weight: 760; font-variation-settings: "wdth" 112;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 0.96; letter-spacing: -0.035em;
  margin: 0;
}
.display--md { font-size: clamp(32px, 4.4vw, 60px); }
.lede { color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 36em; margin: 26px 0 0; }
.lede--sm { font-size: 16px; max-width: 40em; }
.footnote { font-size: 13px; color: var(--mute); margin: 22px 0 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px;
}
.hero .display { max-width: 9.5em; }
.hero__try {
  margin: 40px 0 0;
  display: flex; align-items: center; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--gold-soft);
}
.hero__try-touch { display: none; }
@media (hover: none) { .hero__try-desk { display: none; } .hero__try-touch { display: inline; } .hero__keys { display: none; } }
.hero__arrow {
  flex: 1;
  max-width: 50vw;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.7), rgba(201, 168, 76, 0));
  position: relative;
  animation: reach 2.4s var(--settle) infinite;
  transform-origin: left;
}
@keyframes reach { 0% { transform: scaleX(0.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.hero__keys { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--mute); }
kbd {
  font-family: var(--f-ui); font-size: 12px; color: var(--text-2);
  border: 1px solid var(--line-hi); border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 6px; margin-right: 4px; background: var(--fill-1);
}

/* ---------------------------------------------------------------- seções */
.section { padding: clamp(64px, 8vw, 112px) var(--gutter) 24px; }
.section__head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.section--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.section--split .section__head { margin-bottom: 32px; }

/* ---------------------------------------------------------------- réplicas (mesmos tokens do app) */
.rp {
  font-family: var(--f-ui);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.rp-sym img { width: 32px; height: 32px; border-radius: 6px; }
.rp-sym { position: relative; flex: none; width: 32px; height: 32px; }
.rp-sym::after { /* o quadrado da presença em volta do símbolo */
  content: ""; position: absolute; inset: -7px;
  border: 1px solid var(--gold); border-radius: 9px;
  box-shadow: 0 0 6px -2px var(--gold);
}
.rp-ph { flex: 1; color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ic { color: var(--text-2); width: 28px; display: grid; place-items: center; }
.rp-me { align-self: flex-end; margin-left: auto; width: fit-content; max-width: 85%; background: var(--overlay); border-radius: 16px 16px 6px 16px; padding: 8px 12px; font-size: 14px; }
.rp-ai { font-size: 14px; line-height: 1.45; margin: 0; }
.rp-ai b { font-weight: 600; }
.rp-step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }

.rp--stage {
  height: 220px;
  background: linear-gradient(180deg, #16171b, #0f1013);
  display: flex; align-items: center; justify-content: flex-end;
  overflow: hidden; position: relative;
}
.rp--tall { height: 260px; align-items: stretch; padding-top: 14px; padding-bottom: 14px; }
.rp-rail {
  width: 10px; height: 120px;
  background: #070708; border: 1px solid var(--edge); border-right: 0;
  border-radius: 5px 0 0 5px;
  display: grid; place-items: center;
  box-shadow: -6px 0 14px rgba(0, 0, 0, 0.7);
}
.rp-rail i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.rp-row {
  width: 92%; height: 60px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px 0 14px;
  background: #070708; border: 1px solid var(--edge); border-right: 0;
  border-radius: 16px 0 0 16px;
}
.rp-chat {
  width: 92%;
  display: flex; flex-direction: column; gap: 9px;
  background: #070708; border: 1px solid var(--edge); border-right: 0;
  border-radius: 16px 0 0 16px;
  padding: 10px 0 0 14px;
  overflow: hidden;
  font-size: 12px;
}
.rp-chat .rp-me, .rp-chat .rp-ai { font-size: 12px; margin-right: 12px; }
.rp-chat .rp-step { font-size: 11px; }
.rp-head { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.rp-head span, .nb-model { font-size: 11px; color: var(--text-2); border: 1px solid var(--line-hi); border-radius: 6px; padding: 0 6px; }
.rp-row--in { width: auto; border: 0; height: 48px; margin-top: auto; padding-left: 0; background: transparent; }
.rp-row--in .rp-sym { transform: scale(0.85); }

/* ---------------------------------------------------------------- avisos */
.bolinha { display: flex; gap: 18px; align-items: flex-start; max-width: 36em; }
.bolinha svg { flex: none; }
.bolinha path { fill: none; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 2px currentColor); }
.bolinha text { fill: var(--text); font: 600 12px var(--f-ui); }
.bolinha p { margin: 0; color: var(--text-2); font-size: 15px; }
.bolinha i { font-style: normal; color: var(--c); }
.bolinha b { color: var(--text); font-weight: 600; }

.console {
  background: rgba(11, 11, 12, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.console__title { margin: 0 0 16px; font-weight: 600; }
.console__label { margin: 22px 0 10px; font-size: 13px; color: var(--mute); }
.console__kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.console__kinds button {
  display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 2px 10px;
  text-align: left;
  background: var(--fill-1); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.35s var(--spring);
}
.console__kinds button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); grid-row: span 2; }
.console__kinds button small { font-weight: 400; font-size: 12px; color: var(--mute); }
.console__kinds button:hover { border-color: var(--c); background: var(--fill-2); }
.console__kinds button:active { transform: scale(0.96); }
.console__kinds button.is-sent { animation: sent 0.6s var(--settle); }
@keyframes sent { 0% { box-shadow: 0 0 0 0 var(--c); } 100% { box-shadow: 0 0 0 10px transparent; } }
.console__urg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.console__urg button {
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; text-align: left; font-size: 12px; color: var(--text-2); line-height: 1.3;
}
.console__urg button { font-size: 13px; color: var(--text); text-align: center; }
.console__hint { margin: 10px 0 0; font-size: 12px; color: var(--mute); }
.console__urg [aria-checked="true"] { border-color: rgba(201, 168, 76, 0.6); background: rgba(201, 168, 76, 0.08); }
.console__clear { margin-top: 18px; background: none; border: 0; color: var(--text-2); font-size: 13px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- presença */
.presence { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.presence li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.pr-sq {
  width: 60px; height: 60px; border-radius: 14px;
  background: #070708; border: 1px solid var(--edge);
  display: grid; place-items: center; position: relative;
}
.pr-sq img { width: 32px; height: 32px; border-radius: 6px; }
.pr-sq::after {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--c); border-radius: 9px;
  box-shadow: 0 0 10px -1px var(--c), inset 0 0 6px -3px var(--c);
  animation: breathe 1s ease-in-out infinite;
}
.presence li:nth-child(2n) .pr-sq::after { animation-delay: -0.4s; }
@keyframes breathe { 50% { box-shadow: 0 0 3px -2px var(--c); opacity: 0.75; } }

/* ---------------------------------------------------------------- o que ele faz */
.feat {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px); align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.feat--flip .feat__copy { order: 2; }

/* ---------------------------------------------------------------- histórias fixas: a página para e os exemplos se trocam */
.story { position: relative; padding: clamp(64px, 8vw, 112px) var(--gutter) 24px; }
.story__head { margin-bottom: 18px; }
.story__head .kicker { margin-bottom: 14px; }
.story__note { margin: 12px 0 0; font-size: 14px; color: var(--mute); }
.story__index { display: none; }
.chapter .rp--stage { width: 100%; max-width: 540px; justify-self: center; }
@media (min-width: 900px) and (min-height: 640px) {
  .story { --n: 3; height: calc(var(--n) * 80vh + 100vh); padding-top: 0; padding-bottom: 0; }
  #faz { --n: 5; }
  .story__pin {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: grid; grid-template-rows: auto auto minmax(0, 1fr);
    padding: clamp(84px, 11vh, 112px) 0 clamp(24px, 4vh, 48px);
  }
  .story__head .display--md { font-size: clamp(30px, 3.4vw, 50px); }
  .story__index {
    list-style: none; margin: 10px 0 0; padding: 0;
    display: flex; gap: 6px; flex-wrap: wrap;
    position: relative;
  }
  .story__index button {
    position: relative;
    border: 1px solid var(--line); background: var(--fill-1); color: var(--text-2);
    font: 500 13px var(--f-ui); border-radius: 999px; padding: 6px 14px 6px 12px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .story__index li { counter-increment: ch; }
  .story__index button::before { content: counter(ch, decimal-leading-zero); font: 11px var(--f-mono); color: var(--mute); }
  .story__index button:hover { color: var(--text); }
  .story__index button[aria-current="true"] { color: var(--text); border-color: rgba(201, 168, 76, 0.55); background: rgba(201, 168, 76, 0.08); }
  .story__index button[aria-current="true"]::before { color: var(--gold); }
  .story__stage { position: relative; display: grid; align-items: center; min-height: 0; }
  .story .chapter {
    grid-area: 1 / 1; border-top: 0; padding: 0;
    opacity: 0; transform: translateY(56px); filter: blur(8px);
    pointer-events: none; visibility: hidden;
    transition: opacity 0.45s, transform 0.75s var(--settle), filter 0.5s, visibility 0s 0.75s;
  }
  .story .chapter.is-past { transform: translateY(-56px); }
  .story .chapter.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; visibility: visible; transition: opacity 0.55s 0.1s, transform 0.8s 0.05s var(--settle), filter 0.55s 0.1s, visibility 0s; }
  .story .feat--flip .chapter__copy { order: 0; }
  .story .chapter .rp--stage { height: 300px; }
  .story .chapter .rp--tall { height: 320px; }
}
@media (min-width: 900px) and (min-height: 640px) and (max-height: 820px) {
  .story .feat li:nth-child(n+3) { display: none; }
  .story .chapter .rp--stage { height: 240px; }
  .story .rp-graph { max-height: 150px; }
  .story .rp-legend { display: none; }
}
.feat .chapter__copy { min-width: 0; }
.story__index { counter-reset: ch; }
.feat h3 { font-family: var(--f-display); font-variation-settings: "wdth" 110; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; margin: 0; }
.feat__lead { font-size: 17px; color: var(--text); margin: 14px 0 0; max-width: 32em; }
.feat ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 34em; }
.feat li { color: var(--text-2); font-size: 15px; padding-left: 18px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 6px; height: 1px; background: var(--gold); }
.try {
  margin-top: 26px;
  background: var(--gold); color: #0b0b0c; border: 0;
  border-radius: 8px; padding: 10px 16px;
  font-weight: 600; font-size: 14px;
  transition: background 0.2s, transform 0.35s var(--spring);
}
.try:hover { background: var(--gold-hover); }
.try:active { transform: scale(0.96); }

.rp-panel { padding: 18px; display: grid; gap: 8px; max-width: 540px; width: 100%; justify-self: center; }
.rp-ph-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rp-ph-head img { width: 22px; height: 22px; border-radius: 5px; }
.rp-ph-head b { font-size: 15px; }
.rp-tabs { margin-left: auto; display: flex; background: var(--fill-1); border-radius: 8px; padding: 2px; }
.rp-tabs i { font-style: normal; font-size: 12px; color: var(--text-2); padding: 4px 9px; border-radius: 6px; }
.rp-tabs i.on { background: var(--overlay); color: var(--text); }
.rp-day { font-size: 13px; font-weight: 600; margin: 6px 0 2px; }
.rp-day--muted { color: var(--text-2); font-weight: 400; }
.rp-clash {
  display: flex; align-items: center; gap: 8px;
  background: rgba(229, 103, 92, 0.08); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: var(--text-2);
}
.rp-clash b { margin-left: auto; color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
.rp-ev { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; }
.rp-ev time { font-size: 12px; color: var(--text-2); width: 86px; font-variant-numeric: tabular-nums; }
.rp-ev i { width: 2px; align-self: stretch; background: var(--gold-soft); border-radius: 1px; }
.rp-ev.is-clash { background: rgba(229, 103, 92, 0.07); border-color: rgba(229, 103, 92, 0.35); }
.rp-mail { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; padding: 10px; border-radius: 10px; }
.rp-mail > i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); margin-top: 7px; }
.rp-mail b { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp-mail em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--gold-soft); background: rgba(201, 168, 76, 0.12); padding: 1px 7px; border-radius: 6px; }
.rp-mail em.mute { color: var(--mute); background: var(--fill-2); }
.rp-mail p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.rp-mail time { font-size: 12px; color: var(--mute); }
.rp-mail.is-important { background: rgba(229, 103, 92, 0.08); }

.rp-mem { padding: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 540px; width: 100%; justify-self: center; }
.rp-cur {
  align-self: flex-start;
  font-size: 14px; padding: 2px 8px; border-radius: 9px;
  border: 1px solid var(--info); background: #13202a;
}
.rp-graph { margin-top: 10px; width: 100%; height: auto; }
.rp-graph line { stroke: rgba(201, 168, 76, 0.35); stroke-width: 1; }
.rp-graph line.guess { stroke-dasharray: 4 4; }
.rp-graph text { fill: var(--text-2); font: 11px var(--f-ui); text-anchor: middle; }
.rp-legend { margin: 0; display: flex; gap: 8px 14px; align-items: center; font-size: 12px; color: var(--mute); }
.rp-legend i { width: 18px; height: 0; border-top: 1px solid rgba(201, 168, 76, 0.6); }
.rp-legend i.guess { border-top-style: dashed; }

.rp-files { padding: 18px; display: grid; gap: 12px; max-width: 540px; width: 100%; justify-self: center; }
.rp-chip { justify-self: start; display: flex; align-items: center; gap: 8px; background: var(--fill-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 13px; color: var(--text-2); }
.rp-chip b { color: var(--text); font-weight: 500; }
.rp-chip small { color: var(--mute); }
.rp-files .rp-row--in { background: #070708; border: 1px solid var(--edge); border-radius: 16px; height: 60px; padding: 0 8px 0 14px; }

.rp-prep { padding: 20px; display: grid; gap: 8px; max-width: 540px; width: 100%; justify-self: center; }
.rp-prep .rp-ai { margin-top: 6px; }

/* ---------------------------------------------------------------- regras */
.apps { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.apps li { border: 1px solid var(--line-hi); border-radius: 99px; padding: 6px 14px; font-size: 14px; color: var(--text-2); background: rgba(11, 11, 12, 0.6); }
.confirm-demo { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rp-confirm { background: var(--surface); border-radius: 12px; padding: 14px; font-size: 13px; }
.cf-head, .nb-cf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cf-head b, .nb-cf-head b { font-size: 13px; font-weight: 600; }
.cf-f, .nb-cf-f { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 2px 0; }
.cf-f span:first-child, .nb-cf-f span:first-child { color: var(--mute); font-size: 12px; }
.cf-pre, .nb-cf-pre { background: var(--fill-1); border-radius: 6px; padding: 8px 10px; margin-top: 8px; color: var(--text-2); font-size: 12px; }
.cf-acts, .nb-cf-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cf-acts span, .nb-cf-acts button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-2); font-weight: 500; font-size: 13px; padding: 6px 12px; border-radius: 8px; }
.cf-acts .is-primary, .nb-cf-acts .is-primary { background: var(--gold); color: #0b0b0c; font-weight: 600; }
.cf-hint, .nb-cf-hint { text-align: right; font-size: 11px; color: var(--mute); margin-top: 8px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rules li { color: var(--text-2); font-size: 15px; max-width: 36em; }
.rules b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- lançamento */
.platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platforms li { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: rgba(11, 11, 12, 0.75); }
.pl-ic { color: var(--gold); display: block; }
.pl-ic svg { width: 26px; height: 26px; }
.platforms b { display: block; font-size: 20px; margin-top: 22px; }
.platforms p { color: var(--text-2); font-size: 15px; margin: 6px 0 40px; }
.tag { position: absolute; left: 24px; bottom: 20px; font-size: 12px; font-weight: 600; color: var(--gold-soft); }

.footer {
  margin-top: 100px;
  padding: 28px calc(var(--gutter) + 12px) 40px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  color: var(--mute); font-size: 14px;
  background: var(--bg);
}
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--f-display); font-weight: 800; letter-spacing: 0.12em; font-variation-settings: "wdth" 125; font-size: 13px; }
.footer__brand img { border-radius: 5px; }
.footer__meta { margin-left: auto !important; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--settle), transform 0.9s var(--settle); }
.reveal.is-in { opacity: 1; transform: none; }

/* ================================================================ a barra (js/bar.js) */
.nb-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.nb {
  position: fixed; left: 0; top: 0; z-index: 61;
  padding: 22px 0 22px 22px;
  font-family: var(--f-ui);
  color: var(--text);
  will-change: transform;
}
.nb[data-state="rail"] { cursor: pointer; }
.nb-shape { position: relative; overflow: hidden; border-radius: 16px 0 0 16px; }
.nb-body { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; }
.nb-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nb-chat[hidden] { display: none; }
.nb-head { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); }
.nb-head b { font-size: 14px; font-weight: 600; }
.nb-head-sp { flex: 1; }
.nb-msgs {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 18px 12px;
  scrollbar-width: thin; scrollbar-color: rgba(237, 234, 227, 0.12) transparent;
}
.nb-row { height: 60px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; }
.nb-symbol { width: 32px; height: 32px; padding: 0; border: 0; background: none; border-radius: 6px; flex: none; }
.nb-symbol img { width: 32px; height: 32px; border-radius: 6px; }
.nb-frame {
  position: absolute; left: 7px; width: 46px; height: 46px;
  border: 1px solid var(--c, var(--gold)); border-radius: 9px;
  box-shadow: 0 0 calc(3px + var(--g, 0) * 14px) calc(var(--g, 0) * 2px - 1px) var(--c, var(--gold));
  pointer-events: none;
  transition: opacity 0.12s;
}
.nb-notices { width: 30px; height: 30px; padding: 0; border: 0; background: none; flex: none; }
.nb-notices[hidden] { display: none; }
.nb-notices text { fill: var(--text); font: 600 12px var(--f-ui); }
.nb-ring { filter: drop-shadow(0 0 2.5px var(--c)); }
.nb-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font: 14px var(--f-ui);
}
.nb-input::placeholder { color: var(--mute); }
.nb-ib {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.nb-ib:hover { background: var(--fill-2); color: var(--text); }
.nb-send { color: var(--mute); }
.nb.has-text .nb-send { color: #0b0b0c; background: var(--gold); }

.nb-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 0; }
.nb-empty h3 { margin: 0; font-size: 20px; font-weight: 600; }
.nb-empty p { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.nb-sugs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.nb-sugs button {
  display: flex; align-items: center; gap: 8px; text-align: left;
  min-height: 40px; padding: 8px 12px;
  background: var(--fill-1); border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; color: var(--text);
  transition: background 0.15s;
}
.nb-sugs button:hover { background: var(--fill-2); }
.nb-empty small { margin-top: 14px; font-size: 11px; color: var(--mute); }
.nb-me { align-self: flex-end; max-width: 82%; background: var(--overlay); border-radius: 16px 16px 6px 16px; padding: 8px 12px; font-size: 14px; animation: nbIn 0.4s var(--spring) both; }
.nb-me-file { background: transparent; padding: 0; }
.nb-file { display: inline-flex; align-items: center; gap: 8px; background: var(--fill-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.nb-file b { font-weight: 500; }
.nb-file small { color: var(--mute); }
.nb-ai { font-size: 14px; line-height: 1.45; animation: nbIn 0.45s var(--settle) both; }
.nb-ai b { font-weight: 600; }
.nb-step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); animation: nbIn 0.3s var(--settle) both; }
.nb-step.is-running .nb-st-ic svg { animation: spin 0.9s linear infinite; }
.nb-st-ic { display: grid; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nbIn { from { opacity: 0; transform: translateY(6px); } }
.nb-confirm { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; animation: nbIn 0.45s var(--spring) both; }
.nb-cf-acts button { cursor: pointer; }
.nb-cf-acts button:not(.is-primary):hover { background: var(--fill-2); color: var(--text); }
.nb-cf-acts .is-primary:hover { background: var(--gold-hover); }
.nb-confirm.is-done { opacity: 0.6; }
.nb-confirm.is-done button { cursor: default; }
.nb-quick { display: flex; flex-wrap: wrap; gap: 6px; animation: nbIn 0.4s var(--settle) both; }
.nb-quick button {
  background: transparent; border: 1px solid var(--line-hi); border-radius: 8px;
  padding: 5px 10px; font-size: 13px; color: var(--text-2);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nb-quick button:hover:not(:disabled) { background: var(--fill-2); color: var(--text); }
.nb-quick button:disabled { cursor: default; opacity: 0.45; }
.nb-quick button.is-picked { opacity: 1; border-color: rgba(201, 168, 76, 0.6); color: var(--text); }
.nb-cur-row { margin-top: -4px; animation: nbIn 0.45s var(--spring) both; }
.nb-cur { display: inline-block; font-size: 14px; padding: 2px 8px; border-radius: 9px; border: 1px solid var(--c); background: var(--f); cursor: help; }
.nb-cur.is-saved { animation: saved 0.9s var(--spring); }
@keyframes saved { 30% { box-shadow: 0 0 0 1px var(--c), 0 0 12px var(--c); transform: scale(1.04); } }

/* cartões ao lado da barra */
.nb-popups { position: fixed; inset: 0; pointer-events: none; z-index: 62; }
.nb-pop {
  position: fixed; width: min(320px, calc(100vw - 80px));
  pointer-events: auto;
  font-family: var(--f-ui);
  background: var(--surface); border: 1px solid var(--line-hi); border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.85);
  padding: 12px 14px;
  animation: popIn 0.5s var(--spring) both;
}
.nb-pop.is-out { animation: popOut 0.2s ease-in both; }
@keyframes popIn { from { opacity: 0; transform: translateX(18px) scale(0.96); } }
@keyframes popOut { to { opacity: 0; transform: translateX(14px) scale(0.98); } }
.nb-card { border-left: 2px solid var(--c); }
.nb-card-eyebrow { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--c); margin: -4px -6px 2px 0; }
.nb-card b { display: block; font-size: 14px; font-weight: 600; }
.nb-card p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.nb-card-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nb-card-acts button { border: 0; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 500; background: var(--fill-2); color: var(--text); }
.nb-card-acts button.is-primary { background: color-mix(in srgb, var(--c) 26%, transparent); font-weight: 600; }
.nb-card-acts button:hover { background: var(--fill-3); }
.nb-list { width: min(340px, calc(100vw - 80px)); }
.nb-list-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin: -4px -6px 8px 0; }
.nb-li { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.nb-li i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.nb-li b { display: block; font-size: 11px; color: var(--text-2); font-weight: 600; }
.nb-li button { border: 0; background: var(--fill-2); color: var(--text); font-size: 12px; border-radius: 6px; padding: 3px 8px; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
  .presence { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 24px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
  .platforms { grid-template-columns: 1fr; }
  .section--split, .feat, .confirm-demo { grid-template-columns: 1fr; }
  .feat--flip .feat__copy { order: 0; }
  .console__kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console__urg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #bg { opacity: 0.13; }
  .ghosts { opacity: 0.3; }
  .gh { max-width: 220px; font-size: 12px; }
}
@media (max-width: 560px) {
  .presence { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .presence li:nth-child(n+9) { display: none; }
  .rp-tabs i:nth-child(n+3) { display: none; }
  .footer__meta { margin-left: 0 !important; }
  .nb-row .nb-ib[data-act="menu"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- 05: o dia de uma CEO */
.showcase { text-align: center; padding-top: clamp(56px, 7vw, 96px); }
.showcase .section__head { margin-bottom: 28px; }
.showcase .display--md { font-size: clamp(28px, 3.2vw, 46px); }
.showcase .lede { margin-top: 14px; }
.showcase__head { display: flex; flex-direction: column; align-items: center; }
.showcase__head .kicker { justify-content: center; }
.showcase__head .lede { margin-left: auto; margin-right: auto; }
.showcase__stage { display: flex; justify-content: center; }
.sc {
  text-align: left;
  width: min(580px, 100%); height: clamp(440px, calc(100vh - 140px), 680px);
  display: flex; flex-direction: column;
  background: rgba(7, 7, 8, 0.96);
  border: 1px solid #2c2820; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.06), 0 0 60px -10px rgba(201, 168, 76, 0.18), 0 40px 80px -30px #000;
  overflow: hidden;
  transition: opacity 0.6s;
}
.sc.is-fading { opacity: 0; }
.sc-head { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); }
.sc-head b { font-size: 14px; font-weight: 600; }
.sc-ib { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.vc-sp { flex: 1; }
.sc-msgs {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px 14px;
}
.sc-msgs::-webkit-scrollbar { display: none; }
.sc-row { height: 60px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border-top: 1px solid var(--line); }
.sc-sym { position: relative; width: 32px; height: 32px; flex: none; margin-right: 6px; }
.sc-sym img { width: 32px; height: 32px; border-radius: 6px; }
.sc-frame {
  position: absolute; inset: -7px; border-radius: 9px;
  border: 1px solid var(--c, var(--gold));
  box-shadow: 0 0 6px -2px var(--c, var(--gold));
  transition: border-color 0.35s, box-shadow 0.35s;
}
.sc-frame.is-busy { animation: breatheFrame 1s ease-in-out infinite; }
@keyframes breatheFrame { 50% { box-shadow: 0 0 14px 1px var(--c); } }
.sc-input { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ph { color: var(--mute); }
.sc-input.has-text .sc-ph { display: none; }
.sc-input.has-text .sc-typed::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--text); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sc-send { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; transition: background 0.2s, transform 0.25s var(--spring); }
.sc-send.is-on { background: var(--gold); }
.sc-send.is-on svg { stroke: #0b0b0c; }
.sc-send.is-pressed { transform: scale(0.86); }
.sc-card { animation: nbIn 0.5s var(--spring) both; }
.nb-confirm .is-pressed { transform: scale(0.94); }
.nb-confirm button { transition: transform 0.2s var(--spring); }

/* ---------------------------------------------------------------- cartões visuais (D53) */
.vc {
  max-width: 460px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px 14px;
}
.vc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vc-head b { font-size: 13px; font-weight: 600; }
.vc-open { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); padding: 3px 8px; border-radius: 6px; }
.vc-ib { width: 24px; height: 24px; display: grid; place-items: center; }

.vw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.vw-dl { display: block; font-size: 11px; color: var(--text-2); text-align: center; margin-bottom: 4px; }
.vw-col { position: relative; height: 170px; background: var(--fill-1); border-radius: 6px; }
.vw-ev {
  font-style: normal;
  position: absolute; left: 2px; right: 2px;
  background: var(--f); border-left: 2px solid var(--c); border-radius: 4px;
  padding: 2px 4px; overflow: hidden;
  animation: vwIn 0.5s var(--spring) both;
}
.vw-ev b { display: block; font-size: 10px; font-weight: 500; line-height: 1.2; color: var(--text); }
@keyframes vwIn { from { opacity: 0; transform: scaleY(0.4); } }

.vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vs-t { background: var(--fill-1); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.vs-t span { font-size: 11px; color: var(--text-2); }
.vs-t b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.vs-t em { font-size: 11px; color: var(--success); }
.vs-t em.is-down { color: var(--danger); }

.vb { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.vb-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.vb-c i { width: 100%; max-width: 46px; height: var(--h); background: var(--c); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: vbUp 0.8s var(--d) var(--spring) both; }
.vb-c em { font-size: 11px; color: var(--text-2); }
.vb-c span { position: absolute; bottom: -20px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.vb { margin-bottom: 22px; }
@keyframes vbUp { from { transform: scaleY(0); } }

.vwh { display: flex; flex-direction: column; align-items: center; }
.vwh-q { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.vwh svg { overflow: visible; }
.vwh-s text { fill: #141416; font: 600 11px var(--f-ui); text-anchor: middle; dominant-baseline: middle; }
.vwh-s path { transition: opacity 0.4s, filter 0.4s; }
.vwh-s.is-off path { opacity: 0.45; }
.vwh-s.is-win path { filter: drop-shadow(0 0 6px var(--c)); }
.vwh-ptr { filter: drop-shadow(0 0 4px var(--gold)); }
.vwh-r { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--gold); min-height: 1.2em; }

@media (max-width: 900px) {

  .sc { height: min(600px, 80vh); }
}
@media (max-width: 560px) {
  .vw-ev b { font-size: 9px; }
  .vs-t b { font-size: 15px; }
}
