/* ============================================
   NYXCLOUD — animacoes.css
   Movimento e interações da landing (index).
   Usa apenas transform, opacity e clip-path.
============================================ */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ============================================
   BASE: TRANSIÇÕES NOMEADAS (substitui "all")
============================================ */

.solution-card,
.feature-item,
.pricing-card,
.pillar,
.kpi-card,
.contact-form,
.testimonial-card {
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease;
}

.btn {
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease,
    transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

/* Hover com movimento apenas em dispositivos com mouse */
@media (hover: none) {
  .solution-card:hover,
  .feature-item:hover,
  .pricing-card:hover,
  .pillar:hover,
  .kpi-card:hover {
    transform: none;
  }
}

/* ============================================
   SCROLL REVEAL COM ESCALONAMENTO
============================================ */

@keyframes nyxReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nyxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal.active {
  animation: nyxReveal 700ms var(--ease-out) var(--reveal-delay, 0ms) backwards;
}

/* ============================================
   BARRA DE PROGRESSO E CABEÇALHO
============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #713fa9;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  pointer-events: none;
}

.header {
  transition: box-shadow 250ms ease;
}

.header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.nav a {
  transition: color 200ms ease;
}

.nav a::after {
  transition: transform 300ms var(--ease-out);
  transform-origin: left center;
}

.nav a.is-current {
  color: var(--white);
}

.nav a.is-current::after {
  transform: scaleX(1);
}

/* ============================================
   RECURSOS: LINHA QUE SE DESENHA NO HOVER
============================================ */

.feature-item {
  position: relative;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #713fa9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .feature-item:hover::before {
    transform: scaleX(1);
  }
}

/* ============================================
   PLATAFORMA: PAINEL ILUSTRATIVO
   Cores espelham o painel real (painel-demo).
============================================ */

.nyx-hint {
  margin-top: 24px;
  margin-bottom: 0 !important;
  font-size: 0.82rem !important;
  color: var(--gray-400) !important;
}

@media (min-width: 1025px) {
  #dashboard .dash-preview-section {
    grid-template-columns: 0.85fr 1.25fr;
    gap: 56px;
  }
}

.dash-preview-ui {
  position: relative;
  perspective: 1400px;
}

.dash-preview-ui::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(113, 63, 169, 0.28), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.nyx-mock {
  --n-night: #080d16;
  --n-panel: #101b2b;
  --n-panel2: #142235;
  --n-line: rgba(164, 184, 211, 0.13);
  --n-text: #f5f7fb;
  --n-dim: #95a5bb;
  --n-faint: #63738a;
  --n-violet: #713fa9;
  --n-violet2: #a880da;

  container-type: inline-size;
  position: relative;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--n-line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(113, 63, 169, 0.24), transparent 55%),
    var(--n-night);
  color: var(--n-text);
  font-size: 12px;
  line-height: 1.45;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px -12px rgba(8, 13, 22, 0.35),
    0 8px 16px -8px rgba(8, 13, 22, 0.2);
  transform-style: preserve-3d;
}

/* Todas as visões ocupam a mesma célula: a altura não pula ao trocar de aba */
.nyx-views {
  display: grid;
}

.nyx-view {
  grid-area: 1 / 1;
  min-width: 0;
}

.nyx-view:not(.is-active) {
  visibility: hidden;
}

.nyx-mock button {
  font: inherit;
  cursor: pointer;
}

/* Topo */
.nyx-mock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.nyx-crumb {
  flex: 1;
  color: var(--n-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nyx-crumb span {
  margin: 0 4px;
  color: var(--n-faint);
}

.nyx-crumb strong {
  color: var(--n-text);
}

.nyx-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  color: #5fd68a;
  font-weight: 600;
  white-space: nowrap;
}

.nyx-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--n-violet);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

/* Abas */
.nyx-tabs {
  position: relative;
  display: flex;
  gap: 2px;
  align-self: flex-start;
  width: fit-content;
  padding: 3px;
  margin-bottom: 10px;
  border: 1px solid var(--n-line);
  border-radius: 11px;
  background: var(--n-panel);
}

.nyx-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--n-dim);
  font-weight: 600;
  transition: color 250ms ease;
}

.nyx-tab.is-active {
  color: #fff;
}

.nyx-tab:focus-visible {
  outline: 2px solid var(--n-violet2);
  outline-offset: 2px;
}

.nyx-tab-indicator {
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  background: var(--n-violet);
  clip-path: inset(0 100% 0 0 round 8px);
  transition: clip-path 250ms var(--ease-in-out);
}

.nyx-badge {
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c9364e;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* Troca de visão */
@keyframes nyxViewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nyx-view.is-entering {
  animation: nyxViewIn 260ms var(--ease-out);
}

/* Cartão de título */
.nyx-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--n-panel2), var(--n-panel));
}

.nyx-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n-dim);
}

.nyx-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-live 2s ease infinite;
}

.nyx-hero-card h4 {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nyx-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--n-violet);
  color: #fff;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(113, 63, 169, 0.45);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}

.nyx-refresh:active {
  transform: scale(0.97);
}

.nyx-refresh[disabled] {
  opacity: 0.75;
  cursor: progress;
}

@keyframes nyxSpin {
  to { transform: rotate(360deg); }
}

.nyx-refresh.is-loading svg,
.nyx-updated.is-loading svg {
  animation: nyxSpin 700ms var(--ease-in-out);
}

/* Faixa de status */
.nyx-status {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.05);
}

.nyx-status-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nyx-status-text strong {
  display: block;
  font-size: 13px;
}

