:root {
  --marinho: #0b1f3a;
  --azul: #1b3d8f;
  --azul2: #2454b8;
  --azul-claro: #4a7fd6;
  --azul-mais-claro: #6fa0e8;
  --bg: #f5f8fd;
  --tinta: #0f172a;
  --cinza: #5b6b8c;
  --linha: #dce5f5;
  --verde: #1a7f4b;
  --branco: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--tinta);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.disp {
  font-family: "Space Grotesk", sans-serif;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn-primario {
  background: var(--azul);
  color: #fff;
}
.btn-primario:hover {
  background: var(--marinho);
  transform: translateY(-1px);
}
.btn-fantasma {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-fantasma:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-fantasma-escuro {
  border-color: var(--linha);
  color: var(--azul);
}
.btn-fantasma-escuro:hover {
  border-color: var(--azul);
  background: #eef3fc;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul-claro);
}

/* ── Header ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 31, 58, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark svg {
  width: 34px;
  height: 34px;
}
.logo-mark span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  letter-spacing: 0.02em;
}
nav {
  display: flex;
  gap: 30px;
}
nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  font-weight: 500;
  transition: 0.15s;
}
nav a:hover {
  color: #fff;
}
.nav-cta {
  display: flex;
  gap: 12px;
}
.nav-mobile-toggle,
.menu-fechar {
  display: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    120% 140% at 15% -10%,
    #14295a 0%,
    var(--marinho) 46%,
    #081428 100%
  );
  padding: 168px 0 108px;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(
      1px 1px at 20% 30%,
      rgba(255, 255, 255, 0.35) 0,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 70% 20%,
      rgba(255, 255, 255, 0.25) 0,
      transparent 100%
    ),
    radial-gradient(
      1.5px 1.5px at 40% 70%,
      rgba(255, 255, 255, 0.2) 0,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 90% 60%,
      rgba(255, 255, 255, 0.3) 0,
      transparent 100%
    ),
    radial-gradient(
      1.5px 1.5px at 55% 45%,
      rgba(255, 255, 255, 0.22) 0,
      transparent 100%
    );
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--azul-mais-claro);
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.hero-provas {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-provas div {
}
.hero-provas .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.hero-provas .l {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* Painel animado — a peça de assinatura */
.painel-mock {
  position: relative;
  background: linear-gradient(160deg, #0e2348, #0a1b38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}
.painel-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.painel-mock-top .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 3px rgba(26, 127, 71, 0.25);
  margin-right: 6px;
}
.painel-mock-top .status {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "IBM Plex Mono", monospace;
}
.painel-mock-top .unidade {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}
.painel-senha-lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 6px;
}
.flap-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}
.flap {
  position: relative;
  width: 52px;
  height: 74px;
  background: #0a1830;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.flap span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 38px;
  color: #fff;
}
.flap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
}
.painel-paciente {
  text-align: center;
  margin-bottom: 20px;
}
.painel-paciente .nome {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.painel-paciente .local {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}
.painel-onda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
  margin-bottom: 6px;
}
.painel-onda i {
  width: 3px;
  border-radius: 2px;
  background: var(--azul-mais-claro);
  display: block;
  animation: onda 1.1s ease-in-out infinite;
}
.painel-onda i:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}
.painel-onda i:nth-child(2) {
  height: 16px;
  animation-delay: 0.1s;
}
.painel-onda i:nth-child(3) {
  height: 22px;
  animation-delay: 0.2s;
}
.painel-onda i:nth-child(4) {
  height: 14px;
  animation-delay: 0.3s;
}
.painel-onda i:nth-child(5) {
  height: 20px;
  animation-delay: 0.4s;
}
.painel-onda i:nth-child(6) {
  height: 9px;
  animation-delay: 0.5s;
}
.painel-onda i:nth-child(7) {
  height: 17px;
  animation-delay: 0.6s;
}
@keyframes onda {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
.painel-fila {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.painel-fila .item {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.painel-fila .item b {
  color: rgba(255, 255, 255, 0.85);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

/* ── Seções genéricas ───────────────────────────────────── */
section {
  padding: 104px 0;
}
.head-section {
  max-width: 640px;
  margin-bottom: 56px;
}
.head-section h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 12px 0 14px;
  color: var(--marinho);
}
.head-section p {
  font-size: 16.5px;
  color: var(--cinza);
}
.head-section.centro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Como funciona */
.fluxo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.fluxo::before {
  content: "";
  position: absolute;
  top: 29px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--linha) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}
.fluxo-item {
  position: relative;
  z-index: 1;
  padding: 0 22px;
  text-align: left;
}
.fluxo-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 19px;
  color: var(--azul);
  margin-bottom: 20px;
}
.fluxo-item h3 {
  font-size: 18px;
  margin-bottom: 9px;
  color: var(--marinho);
}
.fluxo-item p {
  font-size: 14.5px;
  color: var(--cinza);
}

/* Funcionalidades */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
  border-radius: 18px;
  overflow: hidden;
}
.feat {
  background: #fff;
  padding: 32px 28px;
}
.feat .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eef3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--azul);
}
.feat h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--marinho);
}
.feat p {
  font-size: 14px;
  color: var(--cinza);
}

