/* Identidade Systein: paleta da logo, tipografia e acabamento futurista.
   Carregado por último em todas as páginas; sobrescreve tokens e acrescenta
   os componentes da cena do login, das ordens do Einstein e do guia. */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/assets/fonts/orbitron-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/assets/fonts/orbitron-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
:root {
  --brand-night: #020b1f;
  --brand-navy: #00163d;
  --brand-royal: #0160ae;
  --brand-electric: #006aff;
  --brand-sky: #4aa8ff;
  --brand-ice: #a9d4ff;
  --brand-silver: #c9d6e6;
  --brand-red: #ff4d5e;
  --glass: rgba(10, 30, 66, 0.55);
  --glass-strong: rgba(8, 24, 54, 0.82);
  --glass-line: rgba(74, 168, 255, 0.22);
  --bg: var(--brand-night);
  --panel: #0a1a36;
  --line: #1b3360;
  --text: #e8f0fb;
  --muted: #8ea5c4;
  --cyan: var(--brand-sky);
  --purple: #8f9dff;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --tech: "Orbitron", "Sora", "Segoe UI", sans-serif;
}
body {
  font-family: var(--display);
  background:
    radial-gradient(
      1100px 620px at 12% -8%,
      rgba(0, 106, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      900px 560px at 92% 4%,
      rgba(1, 96, 174, 0.22),
      transparent 62%
    ),
    radial-gradient(
      1200px 700px at 50% 120%,
      rgba(0, 60, 160, 0.18),
      transparent 60%
    ),
    var(--brand-night);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 168, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 168, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift {
  to {
    background-position:
      0 56px,
      56px 0;
  }
}
.ambient {
  background: radial-gradient(
    ellipse at top,
    rgba(0, 106, 255, 0.2),
    transparent 65%
  );
}
/* Cabeçalho em vidro */
header {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(2, 11, 31, 0.9),
    rgba(2, 11, 31, 0.55)
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-electric),
    var(--brand-sky),
    transparent
  );
  opacity: 0.6;
}
.agency-nameplate {
  font-family: var(--tech);
  font-weight: 700;
  letter-spacing: 3px;
  border-color: rgba(74, 168, 255, 0.45) !important;
  background: linear-gradient(
    145deg,
    rgba(0, 106, 255, 0.18),
    rgba(1, 22, 61, 0.7)
  ) !important;
  box-shadow:
    0 0 24px rgba(0, 106, 255, 0.25),
    inset 0 0 18px rgba(74, 168, 255, 0.12);
}
.systein-brand {
  box-shadow: 0 0 34px rgba(0, 106, 255, 0.28);
  border-radius: 12px;
}
/* Tipografia */
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}
h1 span,
.portal-hero h1 span,
.login-intro h1 span {
  background: linear-gradient(
    90deg,
    var(--brand-sky),
    var(--brand-ice) 55%,
    var(--brand-silver)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow,
.screen-eyebrow,
.chief-kicker,
.zone-header span,
.holo-kicker,
.guide-label {
  font-family: var(--tech);
  letter-spacing: 2.5px;
}
.eyebrow {
  color: var(--brand-sky);
}
/* Botões */
button {
  color: #cfe0f5;
  background: rgba(14, 36, 74, 0.7);
  border-color: rgba(74, 168, 255, 0.28);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
button:hover {
  background: rgba(0, 106, 255, 0.22);
  border-color: rgba(74, 168, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 106, 255, 0.25);
}
button.primary,
.login-card button.primary,
#newProject {
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(169, 212, 255, 0.5);
  background: linear-gradient(
    135deg,
    var(--brand-electric),
    var(--brand-royal) 60%,
    #0a3f9e
  );
  box-shadow:
    0 8px 26px rgba(0, 106, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
button.primary:hover:not(:disabled),
#newProject:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(0, 106, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
input,
select,
textarea {
  background: rgba(2, 14, 38, 0.75) !important;
  border-color: rgba(74, 168, 255, 0.28) !important;
  color: var(--text) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-sky) !important;
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.25);
  outline: none;
}
/* Chamadas da página inicial */
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  align-self: center;
}
.cta-new {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    var(--brand-electric),
    var(--brand-royal)
  );
  border: 1px solid rgba(169, 212, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 106, 255, 0.45);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.cta-new span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 18px;
  transition: transform 0.35s;
}
.cta-new::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite;
}
.cta-new:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 106, 255, 0.6);
}
.cta-new:hover span {
  transform: rotate(90deg);
}
@keyframes sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.cta-guide,
.guide-trigger {
  border-radius: 999px;
  border: 1px solid rgba(74, 168, 255, 0.45);
  background: rgba(0, 106, 255, 0.08);
  color: var(--brand-ice);
}
.guide-trigger {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
}
.cta-guide {
  padding: 13px 20px;
  font-weight: 600;
}
/* Cartões em vidro */
.overview > button,
.service,
.metrics-section,
.zone,
.activity,
.how,
.vault-summary article,
.project-card,
.project-detail,
.login-card,
.backup-explainer,
.environment-notice {
  background: linear-gradient(
    150deg,
    rgba(14, 38, 80, 0.6),
    rgba(4, 16, 40, 0.75)
  ) !important;
  border: 1px solid var(--glass-line) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.overview > button,
.vault-summary article,
.project-card {
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.overview > button:hover,
.vault-summary article:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 168, 255, 0.55) !important;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(0, 106, 255, 0.22);
}
.overview strong,
.vault-summary strong {
  font-family: var(--tech);
  color: #fff;
  text-shadow: 0 0 22px rgba(74, 168, 255, 0.55);
}
.project-card[aria-pressed="true"] {
  border-color: var(--brand-sky) !important;
  box-shadow:
    0 0 0 1px var(--brand-sky),
    0 0 30px rgba(0, 106, 255, 0.3);
}
/* Cartão de login com borda viva */
.login-card {
  position: relative;
  border-radius: 20px !important;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(
    from var(--spin),
    transparent 0deg,
    var(--brand-electric) 60deg,
    var(--brand-ice) 90deg,
    transparent 150deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  to {
    --spin: 360deg;
  }
}
/* Cena do login: Einstein e equipe */
.login-shell {
  align-items: start;
  padding-top: 40px;
}
.login-intro h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  margin: 18px 0 14px;
}
.login-intro > p {
  color: var(--muted);
  max-width: 60ch;
}
.team-scene {
  position: relative;
  margin-top: 26px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(
    160deg,
    rgba(10, 34, 78, 0.65),
    rgba(2, 12, 32, 0.85)
  );
  border: 1px solid var(--glass-line);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(0, 106, 255, 0.12);
}
.scene-room {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: url("/assets/einstein-office.webp") center / cover;
  box-shadow: inset 0 0 0 1px rgba(74, 168, 255, 0.25);
}
.scene-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 11, 31, 0.75));
  pointer-events: none;
}
.scene-holo {
  position: absolute;
  left: 46.5%;
  top: 11%;
  width: 44%;
  height: 49%;
  padding: 2.2% 2.6%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #dff0ff;
  background: rgba(0, 40, 110, 0.35);
  border-radius: 6px;
  box-shadow: inset 0 0 26px rgba(74, 168, 255, 0.35);
  overflow: hidden;
  z-index: 1;
}
.holo-kicker {
  font-size: clamp(6px, 0.75vw, 9px);
  color: var(--brand-ice);
  opacity: 0.9;
}
#holoOrders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
#holoOrders li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: baseline;
  font-size: clamp(7px, 0.85vw, 11px);
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(74, 168, 255, 0.12);
  border-left: 2px solid var(--brand-sky);
  animation: order-in 0.45s ease-out;
  min-width: 0;
}
#holoOrders li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c6e1ff;
}
#holoOrders li em {
  font-style: normal;
  font-size: 0.8em;
  color: var(--brand-ice);
  opacity: 0.85;
}
#holoOrders li:first-child {
  background: rgba(74, 168, 255, 0.26);
}
@keyframes order-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.scene-tag {
  position: absolute;
  left: 4%;
  bottom: 7%;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(2, 11, 31, 0.75);
  border: 1px solid rgba(255, 77, 94, 0.6);
  box-shadow: 0 0 16px rgba(255, 77, 94, 0.3);
}
.scene-tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 10px var(--brand-red);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
.scene-team {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.scene-agent {
  --tone: var(--brand-sky);
  position: relative;
  display: grid;
  gap: 4px;
  padding: 6px 4px 7px;
  border-radius: 10px;
  background: rgba(8, 26, 58, 0.7);
  border: 1px solid rgba(74, 168, 255, 0.18);
  animation: float 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.37s);
}
.scene-agent[data-dept="Criação"] {
  --tone: #8f9dff;
}
.scene-agent[data-dept="Engenharia"] {
  --tone: #22c3ff;
}
.scene-agent[data-dept="Crescimento"] {
  --tone: #c3d3e8;
}
.agent-desk {
  display: block;
  aspect-ratio: 3 / 2;
  background-image: url("/assets/team-human-atlas.webp");
  background-size: 400% 400%;
  background-position: var(--avatar-x) var(--avatar-y);
  filter: saturate(0.9) brightness(0.92);
  transition: filter 0.3s;
}
.agent-name {
  font-size: 9px;
  font-weight: 600;
  color: #b9cde6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-agent:hover {
  border-color: var(--tone);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tone) 45%, transparent);
}
.scene-agent:hover .agent-desk {
  filter: none;
}
.scene-agent.is-working {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 18%, rgba(8, 26, 58, 0.9));
  box-shadow:
    0 0 0 1px var(--tone),
    0 0 26px color-mix(in srgb, var(--tone) 60%, transparent);
  animation:
    float 5s ease-in-out infinite,
    working 0.9s ease-in-out 3;
  animation-delay: calc(var(--i) * -0.37s), 0s;
}
.scene-agent.is-working .agent-desk {
  filter: brightness(1.15) saturate(1.1);
}
.scene-agent.is-working .agent-name {
  color: #fff;
}
.scene-agent.is-working::after {
  content: "trabalhando";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #021432;
  background: var(--tone);
  white-space: nowrap;
}
@keyframes float {
  50% {
    transform: translateY(-3px);
  }
}
@keyframes working {
  50% {
    transform: translateY(-6px) scale(1.04);
  }
}
.scene-caption {
  min-height: 2.6em;
  margin: 14px 0 4px;
  font-size: 13px;
  color: var(--brand-ice);
}
.scene-note {
  color: #6f86a6;
  font-size: 10px;
}
/* Linhas de comando (login e escritório) */
.beam-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}
.beam-glow {
  fill: none;
  stroke: var(--brand-electric);
  stroke-width: 9;
  stroke-linecap: round;
  opacity: 0.35;
  filter: blur(4px);
}
.beam-path {
  fill: none;
  stroke: var(--brand-ice);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.beam-dot {
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--brand-sky));
}
.beam-ring {
  fill: none;
  stroke: var(--brand-sky);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
/* Escritório: ordens do Einstein */
#office {
  position: relative;
}
.station {
  position: relative;
}
.order-bubble {
  position: absolute;
  left: 50%;
  top: -14px;
  z-index: 7;
  width: max-content;
  max-width: 96%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--brand-electric),
    var(--brand-royal)
  );
  border: 1px solid rgba(169, 212, 255, 0.6);
  box-shadow: 0 10px 26px rgba(0, 60, 170, 0.5);
  pointer-events: none;
  animation: bubble 5.6s ease forwards;
}
@keyframes bubble {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.9);
  }
  8%,
  85% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
}
.station.receiving {
  box-shadow:
    0 0 0 2px var(--brand-sky),
    0 0 36px rgba(0, 106, 255, 0.55) !important;
}
.director-orders {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.director-orders li {
  display: flex;
  gap: 6px;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(74, 168, 255, 0.14);
  border-left: 2px solid var(--brand-sky);
  animation: order-in 0.45s ease-out;
  overflow: hidden;
  white-space: nowrap;
}
.director-orders li span {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c6e1ff;
}
.director-orders li b {
  color: #fff;
}
/* Guia */
.guide-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  color: var(--text);
  background: linear-gradient(
    160deg,
    rgba(10, 32, 74, 0.97),
    rgba(2, 12, 32, 0.98)
  );
  border: 1px solid rgba(74, 168, 255, 0.4);
  border-radius: 18px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 106, 255, 0.2);
}
.guide-dialog::backdrop {
  background: rgba(1, 6, 18, 0.72);
  backdrop-filter: blur(4px);
}
.guide-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 14px;
  background: inherit;
  border-bottom: 1px solid rgba(74, 168, 255, 0.18);
}
.guide-top h2 {
  margin: 8px 0 0;
  font-size: 22px;
}
.guide-close {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}
.guide-intro {
  margin: 14px 24px 6px;
  font-size: 13px;
  color: var(--muted);
}
.guide-list {
  display: grid;
  gap: 10px;
  padding: 12px 24px 26px;
}
.guide-item {
  border: 1px solid rgba(74, 168, 255, 0.2);
  border-radius: 12px;
  background: rgba(8, 26, 58, 0.55);
  overflow: hidden;
}
.guide-item[open] {
  border-color: rgba(74, 168, 255, 0.5);
}
.guide-item summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.guide-item summary::-webkit-details-marker {
  display: none;
}
.guide-item summary b {
  font-family: var(--tech);
  font-size: 12px;
  color: var(--brand-sky);
}
.guide-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--brand-sky);
  font-size: 18px;
  transition: transform 0.25s;
}
.guide-item[open] summary::after {
  transform: rotate(45deg);
}
.guide-steps {
  margin: 0 16px 12px 34px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #c9daef;
}
.guide-prompt {
  margin: 0 16px 14px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 106, 255, 0.1);
  border: 1px dashed rgba(74, 168, 255, 0.5);
  display: grid;
  gap: 8px;
}
.guide-label {
  font-size: 9px;
  color: var(--brand-ice);
}
.guide-prompt p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #fff;
  user-select: all;
}
.guide-copy {
  justify-self: start;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--brand-electric),
    var(--brand-royal)
  );
  border-color: rgba(169, 212, 255, 0.5);
}
.guide-note {
  display: block;
  margin: -4px 16px 14px;
  color: #8fb0d6;
  font-size: 11px;
}
/* Responsivo */
@media (max-width: 800px) {
  .login-card {
    order: -1;
  }
  .scene-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .intro-actions {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .team-scene {
    padding: 10px;
  }
  .scene-tag {
    font-size: 9px;
  }
  .guide-top,
  .guide-list {
    padding-left: 16px;
    padding-right: 16px;
  }
  .guide-intro {
    margin-left: 16px;
    margin-right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  .cta-new::after,
  .login-card::before,
  .scene-agent,
  .scene-agent.is-working,
  .scene-tag::before,
  .order-bubble,
  #holoOrders li,
  .director-orders li {
    animation: none !important;
  }
}
/* Vida dos avatares por estado */
.state-emote {
  position: absolute;
  right: 14%;
  top: 2%;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #021432;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}
.station[data-state="running"] .state-emote {
  opacity: 1;
  transform: none;
  background: var(--brand-sky);
  box-shadow: 0 0 14px rgba(74, 168, 255, 0.7);
}
.station[data-state="running"] .state-emote::before {
  content: "•••";
  letter-spacing: 1px;
  animation: typing 1.1s steps(3) infinite;
}
.station[data-state="returned"] .state-emote {
  opacity: 1;
  transform: none;
  background: #6ee7a8;
  animation: pop 0.6s ease-out;
}
.station[data-state="returned"] .state-emote::before {
  content: "✓";
}
.station[data-state="returned"] .human-avatar {
  animation: celebrate 0.9s ease-out 2;
}
.station[data-state="stale"] .state-emote {
  opacity: 1;
  transform: none;
  background: #c9d6e6;
}
.station[data-state="stale"] .state-emote::before {
  content: "…";
}
.station[data-state="blocked"] .state-emote {
  opacity: 1;
  transform: none;
  background: #f2bf6d;
  animation: pulse-warn 1.4s ease-in-out infinite;
}
.station[data-state="blocked"] .state-emote::before {
  content: "!";
}
.station[data-state="idle"] .human-avatar {
  animation: breathe 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes typing {
  0% {
    clip-path: inset(0 66% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes pop {
  0% {
    transform: scale(0.3);
  }
  70% {
    transform: scale(1.25);
  }
}
@keyframes celebrate {
  40% {
    transform: translateY(-4%);
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.012);
  }
}
@keyframes pulse-warn {
  50% {
    box-shadow: 0 0 16px rgba(242, 191, 109, 0.9);
  }
}
/* Reunião do Einstein */
.meeting-button {
  margin-top: 12px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  border-color: rgba(169, 212, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(0, 106, 255, 0.55),
    rgba(1, 96, 174, 0.55)
  );
}
.director-stage {
  position: relative;
}
.meeting-banner {
  position: absolute;
  left: 50%;
  top: 6%;
  z-index: 8;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #fff;
  white-space: nowrap;
  background: rgba(2, 11, 31, 0.85);
  border: 1px solid var(--brand-sky);
  box-shadow: 0 0 26px rgba(0, 106, 255, 0.5);
  animation: bubble 5.2s ease forwards;
}
.meeting-token {
  position: fixed;
  z-index: 60;
  width: 90px;
  height: 60px;
  border-radius: 12px;
  pointer-events: none;
  background-color: rgba(8, 26, 58, 0.85);
  background-image: url("/assets/team-human-atlas.webp");
  background-size: 400% 400%;
  background-position: var(--avatar-x) var(--avatar-y);
  border: 1px solid var(--brand-sky);
  box-shadow: 0 0 22px rgba(0, 106, 255, 0.6);
}
/* Avisos */
.toasts {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}
.toast {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 12px;
  color: #dbe9fb;
  background: rgba(6, 22, 52, 0.95);
  border: 1px solid rgba(74, 168, 255, 0.45);
  border-left: 4px solid var(--brand-sky);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: order-in 0.4s ease-out;
}
.toast strong {
  font-size: 13px;
  color: #fff;
}
.toast.done {
  border-left-color: #6ee7a8;
}
.toast.blocked {
  border-left-color: #f2bf6d;
}
/* Modo apresentação */
body.presentation header,
body.presentation .intro,
body.presentation .toolbar,
body.presentation .overview,
body.presentation .service,
body.presentation .metrics-section,
body.presentation .bottom-grid,
body.presentation .demo-banner,
body.presentation .floor-heading,
body.presentation .legend,
body.presentation footer,
body.presentation #warnings,
body.presentation .remote-note {
  display: none !important;
}
body.presentation main {
  max-width: none;
  padding: 64px max(16px, env(safe-area-inset-right, 0px)) 24px
    max(16px, env(safe-area-inset-left, 0px));
}
.presentation-exit {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 90;
  border-radius: 999px;
  opacity: 0.35;
}
.presentation-exit:hover,
.presentation-exit:focus-visible {
  opacity: 1;
}
.presentation-clock {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  top: max(12px, env(safe-area-inset-top, 0px));
  z-index: 90;
  font-family: var(--tech);
  font-size: 22px;
  color: var(--brand-ice);
  text-shadow: 0 0 18px rgba(0, 106, 255, 0.7);
}
/* Projetos: catálogo por cliente e linha do tempo */
.catalog-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(2, 14, 38, 0.6);
}
.catalog-switch button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
}
.catalog-switch button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--brand-electric),
    var(--brand-royal)
  );
}
.project-list-section .section-heading {
  flex-wrap: wrap;
  gap: 10px;
}
.client-card strong::before {
  content: "◆ ";
  color: var(--brand-sky);
}
.timeline {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(74, 168, 255, 0.35);
  display: grid;
  gap: 16px;
}
.timeline-item {
  position: relative;
  display: grid;
  gap: 3px;
  animation: order-in 0.5s ease-out both;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-sky);
  box-shadow: 0 0 12px rgba(74, 168, 255, 0.8);
}
.timeline-item.kind-backup::before {
  background: #6ee7a8;
}
.timeline-item.kind-board::before {
  background: var(--brand-electric);
}
.timeline-item time {
  font-size: 10px;
  color: #7f99bb;
}
.timeline-item strong {
  font-size: 13px;
  color: #fff;
}
.timeline-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.timeline-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.timeline-task {
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  background: rgba(74, 168, 255, 0.12);
  border: 1px solid rgba(74, 168, 255, 0.25);
}
.timeline-task b {
  flex: none;
  white-space: nowrap;
}
.timeline-task span {
  color: #c6dcf5;
  overflow-wrap: anywhere;
}
.timeline-task.done {
  border-color: rgba(110, 231, 168, 0.5);
}
.timeline-task.done b {
  color: #6ee7a8;
}
.timeline-task.blocked b {
  color: #f2bf6d;
}
.timeline-task.running b {
  color: var(--brand-sky);
}
@media (prefers-reduced-motion: reduce) {
  .state-emote,
  .station .human-avatar,
  .timeline-item,
  .toast,
  .meeting-banner {
    animation: none !important;
  }
}
body.motion-paused .state-emote,
body.motion-paused .station .human-avatar {
  animation: none !important;
}
/* Resultados reais */
.results-block {
  display: grid;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 26, 58, 0.55);
  border: 1px solid var(--glass-line);
}
.results-head {
  display: grid;
  gap: 2px;
}
.results-head strong {
  font-size: 14px;
  color: #fff;
}
.results-head span,
.results-label {
  font-size: 10px;
  color: #7f99bb;
  letter-spacing: 0.5px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.result-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(
    150deg,
    rgba(14, 38, 80, 0.7),
    rgba(4, 16, 40, 0.8)
  );
  border: 1px solid rgba(74, 168, 255, 0.22);
}
.result-card small {
  font-size: 10px;
  color: #9fb6d4;
}
.result-card strong {
  font-family: var(--tech);
  font-size: 20px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(74, 168, 255, 0.45);
}
.result-change {
  font-size: 10px;
  font-weight: 600;
}
.result-change.up {
  color: #6ee7a8;
}
.result-change.down {
  color: #f2bf6d;
}
.spark {
  width: 100%;
  height: 28px;
}
.spark-line {
  fill: none;
  stroke: var(--brand-sky);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.spark-area {
  fill: rgba(74, 168, 255, 0.14);
}
.spark-dot {
  fill: #fff;
}
.results-top {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.results-top li {
  display: grid;
  gap: 2px;
}
.results-top a {
  color: var(--brand-ice);
}
.results-top span {
  color: var(--muted);
  font-size: 11px;
}