.nyx-status-text span:not(.nyx-shield) {
  color: var(--n-dim);
  font-size: 11px;
}

.nyx-shield {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(22, 163, 74, 0.12);
  color: #5fd68a;
}

.nyx-minis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nyx-mini {
  padding: 6px 10px;
  border: 1px solid var(--n-line);
  border-radius: 10px;
  background: var(--n-panel);
}

.nyx-mini-accent {
  border-color: rgba(24, 155, 155, 0.5);
}

.nyx-mini span,
.nyx-kpi span,
.nyx-chart-head span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-dim);
}

.nyx-mini strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* KPIs */
.nyx-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.nyx-kpi {
  padding: 8px 10px;
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--n-panel2), var(--n-panel));
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}

.nyx-kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.nyx-tag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nyx-tag-violet { background: rgba(113, 63, 169, 0.2); color: #c4a3ee; }
.nyx-tag-blue   { background: rgba(50, 120, 184, 0.2); color: #8cc0ee; }
.nyx-tag-amber  { background: rgba(192, 124, 11, 0.2); color: #f0b54a; }
.nyx-tag-teal   { background: rgba(24, 155, 155, 0.2); color: #5fd0d0; }

/* Gráfico */
.nyx-chart {
  padding: 10px 12px;
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: var(--n-panel);
}

.nyx-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nyx-chart-head strong {
  font-size: 13px;
}

.nyx-chart-head em {
  font-style: normal;
  font-size: 10px;
  color: var(--n-faint);
}

.nyx-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 58px;
}

.nyx-bars i {
  position: relative;
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, rgba(113, 63, 169, 0.45), var(--n-violet2));
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 700ms var(--ease-out), opacity 200ms ease;
  transition-delay: var(--d, 0ms);
}

.nyx-bars i:last-child {
  background: linear-gradient(to top, rgba(24, 155, 155, 0.5), #5fd0d0);
}

.nyx-bars.is-in i {
  transform: scaleY(1);
}

.nyx-bars i::after {
  content: attr(data-v);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  padding: 2px 5px;
  border-radius: 5px;
  background: #fff;
  color: var(--n-night);
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
  pointer-events: none;
}

/* Tabela de clientes */
.nyx-table {
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: var(--n-panel);
  overflow: hidden;
}

.nyx-row {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.6fr 1fr 0.8fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--n-line);
  transition: background-color 150ms ease;
}

.nyx-row:last-child {
  border-bottom: 0;
}

.nyx-row-head {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-faint);
}

.nyx-row > span {
  color: var(--n-dim);
  font-variant-numeric: tabular-nums;
}

.nyx-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.nyx-spark i {
  width: 5px;
  border-radius: 2px;
  background: var(--n-violet2);
  opacity: 0.85;
}

.nyx-spark i:nth-child(1) { height: calc(var(--a) * 100%); }
.nyx-spark i:nth-child(2) { height: calc(var(--b) * 100%); }
.nyx-spark i:nth-child(3) { height: calc(var(--c) * 100%); }
.nyx-spark i:nth-child(4) { height: calc(var(--d) * 100%); }
.nyx-spark i:nth-child(5) { height: calc(var(--e) * 100%); }
.nyx-spark i:nth-child(6) { height: calc(var(--f) * 100%); }
.nyx-spark i:nth-child(7) { height: calc(var(--g) * 100%); }

.nyx-state {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.nyx-state.ok   { background: rgba(22, 163, 74, 0.15); color: #5fd68a; }
.nyx-state.warn { background: rgba(192, 124, 11, 0.18); color: #f0b54a; }
.nyx-state.fail { background: rgba(201, 54, 78, 0.18); color: #ff8197; }

/* Alertas */
.nyx-alerts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nyx-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--n-line);
  border-radius: 12px;
  background: var(--n-panel);
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}

.nyx-alert > i {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.nyx-alert.fail > i { background: #c9364e; }
.nyx-alert.warn > i { background: #c07c0b; }

.nyx-alert.fail > i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #c9364e;
  animation: nyxRing 2s var(--ease-out) infinite;
}

@keyframes nyxRing {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 0;   transform: scale(3); }
}

.nyx-alert div {
  flex: 1;
  min-width: 0;
}

.nyx-alert strong {
  display: block;
  font-size: 12.5px;
}

.nyx-alert span {
  color: var(--n-dim);
  font-size: 11px;
}

.nyx-alert time {
  color: var(--n-faint);
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  white-space: nowrap;
}

/* Entrada escalonada das linhas ao trocar de aba */
@keyframes nyxRowIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nyx-view.is-entering .nyx-row,
.nyx-view.is-entering .nyx-alert {
  animation: nyxRowIn 320ms var(--ease-out) backwards;
}

.nyx-view.is-entering > * > :nth-child(2) { animation-delay: 40ms; }
.nyx-view.is-entering > * > :nth-child(3) { animation-delay: 80ms; }
.nyx-view.is-entering > * > :nth-child(4) { animation-delay: 120ms; }
.nyx-view.is-entering > * > :nth-child(5) { animation-delay: 160ms; }
.nyx-view.is-entering > * > :nth-child(6) { animation-delay: 200ms; }
.nyx-view.is-entering > * > :nth-child(7) { animation-delay: 240ms; }

.nyx-mock-note {
  margin-top: 8px;
  text-align: right;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-faint);
}

@media (hover: hover) and (pointer: fine) {
  .nyx-tab:hover:not(.is-active) {
    color: var(--n-text);
  }

  .nyx-kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 128, 218, 0.4);
  }

  .nyx-bars i:hover {
    opacity: 0.85;
  }

  .nyx-bars i:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .nyx-row:not(.nyx-row-head):hover {
    background: var(--n-panel2);
  }

  .nyx-alert:hover {
    transform: translateX(3px);
    border-color: rgba(168, 128, 218, 0.35);
  }
}

/* Painel largo: status e indicadores na mesma linha */
@container (min-width: 600px) {
  .nyx-status {
    grid-template-columns: 0.9fr 1.5fr;
  }
}

/* Painel em larguras menores */
@container (max-width: 560px) {
  .nyx-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .nyx-row {
    grid-template-columns: 1.3fr 0.5fr 1fr 0.9fr;
  }

  .nyx-row > :nth-child(3) {
    display: none;
  }
}

@container (max-width: 420px) {
  .nyx-crumb {
    display: none;
  }

  .nyx-mock-top {
    justify-content: space-between;
  }

  .nyx-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nyx-hero-card h4 {
    font-size: 15px;
  }

  .nyx-tab {
    padding: 7px 9px;
  }

  .nyx-row {
    grid-template-columns: 1.2fr 0.5fr 0.9fr;
  }

  .nyx-row > :nth-child(4) {
    display: none;
  }

  .nyx-alert time {
    display: none;
  }
}


/* ============================================
   REVEAL: DIREÇÕES VARIADAS
============================================ */

@keyframes nyxRevealLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes nyxRevealRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes nyxRevealZoom {
  from { opacity: 0; transform: translateY(24px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nyxRevealTilt {
  from { opacity: 0; transform: perspective(900px) rotateX(14deg) translateY(32px); }
  to   { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }
}

.reveal.active[data-anim="left"]  { animation-name: nyxRevealLeft; }
.reveal.active[data-anim="right"] { animation-name: nyxRevealRight; }
.reveal.active[data-anim="zoom"]  { animation-name: nyxRevealZoom; }
.reveal.active[data-anim="tilt"]  { animation-name: nyxRevealTilt; animation-duration: 850ms; }
.reveal.active[data-anim="fade"]  { animation-name: nyxFade; }

/* Pilares, contatos e campos do formulário entram um a um */
.about-pillars.active .pillar {
  animation: nyxRevealRight 700ms var(--ease-out) backwards;
}

.about-pillars.active .pillar:nth-child(2) { animation-delay: 90ms; }
.about-pillars.active .pillar:nth-child(3) { animation-delay: 180ms; }
.about-pillars.active .pillar:nth-child(4) { animation-delay: 270ms; }

.contact-form.active > * {
  animation: nyxReveal 600ms var(--ease-out) backwards;
}

.contact-form.active > :nth-child(2) { animation-delay: 70ms; }
.contact-form.active > :nth-child(3) { animation-delay: 140ms; }
.contact-form.active > :nth-child(4) { animation-delay: 210ms; }
.contact-form.active > :nth-child(5) { animation-delay: 280ms; }

.contact-info.active .contact-detail-item {
  animation: nyxRevealLeft 600ms var(--ease-out) backwards;
}

.contact-info.active .contact-detail-item:nth-child(1) { animation-delay: 250ms; }
.contact-info.active .contact-detail-item:nth-child(2) { animation-delay: 330ms; }
.contact-info.active .contact-detail-item:nth-child(3) { animation-delay: 410ms; }

/* ============================================
   TÍTULOS PALAVRA POR PALAVRA
============================================ */

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 800ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 45ms + 120ms);
}

.active .split-word > span {
  transform: translateY(0);
}

.section-header.reveal.active {
  animation-name: nyxFade;
}

/* Traço que cresce antes do rótulo da seção */
.section-header .eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: #713fa9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms var(--ease-out) 150ms;
}

.section-header.active .eyebrow::before {
  transform: scaleX(1);
}

/* ============================================
   DEPOIMENTOS: CARROSSEL INFINITO
   Anda sozinho, desliza com a rolagem e aceita arrastar.
============================================ */

.testimonials-section {
  overflow: hidden;
}

.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.testimonials-head .section-header,
.testimonial-controls {
  margin-bottom: 44px;
}

.testimonial-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.t-ctrl {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: var(--border-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.t-ctrl:active {
  transform: scale(0.94);
}

.t-ctrl:focus-visible {
  outline: 2px solid #713fa9;
  outline-offset: 3px;
}

.testimonials-rail {
  overflow: hidden;
  padding: 14px 0 40px;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
          user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.testimonials-rail.is-dragging {
  cursor: grabbing;
}

.testimonials-section .testimonials-track {
  animation: none;
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.testimonials-section .testimonial-card {
  position: relative;
  will-change: transform, opacity;
  transition:
    box-shadow 260ms var(--ease-out),
    border-color 260ms ease;
}

.testimonials-section .testimonial-card::before {
  content: "\201C";
  display: block;
  height: 1.9rem;
  margin-bottom: 8px;
  color: #713fa9;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}

.testimonials-section .testimonial-card.is-center {
  border-color: rgba(113, 63, 169, 0.35);
  box-shadow: var(--shadow-md);
}

@media (hover: hover) and (pointer: fine) {
  .t-ctrl:hover {
    background: #713fa9;
    border-color: #713fa9;
    color: var(--white);
  }
}

@media (max-width: 768px) {
  .testimonials-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .testimonials-head .section-header {
    margin-bottom: 20px;
  }

  .testimonial-controls {
    margin-bottom: 28px;
  }
}

/* ============================================
   RODAPÉ
============================================ */

.footer {
  position: relative;
  overflow: hidden;
}

.footer .logo-footer img {
  height: 30px !important;
  max-height: 30px !important;
}

.footer-col > a {
  position: relative;
  width: fit-content;
  transition: color 0.2s ease, transform 220ms var(--ease-out);
}

.footer-col > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #713fa9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}

.footer-socials a {
  transition: color 0.2s ease, background 0.2s ease, transform 220ms var(--ease-out);
}

.footer-bottom {
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    justify-content: space-between;
  }
}

.footer-wordmark {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 8px;
  padding-bottom: 0.04em;
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
}

.footer-wordmark span {
  display: inline-block;
  background: linear-gradient(180deg, #e7e2ef 20%, rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transform: translateY(100%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 60ms);
}

.footer-wordmark.is-in span {
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .footer-col > a:hover {
    transform: translateX(3px);
  }

  .footer-col > a:hover::after {
    transform: scaleX(1);
  }

  .footer-socials a:hover {
    transform: translateY(-2px);
  }
}


/* ============================================
   RECURSOS: ÍCONES QUE SE DESENHAM
============================================ */

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(113, 63, 169, 0.08);
  color: #713fa9;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 260ms var(--ease-out);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1100ms var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 250ms);
}

.feature-item.active .feature-icon path {
  stroke-dashoffset: 0;
}

@media (hover: hover) and (pointer: fine) {
  .feature-item:hover .feature-icon {
    background: #713fa9;
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
  }
}

/* ============================================
   PLATAFORMA: CHECKS QUE SE DESENHAM
============================================ */

.dash-preview-text .feature-list svg {
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(113, 63, 169, 0.1);
}

.dash-preview-text .feature-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 500ms ease, transform 500ms var(--ease-out);
}

.dash-preview-text .feature-list path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 600ms var(--ease-out);
}

.dash-preview-text.active .feature-list li {
  opacity: 1;
  transform: translateX(0);
}

.dash-preview-text.active .feature-list path {
  stroke-dashoffset: 0;
}

.dash-preview-text .feature-list li:nth-child(1),
.dash-preview-text .feature-list li:nth-child(1) path { transition-delay: 250ms; }
.dash-preview-text .feature-list li:nth-child(2),
.dash-preview-text .feature-list li:nth-child(2) path { transition-delay: 350ms; }
.dash-preview-text .feature-list li:nth-child(3),
.dash-preview-text .feature-list li:nth-child(3) path { transition-delay: 450ms; }
.dash-preview-text .feature-list li:nth-child(4),
.dash-preview-text .feature-list li:nth-child(4) path { transition-delay: 550ms; }

/* ============================================
   SOBRE: ÍCONES ANIMADOS DOS PILARES
============================================ */

.pillar-art {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(113, 63, 169, 0.08);
  color: #713fa9;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 260ms var(--ease-out);
}

.pillar-art svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.pl-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-fill {
  fill: currentColor;
}

.pl-arrow {
  animation: plArrow 3.2s var(--ease-out) infinite;
}

@keyframes plArrow {
  0%       { opacity: 0; transform: translate(8px, -8px); }
  22%      { opacity: 1; transform: translate(0, 0); }
  27%      { transform: translate(-1px, 1px); }
  32%, 85% { opacity: 1; transform: translate(0, 0); }
  100%     { opacity: 0; transform: translate(0, 0); }
}

.pl-pupil {
  animation: plLook 4.5s ease-in-out infinite;
}

@keyframes plLook {
  0%, 20%   { transform: translateX(0); }
  30%, 45%  { transform: translateX(-4px); }
  55%, 70%  { transform: translateX(4px); }
  80%, 100% { transform: translateX(0); }
}

.pl-blink {
  animation: ioLed 1.4s steps(1) infinite;
}

.pl-bolt {
  animation: ioBolt 2.4s var(--ease-out) infinite;
}

.pl-shackle {
  animation: plLock 3.6s var(--ease-in-out) infinite;
}

@keyframes plLock {
  0%, 20%   { transform: translateY(-3px); }
  35%, 85%  { transform: translateY(0); }
  100%      { transform: translateY(-3px); }
}

@media (hover: hover) and (pointer: fine) {
  .pillar:hover .pillar-art {
    background: #713fa9;
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
  }
}

/* ============================================
   CONTATO: ÍCONES E AVIÃO DE PAPEL
============================================ */

.contact-detail-item:has(.detail-icon) {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}

.detail-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(113, 63, 169, 0.08);
  color: #713fa9;
  transition: background-color 220ms ease, color 220ms ease, transform 260ms var(--ease-out);
}

.detail-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1000ms var(--ease-out);
}

.contact-info.active .detail-icon path {
  stroke-dashoffset: 0;
}

.contact-detail-item:nth-child(1) .detail-icon path { transition-delay: 350ms; }
.contact-detail-item:nth-child(2) .detail-icon path { transition-delay: 450ms; }
.contact-detail-item:nth-child(3) .detail-icon path { transition-delay: 550ms; }

.contact-form button[type="submit"]::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--ease-out);
}

