:root {
  --azul-950: #071224;
  --azul-900: #0b1d36;
  --azul-800: #12345c;
  --azul-700: #19549a;
  --azul-600: #236fd6;
  --azul-100: #e8f2ff;
  --texto: #132238;
  --muted: #5f7188;
  --linha: #d8e3f1;
  --fundo: #f5f8fc;
  --branco: #ffffff;
  --verde: #12a87f;
  --amarelo: #e9a21a;
  --vermelho: #d84a5d;
  --sombra: 0 18px 48px rgba(10, 31, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 18, 36, 0.78);
  color: #f8fbff;
  backdrop-filter: blur(14px);
}

.topbar.compacta {
  min-height: 58px;
  background: rgba(7, 18, 36, 0.94);
  box-shadow: 0 12px 32px rgba(7, 18, 36, 0.18);
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.marca span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #58a6ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #164a88 0%, #0e2b54 100%);
  color: #ffffff;
  font-size: 13px;
}

.marca strong {
  font-size: 14px;
}

.navegacao {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navegacao a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: #d8e8ff;
  font-size: 13px;
  font-weight: 700;
}

.navegacao a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.navegacao .link-app {
  border: 1px solid rgba(130, 181, 255, 0.28);
}

.navegacao .botao-nav {
  background: #ffffff;
  color: var(--azul-900);
}

.menu-mobile {
  width: 40px;
  height: 36px;
  display: none;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
}

.menu-mobile span {
  width: 18px;
  height: 2px;
  display: block;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--azul-950);
  color: #ffffff;
}

#heroGraph,
.hero-overlay {
  position: absolute;
  inset: 0;
}

#heroGraph {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 18, 36, 0.96) 0%, rgba(7, 18, 36, 0.84) 42%, rgba(7, 18, 36, 0.48) 100%),
    radial-gradient(circle at 78% 22%, rgba(35, 111, 214, 0.35), transparent 34%);
}

