/* ==========================================================================
   SIRIS — estilos
   Tokens · base · boot · núcleo · cursor · nav · seções · visualizações
   · agente (critter + painel) · responsivo · movimento reduzido
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #090909;
  --bg-3: #111111;
  --fg: #ededed;
  --fg-2: #a9a9a9;          /* segundo e último nível de cinza */
  --line: rgba(237, 237, 237, .14);
  --line-2: rgba(237, 237, 237, .28);
  --acc: #c6ff3d;           /* verde ácido — uso raro */
  --acc-dim: rgba(198, 255, 61, .16);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(16px, 4.2vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; }
em { font-style: normal; color: var(--fg-2); }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--acc); color: #050505; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- BOOT */
.boot {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--bg); transition: opacity .6s var(--ease), visibility .6s;
}
html:not(.js) .boot, .boot.is-done { opacity: 0; visibility: hidden; }
.boot__in { display: grid; gap: 14px; justify-items: start; }
.boot__name { font-size: 44px; font-weight: 600; letter-spacing: .28em; }
.boot__line { color: var(--fg-2); }
.boot__line.is-on { color: var(--acc); }
.boot__bar { width: 220px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.boot__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--fg); transition: transform .25s linear; }

/* ---------------------------------------------------------------- CORE */
.core { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.core canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.core.is-live canvas { opacity: 1; }
.core__fallback { display: none; }
.no-webgl .core__fallback {
  display: block; position: absolute; left: 50%; top: 46%; width: min(62vmin, 520px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.no-webgl .core__fallback i {
  position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 50%;
  animation: orbit 24s linear infinite;
}
.no-webgl .core__fallback i:nth-child(2) { inset: 12%; transform: rotateX(62deg); border-style: dashed; animation-duration: 18s; }
.no-webgl .core__fallback i:nth-child(3) { inset: 26%; border-color: var(--acc-dim); animation-direction: reverse; }
.no-webgl .core__fallback i:nth-child(4) { inset: 47%; background: var(--acc); border: 0; box-shadow: 0 0 40px var(--acc); animation: pulse 3s ease-in-out infinite; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes pulse { 50% { opacity: .45; } }

/* -------------------------------------------------------------- CURSOR */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  .has-cursor .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
    width: 30px; height: 30px; margin: -15px 0 0 -15px; will-change: transform;
  }
  .cursor i {
    position: absolute; inset: 0; border: 1px solid var(--fg); border-radius: 50%;
    transition: transform .25s var(--ease), border-color .25s, background .25s;
    mix-blend-mode: difference;
  }
  .cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: var(--fg); border-radius: 50%; }
  .cursor.is-link i { transform: scale(1.7); background: rgba(237, 237, 237, .08); }
  .cursor.is-core i { border-color: var(--acc); transform: scale(2.3); }
  .cursor.is-down i { transform: scale(.7); }
}

/* ----------------------------------------------------------------- NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--pad);
  background: linear-gradient(var(--bg) 20%, rgba(5, 5, 5, 0));
}
.nav__logo { font-weight: 600; font-size: 20px; letter-spacing: .3em; text-decoration: none; }
.nav__status { color: var(--fg-2); display: inline-flex; align-items: center; gap: 8px; }
.nav__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: pulse 2.4s infinite; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 15px; text-decoration: none; color: var(--fg-2); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__talk {
  border: 1px solid var(--line-2); background: transparent; padding: 9px 16px; font-size: 15px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.nav__talk:hover { border-color: var(--fg); background: rgba(237, 237, 237, .05); }
.nav__sound { background: none; border: 0; color: var(--fg-2); cursor: pointer; padding: 8px 0; }
.nav__sound b { font-weight: 500; color: var(--fg); }
.nav__sound[aria-pressed="true"] b { color: var(--acc); }
.nav__menu { display: none; }

/* ---------------------------------------------------------------- RAIL */
.rail {
  position: fixed; right: calc(var(--pad) * .5 - 6px); top: 50%; transform: translateY(-50%); z-index: 40;
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--fg-2);
}
.rail li { font-size: 14px; opacity: .5; transition: opacity .3s, color .3s; text-align: right; }
.rail li.is-on { opacity: 1; color: var(--fg); }
.rail li.is-on::before { content: "— "; color: var(--acc); }