.contact-form button[type="submit"] {
  overflow: hidden;
}

.contact-form button[type="submit"]:disabled::after {
  animation: planeFly 900ms var(--ease-in-out) infinite;
}

@keyframes planeFly {
  0%   { opacity: 1; transform: translate(0, 0); }
  50%  { opacity: 0; transform: translate(26px, -20px); }
  51%  { opacity: 0; transform: translate(-26px, 20px); }
  100% { opacity: 1; transform: translate(0, 0); }
}

@media (hover: hover) and (pointer: fine) {
  .contact-detail-item:hover .detail-icon {
    background: #713fa9;
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
  }

  .contact-form button[type="submit"]:hover::after {
    transform: translate(3px, -3px) rotate(-8deg);
  }
}

/* ============================================
   DEPOIMENTOS: AVATAR DO CARD EM DESTAQUE
============================================ */

.testimonials-section .author-avatar {
  transition: background-color 300ms ease, color 300ms ease;
}

.testimonials-section .testimonial-card.is-center .author-avatar {
  background: #713fa9;
  color: var(--white);
}

/* ============================================
   DETALHES DECORATIVOS NAS SEÇÕES CINZA
   Pontos e anel que se movem com a rolagem (JS).
============================================ */

.section-muted {
  position: relative;
  overflow: hidden;
}