/* Mockup admin */
.mockup-wrap {
  background: linear-gradient(180deg, #eef3fc, transparent);
  border-radius: 24px;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
}
.browser {
  width: 100%;
  max-width: 920px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(11, 31, 58, 0.35);
  border: 1px solid var(--linha);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #f1f5fc;
  border-bottom: 1px solid var(--linha);
}
.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7e0f2;
}
.browser-body {
  display: flex;
}
.b-side {
  width: 190px;
  background: var(--marinho);
  padding: 18px 14px;
  flex-shrink: 0;
}
.b-side .blogo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 4px;
}
.b-side .blogo svg {
  width: 22px;
  height: 22px;
}
.b-side .blogo span {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
}
.b-side .bi {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 10px;
}
.b-side .bi.on {
  background: var(--azul-claro);
  width: 70%;
}
.b-side .bi:nth-child(3) {
  width: 60%;
}
.b-side .bi:nth-child(5) {
  width: 80%;
}
.b-side .bi:nth-child(6) {
  width: 50%;
}
.b-side .bi:nth-child(7) {
  width: 65%;
}
.b-main {
  flex: 1;
  padding: 22px 26px;
}
.b-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.b-card {
  background: #f7f9fd;
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 12px 14px;
}
.b-card .v {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 19px;
  color: var(--marinho);
}
.b-card .l {
  font-size: 10.5px;
  color: var(--cinza);
  margin-top: 3px;
}
.b-table {
  border: 1px solid var(--linha);
  border-radius: 10px;
  overflow: hidden;
}
.b-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 0.8fr;
  gap: 10px;
  padding: 10px 14px;
  font-size: 11.5px;
  border-bottom: 1px solid var(--linha);
  align-items: center;
}
.b-row:last-child {
  border-bottom: none;
}
.b-row.head {
  background: #f7f9fd;
  color: var(--cinza);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.b-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.b-tag.verde {
  background: #e6f4ed;
  color: var(--verde);
}
.b-tag.azul {
  background: #eaf1fc;
  color: var(--azul2);
}

/* Faixa estatísticas */
.faixa {
  background: var(--marinho);
  color: #fff;
  padding: 64px 0;
}
.faixa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.faixa-grid .n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--azul-mais-claro);
}
.faixa-grid .l {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

/* CTA final */
.cta {
  background: linear-gradient(135deg, var(--azul) 0%, var(--marinho) 100%);
  border-radius: 26px;
  padding: 64px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
}
.cta h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: 10px;
  max-width: 480px;
}
.cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
  font-size: 15.5px;
}
.cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer {
  background: #fff;
  border-top: 1px solid var(--linha);
  padding: 48px 0 30px;
}
.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--marinho);
}
.footer-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-links div h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cinza);
  margin-bottom: 12px;
}
.footer-links div a {
  display: block;
  font-size: 14px;
  color: var(--marinho);
  margin-bottom: 9px;
}
.footer-links div a:hover {
  color: var(--azul);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--linha);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--cinza);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .fluxo {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .fluxo::before {
    display: none;
  }
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .faixa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
  .b-side {
    display: none;
  }
  .cta {
    flex-direction: column;
    text-align: left;
    padding: 44px 30px;
  }
  nav {
    display: none;
  }
  .nav-cta .btn-fantasma {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 140px 0 70px;
  }
  section {
    padding: 72px 0;
  }
  .faixa-grid {
    grid-template-columns: 1fr 1fr;
  }
  .b-cards {
    grid-template-columns: 1fr 1fr;
  }
}
