:root {
  --nabi-red: #e1002a;
  /* ajuste para o tom da sua logo */
  --nabi-orange: #ff6f00;
  --nabi-ink: #0e0e10;
  /* fundo grafite/preto */
  --nabi-ink-2: #151518;
  --nabi-text: #f6f6f6;

  --wh-green: #25D366;
  --bubble-bg: #fff;
  --bubble-fg: #0F172A;
  /* slate-900 */
  --bubble-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}


/* Fundo geral dark e contraste */
body,
#wrapper {
  background: var(--nabi-ink);
  color: var(--nabi-text);
}

/* Links & call to action */
a,
.button,
.actions .button.primary {

  color: #fff;
}

.button.primary {
  background: var(--nabi-orange);
}

.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Headings fortes */
h1,
h2,
h3 {
  letter-spacing: .2px;
}

h1 {
  font-weight: 800;
}

/* Faixas/sections do Hyperspace */
.wrapper {
  background: var(--nabi-ink);
}

.wrapper.alt,
.spotlights>section {
  background: var(--nabi-ink-2);
}

/* Glow sutil “neon” no CTA */
.button.primary.glow {
  box-shadow: 0 0 22px rgba(225, 0, 42, .35);
}

/*  minimalista */
#sidebar {
  background: linear-gradient(180deg, #0b0b0c, #111);
}

#sidebar .inner a {
  color: #ddd;
}

#sidebar .inner a:hover {
  color: #fff;
}

/* Hero com logo grande */
.hero-logo {
  max-width: 200px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 16px rgba(225, 0, 42, .35));
}

/* Cards de serviço */
.feature-card {
  background: #161618;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 20px;
  transition: .18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 0, 42, .4);
}

/* Botão flutuante de WhatsApp */
.whats-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--nabi-orange);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.whats-fab:hover {
  transform: translateY(-1px);
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto
}

/* ===== Serviços — estilo IA ===== */
.services {
  position: relative;
  overflow: clip;
  padding-block: 48px;
}

.services::before {
  /* fundo neural sutil (combina com o hero) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(255, 106, 0, .10), transparent 60%),
    radial-gradient(700px 360px at -10% 100%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(transparent 96%, rgba(255, 255, 255, .04) 96%) 0 0/100% 22px,
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, .04) 96%) 0 0/22px 100%;
  animation: ai-grid 22s linear infinite;
  opacity: .7;
}

@keyframes ai-grid {
  to {
    background-position: 0 0, 0 0, 0 22px, 22px 0;
  }
}

.services .header {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.services .header p {
  color: #b8b8be;
  margin: 0;
}

/* grid */
.services-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width:1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* card */
.service {
  position: relative;
  background: #141418;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 18px 16px 16px 16px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 180px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.service:hover {
  border-color: #2a2a2f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 106, 0, .15) inset;
  transform: translateY(-1px);
}

/* ícone em badge */
.service .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid #222;
}

.service .icon i {
  font-size: 32px;
  color: var(--accent);
}

/* títulos e textos */
.service h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: .2px;
}

.service p {
  margin: 0;
  color: #cfcfd3;
  line-height: 1.45;
  font-size: 15px;
}

/* chips (tecnologia/escopo) */
.service .meta {
  align-self: end;
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  color: #9aa0a6;
  font-size: .82rem;
}

.service .chip {
  border: 1px solid #2a2a2f;
  border-radius: 999px;
  padding: .25rem .55rem;
}

/* pequena faixa luminosa na borda superior */
.service::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: .0;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, .35), transparent);
  transition: opacity .2s;
}

.service:hover::after {
  opacity: 1;
}

/* --- Fluxo de Resultado --- */
.result-flow {
  padding-block: 48px;
}

.result-flow .header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.result-flow .header p {
  margin: 0;
  color: #b8b8be;
  font-size: .95rem;
}

.flow {
  --card-bg: #141418;
  --card-br: #222;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 960px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-br);
  border-radius: 18px;
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 160px;
}

.flow-step:hover {
  border-color: #2a2a2f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.flow-step .head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-step .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, .05);
  border: 1px solid #222;
  color: #ddd;
}

.flow-step .icon i {
  font-size: 26px;
  color: var(--accent);
}

.flow-step h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .2px;
}

.flow-step p {
  margin: 0;
  color: #cfcfd3;
  line-height: 1.45;
  font-size: .98rem;
}

.flow-step .meta {
  font-size: .82rem;
  color: #9aa0a6;
}

.arrow {
  display: grid;
  place-items: center;
}

.arrow i {
  font-size: 22px;
  color: #666;
  opacity: .8;
}

@media (max-width: 960px) {
  .arrow {
    transform: rotate(90deg);
  }
}

/* Bloco de resultado final */
.outcome {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .outcome {
    grid-template-columns: 1fr;
  }
}