.section-muted > .container {
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.deco.d-a {
  top: 40px;
  right: -40px;
}

.deco.d-b {
  bottom: 60px;
  left: -70px;
}

.deco-dots {
  display: block;
  width: 280px;
  height: 220px;
  background-image: radial-gradient(rgba(113, 63, 169, 0.22) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
          mask-image: radial-gradient(closest-side, #000, transparent);
}

.deco-ring {
  display: block;
  width: 200px;
  height: 200px;
  border: 1.5px dashed rgba(113, 63, 169, 0.28);
  border-radius: 50%;
  animation: artSpin 40s linear infinite;
}


/* ============================================
   TEXTO QUE SE ACENDE COM A ROLAGEM
============================================ */

.sr-word {
  opacity: 0.22;
  transition: opacity 300ms ease;
}

.sr-word.is-lit {
  opacity: 1;
}

/* ============================================
   BOTÕES PRINCIPAIS: BRILHO NO HOVER
============================================ */

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::before {
    animation: nyxShine 800ms var(--ease-in-out);
  }
}

/* ============================================
   RECURSOS: LUZ QUE SEGUE O CURSOR
============================================ */

.feature-item {
  isolation: isolate;
}

.feature-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(113, 63, 169, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .feature-item:hover::after {
    opacity: 1;
  }
}

/* ============================================
   FORMULÁRIO: FOCO ANIMADO
============================================ */

.form-group label {
  transition: color 200ms ease, transform 200ms var(--ease-out);
}

.form-group:focus-within label {
  color: #713fa9;
  transform: translateX(3px);
}

.form-group input,
.form-group textarea {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #713fa9;
  box-shadow: 0 0 0 4px rgba(113, 63, 169, 0.12);
}

/* ============================================
   BOTÃO FLUTUANTE "VOLTAR AO TOPO"
   O anel mostra o progresso da página.
============================================ */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 250ms ease,
    transform 300ms var(--ease-out),
    color 200ms ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.to-top:active {
  transform: scale(0.94);
}

.to-top:focus-visible {
  outline: 2px solid #713fa9;
  outline-offset: 3px;
}

.to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top .tt-track,
.to-top .tt-ring {
  fill: none;
  stroke-width: 3;
}

.to-top .tt-track {
  stroke: var(--gray-200);
}

.to-top .tt-ring {
  stroke: #713fa9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.to-top .tt-arrow {
  position: relative;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
  transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .to-top:hover {
    color: #713fa9;
  }

  .to-top:hover .tt-arrow {
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}


/* ============================================
   CARROSSEL DE EMPRESAS
============================================ */

.trust-section {
  overflow: hidden;
}

.trust-marquee {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.trust-belt {
  display: flex;
  width: max-content;
  will-change: transform;
}


/* ============================================
   ANIMAÇÕES COMPARTILHADAS
============================================ */

@keyframes artSpin {
  to { transform: rotate(360deg); }
}

@keyframes ioLed {
  0%, 60%   { opacity: 1; }
  61%, 100% { opacity: 0.25; }
}

@keyframes ioBolt {
  0%, 55%  { opacity: 0.3; transform: scale(0.9); }
  62%      { opacity: 1; transform: scale(1.15); }
  70%, 90% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0.3; transform: scale(0.9); }
}

@keyframes nyxShine {
  to { transform: translateX(120%); }
}

/* Ícones dos pilares: rodam só quando visíveis */
.pillar-art * {
  transform-box: fill-box;
  transform-origin: center;
  animation-play-state: paused;
}

.pillar-art.is-playing * {
  animation-play-state: running;
}

/* Soluções e Planos mantêm a entrada simples do início */
#solutions .section-header.reveal.active,
#pricing .section-header.reveal.active {
  animation-name: nyxReveal;
}

#solutions .section-header .eyebrow::before,
#pricing .section-header .eyebrow::before {
  display: none;
}

/* ============================================
   CARROSSEL DE EMPRESAS: SÓ OS NOMES, DISCRETO
============================================ */

.trust-belt {
  align-items: center;
}

.tm-name-plain {
  padding: 0 32px;
  color: #1b1b1b;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 200ms ease, color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .tm-name-plain:hover {
    color: #713fa9;
    opacity: 1;
  }
}

