/* ==========================================================
   WEBLOX — Pixel Tech Premium
   Fundo branco-osso · grafite · verde tecnologia
   ========================================================== */

:root {
  --bone:        #F3F0E8;
  --bone-2:      #FAF8F2;
  --ink:         #111111;
  --graphite:    #1B1B1B;
  --green:       #2F9A68;
  --green-deep:  #25784F;
  --green-light: #B9E2CC;
  --line:        #D8D3C8;
  --muted:       #66625D;

  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "Space Mono", monospace;

  --container: 1180px;
  --radius: 0px; /* estética pixel: cantos retos */
  --shadow-step: 6px 6px 0 var(--ink);
  --shadow-step-sm: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(.22, .9, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--green); color: var(--bone); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Texturas / fundos ---------- */
.grid-bg {
  background-image:
    linear-gradient(rgba(17,17,17,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.grid-bg-dark {
  background-image:
    linear-gradient(rgba(243,240,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,240,232,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--green-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
}
.section { padding: 120px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head .section-title { margin-bottom: 18px; }

.pixel-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  margin-right: 10px;
  vertical-align: baseline;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
  box-shadow: 4px 4px 0 var(--green);
  position: relative;
  overflow: hidden;
}
/* wipe digital: preenchimento verde em degraus de pixel */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s steps(7);
  z-index: -1;
}
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--green);
}
.btn-primary:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--green); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(17,17,17,.12);
}
.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(17,17,17,.18);
  background: var(--bone-2);
}

.btn-invert {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-invert:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(243,240,232,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-symbol { height: 34px; width: auto; display: block; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .22s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid var(--ink);
  padding: 12px 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
/* evita blowout de grid: filhos não forçam largura mínima intrínseca */
.hero-copy, .hero-visual, .case-copy, .case-visual { min-width: 0; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--green-light);
  z-index: -1;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hero-micro {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Diagrama hub */
.hero-visual { position: relative; }
.hub { width: 100%; height: auto; display: block; }

.hub-line {
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  opacity: .7;
  animation: dashFlow 18s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -240; } }

.core-box { fill: var(--ink); }
.core-box-shadow { fill: none; stroke: var(--green); stroke-width: 1.5; }
.core-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .14em;
  fill: var(--bone);
}
.core-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  fill: var(--green-light);
}

.mod-box {
  fill: var(--bone-2);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.mod-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  fill: var(--ink);
}
.mod-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--muted);
}
.pixel { fill: var(--ink); }
.pixel.green { fill: var(--green); }
.pulse { animation: pixelPulse 2.4s ease-in-out infinite; }
@keyframes pixelPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hub-module, .hub-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: modForm .5s steps(5) both;
}
.hub-module { animation: modForm .5s steps(5) both, floatY 5.5s ease-in-out infinite; }
@keyframes modForm {
  from { opacity: 0; transform: scale(.55); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Indicador de scroll */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint-line {
  width: 1px; height: 40px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--green);
  animation: scrollDrop 1.8s var(--ease) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }
.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track i {
  width: 8px; height: 8px;
  background: var(--green);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- O que é ---------- */
.about { border-bottom: 1px solid var(--line); }
.statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  max-width: 880px;
  margin-bottom: 72px;
}
.hl {
  background: linear-gradient(transparent 62%, var(--green-light) 62%);
}

.not-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.not-card {
  background: var(--bone-2);
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.not-card:hover {
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-step-sm);
}
.not-card p { font-size: 15px; font-weight: 500; color: var(--graphite); }
.not-x {
  flex: none;
  width: 14px; height: 14px;
  margin-top: 4px;
  background:
    linear-gradient(45deg, transparent 44%, var(--ink) 44%, var(--ink) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--ink) 44%, var(--ink) 56%, transparent 56%);
}

.about-conclusion {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--graphite);
  max-width: 760px;
}
.about-conclusion strong { color: var(--green-deep); }

/* ---------- Ecossistema ---------- */
.ecosystem { border-bottom: 1px solid var(--line); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-card {
  position: relative;
  background: var(--bone-2);
  border: 1px solid var(--line);
  padding: 32px 28px 40px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.module-card:hover {
  border-color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-step);
}
.module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.module-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--green-deep);
}
.module-icon { width: 34px; height: 34px; }
.module-icon svg { width: 100%; height: 100%; fill: var(--ink); }
.module-icon .icon-accent { fill: var(--green); }
.module-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.module-card p { font-size: 14.5px; color: var(--muted); }
.module-line {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  height: 4px;
  background:
    linear-gradient(90deg, var(--green) 0 24px, var(--line) 24px 100%);
  transition: background .25s var(--ease);
}
.module-card:hover .module-line {
  background: linear-gradient(90deg, var(--green) 0 48px, var(--line) 48px 100%);
}

