:root {
  --bg: #09090A;
  --bg-card: #14120fb0;
  --line-soft: #f2ead90f;
  --ink: #F5F1E8;
  --ink-dim: #C4BEB0;
  --ink-faint: #8a8477;
  --orange: #D95C27;
  --orange-hi: #F0793F;
  --ember: #FFB27A;
  --whatsapp-neon: #39FF6A;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, .serif { font-family: 'Fraunces', Georgia, serif; }

a { color: var(--orange-hi); text-decoration: none; }
a:hover { color: var(--ember); }

::selection { background: #D95C2755; color: #fff; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ================= HERO: grid + arco de brilho =================
   Recriação em CSS puro do fundo "grid + radial glow arc": grade fina
   esmaecendo com máscara radial, arco curvo brilhante subindo na base. */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, #D95C2733 1px, transparent 1px),
    linear-gradient(to bottom, #D95C2733 1px, transparent 1px);
  background-size: 110px 96px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 45%, transparent 78%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 45%, transparent 78%);
}

.hero-bg-arc {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: 50%;
  bottom: -230px;
  width: 160%;
  height: 340px;
  transform: translateX(-50%);
  border-radius: 100%;
  background: var(--bg);
  border-top: 2px solid #D95C27;
  box-shadow: 0 -18px 50px 6px #D95C2799, 0 -2px 14px #D95C27cc;
}

.hero-bg-glow-top {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -140px;
  left: 50%;
  width: 130%;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 55% at 50% 0%, #D95C2755 0%, #D95C2722 45%, transparent 75%);
}

.hero-fade-text {
  background: linear-gradient(180deg, var(--ink) 45%, #F5F1E866 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Gradiente entre --orange e um tom mais escuro dele mesmo (não --orange-hi):
     o topo claro reprovava contraste (2,80:1) mesmo com o texto maior — issue #8. */
  background: linear-gradient(180deg, var(--orange), #B84A1D);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  padding: 17px 20px;
  border-radius: 11px;
  border: none;
  box-shadow: 0 10px 30px -10px #D95C27b0, inset 0 1px 0 #ffffff3a;
  cursor: pointer;
  letter-spacing: -0.01em;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color .25s ease, transform .15s ease;
}

@media (min-width: 360px) {
  .btn-primary { padding: 17px 28px; white-space: nowrap; }
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--bg);
  z-index: 0;
  transition: width .3s ease;
}
.btn-primary:hover { color: #fff !important; transform: translateY(-1px); }
.btn-primary:hover::before { width: 100%; }
.btn-primary svg { transition: fill .25s ease; }
.btn-primary:hover svg { fill: #fff; }

.btn-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ember);
}

.card {
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  box-shadow: 12px 17px 51px rgba(0,0,0,0.22);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  border-color: #D95C2760;
  transform: scale(1.03) translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

/* ================= SCROLL REVEAL =================
   O estado "invisível antes de animar" só existe quando <html class="js">
   (marcado por um script síncrono no <head>). Sem JS, ou se main.js falhar
   ao carregar, o conteúdo nunca fica oculto: fica visível desde o início. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1);
}
.js .reveal-group.is-visible > *:nth-child(1) { transition-delay: .05s; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: .15s; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: .25s; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > *, .card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================= HERO ENTRANCE ================= */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-h1, .hero-p, .hero-cta-wrap {
  animation: heroFadeUp .8s cubic-bezier(.16,.8,.3,1) both;
}
.hero-h1 { animation-delay: .08s; }
.hero-p { animation-delay: .16s; }
.hero-cta-wrap { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-h1, .hero-p, .hero-cta-wrap { animation: none; }
}

/* ================= WHATSAPP PULSE ================= */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 22px -6px #39FF6A99, 0 0 0 0 #39FF6A55; }
  50% { box-shadow: 0 8px 22px -6px #39FF6A99, 0 0 0 7px #39FF6A00; }
}
.sticky-wa a {
  animation: waPulse 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-wa a { animation: none; }
}

/* ================= 02 · PROVA (carrossel) =================
   Loop horizontal contínuo (mesma técnica dos depoimentos): a track contém
   os 3 projetos + uma duplicata exata, animada com translateX(-50%). */
.proof-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
}

.proof-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: proofScroll 34s linear infinite;
}

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

@keyframes proofScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 12px)); }
}

.proof-slide { flex-shrink: 0; width: 320px; }