/* ============================================
   TELAS: NOTEBOOK E CELULARES
   Telas ilustrativas no estilo do painel real.
============================================ */

/* O anel girando passa da borda em telas estreitas: corta só na horizontal */
.devices-section {
  overflow-x: hidden;
  overflow-x: clip;
}

.devices-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.devices-text h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.devices-text > p {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--gray-500);
  line-height: 1.7;
}

.devices-text .eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: #713fa9;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms var(--ease-out) 150ms;
}

.devices-text.active .eyebrow::before {
  transform: scaleX(1);
}

.devices-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  list-style: none;
}

.devices-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.85rem;
}

.devices-chips svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #713fa9;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.devices-text.active .devices-chips li {
  animation: nyxReveal 500ms var(--ease-out) backwards;
}

.devices-text.active .devices-chips li:nth-child(1) { animation-delay: 250ms; }
.devices-text.active .devices-chips li:nth-child(2) { animation-delay: 330ms; }
.devices-text.active .devices-chips li:nth-child(3) { animation-delay: 410ms; }

.devices-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Palco */
.devices-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 6 / 5;
  margin-inline: auto;
}

.stage-circle,
.stage-ring {
  position: absolute;
  top: 52%;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
}

.stage-circle {
  width: 78%;
  background: radial-gradient(circle at 50% 40%, rgba(113, 63, 169, 0.14), rgba(113, 63, 169, 0.04) 70%);
}