.outcome .kpi {
  background: #141418;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 14px;
}

.outcome .kpi strong {
  display: block;
  font-size: 1rem;
}

.outcome .kpi small {
  color: #9aa0a6;
  display: block;
  margin-top: 2px;
}

/* ===== Timeline IA ===== */
.timeline {
  position: relative;
  overflow: clip;
  padding-block: 42px;
}

.timeline .header {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.timeline .header p {
  margin: 0;
  color: #b8b8be;
}

/* Faixa conectora (desktop: horizontal | mobile: vertical) */
.timeline-track {
  position: relative;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  height: 2px;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 106, 0, .5), transparent) 0 0/180px 2px,
    linear-gradient(90deg, #26262b, #303035, #26262b);
  animation: flowline 6s linear infinite;
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  opacity: .9;
}

@keyframes flowline {
  to {
    background-position: 180px 0, 0 0;
  }
}

/* Mobile: coluna única + linha vertical */
@media (max-width: 960px) {
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-track::before {
    left: 32px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    background:
      linear-gradient(transparent, rgba(255, 106, 0, .5), transparent) 0 0/2px 160px,
      linear-gradient(#26262b, #303035, #26262b);
    animation: flowlineY 6s linear infinite;
    mask: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  }
}

@keyframes flowlineY {
  to {
    background-position: 0 160px, 0 0;
  }
}

/* Step */
.tl-step {
  position: relative;
  background: #141418;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-height: 180px;
  z-index: 1;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease, border-color .2s ease, box-shadow .2s ease;
}

.tl-step.is-visible {
  transform: none;
  opacity: 1;
}

.tl-step:hover {
  border-color: #2a2a2f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 106, 0, .15) inset;
}

/* Cabeçalho do step */
.tl-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.tl-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid #222;
  position: relative;
  overflow: visible;
}

.tl-badge i {
  font-size: 26px;
  color: var(--accent);
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, .45);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(255, 106, 0, 0);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
    transform: scale(1);
  }
}

@media (max-width:960px) {
  .tl-step::before {
    left: 26px;
    top: 24px;
  }
}

/* Textos */
.tl-step h3 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: .2px;
}

.tl-step p {
  margin: 0;
  color: #cfcfd3;
  line-height: 1.45;
  font-size: 15px;
}

/* Chips */
.tl-data {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-chip {
  font-size: .8rem;
  color: #9aa0a6;
  border: 1px solid #2a2a2f;
  border-radius: 999px;
  padding: .25rem .55rem;
}

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {

  .timeline-track::before,
  .tl-badge::after {
    animation: none;
  }

  .tl-step {
    transform: none;
    opacity: 1;
  }
}


.wh-chat-cta {
  position: fixed;
  right: 0px;
  bottom: 22px;
  z-index: 50;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.wh-chat-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Avatar circular com selo */
.wh-avatar {
  display: inline-flex;
  position: relative;
  margin-right: 10px;
}

.wh-avatar__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.wh-avatar__badge {
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wh-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 211, 102, .4);
  font-size: 12px;
  line-height: 0;
  border: 2px solid #fff;
  /* anel branco como no exemplo */
}

/* Bolha de chat */
.wh-bubble {
  position: relative;
  background: var(--bubble-bg);
  color: var(--bubble-fg);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--bubble-shadow);
  display: inline-block;
  max-width: min(68vw, 340px);
}

/* Rabicho apontando para o avatar (esquerda) */
.wh-bubble::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--bubble-bg);
  transform: rotate(45deg);
  box-shadow: -1px 1px 0 rgba(0, 0, 0, .06);
}

/* Texto e link do nome (estilo do exemplo) */
.wh-bubble__text {
  font-size: 14.5px;
  line-height: 1.35;
}

.wh-bubble__link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}

.wh-bubble__link:hover {
  text-decoration: none;
}

.wh-chat-cta a {
  text-decoration: none;
  border: 0;
}

/* Hover/foco acessível no bloco todo */
.wh-chat-cta__link:focus-visible .wh-bubble,
.wh-chat-cta__link:hover .wh-bubble {
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .25), 0 8px 24px rgba(0, 0, 0, .16);
}

/* Responsivo */
@media (max-width: 380px) {
  .wh-bubble {
    max-width: 74vw;
  }
}

#form-feedback {
  margin-top: 12px;
  font-size: .95rem
}

#form-feedback.form-ok {
  color: #c8f7c5;
  background: #153e1f;
  padding: 10px;
  border-radius: 8px
}

#form-feedback.form-err {
  color: #ffd7d7;
  background: #3a1010;
  padding: 10px;
  border-radius: 8px
}