.proof-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 2;
}
.proof-fade-left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.proof-fade-right { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

@media (prefers-reduced-motion: reduce) {
  .proof-track { animation: none; }
}

/* ================= 03 · O QUE MUDA (seção redesenhada) =================
   Escopo próprio (prefixo wm-) para não colidir com .card/.grid-3 genéricos
   usados no resto da página — esta seção funde as antigas 03 e 04. */
.wm-section {
  background: #080808;
  padding: 64px 0 72px;
}

.wm-glow-a, .wm-glow-b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.wm-glow-a {
  top: -80px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #D95C2714, transparent 70%);
}
.wm-glow-b {
  bottom: -60px;
  left: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #D95C270f, transparent 70%);
}

/* --- Introdução --- */
.wm-intro {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.wm-intro .eyebrow { margin-bottom: 18px; }
.wm-h2 {
  font-size: 26px;
  font-weight: 460;
  line-height: 1.28;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.wm-h2-accent {
  font-style: italic;
  font-weight: 440;
  color: var(--orange-hi);
}
.wm-lead {
  font-size: 15px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: 0;
}

/* --- Cards de benefício --- */
.wm-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 72px;
}

.wm-card {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 32px 26px 28px;
  border-radius: 14px;
  border: 1px solid #ffffff0f;
  background: #0e0e0ea6;
  overflow: hidden;
  cursor: default;
  transition: border-color .35s ease, transform .35s ease, background-color .35s ease;
}

.wm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.wm-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #D95C2738;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-hi);
  transition: border-color .35s ease, background-color .35s ease;
}

.wm-card-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.03em;
}

.wm-card-title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.wm-card-text {
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin: 0;
}

.wm-card-line {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 55%);
  opacity: .45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.16,.8,.3,1), opacity .35s ease;
}

.wm-card:hover {
  border-color: #D95C2740;
  background-color: #121110a6;
  transform: translateY(-4px);
}
.wm-card:hover .wm-card-icon {
  border-color: #D95C2770;
  background: #D95C2712;
}
.wm-card:hover .wm-card-line {
  transform: scaleX(1);
  opacity: .8;
}

/* --- Composição assimétrica: argumento + painel --- */
.wm-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.wm-argument { display: flex; flex-direction: column; }
.wm-argument .eyebrow { margin-bottom: 18px; align-self: flex-start; }

.wm-h3 {
  font-size: 24px;
  font-weight: 460;
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.wm-h3-accent {
  font-style: italic;
  font-weight: 440;
  color: var(--orange-hi);
}

.wm-lead-left { text-align: left; margin-bottom: 28px; max-width: 420px; }

.wm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange-hi);
  background: transparent;
  border: 1px solid #D95C2755;
  border-radius: 9px;
  padding: 13px 20px;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.wm-btn-secondary:hover {
  color: var(--ink);
  border-color: #D95C27;
  background: #D95C2712;
}

.wm-panel {
  border-radius: 14px;
  border: 1px solid #ffffff0f;
  background: #101010;
  overflow: hidden;
}

.wm-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #ffffff0a;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.55;
  transition: background-color .3s ease;
}
.wm-panel-item:last-child { border-bottom: none; }
.wm-panel-item svg { flex-shrink: 0; margin-top: 1px; }
.wm-panel-item:hover { background: #ffffff05; }

@media (prefers-reduced-motion: reduce) {
  .wm-card, .wm-card-icon, .wm-card-line, .wm-btn-secondary, .wm-panel-item {
    transition: none !important;
  }
  .wm-card:hover { transform: none; }
}

/* ================= 04 · QUEBRA DE OBJEÇÃO (layout linear) ================= */
.obj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  text-align: center;
}

.obj-item { display: flex; flex-direction: column; align-items: center; }

.obj-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.obj-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 18px;
}

.obj-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D95C2745 50%, transparent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.obj-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #080808;
  border: 1px solid #D95C2755;
  color: var(--orange-hi);
  transition: border-color .3s ease, color .3s ease, transform .3s ease;
}

.obj-item:hover .obj-dot {
  border-color: var(--orange-hi);
  color: var(--ember);
  transform: scale(1.1);
}

.obj-text {
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
}

@media (prefers-reduced-motion: reduce) {
  .obj-dot { transition: none !important; }
  .obj-item:hover .obj-dot { transform: none; }
}

/* ================= 06 · DEPOIMENTOS (marquee 3D) =================
   CSS puro (sem React/Tailwind): colunas verticais em loop, leve perspectiva 3D,
   gradientes de fade nas bordas, pausa no hover. */