.stage-ring {
  width: 94%;
  border: 1px dashed rgba(113, 63, 169, 0.22);
  animation: artSpin 60s linear infinite;
}

.dv {
  position: absolute;
  will-change: transform;
}

/* Com JS, as peças começam escondidas e entram quando o palco aparece */
.devices-stage.is-ready .dv-body {
  opacity: 0;
}

/* Notebook */
.dv-laptop {
  top: 8%;
  left: 7%;
  right: 7%;
}

.dv-laptop-screen {
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  padding: 2.2%;
  border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-sm);
  background: #0f0f0f;
  box-shadow: var(--shadow-md);
}

.dv-laptop-base {
  position: relative;
  height: clamp(8px, 2vw, 14px);
  margin: 0 -7%;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: linear-gradient(180deg, #ebe9ef, #cfcbd6);
}

.dv-laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 40%;
  border-radius: 0 0 8px 8px;
  background: #bdb8c6;
  translate: -50% 0;
}

/* Celulares */
.dv-phone {
  width: 24%;
}

.dv-phone-left {
  bottom: 2%;
  left: 0;
}

.dv-phone-right {
  right: 2%;
  bottom: -3%;
}

.dv-phone .dv-body {
  aspect-ratio: 9 / 19;
  padding: 5%;
  border-radius: 18% / 8.5%;
  background: #0f0f0f;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
}

.dv-phone-screen {
  position: relative;
  container-type: inline-size;
  height: 100%;
  overflow: hidden;
  border-radius: 14% / 6.6%;
}

.dv-phone-screen::before {
  content: "";
  position: absolute;
  top: 2.5%;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 3%;
  border-radius: 999px;
  background: #0f0f0f;
  translate: -50% 0;
}

/* Cartões flutuantes */
.dv-float .dv-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.dv-float strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.2;
}

.dv-float em {
  display: block;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-style: normal;
}

.dv-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
}

.dv-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dv-ico.is-ok    { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.dv-ico.is-fail  { background: rgba(201, 54, 78, 0.12); color: #c9364e; }
.dv-ico.is-power { background: rgba(113, 63, 169, 0.12); color: #713fa9; }

.dv-ico.is-power svg {
  fill: currentColor;
  stroke: none;
}

.dv-float-1 { top: 0;   left: -4%; }
.dv-float-2 { top: 30%; right: -3%; }
.dv-float-3 { bottom: -5%; left: 26%; }

.dv-float-1 .dv-body { --d: 700ms; }
.dv-float-2 .dv-body { --d: 900ms; }
.dv-float-3 .dv-body { --d: 1100ms; }

.dv-note {
  position: absolute;
  right: 0;
  bottom: -36px;
  color: var(--gray-400);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Entradas e flutuação */
@keyframes dvRise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dvFromLeft {
  from { opacity: 0; transform: translateX(-60px) rotate(var(--r)); }
  to   { opacity: 1; transform: translateX(0) rotate(var(--r)); }
}

@keyframes dvFromRight {
  from { opacity: 0; transform: translateX(60px) rotate(var(--r)); }
  to   { opacity: 1; transform: translateX(0) rotate(var(--r)); }
}

@keyframes dvFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-10px) rotate(var(--r)); }
}

@keyframes dvPop {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dvFloatSmall {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.dv-phone-left .dv-body  { --r: -7deg; transform: rotate(var(--r)); }
.dv-phone-right .dv-body { --r: 5deg; transform: rotate(var(--r)); }

.devices-stage.is-in .dv-laptop .dv-body {
  animation: dvRise 900ms var(--ease-out) both;
}

.devices-stage.is-in .dv-phone-left .dv-body {
  animation:
    dvFromLeft 900ms var(--ease-out) 200ms both,
    dvFloat 6s ease-in-out 1.1s infinite;
}

.devices-stage.is-in .dv-phone-right .dv-body {
  animation:
    dvFromRight 900ms var(--ease-out) 320ms both,
    dvFloat 7s ease-in-out 1.2s infinite;
}

.devices-stage.is-in .dv-float .dv-body {
  animation:
    dvPop 600ms var(--ease-out) var(--d) both,
    dvFloatSmall 5s ease-in-out calc(var(--d) + 600ms) infinite;
}

/* ---------- Interface ilustrativa (cores do painel real) ---------- */

.ui {
  --n-night: #080d16;
  --n-panel: #101b2b;
  --n-panel2: #142235;
  --n-line: rgba(164, 184, 211, 0.13);
  --n-text: #f5f7fb;
  --n-dim: #95a5bb;
  --n-violet: #713fa9;
  --n-violet2: #a880da;

  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(113, 63, 169, 0.22), transparent 55%),
    var(--n-night);
  color: var(--n-text);
  line-height: 1.3;
}

.ui b,
.ui strong {
  font-weight: 700;
}

.ui em {
  font-style: normal;
}

.ui-logo {
  display: block;
  flex-shrink: 0;
  width: 1.8em;
  height: 1.8em;
  border-radius: 0.5em;
  background: var(--n-violet);
}

/* Notebook */
.ui-desktop {
  display: grid;
  grid-template-columns: 9% 1fr;
  border-radius: 4px;
  font-size: 1.9cqw;
}

.ui-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  padding: 1.2em 0;
  border-right: 1px solid var(--n-line);
  background: rgba(16, 27, 43, 0.6);
}

.ui-side i {
  width: 1.4em;
  height: 1.4em;
  border-radius: 0.4em;
  background: var(--n-line);
}

.ui-side i.is-on {
  background: rgba(113, 63, 169, 0.65);
}

.ui-main {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  min-width: 0;
  padding: 1em 1.2em;
}

.ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.ui-crumb {
  color: var(--n-dim);
  white-space: nowrap;
}

.ui-crumb b {
  color: var(--n-text);
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 999px;
  color: #5fd68a;
  font-weight: 600;
  white-space: nowrap;
}

.ui-pill i,
.ui-live i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-live 2s ease infinite;
}