/* ------------------------------------------------------------ SECTIONS */
main { position: relative; z-index: 2; }
.stage { position: relative; padding: 0 var(--pad); }

.eyebrow, .kicker { color: var(--fg-2); margin: 0 0 22px; }
.kicker b { color: var(--acc); font-weight: 500; }

.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(40px, 8vh, 96px);
}
.hero__title {
  margin: 0; font-weight: 600; line-height: .92; letter-spacing: -.045em;
  font-size: clamp(48px, 8.4vw, 150px);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__lead { max-width: 640px; margin: 30px 0 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.hero__wins { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.hero__wins a { text-decoration: none; font-size: 18px; display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.hero__wins a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.hero__wins a:hover { color: var(--acc); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; gap: 22px; min-height: 54px; padding: 0 22px;
  border: 1px solid var(--b); background: rgba(5, 5, 5, .55); color: var(--fg);
  font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .25s, transform .15s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn > * { position: relative; }
.btn i { font-style: normal; font-family: var(--mono); transition: transform .35s var(--ease); }
.btn:hover { --b: var(--fg); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--fg); color: var(--bg); --b: var(--fg); }
.btn--solid::before { background: var(--acc); }

.block {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px); align-items: center; padding-block: clamp(80px, 14vh, 160px);
}
.block--flip .block__text { order: 2; }
.block__text { max-width: 560px; }
.block h2, .final h2 {
  margin: 0 0 28px; font-weight: 600; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(38px, 4.6vw, 80px);
}
.block p { margin: 0 0 16px; font-size: 18px; }
.block p + p { color: var(--fg-2); }
.facts { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.facts li::after { content: "●"; color: var(--acc); font-size: 9px; align-self: center; opacity: .8; }

figure { margin: 0; }
figcaption { color: var(--fg-2); margin-top: 16px; }

/* Painel das visualizações: o único objeto que "flutua" */
.agentviz, .flow, .build, .graph {
  background: rgba(9, 9, 9, .62); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 34px);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  position: relative;
}
.agentviz::before, .flow::before, .build::before, .graph::before {
  content: ""; position: absolute; width: 14px; height: 14px; left: -1px; top: -1px;
  border-left: 1px solid var(--acc); border-top: 1px solid var(--acc);
}

/* ----- 01 provocação */
.prov { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(96px, 16vh, 180px); }
.prov h2 { margin: 0 0 28px; font-weight: 600; letter-spacing: -.04em; line-height: .96; font-size: clamp(44px, 6.6vw, 118px); }
.prov__lead { max-width: 720px; font-size: clamp(18px, 1.4vw, 21px); margin: 0 0 48px; }
.versus { border-top: 1px solid var(--line-2); }
.versus__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.versus__head { color: var(--fg-2); padding: 14px 0; }
.versus__head span:last-child { color: var(--acc); }
.versus s { color: var(--fg-2); font-size: 18px; text-decoration-color: rgba(237, 237, 237, .35); text-decoration-thickness: 1px; }
.versus__row > span:last-child { font-size: 19px; font-weight: 500; }
.versus__row:not(.versus__head) > span:last-child::before { content: "→ "; color: var(--acc); }
.prov__proof { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.prov__proof p { margin: 0; max-width: 620px; font-size: 19px; color: var(--fg-2); }
.prov__proof strong { color: var(--fg); font-weight: 600; }

/* ----- 02 diagnóstico */
.paths { margin: 30px 0 0; border-top: 1px solid var(--line); }
.paths div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.paths dt { color: var(--acc); }
.paths dd { margin: 0; font-size: 17px; }
.diag {
  background: rgba(9, 9, 9, .62); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 34px);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); position: relative; min-height: 560px;
}
.diag::before { content: ""; position: absolute; width: 14px; height: 14px; left: -1px; top: -1px; border-left: 1px solid var(--acc); border-top: 1px solid var(--acc); }
.diag__ask { display: flex; align-items: center; gap: 14px; }
.diag__ask p { margin: 0; font-size: 15px; }
.diag__face { font-size: 18px; letter-spacing: -2px; color: var(--fg); animation: pulse 3s infinite; }
.diag__opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.diag__opts button {
  background: var(--bg); border: 1px solid var(--line-2); padding: 11px 16px; font-size: 16px; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.diag__opts button:hover { border-color: var(--fg); }
.diag__opts button:active { transform: scale(.96); }
.diag__opts button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.diag__hint { color: var(--fg-2); }
.diag__say { font-size: 22px; line-height: 1.35; margin: 0 0 18px; animation: rise .4s var(--ease) both; }
.diag__out .diagram li { font-size: 14px; }
.diag__fit { color: var(--fg-2); margin: 22px 0 16px; animation: rise .4s var(--ease) both; }
.diag__out .btn { animation: rise .4s var(--ease) both; }

/* ----- 02 agente */
.quotes { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quotes li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 18px 18px 18px 4px; background: var(--bg-2); font-size: 16px; }
.punch { margin-top: 22px !important; font-size: 26px !important; font-weight: 600; color: var(--fg) !important; letter-spacing: -.02em; }
.punch::before { content: "→ "; color: var(--acc); }
.agentviz__req { min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); color: var(--fg); background: var(--bg); }
.agentviz__req::before { content: "CLIENTE › "; color: var(--fg-2); }
.agentviz__map { position: relative; aspect-ratio: 4 / 3; margin: 18px 0; }
.agentviz__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.agentviz__wires line { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.agentviz__wires line.is-hot { stroke: var(--acc); stroke-dasharray: 4 5; animation: dash .6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.agentviz__hub, .tool {
  position: absolute; transform: translate(-50%, -50%); padding: 8px 12px; background: var(--bg);
  border: 1px solid var(--line-2); white-space: nowrap; transition: border-color .3s, color .3s, box-shadow .3s;
}
.agentviz__hub { left: 50%; top: 50%; color: var(--bg); background: var(--fg); border-color: var(--fg); font-weight: 500; }
.agentviz__hub.is-think { animation: think .5s ease-in-out infinite alternate; }
@keyframes think { to { box-shadow: 0 0 0 8px rgba(237, 237, 237, .08); } }
.tool { color: var(--fg-2); }
.tool.is-hot { color: var(--acc); border-color: var(--acc); box-shadow: 0 0 24px var(--acc-dim); }
.tool.is-done { color: var(--fg); border-color: var(--fg-2); }
.agentviz__log { list-style: none; margin: 0; padding: 0; min-height: 132px; }
.agentviz__log li { padding: 5px 0; color: var(--fg-2); animation: rise .35s var(--ease) both; }
.agentviz__log li.ok { color: var(--fg); }
.agentviz__log li.ok::before { content: "✓ "; color: var(--acc); }
.agentviz__log li.go::before { content: "→ "; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ----- 02 fluxo */
.flow__lanes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; }
.flow__lanes::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: var(--line-2); }
.flow__node {
  position: relative; text-align: center; padding: 12px 4px; background: var(--bg); border: 1px solid var(--line-2);
  font-size: 14px; transition: border-color .2s, color .2s;
}
.flow__node.is-hot { border-color: var(--acc); color: var(--acc); }
.flow__events { list-style: none; margin: 22px 0 0; padding: 0; height: 290px; overflow: hidden; position: relative; }
.flow__events::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, rgba(9, 9, 9, .95)); }
.flow__events li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line);
  animation: rise .4s var(--ease) both;
}
.flow__events time { color: var(--fg-2); }
.flow__events b { font-weight: 400; }
.flow__events span { color: var(--acc); }
.flow__events .step { grid-column: 2 / -1; color: var(--fg-2); font-size: 14px; }