/* Animação de entrada e “piscar” sutil */
@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion:reduce) {
  .chat-bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Responsivo */
@media (max-width:480px) {
  .chat-cta {
    padding: 10px 14px 10px 52px;
    font-size: .9rem;
  }

  .chat-cta__avatar {
    width: 44px;
    height: 44px;
    left: -5px;
  }

  .chat-bubble {
    right: 10px;
    bottom: 78px;
    max-width: 76vw;
  }
}



/* ===== Cases (sutil + elegante) ===== */
.cases {
  position: relative;
  padding-block: 42px;
}

.cases .grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  /* pronto para mais cases futuramente */
  max-width: 1100px;
  margin: 0 auto;
}

.case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  background: #141418;
  border: 1px solid #222;
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .case {
    grid-template-columns: 1fr;
  }
}

/* imagem com overlay sutil */
.case .media {
  position: relative;
  overflow: hidden;
}

.case .media img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform .6s ease, filter .6s ease;
}

.case:hover .media img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.case .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .22), transparent 50%);
  opacity: .6;
  pointer-events: none;
  transition: opacity .3s ease;
}

.case:hover .media::after {
  opacity: .4;
}

/* conteúdo */
.case .body {
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.case h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: .2px;
}

.case p {
  margin: 0;
  color: #cfcfd3;
}

/* chips de resultado */
.case .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.case .chip {
  font-size: .82rem;
  color: #9aa0a6;
  border: 1px solid #2a2a2f;
  border-radius: 999px;
  padding: .25rem .55rem;
}

/* métrica(s) em destaque */
.case .kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.case .kpi {
  background: #15151a;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: .95rem;
}

.case .kpi small {
  display: block;
  color: #9aa0a6;
  margin-top: 2px;
}

/* CTA leve */
.case .actions {
  margin-top: 10px;
}

.case .button {
  padding: 0rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #2a2a2f;
}

.case .button:hover {
  border-color: #2a2a2f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

/* borda luminosa sutil ao pairar */
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, .22), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.case:hover::before {
  opacity: 1;
}

.contact-ai {
  position: relative;
  padding-block: 64px;
  background: radial-gradient(900px 600px at 80% 20%, rgba(255, 106, 0, .06), transparent),
    linear-gradient(#0f0f12, #0c0c10);
  text-align: center;
}

.contact-ai .inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-ai h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.contact-ai p {
  color: #b8b8be;
  margin-bottom: 26px;
}

.fields-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: .9rem;
  color: #ccc;
}

.field input,
.field select,
.field textarea {
  background: #141418;
  border: 1px solid #2a2a2f;
  color: #fff;
  border-radius: 10px;
  padding: .75rem .9rem;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 106, 0, .25);
  outline: none;
}

/* checkbox */
.field.lgpd {
  grid-column: 1 / -1;
  font-size: .85rem;
  color: #aaa;
}

.field.lgpd input {
  accent-color: var(--accent);
  margin-right: 6px;
}

/* buttons */
.form-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.form-actions .button {
  padding: 0rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #2a2a2f;
  text-decoration: none;
  font-weight: 600;
  min-width: 230px;
}

.form-actions .button.primary {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.form-actions .button.alt {
  background: #19191e;
  color: #ddd;
}

.form-actions .button.primary:hover {
  box-shadow: 0 0 22px rgba(255, 106, 0, .35);
}

/* feedback leve ao enviar */
#btn-send.sending {
  opacity: .7;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent) 0%, #ffaa55 50%, var(--accent) 100%);
  background-size: 200% 100%;
  animation: sendAnim 1.2s linear infinite;
}

@keyframes sendAnim {
  to {
    background-position: -200% 0;
  }
}

/* footer note */
.footer-note {
  margin-top: 36px;
  color: #888;
  font-size: .85rem;
}

.na-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 99999;
  animation: naFade .15s ease-out;
}

.na-alert {
  background: #15151a;
  color: #eaeaec;
  border: 1px solid #2a2a2f;
  border-radius: 14px;
  padding: 16px 18px;
  width: min(92vw, 360px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.na-alert__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.na-alert__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e22;
  display: grid;
  place-items: center;
  color: #22c55e;
  border: 1px solid #22c55e44;
}

.na-alert__msg {
  margin: 0;
}

.na-alert__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.na-alert__btn {
  border: 1px solid #2a2a2f;
  background: #1b1b20;
  color: #eaeaec;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.na-alert__btn:hover {
  background: #22222a;
}

@keyframes naFade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* responsivo */
@media (max-width:480px) {
  .chat-cta {
    padding: 10px 14px 10px 52px;
    font-size: .9rem;
  }

  .chat-cta__avatar {
    width: 44px;
    height: 44px;
    left: -5px;
  }

  #chatbot-panel {
    right: -6px;
    width: 94vw;
    max-height: 70vh;
  }
}