.hero-conteudo {
  position: relative;
  width: min(860px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9bd1ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.secao .eyebrow {
  background: #eef6ff;
  color: #19549a;
}

.hero h1 {
  margin: 20px 0 12px;
  max-width: 780px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #c7d8ec;
  font-size: 20px;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.botao,
.form-acesso button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.botao.primario,
.form-acesso button {
  background: var(--azul-600);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(35, 111, 214, 0.26);
}

.botao.secundario {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-metricas {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(980px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.hero-metricas div {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(169, 203, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-metricas strong,
.hero-metricas span {
  display: block;
}

.hero-metricas strong {
  font-size: 22px;
}

.hero-metricas span {
  color: #aac4e4;
  font-size: 13px;
}

.secao {
  padding: 82px 48px;
}

.secao-cabecalho {
  width: min(980px, 100%);
  margin: 0 auto 28px;
}

.secao-cabecalho h2 {
  max-width: 760px;
  margin: 12px 0 8px;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.secao-cabecalho p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grade-recursos,
.grade-planos,
.demo-layout,
.solicitar-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.grade-recursos article,
.grade-planos article,
.demo-painel,
.demo-passos article,
.contato-card,
.form-acesso {
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--branco);
  box-shadow: 0 10px 30px rgba(10, 31, 61, 0.06);
}

.grade-recursos article {
  min-height: 214px;
  padding: 22px;
}

.icone {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf6ff;
  color: var(--azul-700);
  font-size: 12px;
  font-weight: 900;
}

.grade-recursos h3,
.grade-planos h3,
.demo-passos strong,
.contato-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.grade-recursos p,
.grade-planos li,
.demo-passos p,
.contato-card p,
.contato-card span {
  color: var(--muted);
  font-size: 14px;
}

.secao-demonstracao,
.secao-solicitar {
  background: #ffffff;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.demo-painel {
  min-height: 480px;
  overflow: hidden;
}

.demo-topo {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--linha);
  background: #f8fbff;
}

.demo-topo span {
  color: var(--muted);
  font-size: 13px;
}

.demo-grafo {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(#e9f0f8 1px, transparent 1px),
    linear-gradient(90deg, #e9f0f8 1px, transparent 1px);
  background-size: 40px 40px;
}

.no {
  position: absolute;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--sombra);
  z-index: 2;
}

.pessoa { background: var(--azul-600); }
.empresa { background: var(--verde); }
.telefone { background: var(--amarelo); }
.veiculo { background: #7c3aed; }
.endereco { background: var(--vermelho); }

.no-a { left: 42%; top: 43%; }
.no-b { left: 22%; top: 22%; }
.no-c { left: 66%; top: 18%; }
.no-d { left: 68%; top: 62%; }
.no-e { left: 18%; top: 65%; }

.linha {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: #50677f;
  transform-origin: left center;
  opacity: 0.75;
  z-index: 1;
}

.l1 { width: 230px; left: 30%; top: 39%; transform: rotate(27deg); }
.l2 { width: 248px; left: 48%; top: 49%; transform: rotate(-33deg); }
.l3 { width: 214px; left: 48%; top: 56%; transform: rotate(28deg); }
.l4 { width: 260px; left: 28%; top: 68%; transform: rotate(-20deg); }

.demo-passos {
  display: grid;
  gap: 12px;
}

.demo-passos article {
  padding: 20px;
}

.demo-passos strong {
  display: block;
}

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

.grade-planos article {
  position: relative;
  padding: 24px;
}

.grade-planos .destaque {
  border-color: #7eb6ff;
  box-shadow: 0 18px 46px rgba(35, 111, 214, 0.15);
}

.selo {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--azul-700);
  font-size: 11px;
  font-weight: 900;
}

.plano-preco {
  margin: 0 0 14px;
  color: var(--azul-700);
  font-size: 24px;
  font-weight: 900;
}

.grade-planos ul {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.grade-planos li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--verde);
}

.botao.plano {
  width: 100%;
  border-color: #cbd9eb;
  background: #f8fbff;
  color: var(--azul-800);
}

.solicitar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

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

.form-acesso label {
  display: grid;
  gap: 6px;
  color: #29415d;
  font-size: 13px;
  font-weight: 800;
}

.form-acesso input,
.form-acesso select,
.form-acesso textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd9eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--texto);
  padding: 9px 11px;
}

.form-acesso textarea {
  resize: vertical;
}

.campo-largo,
.form-acesso button,
.form-retorno {
  grid-column: 1 / -1;
}

.form-retorno {
  min-height: 20px;
  margin: 0;
  color: var(--azul-700);
  font-size: 13px;
  font-weight: 700;
}

.contato-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.contato-card a {
  color: var(--azul-700);
  font-weight: 900;
}

.contato-card span {
  display: block;
}

.rodape {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 48px;
  background: var(--azul-950);
  color: #dbeaff;
}

.rodape strong,
.rodape span {
  display: block;
}

.rodape span {
  color: #8ea7c8;
  font-size: 13px;
}

.rodape a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    padding: 12px 22px;
  }

  .menu-mobile {
    display: grid;
  }

  .navegacao {
    position: fixed;
    top: 62px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(7, 18, 36, 0.98);
    box-shadow: var(--sombra);
  }

  .navegacao.aberto {
    display: grid;
  }

  .navegacao a {
    justify-content: center;
  }

  .hero {
    min-height: 680px;
  }

  .hero-conteudo {
    width: calc(100% - 44px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-metricas,
  .grade-recursos,
  .grade-planos,
  .demo-layout,
  .solicitar-layout {
    grid-template-columns: 1fr;
  }

  .secao {
    padding: 64px 22px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-metricas {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 44px);
    margin: 20px auto 0;
    transform: none;
  }

  .hero {
    align-items: end;
    padding: 92px 0 32px;
  }

  .secao-cabecalho h2 {
    font-size: 30px;
  }

  .form-acesso,
  .usuario-admin-dados {
    grid-template-columns: 1fr;
  }

  .rodape {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
  }
}