/* ----- 04 build */
.build__edge { margin: 0; color: var(--fg-2); padding: 10px 0; }
.build__edge:last-child { padding-bottom: 0; }
.build__page {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 34px 150px 110px 44px; gap: 10px;
  padding: 14px; border: 1px solid var(--line); background: var(--bg);
}
.b {
  position: relative; border: 1px dashed var(--line-2); opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s, background .6s;
}
.b::after { content: attr(data-l); position: absolute; left: 10px; top: 8px; font: 14px var(--mono); letter-spacing: .04em; color: var(--fg-2); }
.b.is-in { opacity: 1; transform: none; }
.b.is-solid { border-style: solid; border-color: var(--line-2); background: var(--bg-3); }
.b.is-solid::after { color: var(--fg); }
.b--nav { grid-column: 1 / -1; }
.b--hero { grid-column: 1 / -1; }
.b--hero.is-solid { background: linear-gradient(120deg, var(--bg-3), #161616); }
.b--a { grid-column: 1 / 3; } .b--b { grid-column: 3 / 5; } .b--c { grid-column: 5 / 7; }
.b--a.is-solid { border-color: var(--acc); }
.b--a.is-solid::after { color: var(--acc); }
.b--foot { grid-column: 1 / -1; }
#buildStatus.is-done { color: var(--acc); }
.tags { color: var(--fg-2) !important; line-height: 2; margin-top: 24px !important; }

/* ----- 04 grafo */
.graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.graph__edges line { stroke: var(--line-2); stroke-width: 1; transition: stroke .25s; }
.graph__edges line.is-hot { stroke: var(--acc); }
.gnode { cursor: pointer; outline: none; }
.gnode circle { fill: var(--bg); stroke: var(--fg-2); stroke-width: 1; transition: stroke .25s, fill .25s, r .25s; }
.gnode text { fill: var(--fg-2); font: 14px var(--mono); letter-spacing: .04em; transition: fill .25s; }
.gnode.is-main circle { fill: var(--fg); stroke: var(--fg); }
.gnode:hover circle, .gnode:focus-visible circle, .gnode.is-hot circle { stroke: var(--acc); }
.gnode:hover text, .gnode:focus-visible text, .gnode.is-hot text { fill: var(--fg); }
.graph__tip { min-height: 48px; margin: 14px 0 0; color: var(--fg-2); }
.graph__tip b { color: var(--fg); font-weight: 500; }

/* ----- 06 processo */
.process { padding-block: clamp(96px, 16vh, 180px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.process h2 { margin: 0 0 56px; font-weight: 600; letter-spacing: -.035em; line-height: .98; font-size: clamp(38px, 4.6vw, 80px); max-width: 14ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-2); }
.steps li { padding: 22px 18px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--acc); transition: width 1s var(--ease); }
.steps li.is-in::before { width: 100%; }
.steps b { color: var(--acc); font-weight: 500; }
.steps strong { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.steps span { color: var(--fg-2); font-size: 16px; line-height: 1.5; }

/* ----- 07 final */
.final { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 120px; }
.final h2 { font-size: clamp(44px, 7.4vw, 136px); max-width: 16ch; }
.final__lead { max-width: 560px; font-size: 19px; margin: 0; }

/* ---------------------------------------------------------------- FOOT */
.foot {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: end;
  padding: 48px var(--pad); border-top: 1px solid var(--line); background: var(--bg);
}
.foot__brand strong { display: block; font-size: 64px; letter-spacing: .2em; font-weight: 600; line-height: 1; }
.foot__brand span { color: var(--fg-2); }
.foot__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.foot__tags a { color: var(--fg-2); text-decoration: none; }
.foot__tags a:hover { color: var(--fg); }
.foot__copy { color: var(--fg-2); margin: 0; }

/* ------------------------------------------------------------- CRITTER */
.critter {
  position: fixed; right: clamp(12px, 2.4vw, 32px); bottom: clamp(12px, 2.4vw, 32px); z-index: 60;
  width: 88px; height: 88px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .4s var(--ease), opacity .3s;
}
.critter svg { width: 100%; height: 100%; overflow: visible; }
.critter__body { fill: var(--bg-2); stroke: var(--fg); stroke-width: 2.2; stroke-linejoin: round; transition: stroke .3s; }
.critter__scribble { fill: none; stroke: var(--fg-2); stroke-width: 1.6; stroke-linecap: round; }
.critter__eye circle:first-child { fill: var(--fg); }
.critter__eye .pupil { fill: var(--bg); transition: r .2s; }
.critter__eye { transform-box: fill-box; transform-origin: center; transition: transform .12s; }
.critter.is-blink .critter__eye { transform: scaleY(.1); }
.critter__mouth { fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; transition: d .3s; }
.critter__glyph { fill: var(--acc); font: 500 18px var(--mono); }
.critter:hover { transform: rotate(-6deg) scale(1.06); }
.critter:hover .critter__body { stroke: var(--acc); }
.critter.is-think svg { animation: wobble .5s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-2px); } }
.critter__say {
  position: absolute; right: 94px; bottom: 50px; white-space: nowrap; padding: 7px 11px; background: var(--fg); color: var(--bg);
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.critter__say.is-on { opacity: 1; transform: none; }
.talk-open .critter { transform: translateY(8px) scale(.9); }

/* ---------------------------------------------------------------- TALK */
.talk {
  position: fixed; z-index: 70; right: clamp(12px, 2.4vw, 32px); bottom: calc(clamp(12px, 2.4vw, 32px) + 100px);
  width: min(520px, calc(100vw - 24px)); height: min(640px, calc(100svh - 190px));
  display: flex; flex-direction: column; background: rgba(9, 9, 9, .96); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: open .45s var(--ease) both;
}
.talk[hidden] { display: none; }
@keyframes open { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.talk__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.talk__head p { margin: 0; display: flex; align-items: center; gap: 8px; }
.talk__head i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.talk__close { background: none; border: 0; color: var(--fg-2); cursor: pointer; padding: 6px 0; }
.talk__close:hover { color: var(--fg); }
.talk__stream { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; }
.msg { max-width: 92%; animation: rise .35s var(--ease) both; }
.msg--user { align-self: flex-end; background: var(--bg-3); border: 1px solid var(--line); padding: 10px 14px; }
.msg--siris { align-self: flex-start; }
.msg__tag { color: var(--acc); margin: 0 0 8px; }
.msg__text { margin: 0; font-size: 17px; }
.msg__text mark { background: none; color: var(--fg); box-shadow: inset 0 -0.45em 0 var(--acc-dim); }
.msg__text .w { opacity: 0; animation: word .35s var(--ease) forwards; }
@keyframes word { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
.msg__next { margin: 12px 0 0; color: var(--fg-2); font-size: 16px; }
.msg__err { color: var(--fg-2); }
.diagram { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.diagram li {
  justify-self: start; padding: 8px 12px; border: 1px solid var(--line-2); background: var(--bg); position: relative;
  opacity: 0; transform: translateX(-6px); animation: node .4s var(--ease) forwards;
}
.diagram li + li { margin-top: 22px; }
.diagram li + li::before { content: "↓"; position: absolute; left: 14px; top: -23px; color: var(--fg-2); font-size: 14px; }
.diagram li:last-child { border-color: var(--acc); color: var(--acc); }
@keyframes node { to { opacity: 1; transform: none; } }
.dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.dots i { width: 6px; height: 6px; background: var(--fg-2); border-radius: 50%; animation: pulse 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.msg__ctx { margin: 14px 0 0; color: var(--fg-2); font-size: 14px; }
.msg__speed { margin: 10px 0 0; color: var(--acc); font-size: 14px; opacity: .85; }
.msg__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; opacity: 0; animation: node .4s var(--ease) forwards; }
.msg__opts button { background: transparent; border: 1px solid var(--line-2); padding: 8px 13px; font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.msg__opts button:hover { border-color: var(--fg); background: rgba(237, 237, 237, .05); }
.talk__tools { display: flex; gap: 18px; align-items: center; }
.talk__inside { background: none; border: 1px solid var(--line-2); color: var(--fg-2); cursor: pointer; padding: 5px 9px; }
.talk__inside[aria-pressed="true"] { color: var(--acc); border-color: var(--acc); }
.talk__inside-panel { max-height: 46%; overflow-y: auto; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.talk__inside-panel[hidden] { display: none; }
.in__h { margin: 0 0 8px; color: var(--acc); }
.in__ctx { margin: 0; font: 14px/1.45 var(--mono); color: var(--fg); white-space: pre-wrap; }
.in__stats { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.in__stats dt { color: var(--fg-2); font-size: 14px; }
.in__stats dd { margin: 0; font-size: 16px; color: var(--fg); }
.in__note { margin: 14px 0 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.lead-ok { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--acc); color: var(--acc); }

.talk__form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.talk__form textarea {
  flex: 1; resize: none; max-height: 140px; background: transparent; border: 0; color: var(--fg);
  font: 17px/1.5 var(--sans); padding: 8px 4px; outline: none;
}
.talk__form textarea::placeholder { color: var(--fg-2); }
.talk__send {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  font: 18px var(--mono); cursor: pointer; transition: background .2s, transform .15s;
}
.talk__send:hover { background: var(--acc); border-color: var(--acc); }
.talk__send:active { transform: scale(.92); }
.talk__send:disabled { opacity: .4; cursor: default; }
.talk__chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 14px; scrollbar-width: none; }
.talk__chips[hidden] { display: none; }
.talk__chips button {
  flex: none; background: transparent; border: 1px solid var(--line-2); color: var(--fg-2); padding: 7px 12px; font-size: 14px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.talk__chips button:hover { color: var(--fg); border-color: var(--fg); }

/* ------------------------------------------------------ REVEAL DE TEXTO */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js.is-awake .hero__title .line > span { transform: none; }
.js.is-awake .hero__title .line:nth-child(2) > span { transition-delay: .09s; }

/* ---------------------------------------------------------- RESPONSIVO */
@media (max-width: 1100px) {
  .nav__status { display: none; }
  .rail { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav__sound { margin-left: auto; }
  .nav__menu {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: none; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav__menu span:not(.sr) { width: 18px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease); }
  .nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
  .nav__links a::after { display: none; }
  .nav__talk { margin-top: 18px; padding: 14px; font-size: 17px; }

  .hero { justify-content: flex-end; padding-bottom: 110px; }
  .block { grid-template-columns: 1fr; min-height: 0; padding-block: 96px 64px; }
  .block--flip .block__text { order: 0; }
  .block p { font-size: 17px; }
  .flow__events { height: 250px; }
  .foot { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .diag { min-height: 0; }
  .paths div { grid-template-columns: 1fr; gap: 4px; }
  .foot__brand strong { font-size: 48px; }
}
@media (max-width: 520px) {
  .btn { width: 100%; justify-content: space-between; }
  .steps { grid-template-columns: 1fr; row-gap: 26px; }
  .versus__row { grid-template-columns: 1fr; gap: 6px; }
  .versus__head { display: none; }
  .prov__proof .btn { width: 100%; }
  .hero__wins { flex-direction: column; }
  .punch { font-size: 22px !important; }
  .flow__lanes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .flow__node { font-size: 14px; padding: 10px 0; writing-mode: vertical-rl; transform: rotate(180deg); height: 104px; }
  .flow__events li { grid-template-columns: 50px 1fr; }
  .flow__events li > span { grid-column: 2; }
  .build__page { grid-template-rows: 30px 110px 90px 38px; gap: 6px; padding: 8px; }
  .b::after { left: 6px; top: 5px; }
  .agentviz__map { aspect-ratio: 1 / 1; }
  .tool, .agentviz__hub { padding: 6px 8px; }
  .critter { width: 62px; height: 62px; }
  .critter__say { right: 0; bottom: 70px; }
  .hero__title { font-size: 44px; }
  .talk { inset: auto 0 0 0; width: 100%; height: calc(100svh - 70px); border-inline: 0; border-bottom: 0; }
  .talk-open .critter { opacity: 0; pointer-events: none; }
}

/* ------------------------------------------------ MOVIMENTO REDUZIDO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
