:root {
  --roxo: #660099;
  --magenta: #e6007e;
  --ciano: #00a7c8;
  --verde: #9adf00;
  --fundo: #08060f;
  --superficie: rgba(255, 255, 255, 0.055);
  --linha: rgba(255, 255, 255, 0.12);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(102, 0, 153, 0.42), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(0, 167, 200, 0.22), transparent 28%),
    var(--fundo);
  color: white;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ciano);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(230, 0, 126, 0.24);
}

.shell {
  display: grid;
  height: 100vh;
  min-height: 780px;
  grid-template-rows: auto 1fr auto;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--linha);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.marca {
  display: flex;
  align-items: center;
  gap: 16px;
}

.marca img {
  width: 54px;
  height: 54px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--ciano);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.04;
}

.chips {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.chip {
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.055);
  white-space: nowrap;
}

.chip.ok {
  border-color: rgba(154, 223, 0, 0.34);
  background: rgba(154, 223, 0, 0.1);
  color: var(--verde);
}

.corpo {
  display: grid;
  min-height: 0;
  grid-template-columns: 260px 1fr 330px;
}

.lateral,
.direita {
  min-height: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.lateral {
  border-right: 1px solid var(--linha);
}

.direita {
  border-left: 1px solid var(--linha);
  overflow: hidden;
}

.secao-label {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.acoes {
  display: grid;
  gap: 10px;
}

.acao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  width: 100%;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
}

.acao.ativa,
.acao:hover {
  border-color: rgba(0, 167, 200, 0.72);
  background: rgba(0, 167, 200, 0.15);
  color: white;
}

.tecla {
  border: 1px solid var(--linha);
  border-radius: 6px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.botao-demo {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--magenta);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

main {
  min-width: 0;
  overflow: hidden;
  padding: 20px;
}

.hero {
  border: 1px solid rgba(0, 167, 200, 0.3);
  border-radius: 8px;
  padding: 26px;
  background:
    radial-gradient(circle at 18% 28%, rgba(0, 167, 200, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(102, 0, 153, 0.62), rgba(8, 6, 15, 0.86));
}

.hero h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.02;
}

.grid-dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 18px;
}

.metricas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card,
.painel {
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--superficie);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.card {
  padding: 18px;
}

.card-topo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card small {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.valor {
  margin-top: 8px;
  font-size: 44px;
  font-weight: 800;
}

.valor span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 20px;
}

.variacao {
  align-self: start;
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--verde);
}

.sparkline {
  width: 100%;
  height: 52px;
  margin-top: 10px;
}

.capacidades {
  display: grid;
  gap: 14px;
}

.capacidade {
  padding: 18px;
}

.capacidade h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.capacidade p,
.card p,
.painel p {
  color: rgba(255, 255, 255, 0.68);
}

.painel {
  padding: 16px;
  margin-bottom: 14px;
}

.eventos {
  max-height: 36vh;
  overflow: auto;
}

.evento {
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.evento strong {
  display: block;
  margin-bottom: 6px;
}

.tela-mapa,
.tela-arquitetura {
  height: 100%;
}

.mapa-simulado {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 48% 45%, rgba(0, 167, 200, 0.2), transparent 34%),
    #10131f;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.mapa-simulado::before {
  position: absolute;
  inset: 15% 8% 18% 8%;
  content: "";
  border: 3px solid rgba(0, 167, 200, 0.32);
  border-radius: 52% 48% 44% 56%;
  transform: rotate(-8deg);
}

.ponto {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
}

.ponto::before {
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.ponto::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: pulso 1.8s ease-out infinite;
}

.ponto.ok {
  color: var(--verde);
}

.ponto.alerta {
  color: #ffd166;
}

.ponto.critico {
  color: #ff4d6d;
}

.detalhe-mapa {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 330px;
  border: 1px solid rgba(230, 0, 126, 0.32);
  border-radius: 8px;
  padding: 16px;
  background: rgba(22, 0, 33, 0.82);
  backdrop-filter: blur(12px);
}

.titulo-tela {
  margin-bottom: 18px;
}

.titulo-tela h2 {
  margin: 4px 0 0;
  font-size: 42px;
}

.diagrama {
  min-height: 610px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 50%, rgba(230, 0, 126, 0.14), transparent 30%),
    radial-gradient(circle at 75% 22%, rgba(0, 167, 200, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.linha-fluxo {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 520;
  animation: fluxo 3.2s linear infinite;
}

.no-diagrama {
  fill: rgba(0, 0, 0, 0.55);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
}

.texto-no {
  fill: white;
  font-size: 18px;
  font-weight: 800;
}

.sub-no {
  fill: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.breadcrumb span {
  border: 1px solid rgba(0, 167, 200, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(0, 167, 200, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

.jornada-grid,
.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jornada-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 16%, rgba(230, 0, 126, 0.2), transparent 28%),
    rgba(255, 255, 255, 0.05);
}

.jornada-card h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.numero-jornada {
  position: absolute;
  right: 18px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 86px;
  font-weight: 900;
  line-height: 1;
}

.narrativa {
  margin-top: 18px;
}

.lista-config {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.linha-config {
  display: grid;
  grid-template-columns: auto 120px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.linha-config small {
  color: rgba(255, 255, 255, 0.56);
}

.campo-config {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.campo-config input {
  min-height: 46px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
  color: white;
}

.aviso-config {
  margin-top: 18px;
  color: #ffd166;
}

.caso {
  overflow: hidden;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--superficie);
  color: white;
  cursor: pointer;
  text-align: left;
}

.caso:hover {
  border-color: rgba(0, 167, 200, 0.55);
}

.caso img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.caso-conteudo {
  padding: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.modal-card {
  max-width: 920px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 24px;
  background: #171126;
}

.modal-topo {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.fechar {
  width: 46px;
  height: 46px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.link-plataforma {
  display: inline-block;
  margin-top: 20px;
  border-radius: 8px;
  padding: 13px 18px;
  background: var(--magenta);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-top: 1px solid var(--linha);
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.idle {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  background: #08060f;
}

.idle.ativa {
  display: grid;
}

.idle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.idle-conteudo {
  position: relative;
  max-width: 1120px;
  padding: 40px;
  text-align: center;
}

.idle h2 {
  margin: 20px 0;
  font-size: clamp(58px, 7vw, 112px);
  line-height: 0.96;
}

.fallback {
  padding: 40px;
}

@keyframes pulso {
  from {
    transform: scale(0.72);
    opacity: 0.9;
  }
  to {
    transform: scale(1.85);
    opacity: 0;
  }
}

@keyframes fluxo {
  from {
    stroke-dashoffset: 520;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .shell {
    height: auto;
  }

  .corpo {
    grid-template-columns: 1fr;
  }

  .lateral,
  .direita {
    border: 0;
  }

  .grid-dashboard,
  .metricas,
  .casos-grid,
  .modal-grid,
  .jornada-grid,
  .config-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
