/*
 * Tivra — Página v2 («a fábrica»)
 * ───────────────────────────────
 * Preto absoluto, tipografia de cartaz, números gigantes. Cada secção é um capítulo numerado
 * (.chapter) com uma etiqueta mono (.label). Lê só tokens de css/tokens.css.
 *
 * Blocos, por ordem da página:
 *   nav · hero (canvas do cristal) · manifesto · escala (I/II/III) · construtores · builder (mock)
 *   · números · seis-funções · cloud (chips) · nuvem vs. computador · próximo passo · começar · footer
 */

html, body { background: var(--bg); }
body { overflow-x: hidden; }
::selection { background: var(--primary); color: var(--primary-ink); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: url("../assets/grain.png");
  opacity: 0.035;
  mix-blend-mode: screen;
}

.label {
  font-family: var(--mono);
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--mute);
}
.label b { color: var(--text-1); font-weight: 400; }

.head {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--text-1);
}

.hot {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.frame { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

/* ── Botões ───────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--text-1);
  color: var(--bg);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
  white-space: nowrap;
}
.cta:hover { transform: translateY(-2px); background: #fff; }
.cta .arr { transition: transform var(--dur-fast) var(--ease-out); }
.cta:hover .arr { transform: translateX(4px); }
.cta.line { background: transparent; color: var(--text-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.cta.line:hover { box-shadow: inset 0 0 0 1px var(--text-1); }
.cta.sm { height: 38px; padding: 0 18px; font-size: 11px; }

/* ── Navegação ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 56px);
  transition: background var(--dur-med), backdrop-filter var(--dur-med);
}
.nav.scrolled { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand .iso { height: 30px; width: auto; }
.nav .brand .word { height: 13px; width: auto; }
.nav .links { display: flex; gap: 28px; }
.nav .links a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); transition: color var(--dur-fast); }
.nav .links a:hover { color: var(--text-1); }
.nav .acts { display: flex; gap: 10px; }
@media (max-width: 1020px) { .nav .links { display: none; } }
@media (max-width: 560px) { .nav .acts .line { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero2 {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero2 canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero2 .glow {
  position: absolute;
  left: 50%; top: 42%;
  width: 70vmin; height: 70vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(107, 43, 255, 0.28), rgba(232, 51, 109, 0.08) 55%, transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero2 .pitch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 56px) 8px;
}
.hero2 .pitch p {
  max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--text-2);
}
.hero2 .pitch p b { color: var(--text-1); font-weight: 500; }
.hero2 .pitch .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero2 h1 {
  position: relative;
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--size-mega);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: var(--text-1);
  margin: 0 0 -0.06em;
  user-select: none;
}
.hero2 h1 span { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise var(--dur-slow) var(--ease-out) forwards; }
.hero2 h1 span:nth-child(2) { animation-delay: 80ms; }
.hero2 h1 span:nth-child(3) { animation-delay: 160ms; }
.hero2 h1 span:nth-child(4) { animation-delay: 240ms; }
.hero2 h1 span:nth-child(5) { animation-delay: 320ms; }
.hero2 .scroll-hint { position: absolute; left: 50%; bottom: calc(var(--size-mega) * 0.86); transform: translateX(-50%); }
@media (max-width: 760px) {
  .hero2 .pitch { grid-template-columns: 1fr; }
  .hero2 .pitch .acts { justify-content: flex-start; }
  .hero2 .scroll-hint { display: none; }
}

/* ── Capítulos ────────────────────────────────────────────────── */
.chapter { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.chapter + .chapter { border-top: 1px solid var(--hair); }
.chapter .bar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(40px, 6vw, 88px); }
.chapter h2.head { font-size: var(--size-giant); max-width: 16ch; text-wrap: balance; }
.chapter h2.head.wide { max-width: 22ch; }
.chapter .sub { margin-top: 28px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--text-3); }
.chapter .sub b { color: var(--text-1); font-weight: 500; }

/* Revelação ao entrar no ecrã */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ── 01 Manifesto: as palavras acendem com o scroll ───────────── */
.manifesto p {
  font-family: var(--head);
  font-size: var(--size-statement);
  line-height: 1.32;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: min(34ch, 100%);
  text-wrap: balance;
}
.manifesto p .w { color: var(--dim-text); transition: color 300ms; }
.manifesto p .w.on { color: var(--text-1); }
.manifesto p .w.hl.on { color: var(--primary-glow); }

/* ── 02 A escala Tivra ────────────────────────────────────────── */
.scale-list { margin-top: clamp(56px, 8vw, 110px); }
.tier {
  display: grid;
  grid-template-columns: minmax(90px, 0.6fr) 1.4fr 2fr auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 1px solid var(--hair);
}
.tier:last-child { border-bottom: 1px solid var(--hair); }
.tier .num { font-family: var(--head); font-size: var(--size-big); color: var(--dim-text); line-height: 1; transition: color var(--dur-med); }
.tier h3 { font-family: var(--head); font-weight: 400; font-size: clamp(18px, min(1.9vw, 4vh), 26px); text-transform: uppercase; letter-spacing: 0.03em; }
.tier p { color: var(--text-3); font-size: 17px; line-height: 1.55; max-width: 48ch; }
.tier .state { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.tier.done .num { color: var(--text-1); }
.tier.now .num { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier.now .state { color: var(--text-1); }
.tier.now .state i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--hot-2); box-shadow: 0 0 14px var(--hot-2); animation: pulse 1.6s infinite; }
@media (max-width: 860px) {
  .tier { grid-template-columns: auto 1fr; }
  .tier p { grid-column: 1 / -1; }
  .tier .state { grid-column: 1 / -1; }
}

/* ── 03 Construtores ──────────────────────────────────────────── */
.builders { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(56px, 8vw, 100px); background: var(--hair); border: 1px solid var(--hair); }
.builders > div { background: var(--bg); padding: clamp(28px, 4vw, 56px); }
.builders .who { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.builders .who b { font-family: var(--head); font-weight: 400; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.builders ul { list-style: none; }
.builders li { position: relative; padding: 18px 0 18px 46px; border-top: 1px solid var(--hair); font-size: 17px; color: var(--text-2); }
.builders li span { position: absolute; left: 0; top: 22px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.builders li b { color: var(--text-1); font-weight: 500; font-family: var(--mono); font-size: 15px; }
@media (max-width: 860px) { .builders { grid-template-columns: 1fr; } }

/* ── 04 O Builder (mock em ecrã inteiro) ──────────────────────── */
.factory { padding-bottom: 0; overflow: hidden; }
.factory .stagewrap { perspective: 1800px; margin-top: clamp(56px, 7vw, 96px); }
.factory .caption-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 clamp(96px, 12vw, 160px); }
.factory .caption-row p { font-family: var(--head); text-transform: uppercase; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: 0.06em; }
.bwin {
  position: relative;
  border-radius: 18px;
  background: #07070a;
  box-shadow: 0 0 0 1px var(--hair-2), 0 60px 160px -40px rgba(107, 43, 255, 0.45), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: rotateX(calc(var(--tilt, 1) * 18deg)) scale(calc(1 - var(--tilt, 1) * 0.06));
  transform-origin: 50% 0;
  transition: transform 120ms linear;
}
.bwin .bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; margin: 0; border-bottom: 1px solid var(--hair); background: #0b0b0f; }
.bwin .dots { display: flex; gap: 7px; }
.bwin .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a30; }
.bwin .url { flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 8px; background: #141419; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.bwin .runner { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.bwin .runner i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.bwin .body { display: grid; grid-template-columns: 340px 1fr; min-height: 560px; }
.bwin .chat { border-right: 1px solid var(--hair); padding: 18px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.bwin .msg-me { align-self: flex-end; max-width: 90%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #1a1830; color: var(--text-1); line-height: 1.45; min-height: 40px; }
.bwin .kora { display: flex; align-items: center; gap: 10px; color: var(--text-1); font-weight: 500; }
.bwin .kora small { color: var(--mute); font-weight: 400; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.bwin .plan { list-style: none; display: grid; gap: 2px; }
.bwin .plan li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--mute); transition: color 300ms, background 300ms; }
.bwin .plan li .ck { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #3a3a44; transition: all 300ms; }
.bwin .plan li.run { color: var(--text-1); background: #121218; }
.bwin .plan li.run .ck { box-shadow: inset 0 0 0 1.5px var(--primary-glow); border-top-color: transparent; animation: spin 0.9s linear infinite; background: conic-gradient(var(--primary-glow) 0 25%, transparent 25%); }
.bwin .plan li.ok { color: var(--text-2); }
.bwin .plan li.ok .ck { background: var(--ok); box-shadow: none; }
.bwin .plan li em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--mute); }
.bwin .shipped { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: rgba(61, 220, 151, 0.08); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); color: var(--text-1); font-size: 12px; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: all 500ms var(--ease-out); }
.bwin .shipped.on { opacity: 1; transform: none; }
.bwin .shipped b { font-family: var(--mono); font-weight: 400; color: var(--ok); }
.bwin .work { display: flex; flex-direction: column; min-width: 0; }
.bwin .tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--hair); overflow: hidden; }
.bwin .tabs span { padding: 6px 12px; border-radius: 8px; font-size: 12px; color: var(--mute); white-space: nowrap; transition: all 300ms; }
.bwin .tabs span.on { background: #16161c; color: var(--text-1); }
.bwin .view { position: relative; flex: 1; padding: 22px; overflow: hidden; }
.bwin .pane { position: absolute; inset: 22px; opacity: 0; transition: opacity 500ms; }
.bwin .pane.on { opacity: 1; }

/* A app que está a nascer: encomendas da padaria */
.app { height: 100%; border-radius: 12px; background: #f6f4ef; color: #1b1a17; padding: 22px; display: flex; flex-direction: column; gap: 16px; font-family: var(--body); font-weight: 500; }
.app .top { display: flex; justify-content: space-between; align-items: center; }
.app .top b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.app .top span { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: #1b1a17; color: #f6f4ef; }
.app .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app .kpis div { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.app .kpis small { display: block; font-size: 10px; color: #8a857b; text-transform: uppercase; letter-spacing: 0.08em; }
.app .kpis b { font-size: 22px; font-weight: 700; }
.app .rows { display: grid; gap: 6px; }
.app .rows div { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 12px; animation: slidein 500ms var(--ease-out) both; }
.app .rows i { font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: #e7f6ee; color: #18794e; }
.app .rows i.wait { background: #fff4e0; color: #9a5b00; }
.app .build { opacity: 0; transition: opacity 600ms; }
.app .build.on { opacity: 1; }

/* Código e Dados */
.code { height: 100%; border-radius: 12px; background: #0b0b10; padding: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #a9a9b8; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.code .k { color: #c792ea; } .code .s { color: #c3e88d; } .code .f { color: #82aaff; } .code .c { color: #546e7a; }
.data { height: 100%; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; font-size: 12px; }
.data .dh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.data .dh b { font-family: var(--mono); font-weight: 400; color: var(--text-1); }
.data .dh span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok); }
.data table { width: 100%; border-collapse: collapse; }
.data th, .data td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.data th { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.data td { color: var(--text-2); }
.data tr.new td { animation: flash 1.6s var(--ease-out); }
@media (max-width: 560px) {
  .app { padding: 14px; gap: 12px; }
  .app .kpis b { font-size: 16px; }
  .app .kpis small { font-size: 9px; }
  .app .rows div { grid-template-columns: 1fr auto; }
  .app .rows div span:nth-child(2) { display: none; }
  .data th:nth-child(3), .data td:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .bwin .body { grid-template-columns: 1fr; }
  .bwin .chat { border-right: 0; border-bottom: 1px solid var(--hair); }
  .bwin .view { min-height: 420px; }
  .bwin .url { display: none; }
}

/* ── 05 Números ───────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--hair); }
.stats > div { padding: clamp(28px, 4vw, 48px) clamp(0px, 2vw, 32px) 0 0; }
.stats > div + div { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--hair); }
.stats .n { font-family: var(--head); font-size: clamp(44px, min(7vw, 15vh), 112px); line-height: 0.95; letter-spacing: -0.02em; }
.stats .n small { font-size: 0.34em; letter-spacing: 0.02em; margin-left: 0.12em; }
.stats p { margin-top: 18px; color: var(--text-3); font-size: 17px; max-width: 26ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .stats > div { padding-bottom: 28px; }
}

/* À escala: os três níveis lado a lado, em tamanho relativo */
.toscale { margin-top: clamp(72px, 10vw, 140px); }
.toscale .row { display: flex; justify-content: center; gap: clamp(16px, 6vw, 110px); }
.toscale .item { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.toscale .item .team { display: flex; align-items: flex-end; gap: 4px; }
.toscale .item .label { order: 2; }
.toscale .row { align-items: stretch; }
.toscale .item { justify-content: flex-end; }
.toscale .item .art { display: flex; align-items: flex-end; justify-content: center; flex: 1; padding-bottom: 18px; border-bottom: 1px solid var(--hair-2); width: 100%; }
.toscale .factory-mark { position: relative; display: grid; place-items: center; }
.toscale .factory-mark .ring { position: absolute; inset: -14%; border-radius: 50%; border: 1px dashed var(--hair-2); animation: spin 40s linear infinite; }
@media (max-width: 760px) {
  .toscale .row { zoom: 0.38; gap: 30px; }
  .toscale .label { font-size: 26px; }
}

/* ── 06 Seis funções, uma frase ───────────────────────────────── */
.versus { display: grid; grid-template-columns: 1.2fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 64px); margin-top: clamp(56px, 8vw, 100px); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.roles div { background: var(--bg); aspect-ratio: 1.5; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.roles div b { font-family: var(--head); font-weight: 400; font-size: clamp(11px, 1vw, 14px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.roles div span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mute); text-transform: uppercase; }
.roles div > * { transition: opacity 600ms, filter 600ms; }
.versus.go .roles div > * { opacity: 0.16; filter: blur(1.5px); transition-delay: calc(var(--i) * 120ms); }
.roles div { position: relative; }
.roles div::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 26px; height: 1px; background: var(--hot-2); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); transition-delay: calc(var(--i) * 120ms + 200ms); }
.versus.go .roles div::after { transform: scaleX(1); }
.versus .arrow { font-family: var(--head); font-size: var(--size-big); color: var(--mute); }
.versus .one { display: flex; flex-direction: column; gap: 22px; }
.versus .one .prompt { padding: 22px 24px; border-radius: 18px; background: #0b0b10; box-shadow: inset 0 0 0 1px var(--hair-2), 0 30px 80px -30px rgba(107,43,255,0.6); font-size: clamp(16px, 1.4vw, 19px); color: var(--text-1); line-height: 1.5; }
.versus .one .prompt::before { content: "›"; color: var(--primary-glow); margin-right: 10px; font-family: var(--mono); }
.versus > * { min-width: 0; }
.versus .one .label { line-height: 1.8; }
@media (max-width: 860px) {
  .versus { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .versus .arrow { transform: rotate(90deg); justify-self: center; }
}

/* ── 07 Tivra Cloud: os «chips» ───────────────────────────────── */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(56px, 8vw, 100px); background: var(--hair); border: 1px solid var(--hair); }
.chip { position: relative; background: var(--bg); padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 22px; min-height: 460px; overflow: hidden; }
.chip .die { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.chip .die svg { width: 82%; height: auto; overflow: visible; transition: transform 900ms var(--ease-out); }
.chip:hover .die svg { transform: scale(1.04) rotate(-2deg); }
.chip h3 { font-family: var(--head); font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: 0.03em; line-height: 1.25; }
.chip p { color: var(--text-3); font-size: 15px; line-height: 1.55; }
.chip.beyond { justify-content: flex-end; }
.chip.beyond h3 { color: var(--mute); }
.chip.beyond .dots-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--hair-2) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); }
@media (max-width: 1100px) { .chips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chips { grid-template-columns: 1fr; } .chip { min-height: 0; } }

/* ── 08 Nuvem vs. computador ──────────────────────────────────── */
.orbital { position: relative; overflow: hidden; }
.orbital .sky { position: absolute; inset: 0; background: url("../assets/cag-hero.webp") center / cover no-repeat; opacity: 0.32; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); transform: scale(calc(1.15 - var(--p, 0) * 0.15)); }
.orbital .frame { position: relative; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(56px, 8vw, 100px); background: var(--hair); border: 1px solid var(--hair); }
.compare > div { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: clamp(24px, 3.4vw, 48px); }
.compare h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 26px; }
.compare ul { list-style: none; }
.compare li { padding: 16px 0; border-top: 1px solid var(--hair); color: var(--text-3); font-size: 17px; display: flex; gap: 14px; }
.compare li::before { content: "—"; color: var(--mute-2); font-family: var(--mono); }
.compare .cloud li { color: var(--text-1); }
.compare .cloud li::before { content: "+"; color: var(--ok); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ── 09 Próximo passo: o evento que acorda um Tiv ─────────────── */
.next .flow { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; margin-top: clamp(56px, 8vw, 100px); }
.next .src, .next .dst { border-radius: 18px; background: #07070a; box-shadow: inset 0 0 0 1px var(--hair-2); padding: 22px; min-height: 260px; }
.next .src .lbl, .next .dst .lbl { margin-bottom: 16px; }
.next .ev { font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 10px 12px; border-radius: 10px; background: #101016; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; animation: slidein 600ms var(--ease-out) both; }
.next .ev b { color: var(--ok); font-weight: 400; }
.next .wire { position: relative; height: 2px; background: var(--hair-2); }
.next .wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-glow); box-shadow: 0 0 18px var(--primary-glow); opacity: 0; }
.next .wire.fire i { animation: travel 900ms var(--ease-out); }
.next .dst .say { display: flex; gap: 14px; align-items: flex-start; }
.next .dst .say p { font-size: 15px; color: var(--text-2); line-height: 1.55; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #101016; min-height: 48px; }
@media (max-width: 860px) {
  .next .flow { grid-template-columns: 1fr; gap: 0; }
  .next .wire { width: 2px; height: 60px; margin: 0 auto; }
  .next .wire i { left: -4px; top: 0; }
  .next .wire.fire i { animation-name: travel-y; }
}

/* ── 10 Começar ───────────────────────────────────────────────── */
.start .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(48px, 7vw, 90px); align-items: start; }
.plan-card { border-radius: 22px; padding: clamp(24px, 3vw, 40px); background: #07070a; box-shadow: inset 0 0 0 1px var(--hair-2); }
.plan-card + .plan-card { margin-top: 14px; }
.plan-card.hero-plan { background: linear-gradient(#07070a, #07070a) padding-box, var(--grad-hot) border-box; border: 1px solid transparent; box-shadow: 0 40px 120px -50px rgba(232, 51, 109, 0.55); }
.plan-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.plan-card h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: 0.04em; }
.plan-card .price { font-family: var(--head); font-size: clamp(22px, 2.2vw, 30px); }
.plan-card p { margin: 14px 0 22px; color: var(--text-3); font-size: 16px; max-width: 46ch; }
.installs { display: grid; gap: 12px; }
.inst { border-radius: 16px; background: #07070a; box-shadow: inset 0 0 0 1px var(--hair); padding: 18px 20px; }
.inst .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.inst .top b { font-family: var(--head); font-weight: 400; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.inst .cmd2 { display: flex; align-items: center; gap: 12px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px var(--hair); padding: 10px 10px 10px 14px; }
.inst code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.inst code::-webkit-scrollbar { display: none; }
.inst code b { color: var(--primary-glow); font-weight: 400; margin-right: 10px; }
.inst .copy { flex-shrink: 0; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: #16161c; color: var(--text-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.inst .copy.done { color: var(--ok); }
.inst .dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.inst .note { margin-top: 10px; font-size: 12.5px; color: var(--mute); }
@media (max-width: 900px) { .start .grid { grid-template-columns: 1fr; } }

/* ── Fecho ────────────────────────────────────────────────────── */
.finale { position: relative; padding: clamp(120px, 18vw, 260px) 0 0; text-align: center; overflow: hidden; border-top: 1px solid var(--hair); }
.finale h2 { font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: var(--size-giant); line-height: 1.02; }
.finale .acts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.finale .mark { margin: clamp(80px, 12vw, 160px) auto 0; display: grid; place-items: center; }
.finale .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px clamp(16px, 4vw, 56px); border-top: 1px solid var(--hair); margin-top: 56px; text-align: left; }
.finale .foot a { color: var(--mute); }
.finale .foot a:hover { color: var(--text-1); }
.finale .foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.finale .wordmark { font-family: var(--head); font-size: var(--size-mega); line-height: 0.8; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px var(--hair-2); margin-bottom: -0.08em; user-select: none; white-space: nowrap; }


/* ── 03 Casos de uso ──────────────────────────────────────────── */
.cases { margin-top: clamp(48px, 7vw, 96px); }
.case { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 88px); align-items: center; padding: clamp(48px, 7vw, 100px) 0; border-top: 1px solid var(--hair); }
.case.flip .case-copy { order: 2; }
.case-copy h3 { margin: 18px 0 20px; font-family: var(--head); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, min(2.8vw, 6vh), 40px); line-height: 1.08; letter-spacing: 0.01em; }
.case-copy p { color: var(--text-3); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 46ch; }
.ticks { list-style: none; margin-top: 26px; }
.ticks li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hair); color: var(--text-2); font-size: 16px; }
.ticks li::before { content: "+"; font-family: var(--mono); color: var(--ok); }

.scene { position: relative; border-radius: 22px; background: #07070a; box-shadow: inset 0 0 0 1px var(--hair-2), 0 60px 140px -60px var(--scene-glow, rgba(107, 43, 255, 0.55)); padding: clamp(18px, 2.2vw, 28px); min-height: 400px; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
#sc-research { --scene-glow: rgba(34, 184, 232, 0.45); }
#sc-build { --scene-glow: rgba(232, 51, 109, 0.45); }
#sc-support { --scene-glow: rgba(31, 196, 174, 0.42); }
.scene .who { display: flex; align-items: center; gap: 12px; }
.scene .who b { display: block; font-weight: 500; color: var(--text-1); font-size: 15px; }
.scene .who small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.scene .clock-chip { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--mute); padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.scene .clock-chip::before { content: "☾ "; color: var(--primary-glow); }
.ask-line { min-height: 44px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: #121218; color: var(--text-1); font-size: 14px; line-height: 1.45; }
.ask-line:empty { visibility: hidden; }
.srcs { list-style: none; display: grid; gap: 6px; }
.srcs li { position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: #0e0e13; font-size: 13px; color: var(--mute); overflow: hidden; transition: color 300ms; }
.srcs li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 0%); background: linear-gradient(90deg, var(--hot-4), #22b8e8); transition: width 700ms var(--ease-out); }
.srcs li i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a33; transition: background 300ms; }
.srcs li em { font-style: normal; font-family: var(--mono); font-size: 10px; }
.srcs li.on { color: var(--text-1); }
.srcs li.on i { background: #22b8e8; box-shadow: 0 0 10px #22b8e8; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 0 2px; border-bottom: 1px solid var(--hair-2); }
.bars span { flex: 1; height: 0; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(31, 139, 255, 0.25), #22b8e8); transition: height 900ms var(--ease-out); }
.bars.on span { height: var(--h); }
.bars span:nth-child(2) { transition-delay: 80ms; } .bars span:nth-child(3) { transition-delay: 160ms; } .bars span:nth-child(4) { transition-delay: 240ms; } .bars span:nth-child(5) { transition-delay: 320ms; } .bars span:nth-child(6) { transition-delay: 400ms; }
.done-chip { margin-top: auto; align-self: flex-start; padding: 9px 14px; border-radius: 999px; background: rgba(61, 220, 151, 0.1); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.35); color: var(--ok); font-family: var(--mono); font-size: 11.5px; opacity: 0; transform: translateY(8px); transition: all 500ms var(--ease-out); }
.done-chip.on { opacity: 1; transform: none; }
.scene .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; flex: 1; }
.mini-code { margin: 0; padding: 14px; border-radius: 12px; background: #0b0b10; box-shadow: inset 0 0 0 1px var(--hair); font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: #a9a9b8; white-space: pre-wrap; overflow: hidden; min-height: 210px; }
.mini-code .k { color: #c792ea; } .mini-code .s { color: #c3e88d; } .mini-code .f { color: #82aaff; }
.mini-app { border-radius: 12px; background: #f6f4ef; color: #1b1a17; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; opacity: 0.08; filter: blur(3px); transform: scale(0.96); transition: all 800ms var(--ease-out); }
.mini-app.on { opacity: 1; filter: none; transform: none; }
.mini-app b { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.mini-app .slot { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 8px; padding: 9px 10px; }
.mini-app .slot i { font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: #eef0f3; color: #59616d; }
.mini-app .slot i.on { background: #e7f6ee; color: #18794e; }
.thread { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.thread .m { max-width: 82%; padding: 10px 14px; font-size: 14px; line-height: 1.45; animation: slidein 450ms var(--ease-out) both; }
.thread .in { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: #121218; color: var(--text-2); }
.thread .in small { display: block; font-family: var(--mono); font-size: 10px; color: var(--mute); margin-bottom: 4px; letter-spacing: 0.08em; }
.thread .out { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(31, 196, 174, 0.14); box-shadow: inset 0 0 0 1px rgba(31, 196, 174, 0.3); color: var(--text-1); }
.thread .typing { align-self: flex-end; font-family: var(--mono); font-size: 12px; color: #1fc4ae; padding: 6px 12px; animation: pulse 1s infinite; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.chips-row span { padding: 7px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; animation: slidein 450ms var(--ease-out) both; }
.chips-row .okc { color: var(--ok); background: rgba(61, 220, 151, 0.1); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.3); }
.chips-row .waitc { color: #ffb547; background: rgba(255, 181, 71, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case.flip .case-copy { order: 0; }
  .scene { min-height: 0; }
}
@media (max-width: 520px) { .scene .split { grid-template-columns: 1fr; } .mini-code { min-height: 150px; } }

.marquee { margin-top: clamp(32px, 5vw, 64px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: #0b0b10; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 14px; color: var(--text-2); white-space: nowrap; }

/* ── 04 A equipa ──────────────────────────────────────────────── */
.team { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 7vw, 90px); align-items: start; }
.crew2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.crew2 article { position: relative; background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: background 400ms; }
.crew2 article:hover { background: #08080c; }
.crew2 article.new { background: repeating-linear-gradient(135deg, #050507 0 10px, #08080b 10px 20px); }
.crew2 article.new .plus { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-family: var(--head); font-size: 26px; color: var(--primary-glow); box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.35); transition: transform 400ms var(--ease-out); }
.crew2 article.new:hover .plus { transform: rotate(90deg); }
.crew2 article.new p { font-style: italic; }
.crew2 article.lead { grid-column: span 3; flex-direction: row; align-items: center; gap: 22px; min-height: 0; }
.crew2 article.lead > div { display: flex; flex-direction: column; gap: 6px; }
.crew2 b { font-family: var(--head); font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-1); margin-top: auto; }
.crew2 article.lead b { margin-top: 0; }
.crew2 p { color: var(--text-3); font-size: 14px; line-height: 1.5; }
.crew2 .st { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.crew2 .st::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--mute-2); vertical-align: 1px; }
.crew2 .st[data-s="working"]::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.crew2 .st[data-s="thinking"]::before { background: var(--primary-glow); box-shadow: 0 0 8px var(--primary-glow); }
.crew2 .st[data-s="listening"]::before { background: #22b8e8; box-shadow: 0 0 8px #22b8e8; }
.board2 { border-radius: 20px; background: #07070a; box-shadow: inset 0 0 0 1px var(--hair-2), 0 50px 120px -60px rgba(107, 43, 255, 0.5); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.board2 .bh { display: flex; justify-content: space-between; padding: 4px 4px 10px; }
.live2 i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite; vertical-align: 1px; }
.t2 { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #0e0e13; font-size: 14px; color: var(--text-2); transition: opacity 400ms; }
.t2 em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: var(--primary-glow); box-shadow: inset 0 0 0 1px rgba(165, 180, 252, 0.3); }
.t2.done { opacity: 0.55; }
.t2.done span { text-decoration: line-through; text-decoration-color: var(--mute-2); }
.t2.done em { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.35); }
.t2.routine em { color: #ffb547; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3); }
.board2 .bfoot { margin-top: 6px; padding: 10px 4px 2px; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--mute); }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .crew2 { grid-template-columns: repeat(2, 1fr); } .crew2 article.lead { grid-column: span 2; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; } .crew2 article { min-height: 190px; padding: 16px; } }

/* ── 05 Contigo ───────────────────────────────────────────────── */
.ask2 h2.head { font-size: clamp(26px, min(3.8vw, 8vh), 58px); }
.ask2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.askcard { border-radius: 22px; background: #07070a; padding: clamp(20px, 2.6vw, 32px); box-shadow: inset 0 0 0 1px var(--hair-2), 0 60px 140px -60px rgba(122, 108, 255, 0.6); }
.askcard .ah { display: flex; align-items: center; gap: 12px; }
.askcard .ah b { display: block; font-weight: 500; }
.askcard .ah small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.pill2 { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; color: #ffb547; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35); transition: all 400ms; }
.pill2.ok { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.35); }
.askcard .q { margin-top: 22px; font-family: var(--head); text-transform: uppercase; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; }
.askcard .why { margin-top: 10px; color: var(--text-3); font-size: 15px; }
.askcard .opts { display: grid; gap: 8px; margin-top: 22px; }
.askcard .opts span { padding: 13px 16px; border-radius: 12px; background: #0e0e13; box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; color: var(--text-2); transition: all 300ms; }
.askcard .opts span.hover { box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--text-1); }
.askcard .opts span.pick { background: var(--primary); box-shadow: none; color: var(--primary-ink); }
.askcard .sent { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ok); opacity: 0; transition: opacity 500ms; }
.askcard .sent.on { opacity: 1; }
@media (max-width: 900px) { .ask2 { grid-template-columns: 1fr; } }

/* ── 06 Em todo o lado ────────────────────────────────────────── */
.surfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 90px); background: var(--hair); border: 1px solid var(--hair); }
.surf { background: var(--bg); padding: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.surf p { color: var(--text-3); font-size: 15px; line-height: 1.55; }
.surf p b { color: var(--text-1); font-family: var(--mono); font-weight: 400; }
.term, .cloudpc { border-radius: 14px; background: #0b0b10; box-shadow: inset 0 0 0 1px var(--hair-2); overflow: hidden; height: 280px; display: flex; flex-direction: column; }
.tbar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--hair); background: #101016; }
.tbar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a30; }
.tbar span { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbody { padding: 14px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-2); }
.tbody .p { color: var(--primary-glow); }
.tbody .r { color: var(--mute); }
.tbody .a { color: var(--text-1); }
.tbody .cur { display: inline-block; width: 7px; height: 14px; background: var(--text-1); vertical-align: -2px; animation: pulse 1s infinite; }
.phone { position: relative; height: 280px; width: 170px; margin: 0 auto; border-radius: 30px; background: #0b0b10; box-shadow: inset 0 0 0 1px var(--hair-2), 0 0 0 5px #121218; padding: 34px 12px 54px; overflow: hidden; }
.phone .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 56px; height: 16px; border-radius: 10px; background: #000; }
.pbody { display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.4; }
.pbody .me { align-self: flex-end; max-width: 88%; padding: 7px 10px; border-radius: 12px 12px 3px 12px; background: var(--primary); color: #fff; animation: slidein 400ms var(--ease-out) both; }
.pbody .bot { align-self: flex-start; max-width: 92%; padding: 7px 10px; border-radius: 12px 12px 12px 3px; background: #16161c; color: var(--text-2); animation: slidein 400ms var(--ease-out) both; }
.pin { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 30px; border-radius: 999px; background: #16161c; display: flex; align-items: center; padding: 0 12px; font-size: 10.5px; color: var(--mute); }
.pin .wave { display: inline-flex; gap: 2px; margin-right: 6px; }
.pin .wave i { width: 2px; height: 10px; border-radius: 2px; background: var(--primary-glow); animation: wave 0.7s ease-in-out infinite; }
.pin .wave i:nth-child(2) { animation-delay: 0.1s; } .pin .wave i:nth-child(3) { animation-delay: 0.2s; } .pin .wave i:nth-child(4) { animation-delay: 0.3s; }
.cbody { position: relative; flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cbody .row { height: 8px; border-radius: 4px; background: #1a1a22; }
.cbody .w80 { width: 80%; } .cbody .w60 { width: 60%; } .cbody .w90 { width: 90%; } .cbody .w40 { width: 40%; } .cbody .w70 { width: 70%; }
.cbody .hl { background: rgba(20, 184, 166, 0.5); box-shadow: 0 0 14px rgba(20, 184, 166, 0.4); animation: pulse 2s infinite; }
.cbody .cursor { position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 16px solid #fff; transform: rotate(-30deg); animation: roam 6s ease-in-out infinite; }
.cbody .pcm { position: absolute; right: 14px; bottom: 6px; }
.take { margin: 0 14px 14px; align-self: flex-start; padding: 7px 12px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-1); box-shadow: inset 0 0 0 1px var(--hair-2); }
@media (max-width: 960px) { .surfaces { grid-template-columns: 1fr; } }

/* ── O Tiv que acompanha a página ─────────────────────────────── */
.buddy { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.buddy.on { opacity: 1; transform: none; }
.buddy .say { padding: 8px 13px; border-radius: 999px; background: rgba(8, 8, 12, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--hair-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; transition: opacity 250ms; }
.buddy .say.swap { opacity: 0; }
.buddy:hover .say { color: var(--text-1); }
@media (max-width: 760px) { .buddy { right: 12px; bottom: 12px; } .buddy .say { display: none; } }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1.2); } }
@keyframes roam { 0% { left: 20%; top: 30%; } 30% { left: 46%; top: 62%; } 55% { left: 70%; top: 40%; } 80% { left: 35%; top: 70%; } 100% { left: 20%; top: 30%; } }

/* ── Animações ────────────────────────────────────────────────── */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: rgba(165, 180, 252, 0.18); } 100% { background: transparent; } }
@keyframes travel { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 10px); opacity: 1; } }
@keyframes travel-y { 0% { top: 0; opacity: 1; } 100% { top: calc(100% - 10px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .rv { opacity: 1; transform: none; }
  .bwin { transform: none; }
}