.tst-section {
  background: #080808;
  padding: 64px 0 60px;
}

.tst-stage {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #ffffff0d;
  background: #0a0a0a;
}

.tst-3d {
  display: flex;
  gap: 8px;
  justify-content: center;
  height: 100%;
  padding: 20px 8px;
}

/* 2 × 145px + 1 gap (8px) + 2 × padding (8px) = 314px, cabe com folga
   inclusive no iPhone SE (320px) — issue #2 media real, não só 768px+. */
.tst-col { width: 145px; height: 100%; overflow: hidden; flex-shrink: 0; }

.tst-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: tstScrollUp 26s linear infinite;
}
.tst-track-reverse { animation-name: tstScrollDown; animation-duration: 30s; }

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

@keyframes tstScrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes tstScrollDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.tst-card {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid #ffffff12;
  background: #121212;
}

.tst-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.tst-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-hi);
  background: #D95C2718;
  border: 1px solid #D95C2735;
}

.tst-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.tst-role { font-size: 11px; color: var(--ink-faint); margin-top: 1px; }

.tst-body {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0;
}

.tst-fade {
  position: absolute;
  pointer-events: none;
}
.tst-fade-top, .tst-fade-bottom {
  left: 0; right: 0; height: 90px;
}
.tst-fade-top { top: 0; background: linear-gradient(#080808, transparent); }
.tst-fade-bottom { bottom: 0; background: linear-gradient(transparent, #080808); }
.tst-fade-left, .tst-fade-right {
  top: 0; bottom: 0; width: 60px;
}
.tst-fade-left { left: 0; background: linear-gradient(90deg, #0a0a0a, transparent); }
.tst-fade-right { right: 0; background: linear-gradient(270deg, #0a0a0a, transparent); }

@media (prefers-reduced-motion: reduce) {
  .tst-track { animation: none; }
}

/* ================= TABLET / SMALL LAPTOP ================= */
@media (min-width: 768px) {
  .shell { padding: 0 40px; }
  .site-header { padding-top: 44px !important; }
  .hero-section { padding-top: 70px !important; padding-bottom: 200px !important; }
  .hero-bg-arc { bottom: -280px; height: 400px; }
  .hero-h1 { font-size: 68px !important; margin-bottom: 26px !important; }
  .center-head { max-width: 640px; margin-left: auto; margin-right: auto; }
  .proof-slide { width: 380px; }
  .proof-carousel { margin: 0 -40px; padding: 0 40px; }
  .section-pad { padding-top: 84px !important; padding-bottom: 84px !important; }
  .cta-box { padding: 52px 56px !important; }
  .cta-h2 { font-size: 32px !important; }
  .h2-lg { font-size: 30px !important; }
  .sticky-wa { display: none !important; }

  .wm-section { padding: 88px 0 96px; }
  .wm-h2 { font-size: 34px; }
  .wm-intro { margin-bottom: 56px; }
  .wm-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 88px; }
  .wm-split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
  .wm-h3 { font-size: 28px; }

  .obj-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .tst-stage { height: 460px; }
  .tst-3d {
    gap: 14px;
    padding: 24px 14px;
    transform: perspective(700px) rotateX(8deg) rotateZ(-4deg) scale(1.08);
    transform-origin: center;
  }
  .tst-col { width: 210px; }
}

/* ================= DESKTOP ================= */
@media (min-width: 1100px) {
  .shell { padding: 0 48px; }
  .site-header { padding-top: 52px !important; }
  .hero-section { padding-top: 90px !important; padding-bottom: 250px !important; }
  .hero-bg-arc { bottom: -330px; height: 460px; }
  .hero-h1 { font-size: 88px !important; margin-bottom: 32px !important; }
  .proof-slide { width: 440px; }
  .proof-carousel { margin: 0 -48px; padding: 0 48px; }
  .section-pad { padding-top: 108px !important; padding-bottom: 108px !important; }
  .cta-box { padding: 64px 72px !important; }
  .cta-h2 { font-size: 38px !important; }
  .h2-lg { font-size: 36px !important; }

  .wm-section { padding: 112px 0 120px; }
  .wm-h2 { font-size: 40px; }
  .wm-intro { max-width: 700px; margin-bottom: 64px; }
  .wm-cards { gap: 24px; margin-bottom: 104px; }
  .wm-card { padding: 38px 30px 32px; }
  .wm-split { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .wm-h3 { font-size: 32px; }
}