.ui-hero {
  padding: 0.8em 1em;
  border: 1px solid var(--n-line);
  border-radius: 0.8em;
  background: linear-gradient(135deg, var(--n-panel2), var(--n-panel));
}

.ui-live {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--n-dim);
  font-size: 0.75em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ui-hero strong {
  display: block;
  margin-top: 0.2em;
  font-size: 1.25em;
}

.ui-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6em;
}

.ui-kpis div,
.ui-m-kpis div {
  border: 1px solid var(--n-line);
  border-radius: 0.7em;
  background: var(--n-panel);
}

.ui-kpis div {
  padding: 0.6em 0.7em;
}

.ui-kpis em,
.ui-m-kpis em {
  display: block;
  color: var(--n-dim);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-kpis b {
  display: block;
  margin-top: 0.15em;
  font-size: 1.35em;
}

.ui .is-warn b { color: #f0b54a; }
.ui .is-teal b { color: #5fd0d0; }

.ui-chart {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0.7em 0.9em;
  border: 1px solid var(--n-line);
  border-radius: 0.7em;
  background: var(--n-panel);
}

.ui-chart span {
  color: var(--n-dim);
  font-size: 0.8em;
}

.ui-bars {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 4%;
  min-height: 3em;
  margin-top: 0.6em;
}

.ui-bars i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 0.3em 0.3em 0.1em 0.1em;
  background: linear-gradient(to top, rgba(113, 63, 169, 0.45), var(--n-violet2));
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 800ms var(--ease-out) calc(var(--i) * 40ms + 500ms);
}

.ui-bars i:last-child {
  background: linear-gradient(to top, rgba(24, 155, 155, 0.5), #5fd0d0);
}

.devices-stage.is-in .ui-bars i {
  transform: scaleY(1);
}

@keyframes dvBar {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.82); }
}

.devices-stage.is-in .ui-bars i:last-child {
  animation: dvBar 2.4s ease-in-out 1.8s infinite;
}

/* Celular */
.ui-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 2.6em 0.9em 0.9em;
  font-size: 6.4cqw;
}

.ui-m-top {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ui-m-top b {
  flex: 1;
  font-size: 1.15em;
}

.ui-m-top .ui-logo {
  width: 1.4em;
  height: 1.4em;
}

.ui-avatar,
.ui-badge {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.ui-avatar {
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.5em;
  background: var(--n-violet);
  font-size: 0.85em;
}

.ui-badge {
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: #c9364e;
  font-size: 0.8em;
}

.ui-m-status {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 0.8em;
  background: rgba(22, 163, 74, 0.06);
}

.ui-m-status > i {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  border-radius: 0.45em;
  background: rgba(22, 163, 74, 0.25);
}

.ui-m-status b,
.ui-m-alerts b,
.ui-m-toast b {
  display: block;
  font-size: 0.92em;
}

.ui-m-status em,
.ui-m-alerts em {
  display: block;
  color: var(--n-dim);
  font-size: 0.72em;
}

.ui-m-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.ui-m-kpis div {
  padding: 0.55em 0.6em;
}

.ui-m-kpis b {
  display: block;
  font-size: 1.15em;
}

.ui-m-chart {
  display: flex;
  height: 5.5em;
  padding: 0.6em;
  border: 1px solid var(--n-line);
  border-radius: 0.7em;
  background: var(--n-panel);
}

.ui-m-chart .ui-bars {
  margin-top: 0;
}

.ui-m-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  list-style: none;
}

.ui-m-alerts li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 0.7em;
  border: 1px solid var(--n-line);
  border-left-width: 3px;
  border-radius: 0.7em;
  background: var(--n-panel);
}