.module-cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.module-cta:hover { box-shadow: 6px 6px 0 var(--green); }
.module-cta-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--bone) !important;
}
.module-cta-arrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--green-light);
  transition: transform .2s var(--ease);
}
.module-cta:hover .module-cta-arrow { transform: translateX(6px); }
.module-cta .module-line {
  background: linear-gradient(90deg, var(--green) 0 24px, rgba(243,240,232,.18) 24px 100%);
}

/* ---------- Como funciona ---------- */
.steps { border-bottom: 1px solid var(--line); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--line);
  background: var(--bone-2);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover {
  border-color: var(--ink);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-step-sm);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  background: var(--green);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Case ---------- */
.case {
  background: var(--graphite);
  color: var(--bone);
}
/* âncora: o header fixo (72px) não pode cobrir o título */
#case { scroll-margin-top: 90px; }
.case-inner {
  display: grid;
  /* minmax(0,...) impede que o conteúdo force a coluna além do trilho */
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.case .section-title { color: var(--bone); margin-bottom: 20px; }
.case-text { color: rgba(243,240,232,.72); font-size: 17px; max-width: 480px; margin-bottom: 40px; }

/* Painel da transformação: entrada → 45 dias → resultado */
.case-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(243,240,232,.16);
  background: rgba(17,17,17,.35);
  padding: clamp(22px, 2.5vw, 34px) clamp(16px, 2vw, 28px) clamp(20px, 2.2vw, 30px);
  margin-bottom: 20px;
  box-shadow: 8px 8px 0 rgba(0,0,0,.35);
}
/* cantos pixel tech */
.case-panel::before,
.case-panel::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--green);
}
.case-panel::before { top: -1px; left: -1px; }
.case-panel::after { bottom: -1px; right: -1px; }
.case-panel-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid rgba(185,226,204,.35);
  padding: 5px 12px;
  margin-bottom: 26px;
}
.case-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) auto minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 18px);
}
.compare-block {
  min-width: 0; /* permite encolher sem estourar a coluna */
  border: 1px solid rgba(243,240,232,.16);
  background: rgba(243,240,232,.04);
  padding: clamp(16px, 1.8vw, 24px) clamp(12px, 1.5vw, 22px);
  position: relative;
}
.compare-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(243,240,232,.55);
  margin-bottom: 12px;
}
.compare-result .compare-label { color: var(--green-light); }
.compare-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--bone);
  /* sem nowrap: "mil" e "/mês" quebram para baixo em vez de estourar o card */
}
.compare-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(243,240,232,.45);
}

/* Bloco do resultado: maior, verde, com glow sutil */
.compare-result {
  border-color: var(--green);
  background: rgba(47,154,104,.14);
  box-shadow: 0 0 0 1px rgba(47,154,104,.35), 0 0 34px rgba(47,154,104,.18);
}
.compare-value-xl {
  /* cabe no card: "+R$120" (~3.6em) nunca ultrapassa a coluna */
  font-size: clamp(34px, 3.6vw, 52px);
  color: var(--green-light);
}
.compare-result .compare-note { color: rgba(185,226,204,.6); }

/* Badge +100% */
.compare-badge {
  position: absolute;
  top: -16px; right: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--green);
  padding: 7px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(2deg);
  animation: badgePulse 2.6s var(--ease) infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: rotate(2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.07); }
}

/* Fluxo central: 45 dias + trilha de progresso + seta */
.compare-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 64px;
}
.compare-days {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid rgba(185,226,204,.4);
  background: rgba(47,154,104,.12);
  padding: 5px 10px;
  white-space: nowrap;
}
.compare-track {
  width: 3px;
  flex: 1;
  min-height: 40px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(243,240,232,.2) 0 4px,
    transparent 4px 9px
  );
  position: relative;
  overflow: hidden;
}
.compare-track-fill {
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--green);
  animation: trackFlow 1.6s var(--ease) infinite;
}
@keyframes trackFlow { to { top: 110%; } }
.compare-symbol {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green);
}

.case-growth {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--green-light);
  margin-bottom: 20px;
}
.case-brand {
  color: var(--green-light);
  font-weight: 700;
}
.metric-currency { color: var(--green-light); font-size: .6em; vertical-align: super; margin-right: 4px; }
.metric-suffix { color: var(--green-light); }
.metric-period {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: rgba(243,240,232,.55);
  margin-left: 8px;
}
.case-disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(243,240,232,.4);
}

