@import url('https://fonts.googleapis.com/css2?family=Pathway+Extreme:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pathway Extreme', sans-serif;
  background-color: #0A0A0A;
  color: #F8F5ED;
  overflow-x: hidden;
}

::selection {
  background-color: #F01E41;
  color: white;
}

.ease-spring {
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* HERO CLIENTES: estático e sempre visível (sem animação de entrada). */
.hero-anim { opacity: 1; }

.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-150 {
  transition-delay: 150ms;
}

.delay-50 {
  transition-delay: 50ms;
}

/* Blobs organicos (.hero-organic-shape-1/2 + @keyframes fluidRotate) removidos:
   nao eram usados em nenhum markup e contrariam a estetica engineered. */

.liquid-glass {
  background: rgba(15, 15, 15, 0.5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.liquid-glass-light {
  background: rgba(248, 245, 237, 0.03);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(248, 245, 237, 0.1);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #F01E41;
}

.gradient-text-reveal {
  background-image: linear-gradient(to top, #F01E41 0%, #ffffff 0%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#rockscale-form button[type="submit"].submitting {
  opacity: 0.5;
  pointer-events: none;
}

/* --- BLUEPRINT GRID LINES --- */
.blueprint-grid {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  mix-blend-mode: screen;
}

.bp-line-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* Tag técnica dos cards (MOD.01, MOD.02...) */
.bp-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 6px 16px;
}

.bp-chip {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 16px;
  transition: border-color 0.3s, color 0.3s;
}

.bento-item:hover .bp-chip {
  border-color: rgba(240, 30, 65, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 30, 65, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.bento-item:hover::before {
  transform: scaleX(1);
}

.bento-item:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 30, 65, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 48px rgba(240, 30, 65, 0.12);
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento-span-7 {
    grid-column: span 7;
  }

  .bento-span-5 {
    grid-column: span 5;
  }

  .bento-span-12 {
    grid-column: span 12;
  }

  .bento-row-2 {
    grid-row: span 2;
  }
}

/* --- PAINEL BI (REPRESENTAÇÃO VISUAL) --- */
.bi-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(5, 5, 5, 0.6);
  padding: 16px;
}

@media (min-width: 768px) {
  .bi-panel { padding: 24px; }
}

.bi-kpi {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 86px;
}

.bi-kpi span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
  min-height: 24px;
}

@media (min-width: 768px) {
  .bi-kpi span { font-size: 10px; letter-spacing: 0.15em; }
}

.bi-kpi strong {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

@media (min-width: 768px) {
  .bi-kpi strong { font-size: 24px; }
}

.bi-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bi-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.5s ease;
}

.bi-bars .bi-bar-accent {
  background: #F01E41;
  box-shadow: 0 0 24px rgba(240, 30, 65, 0.4);
}

.bento-item:hover .bi-bars span {
  background: rgba(255, 255, 255, 0.2);
}

.bento-item:hover .bi-bars .bi-bar-accent {
  background: #F01E41;
}

/* --- JORNADA: TIMELINE VERTICAL --- */
.vtimeline {
  position: relative;
  padding-left: 8px;
}

.vtimeline-line {
  position: absolute;
  left: 39px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(240, 30, 65, 0.6), rgba(255, 255, 255, 0.06));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.vtimeline.is-revealed .vtimeline-line {
  transform: scaleY(1);
}

.vstep {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 16px 0;
}

.vstep:not(:last-child) {
  margin-bottom: 16px;
}

.vstep-node {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, background 0.4s ease;
}

.vstep-node-accent {
  border-color: #F01E41;
  color: #fff;
  background: #F01E41;
  box-shadow: 0 0 32px rgba(240, 30, 65, 0.4);
}

.vstep:hover .vstep-node {
  border-color: #F01E41;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 32px rgba(240, 30, 65, 0.3);
}

.vstep-body {
  padding-top: 16px;
}

/* Reveal escalonado dos passos */
.vstep {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vtimeline.is-revealed .vstep { opacity: 1; transform: translateX(0); }
.vtimeline.is-revealed .vstep:nth-child(2) { transition-delay: 0.15s; }
.vtimeline.is-revealed .vstep:nth-child(3) { transition-delay: 0.30s; }
.vtimeline.is-revealed .vstep:nth-child(4) { transition-delay: 0.45s; }
.vtimeline.is-revealed .vstep:nth-child(5) { transition-delay: 0.60s; }
.vtimeline.is-revealed .vstep:nth-child(6) { transition-delay: 0.75s; }

/* Nota dos 30-45 dias */
.journey-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 32px;
  border: 1px solid rgba(240, 30, 65, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(240, 30, 65, 0.06), rgba(240, 30, 65, 0.01));
}

/* --- ÂNCORAS COM NAVBAR FIXA --- */
section[id] {
  scroll-margin-top: 110px;
}

/* --- NAV LINK UNDERLINE --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #F01E41;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* --- HERO: LINHAS COM ENTRADA CINEMATOGRÁFICA --- */
.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line > span {
  transform: translateY(110%);
  animation: heroRise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-line:nth-child(2) > span {
  animation-delay: 0.15s;
}

.hero-line:nth-child(3) > span {
  animation-delay: 0.3s;
}

@keyframes heroRise {
  to { transform: translateY(0); }
}

/* --- HERO: LINHA TERMINAL --- */
.hero-terminal {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.5);
  border-radius: 8px;
  padding: 12px 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .hero-terminal {
    font-size: 18px;
  }
}

.cursor-blink {
  color: #F01E41;
  animation: cursorBlink 1.1s steps(1) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* --- HERO: HUD TÉCNICO --- */
.hero-hud {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* --- SCROLL CUE (HERO) --- */
.scroll-cue {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: #F01E41;
  animation: scrollCue 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollCue {
  0% { top: -16px; }
  60%, 100% { top: 48px; }
}

/* --- MARQUEE TÉCNICO --- */
.marquee {
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.marquee-group span {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.marquee-group i {
  font-style: normal;
  font-size: 10px;
  color: #F01E41;
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* --- SECTION INDEX (BLUEPRINT LABEL) --- */
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #F01E41;
}

.section-index::before {
  content: '';
  width: 32px;
  height: 1px;
  background: #F01E41;
}

/* ACENTO SOBRE FUNDO CLARO — VALOR UNICO.
   Sobre o creme (#F8F5ED) o acento puro #F01E41 nao alcanca os 4.5:1 de texto
   pequeno, entao a secao #fit usa a variante escurecida #CE1735 em TODAS as
   ocorrencias (eyebrow, h2, h4 e os checks) — dois vermelhos na mesma dobra
   liam como erro de cor. Medido no PNG (r3/acento-e-glow/desk/dobra-06,
   pixel-nucleo do glifo): #CE1735 renderiza (206,23,53) contra o creme
   (248,245,237) = 5,07:1 nos quatro elementos; o check dentro do disco
   .seg-plus renderiza (206,27,56) contra o disco (235,232,224) = 4,47:1.
   O acento da marca segue #F01E41 no resto do site (fundos escuros). */
.section-index-dark {
  color: #CE1735;
}

.section-index-dark::before {
  background: #CE1735;
}

/* --- ÍCONE DOS CARDS BENTO --- */
.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(240, 30, 65, 0.3);
  background: rgba(240, 30, 65, 0.08);
  color: #F01E41;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-item:hover .bento-icon {
  background: #F01E41;
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 24px rgba(240, 30, 65, 0.4);
}

/* --- MINI FUNIL (MOD.02) --- */
.mini-funnel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-funnel span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.5s ease;
}

.mini-funnel .mini-funnel-accent {
  background: #F01E41;
  box-shadow: 0 0 16px rgba(240, 30, 65, 0.4);
}

.bento-item:hover .mini-funnel span {
  transform: scaleX(1.04);
  background: rgba(255, 255, 255, 0.16);
}

.bento-item:hover .mini-funnel .mini-funnel-accent {
  background: #F01E41;
}

/* --- PILL CAC (MOD.03) --- */
.cac-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F01E41;
  border: 1px solid rgba(240, 30, 65, 0.35);
  background: rgba(240, 30, 65, 0.08);
  border-radius: 4px;
  padding: 8px 16px;
  transition: background 0.4s ease, color 0.4s ease;
}

.bento-item:hover .cac-pill {
  background: #F01E41;
  color: #fff;
}

/* --- BARRAS DO BI: CRESCEM AO REVELAR --- */
.bi-bars span {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.5s ease;
}

.bento-item.is-revealed .bi-bars span {
  transform: scaleY(1);
}

.bi-bars span:nth-child(1) { transition-delay: 0.10s; }
.bi-bars span:nth-child(2) { transition-delay: 0.18s; }
.bi-bars span:nth-child(3) { transition-delay: 0.26s; }
.bi-bars span:nth-child(4) { transition-delay: 0.34s; }
.bi-bars span:nth-child(5) { transition-delay: 0.42s; }
.bi-bars span:nth-child(6) { transition-delay: 0.50s; }
.bi-bars span:nth-child(7) { transition-delay: 0.58s; }
.bi-bars span:nth-child(8) { transition-delay: 0.66s; }

/* --- BOTÃO COM BRILHO (SHINE SWEEP) --- */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.btn-shine:hover::after {
  left: 150%;
}

/* --- SEÇÃO CREME: HOVERS --- */
.seg-item {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: default;
}

.seg-item:hover {
  transform: translateX(8px);
}

.seg-item .seg-plus {
  transition: background 0.3s ease, transform 0.3s ease;
}

.seg-item:hover .seg-plus {
  background: #F01E41;
  transform: rotate(90deg);
}

.seg-item:hover .seg-plus svg {
  color: #fff !important;
  stroke: #fff;
}

.fit-no {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.fit-no:hover {
  color: rgba(10, 10, 10, 0.8);
  transform: translateX(4px);
}

.requisito-card {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.requisito-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(10, 10, 10, 0.25);
}

/* --- STATS: ÍCONE E HOVER --- */
.stat-card .stat-icon {
  transition: color 0.4s ease, transform 0.4s ease;
}

.stat-card:hover .stat-icon {
  color: #F01E41;
  transform: translateY(-4px);
}

/* --- FOOTER LINKS --- */
.footer-link {
  max-width: 100%;
}

.footer-link:hover {
  transform: translateX(4px);
}

/* --- FORMULÁRIO DE CAPTAÇÃO: campo com borda, fundo, rótulo e erro ------
   O formulário recebe todo o tráfego pago. Underline sozinho não lê como
   campo preenchível e o placeholder em branco/30 ficava em 2,4:1. Agora:
   rótulo persistente, borda visível, placeholder legível e estado de erro
   explícito. Borda medida no PNG do render: ver .field abaixo. */
.input-rock {
  position: relative;
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.field {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  /* .28 deixava a borda quase invisivel sobre o painel escuro. Em .40 o campo
     ganha contorno legivel: a borda compoe sobre o proprio preenchimento do
     campo (border-box), nao sobre o painel. */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.field:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.field:focus {
  outline: none;
  border-color: #F01E41;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(240, 30, 65, 0.3);
}

.field:focus-visible {
  outline: 2px solid #F01E41;
  outline-offset: 2px;
}

.field:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
}

select.field:active {
  border-color: #F01E41;
}

/* estado de erro — só depois que o usuário mexeu no campo */
.field:user-invalid {
  border-color: #FF8FA3;
  background: rgba(240, 30, 65, 0.1);
}

.input-rock:has(.field:user-invalid)::after {
  content: 'Preencha este campo para receber o plano.';
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #FF8FA3;
}

.input-rock-select {
  position: relative;
}

/* o chevron é ancorado ao campo, não ao label: quando o erro ::after cresce o
   container, o chevron não desce junto nem colide com a mensagem */
.select-wrap {
  position: relative;
  display: block;
}

.select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.input-rock-select:focus-within .select-chevron {
  color: #F01E41;
  transform: translateY(-50%) rotate(180deg);
}

/* --- LAUDA FORM: ITENS DO DIAGNÓSTICO --- */
.diag-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.5);
  padding: 16px 24px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
}

.diag-item:hover {
  transform: translateX(8px);
  border-color: rgba(240, 30, 65, 0.4);
}

.diag-num {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #F01E41;
  border: 1px solid rgba(240, 30, 65, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.4s ease, color 0.4s ease;
}

.diag-item:hover .diag-num {
  background: #F01E41;
  color: #fff;
}

/* --- ISOTIPO 3D FLUTUANTE --- */
.phrase-marquee {
  position: absolute;
  top: 132px; /* centro do .logo-stage (264px de altura) */
  left: 0;
  right: 0;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.phrase-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.phrase-track span {
  font-size: clamp(96px, 18vw, 260px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #1C1C1C;
  white-space: nowrap;
}

.logo-stage {
  position: relative;
  perspective: 1200px;
  width: 280px;
  height: 264px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(240, 30, 65, 0.16), transparent 60%);
  pointer-events: none;
  animation: logoGlow 7s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.logo-tilt {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-float {
  transform-style: preserve-3d;
  animation: logoBob 7s ease-in-out infinite;
  will-change: transform;
}

.logo-iso {
  width: 180px;
  filter: drop-shadow(0 12px 40px rgba(240, 30, 65, 0.30));
}

@media (min-width: 768px) {
  .logo-iso {
    width: 220px;
  }
}

@keyframes logoBob {
  0%, 100% { transform: translateY(0) rotateX(12deg) rotateY(-18deg); }
  50% { transform: translateY(-28px) rotateX(-8deg) rotateY(18deg); }
}

.logo-shadow {
  position: absolute;
  bottom: 8px;
  width: 180px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240, 30, 65, 0.22);
  filter: blur(22px);
  animation: logoShadow 7s ease-in-out infinite;
}

@keyframes logoShadow {
  0%, 100% { transform: scaleX(1); opacity: 0.55; }
  50% { transform: scaleX(0.65); opacity: 0.25; }
}

/* --- REGRA GLOBAL DE COLUNAS E MARGENS (ALINHAMENTO SIMÉTRICO) --- */
/* Remove paddings irregulares das "seções" para não ter margem dupla */
section,
nav,
footer {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

/* --- GRID MASTER (UNIFICAÇÃO) --- */
.container-rock {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1280px) {
  .container-rock {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}


/* --- CARROSSEL DE LOGOS DE CLIENTES --- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marqueeScroll 34s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-cell {
  flex: 0 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-cell img {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 768px) {
  .logo-cell { padding: 0 64px; }
  .logo-cell img { height: 40px; }
}

/* Mobile: com o padding de 48px cada logo comia 248px dos 375px da tela e so
   1,5 marca aparecia por vez — a faixa lia como vazia. Aperta o respiro e
   reduz a altura pra caber ~2,5 marcas e a fila parecer cheia. */
@media (max-width: 640px) {
  .logo-cell { padding: 0 16px; }
  .logo-cell img { height: 24px; opacity: 0.55; }
}

.logo-cell:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* --- PROVA: CARDS DE UNIDADES VENDIDAS --- */
.proof-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
  padding: 40px 32px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.proof-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 30, 65, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proof-card:hover::before { transform: scaleX(1); }

.proof-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 30, 65, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 48px rgba(240, 30, 65, 0.12);
}

.proof-brand {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
}

.proof-metric {
  display: block;
  font-size: clamp(72px, 9vw, 104px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #fff;
}

.proof-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

/* --- PROVA: CARD DESTAQUE MKP --- */
.proof-feature {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
  padding: 48px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

@media (max-width: 640px) {
  .proof-feature { padding: 32px; }
}

.proof-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 30, 65, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proof-feature:hover::before { transform: scaleX(1); }

.proof-feature:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 30, 65, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 64px rgba(240, 30, 65, 0.12);
}

.proof-metric-xl {
  display: block;
  font-size: clamp(96px, 16vw, 144px);
  line-height: 0.85;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: #fff;
}

.proof-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 40px 0;
}

/* --- DEPOIMENTO EM VÍDEO (9:16) --- */
.video-frame {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0A0A0A;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .video-frame { width: min(360px, 40vw); }
}

.video-el {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0A0A0A;
}

.video-glow {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 9999px;
  background: #F01E41;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Glow radial no acento removido (regra dura 4). Disco chapado; a forma
     circular do play e affordance de controle, nao pill de layout. */
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.video-play svg { margin-left: 3px; }

.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }

/* sem regra específica de foco aqui: o :focus-visible global no acento vale
   também para o botão de play (a regra branca vencia por especificidade) */

.video-frame.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

/* --- HOTFIX: ancora dos CTAs aterrissa no painel do formulario --- */
#form-plano {
  scroll-margin-top: 110px;
}

/* --- DOBRA DE AMBIENTE / OPERACAO --------------------------------------
   Mosaico assimetrico (7/5) de fotos de ambiente. As fotos sao de banco de
   imagem, entao passam por tratamento (dessaturacao + tint da marca +
   vinheta) para nao entregarem cara de stock generico e casarem com o
   dark premium da identidade. */
.amb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 1024px) {
  .amb-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
  }
  /* 7/5 — assimetria intencional, nunca 50/50 */
  .amb-card-lg { grid-column: span 7; grid-row: span 2; }
  .amb-card-sm { grid-column: span 5; }
}

.amb-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0A0A0A;
  min-height: 200px;
  transition: border-color 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.amb-card-lg { min-height: 280px; }

@media (min-width: 1024px) {
  .amb-card-lg { min-height: 440px; }
  .amb-card-sm { min-height: 212px; }
}

.amb-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* O brilho e calibrado POR FOTO (medido no canvas): as tres tem exposicao
     muito diferente na origem (41, 123 e 153 de 255). Um filtro unico ou
     apagaria a foto noturna ou estouraria a clara. Alvo comum: ~70/255. */
  filter: grayscale(0.7) brightness(var(--amb-b, 0.8)) contrast(1.08);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* foto ja noturna — precisa CLAREAR pra nao sumir */
.amb-card--dark  { --amb-b: 1.45; }
/* foto clara (dashboard branco) — precisa escurecer bastante */
.amb-card--light { --amb-b: 0.50; }
/* foto media (escritorio P&B) */
.amb-card--mid   { --amb-b: 0.60; }

/* Vinheta NEUTRA (preto, sem canal de cor) — regra dura 4 proibe glow radial
   colorido. O degrade vertical continua carregando a base pra legenda ler
   sobre a foto; o radial so escurece os cantos. */
.amb-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.05) 0%, rgba(10, 10, 10, 0.35) 55%, rgba(10, 10, 10, 0.82) 100%),
    radial-gradient(120% 100% at 50% 35%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.32) 100%);
}

.amb-card:hover { border-color: rgba(240, 30, 65, 0.45); transform: translateY(-4px); }

/* no hover a foto abre: menos cinza e mais luz, mantendo a calibragem por foto */
.amb-card:hover img {
  filter: grayscale(0.3) brightness(calc(var(--amb-b, 0.8) * 1.25)) contrast(1.1);
  transform: scale(1.06);
}

/* legenda dentro do card */
.amb-cap {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amb-cap span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.amb-cap i {
  font-style: normal;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #F01E41;
  flex-shrink: 0;
}

/* --- NAVBAR: legibilidade sobre QUALQUER fundo -------------------------
   O vidro translucido (preto 50%) virava cinza claro sobre a secao creme e
   o logo branco sumia. Fundo praticamente opaco: o logo fica em 18:1 em
   toda a pagina, e nao so nas dobras escuras. */
#navbar-inner.liquid-glass {
  background: rgba(10, 10, 10, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* CTA do header: borda em white/40 pra ler como botao dentro da barra.
   Em white/30 renderizava #5F5F5F = 2,73:1 contra o preenchimento #1A1A1A,
   abaixo dos 3:1 de interativo. Valor pos-correcao medido no PNG. */
.nav-cta {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:active {
  transform: scale(0.97);
}

/* --- FOCO DE TECLADO: uma regra unica para a pagina inteira --- */
:focus-visible {
  outline: 2px solid #F01E41;
  outline-offset: 3px;
}

/* --- BOTAO DE ENVIO: estados active e disabled --- */
#clientes-form button[type="submit"]:active {
  transform: scale(0.97);
}

#clientes-form button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- PREFERENCIA DE MENOS MOVIMENTO ------------------------------------
   Desliga o que se move sozinho (marquees, pulsos, cursor, scanner do hero)
   e encurta as transicoes longas. O conteudo revelado por scroll fica visivel
   de imediato: quem pede menos movimento nao pode perder texto. O campo de
   particulas 3D nem chega a carregar (guarda no index.html). */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.15s !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* sem o campo 3D o hero ficaria chapado: reticula estatica de pontos,
     mesma linguagem dot-matrix do fundo animado, sem um frame de movimento */
  #hero-3d-canvas {
    background-image: radial-gradient(rgba(240, 30, 65, 0.55) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 62%, #000 8%, transparent 76%);
    mask-image: radial-gradient(ellipse 72% 58% at 50% 62%, #000 8%, transparent 76%);
  }

  /* conteudo que depende de animacao/reveal para existir na tela */
  .reveal-up,
  .reveal-up.is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-line > span {
    transform: none !important;
  }

  /* marquees param no lugar em vez de rolar */
  .logo-track {
    animation: none !important;
    transform: none !important;
  }

  /* paralaxe/elevacao de hover viram so mudanca de cor */
  .proof-feature:hover,
  .amb-card:hover,
  .requisito-card:hover,
  .diag-item:hover,
  .seg-item:hover,
  .fit-no:hover,
  .footer-link:hover,
  .pain-card:hover {
    transform: none !important;
  }

  .amb-card:hover img {
    transform: none;
  }

  /* o .video-play e centrado por translate(-50%,-50%): zerar o transform
     tiraria o botao do lugar, entao ele so perde o scale do hover */
  .video-play:hover {
    transform: translate(-50%, -50%) !important;
  }
}

/* mobile: alturas menores pra nao empurrar o form pra baixo */
@media (max-width: 640px) {
  .amb-card { min-height: 170px; }
  .amb-card-lg { min-height: 220px; }
  .amb-cap { left: 16px; right: 16px; bottom: 16px; }
  .amb-cap span { font-size: 12px; letter-spacing: 0.12em; }
}