.ui-m-alerts li.is-fail { border-left-color: #c9364e; }
.ui-m-alerts li.is-warn { border-left-color: #c07c0b; }

.ui-m-alerts li > i {
  flex-shrink: 0;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
}

.ui-m-alerts li.is-fail > i { background: #c9364e; }
.ui-m-alerts li.is-warn > i { background: #c07c0b; }

@keyframes dvSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.devices-stage.is-in .ui-m-alerts li {
  animation: dvSlide 500ms var(--ease-out) backwards;
}

.devices-stage.is-in .ui-m-alerts li:nth-child(1) { animation-delay: 700ms; }
.devices-stage.is-in .ui-m-alerts li:nth-child(2) { animation-delay: 820ms; }
.devices-stage.is-in .ui-m-alerts li:nth-child(3) { animation-delay: 940ms; }
.devices-stage.is-in .ui-m-alerts li:nth-child(4) { animation-delay: 1060ms; }

/* Notificação que desce no celular da direita */
.ui-m-toast {
  position: absolute;
  top: 2.3em;
  right: 0.7em;
  left: 0.7em;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 0.7em;
  border-radius: 0.8em;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-120%);
}

.ui-m-toast > i {
  flex-shrink: 0;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: #16a34a;
}

.ui-m-toast em {
  display: block;
  color: var(--gray-500);
  font-size: 0.72em;
}

@keyframes dvToast {
  0%        { opacity: 0; transform: translateY(-120%); }
  8%, 40%   { opacity: 1; transform: translateY(0); }
  48%, 100% { opacity: 0; transform: translateY(-120%); }
}

.devices-stage.is-in .ui-m-toast {
  animation: dvToast 6s var(--ease-out) 2s infinite;
}

/* Responsivo */
@media (max-width: 1024px) {
  .devices-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .devices-stage {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .dv-float .dv-body {
    gap: 7px;
    padding: 7px 10px 7px 7px;
  }

  .dv-float strong { font-size: 0.75rem; }
  .dv-float em     { display: none; }
  .dv-ico          { width: 24px; height: 24px; }
  .dv-float-3      { display: none; }
  .dv-float-1      { left: 0; }
  .dv-float-2      { right: 0; }
}



/* ============================================
   DESENHOS DE LINHA NO FUNDO DAS SEÇÕES BRANCAS
   Traços finos em roxo bem claro, atrás do conteúdo.
============================================ */

.has-line-art {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

.has-line-art > .container,
.has-line-art > .testimonials-rail {
  position: relative;
  z-index: 1;
}

.line-art {
  position: absolute;
  z-index: 0;
  width: min(440px, 60vw);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.la-tr { top: 24px; right: -60px; }
.la-tl { top: 24px; left: -60px; }
.la-br { bottom: 24px; right: -60px; }
.la-bl { bottom: 24px; left: -60px; }

.line-art.la-sm {
  width: min(280px, 45vw);
}

.line-art path,
.line-art circle {
  fill: none;
  stroke: rgba(113, 63, 169, 0.16);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2400ms var(--ease-out);
}

.line-art .la-strong {
  stroke: rgba(113, 63, 169, 0.26);
}

.line-art .la-dashed {
  stroke-dasharray: 0.02 0.025;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 1200ms ease 600ms;
}

.line-art .la-dot {
  fill: rgba(113, 63, 169, 0.32);
  stroke: none;
  opacity: 0;
  transition: opacity 800ms ease 1400ms;
}

.line-art.is-drawn path,
.line-art.is-drawn circle {
  stroke-dashoffset: 0;
}

.line-art.is-drawn .la-dashed,
.line-art.is-drawn .la-dot {
  opacity: 1;
}

.line-art.is-drawn :nth-child(2) { transition-delay: 250ms; }
.line-art.is-drawn :nth-child(3) { transition-delay: 500ms; }
.line-art.is-drawn :nth-child(4) { transition-delay: 750ms; }

.footer.has-line-art {
  overflow: hidden;
}

@media (max-width: 768px) {
  .line-art {
    width: 260px;
  }

  .line-art.la-sm {
    width: 180px;
  }

  .la-tr,
  .la-br { right: -80px; }

  .la-tl,
  .la-bl { left: -80px; }
}


/* ============================================
   MOVIMENTO REDUZIDO
   As animações continuam, porém mais suaves:
   entradas viram fades, carrosséis andam devagar (no JS)
   e efeitos ligados ao cursor ficam desligados.
============================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal.active,
  .reveal.active[data-anim],
  .about-pillars.active .pillar,
  .contact-form.active > *,
  .contact-info.active .contact-detail-item,
  .nyx-view.is-entering,
  .nyx-view.is-entering .nyx-row,
  .nyx-view.is-entering .nyx-alert {
    animation-name: nyxFade;
  }

  .split-word > span,
  .footer-wordmark span {
    opacity: 0;
    transform: none;
    transition: opacity 700ms ease;
    transition-delay: calc(var(--w, 0) * 45ms);
  }

  .active .split-word > span,
  .footer-wordmark.is-in span {
    opacity: 1;
  }

  .nyx-refresh.is-loading svg,
  .nyx-updated.is-loading svg {
    animation: none;
  }

  .nyx-tab-indicator {
    transition: none;
  }

  .line-art path,
  .line-art circle {
    stroke-dashoffset: 0;
    transition: none;
  }

  .line-art .la-dashed,
  .line-art .la-dot {
    opacity: 1;
  }

  .devices-stage.is-in .dv .dv-body {
    animation: nyxFade 600ms ease both;
  }

  .devices-stage.is-in .ui-m-toast,
  .devices-stage.is-in .ui-bars i:last-child,
  .stage-ring {
    animation: none;
  }
}

/* Linha final do rodapé alinhada ao grid */
.container.footer-bottom {
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.footer-bottom > span {
  color: var(--gray-500);
  font-size: 0.82rem;
}