.case-frame {
  position: relative;
  border: 1px solid rgba(243,240,232,.2);
  background: var(--ink);
  box-shadow: 12px 12px 0 rgba(47,154,104,.4);
  padding: 14px;
}
/* cantos pixel tech na moldura */
.case-frame::before,
.case-frame::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: var(--green);
  z-index: 2;
}
.case-frame::before { top: -6px; left: -6px; }
.case-frame::after { bottom: -6px; right: -6px; }
.case-frame img {
  width: 100%;
  filter: grayscale(1) contrast(1.08) brightness(.96);
  border: 1px solid rgba(243,240,232,.12);
}
.case-frame-tag {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-light);
}
.case-placeholder { display: none; }
.case-frame.no-img .case-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 340px;
  border: 1px dashed rgba(243,240,232,.25);
  background-image:
    linear-gradient(rgba(243,240,232,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,240,232,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  text-align: center;
  color: rgba(243,240,232,.6);
  font-size: 14px;
}
.case-placeholder code {
  font-family: var(--font-mono);
  color: var(--green-light);
  font-size: 13px;
}
.case-placeholder-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--green-light);
  border: 1px solid rgba(185,226,204,.4);
  padding: 6px 12px;
}

/* ---------- CTA final ---------- */
.final-cta { padding: 120px 0 140px; }
.cta-box {
  background: var(--green);
  color: var(--bone);
  text-align: center;
  padding: 88px 32px;
  position: relative;
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box .eyebrow-light { color: var(--green-light); }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-text { font-size: 17px; color: rgba(243,240,232,.85); margin-bottom: 36px; }
.cta-micro {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(243,240,232,.65);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 64px 0 32px;
}
.footer .logo-symbol { height: 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243,240,232,.14);
}
.footer-tag {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(243,240,232,.55);
  max-width: 300px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a, .footer-contact a {
  font-size: 14px;
  color: rgba(243,240,232,.65);
  transition: color .18s var(--ease);
  width: fit-content;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(243,240,232,.4);
}
.footer-pixel { color: var(--green); letter-spacing: 4px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */
/* Case: abaixo de ~1180px empilha — conteúdo primeiro, imagem depois */
@media (max-width: 1180px) {
  .case-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .case-visual { max-width: 560px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 150px; min-height: auto; }
  .hero-visual { max-width: 560px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 88px 0; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--ink);
    padding: 12px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav-link::after { display: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
  .not-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Case: abaixo de 720px o painel empilha — seta aponta para baixo */
@media (max-width: 720px) {
  .case-panel { padding: 26px 18px 24px; }
  .case-panel-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-flow { flex-direction: row; min-width: 0; }
  .compare-track {
    width: auto;
    height: 3px;
    flex: 1;
    min-height: 0;
    min-width: 40px;
    background: repeating-linear-gradient(
      to right,
      rgba(243,240,232,.2) 0 4px,
      transparent 4px 9px
    );
  }
  .compare-track-fill {
    top: 0; left: -40%;
    width: 40%; height: 100%;
    animation: trackFlowX 1.6s var(--ease) infinite;
  }
  .compare-symbol { transform: rotate(90deg); }
  .compare-badge { top: -14px; right: 12px; font-size: 14px; }
}
@keyframes trackFlowX { to { left: 110%; } }

@media (max-width: 520px) {
  .modules-grid, .steps-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 64px 22px; box-shadow: 8px 8px 0 var(--ink); }
  .case-frame { box-shadow: 6px 6px 0 rgba(47,154,104,.35); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .scroll-hint { display: none; }
}

/* ==========================================================
   SISTEMA PIXEL VIVO — loader, grid vivo, dissolve
   ========================================================== */

/* ---------- Loader: formação do símbolo por pixels ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s var(--ease);
}
#loader.done { opacity: 0; pointer-events: none; }
#loaderCanvas { display: block; }

/* ---------- Hero: canvas de grid vivo ---------- */
.hero { position: relative; }
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ---------- Revelação por dissolução de pixels ---------- */
[data-pixelfy] { position: relative; }
.pixelfy-overlay {
  position: absolute;
  inset: -1px;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.pixelfy-cell {
  position: absolute;
  transition: opacity .3s steps(3), transform .3s steps(3);
  will-change: opacity, transform;
}
.pixelfy-cell.out { opacity: 0; transform: scale(.2); }

/* ---------- Wipe digital no botão invertido (CTA final) ---------- */
.btn-invert { position: relative; overflow: hidden; transition: color .2s steps(3), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn-invert::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s steps(7);
  z-index: -1;
}
.btn-invert:hover { color: var(--bone); }
.btn-invert:hover::after { transform: scaleX(1); }

/* ---------- Ghost button: acento pixel no hover ---------- */
.btn-ghost { position: relative; }
.btn-ghost::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 8px; height: 8px;
  background: var(--green);
  opacity: 0;
  transition: opacity .15s steps(2);
}
.btn-ghost:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  #loader { display: none; }
  .pixelfy-overlay { display: none; }
  .hub-module, .hub-core { animation: none; opacity: 1; }
}
