:root {
  --ink: #14161f;
  --paper: #f7f5f1;
  --surface: #ffffff;
  --muted: #6b6f76;
  --accent: #c77d2e;
  --line: rgba(20, 22, 31, 0.12);
  --nav-bg: rgba(247, 245, 241, 0.9);
  --radius: 14px;
  --maxw: 1080px;

  /* Hero e Contato são sempre um painel escuro, nos dois temas --
     não usam --ink/--paper, que mudam de sentido no escuro. */
  --panel-bg: #14161f;
  --panel-text: #f7f5f1;
  --panel-muted: rgba(247, 245, 241, 0.78);
  --panel-line: rgba(247, 245, 241, 0.35);
}

:root[data-theme="dark"] {
  --ink: #f2f0ea;
  --paper: #121319;
  --surface: #1c1e26;
  --muted: #9a9ea6;
  --accent: #dba05c;
  --line: rgba(242, 240, 234, 0.14);
  --nav-bg: rgba(18, 19, 25, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f0ea;
    --paper: #121319;
    --surface: #1c1e26;
    --muted: #9a9ea6;
    --accent: #dba05c;
    --line: rgba(242, 240, 234, 0.14);
    --nav-bg: rgba(18, 19, 25, 0.85);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Entrada do hero ao carregar a página */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-text > * { animation: rise-in 0.7s ease both; }
.hero-text .eyebrow { animation-delay: 0s; }
.hero-text h1 { animation-delay: 0.08s; }
.hero-text .hero-sub { animation-delay: 0.16s; }
.hero-text .hero-cta { animation-delay: 0.24s; }

/* Revelação suave ao rolar -- .is-visible é ligada por IntersectionObserver em script.js */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.solucoes-grid .reveal:nth-child(2),
.cases-grid .reveal:nth-child(2),
.processo-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

.solucoes-grid .reveal:nth-child(3),
.cases-grid .reveal:nth-child(3),
.processo-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.processo-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .hero-media { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

section { padding: 72px 0; scroll-margin-top: 80px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero {
  background: var(--panel-bg);
  color: var(--panel-text);
  padding: 120px 0 80px;
}

.hero .eyebrow { color: var(--accent); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero-sub {
  color: var(--panel-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.hero .btn-secondary { color: var(--panel-text); border-color: var(--panel-line); }

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  animation: rise-in 0.8s ease 0.15s both;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(247, 245, 241, 0.45);
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active { background: var(--accent); }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 280px; margin-inline: auto; }
  .hero { padding-top: 100px; }
}

.product-hero { text-align: left; }

.back-link {
  display: block;
  width: fit-content;
  color: var(--panel-muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.back-link:hover { color: var(--panel-text); }

.product-hero .product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.product-hero .product-icon svg { width: 28px; height: 28px; }

.product-hero .hero-sub { max-width: 60ch; }

/* Hero das páginas de produto: texto à esquerda, personagem animado à direita */
.product-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-hero-anim {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  animation: rise-in 0.8s ease 0.15s both;
}
.product-hero-anim .op-stage { transform: scale(1.55); transform-origin: center bottom; margin-top: 90px; }
.product-hero-anim .px-stage { max-width: 340px; transform: scale(1.12); }
.vs-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  transform: scale(1.4);
}

/* Janela média (meia tela, tablet): continua à direita, só encolhe a animação */
@media (max-width: 900px) {
  .product-hero-inner { grid-template-columns: 1.2fr 1fr; gap: 24px; }
  .product-hero-anim { min-height: 260px; }
  .product-hero-anim .op-stage { transform: scale(1.2); margin-top: 30px; }
  .product-hero-anim .px-stage { transform: none; }
  .vs-hero-wrap { transform: scale(1.1); }
}

/* Celular: não cabe lado a lado, a animação desce pra baixo do texto */
@media (max-width: 560px) {
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-hero-anim { min-height: 0; }
  .product-hero-anim .px-stage { max-width: 280px; }
  .vs-hero-wrap { transform: scale(1.15); margin-block: 16px; }
}

#solucoes h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); max-width: 30ch; }

.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.solucao-card { perspective: 1600px; display: flex; flex-direction: column; }

.solucao-flip {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.solucao-card:hover .solucao-flip { transform: rotateY(180deg); }

.solucao-front, .solucao-back {
  backface-visibility: hidden;
  border-radius: var(--radius);
}

.solucao-front {
  position: relative;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--surface);
}

.solucao-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  padding: 20px;
  text-align: center;
}

.solucao-back-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.solucao-back-paralelo {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 24% 82%, rgba(255,255,255,.4), transparent),
    radial-gradient(120% 90% at 80% 100%, #2a1454 0%, #0d0820 60%);
}
.solucao-back-version { background: #23264a; }
.solucao-back-op { background: radial-gradient(90% 70% at 50% 40%, #121a33 0%, #070a14 70%); }

/* ---------- Paralelo: banner entra, Heim abre o chat (loop 10s) ---------- */
.px-stage { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1 / 1; }
.px-window {
  position: absolute; inset: 0 14% 14% 0;
  border-radius: 10px; overflow: hidden;
  background: #f4f2fa; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.px-bar { display: flex; gap: 4px; padding: 7px 8px; background: #e2def0; }
.px-bar i { width: 6px; height: 6px; border-radius: 50%; background: #b9b3cf; }
.px-banner {
  margin: 8px; padding: 7px 9px; border-radius: 7px;
  background: linear-gradient(90deg, #7c3aed, #a855f7); color: #fff;
  font-size: 0.62rem; font-weight: 600; text-align: left;
  display: flex; justify-content: space-between; gap: 6px;
  animation: px-banner 10s ease-in-out infinite;
}
.px-skel { padding: 0 8px; display: grid; gap: 6px; }
.px-skel i { height: 7px; border-radius: 4px; background: #dcd8e8; }
.px-skel i:nth-child(2) { width: 70%; }
.px-skel i:nth-child(4) { width: 55%; }

.px-chat {
  position: absolute; right: 0; bottom: 0; width: 64%;
  padding: 8px; border-radius: 12px 12px 4px 12px;
  background: #140c2a; border: 1px solid rgba(168,85,247,.35);
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  transform-origin: bottom right;
  animation: px-chat 10s ease-in-out infinite;
}
.px-chat-head { display: flex; align-items: center; gap: 5px; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: .03em; }
.heim-eye { width: 26px; height: 26px; filter: drop-shadow(0 0 5px rgba(245,158,11,.55)); }
.heim-lid { transform-box: fill-box; transform-origin: center; animation: heim-blink 4s ease-in-out infinite; }
.heim-ball { animation: heim-look 3.2s ease-in-out infinite; }
.px-msg { margin: 0; padding: 5px 7px; border-radius: 9px; font-size: 0.58rem; line-height: 1.3; }
.px-msg-user { align-self: flex-end; background: #7c3aed; color: #fff; animation: px-msg-user 10s ease-in-out infinite; }
.px-msg-bot { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); overflow: hidden; animation: px-msg-bot 10s ease-in-out infinite; }
.px-msg-bot b { color: #fbbf24; font-weight: 600; }
.px-typing { margin: 0; display: flex; gap: 3px; padding: 0 4px; overflow: hidden; animation: px-typing 10s linear infinite; }
.px-typing i { width: 4px; height: 4px; border-radius: 50%; background: #fbbf24; animation: px-dot 0.9s ease-in-out infinite; }
.px-typing i:nth-child(2) { animation-delay: .15s; }
.px-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes px-banner { 0%, 6% { opacity: 0; transform: translateY(-14px); } 12%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes px-chat { 0%, 18% { opacity: 0; transform: scale(.6); } 25%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes px-msg-user { 0%, 32% { opacity: 0; transform: translateY(6px); } 36%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes px-typing { 0%, 40% { opacity: 0; max-height: 0; } 42%, 56% { opacity: 1; max-height: 10px; } 58%, 100% { opacity: 0; max-height: 0; } }
@keyframes px-msg-bot { 0%, 57% { opacity: 0; max-height: 0; padding-block: 0; } 62%, 92% { opacity: 1; max-height: 60px; padding-block: 5px; } 97%, 100% { opacity: 0; max-height: 60px; padding-block: 5px; } }
@keyframes px-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-3px); opacity: 1; } }

@keyframes heim-look {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(2.5px, .6px); }
  45% { transform: translate(-2.5px, -1px); }
  70% { transform: translate(1px, 1.2px); }
}
@keyframes heim-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.07); }
}

/* ---------- Version Suite: pessoas + relógio de ponto + tarefas ---------- */
.vs-top { display: flex; align-items: center; justify-content: space-between; width: 72%; max-width: 190px; }
.vs-people { display: flex; }
.vs-people span {
  width: 24px; height: 24px; margin-left: -6px; border-radius: 50%;
  border: 2px solid #23264a; display: grid; place-items: center;
  font-size: 0.5rem; font-weight: 700; color: #fff;
  animation: vs-person 4.5s ease-in-out infinite;
}
.vs-people span:first-child { margin-left: 0; background: #f59e0b; }
.vs-people span:nth-child(2) { background: #22c3a6; animation-delay: .3s; }
.vs-people span:nth-child(3) { background: #e8618c; animation-delay: .6s; }
.vs-clock { display: flex; align-items: center; gap: 5px; font-size: 0.55rem; line-height: 1.2; color: rgba(255,255,255,.6); text-align: left; }
.vs-clock b { color: #c7caf5; font-weight: 600; }
.vs-clock svg { width: 26px; height: 26px; }
.vs-clock circle:first-child { fill: none; stroke: #8b90d6; stroke-width: 2.5; }
.vs-clock line { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; transform-origin: 20px 20px; }
.vs-hand-m { animation: vs-spin 3s linear infinite; }
.vs-hand-h { animation: vs-spin 36s linear infinite; }
.vs-pin { fill: #fff; }

.version-blocks { position: relative; width: 72%; max-width: 190px; aspect-ratio: 4 / 3; }
.v-block {
  position: absolute;
  left: 22px;
  top: 0;
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: #8b90d6;
  animation-duration: 4.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
/* avatar de quem pegou a tarefa */
.v-block::before {
  content: ""; position: absolute; left: 4px; top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  border: 1.5px solid #23264a;
}
.v-block::after {
  content: ""; position: absolute; left: 16px; right: 5px; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255,255,255,.45);
}
.v-block:nth-child(3n+1)::before { background: #f59e0b; }
.v-block:nth-child(3n+2)::before { background: #22c3a6; }
.v-block:nth-child(3n)::before { background: #e8618c; }
.v-block:nth-child(1) { animation-name: v-shuffle-1; }
.v-block:nth-child(2) { animation-name: v-shuffle-2; }
.v-block:nth-child(3) { animation-name: v-shuffle-3; }
.v-block:nth-child(4) { animation-name: v-shuffle-4; }
.v-block:nth-child(5) { animation-name: v-shuffle-5; }
.v-block:nth-child(6) { animation-name: v-shuffle-6; }

@keyframes v-shuffle-1 { 0%, 100% { transform: translate(6px, 74px) rotate(-8deg); } 50% { transform: translate(0, 0) rotate(0deg); } }
@keyframes v-shuffle-2 { 0%, 100% { transform: translate(120px, 8px) rotate(10deg); } 50% { transform: translate(56px, 0) rotate(0deg); } }
@keyframes v-shuffle-3 { 0%, 100% { transform: translate(0, 6px) rotate(6deg); } 50% { transform: translate(112px, 0) rotate(0deg); } }
@keyframes v-shuffle-4 { 0%, 100% { transform: translate(90px, 88px) rotate(-10deg); } 50% { transform: translate(0, 40px) rotate(0deg); } }
@keyframes v-shuffle-5 { 0%, 100% { transform: translate(140px, 60px) rotate(8deg); } 50% { transform: translate(56px, 40px) rotate(0deg); } }
@keyframes v-shuffle-6 { 0%, 100% { transform: translate(30px, 20px) rotate(-6deg); } 50% { transform: translate(112px, 40px) rotate(0deg); } }
@keyframes vs-spin { to { transform: rotate(360deg); } }
@keyframes vs-person { 0%, 35%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } 55% { transform: translateY(0); } }

/* ---------- Ouro & Prata: moedas sobem a faixa, dívida derruba (loop 12s) ---------- */
.op-stage { position: relative; width: 100%; max-width: 200px; height: 170px; }
.op-ori {
  position: absolute; left: 50%; bottom: 0; height: 150px; width: auto;
  transform: translateX(-50%); opacity: 0;
  animation: op-stage 12s ease-in-out infinite;
}
/* cada estado ocupa 1/4 do ciclo; os atrasos negativos deslocam o mesmo keyframe */
.op-stage .op-ori-amber, .op-score .op-score-amber { animation-delay: -9s; }
.op-stage .op-ori-mint, .op-score .op-score-mint { animation-delay: -6s; }
.op-stage .op-ori-lav, .op-score .op-score-lav { animation-delay: -3s; }

.op-coin {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.55rem; font-weight: 800; color: #7a4a06;
  background: radial-gradient(circle at 35% 30%, #fde68a, #f5b82e 55%, #b7791f);
  box-shadow: 0 0 10px rgba(245, 184, 46, .6);
  opacity: 0; animation: op-drop 12s ease-in infinite;
}
.op-coin:nth-child(1) { margin-left: -30px; }
.op-coin:nth-child(2) { animation-delay: -9s; margin-left: 4px; }
.op-coin:nth-child(3) { animation-delay: -6s; }
.op-debt {
  position: absolute; left: 50%; top: 0; z-index: 2; margin-left: -24px;
  padding: 3px 7px; border-radius: 5px;
  font-size: 0.55rem; font-weight: 700; color: #fff;
  background: #e0453a; box-shadow: 0 0 12px rgba(224, 69, 58, .55);
  opacity: 0; animation: op-drop 12s ease-in infinite; animation-delay: -3s;
}

.op-bubble {
  position: absolute;
  top: 26px;
  z-index: 3;
  max-width: 108px;
  padding: 6px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  color: #1c1e26;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  opacity: 0;
  animation: op-bubble-float 6s ease-in-out infinite;
}

.op-bubble::before, .op-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
}

.op-bubble::before { width: 8px; height: 8px; bottom: -7px; }
.op-bubble::after { width: 4px; height: 4px; bottom: -13px; }

.op-bubble-1 { left: -6px; }
.op-bubble-1::before { left: 16px; }
.op-bubble-1::after { left: 9px; }

.op-bubble-2 {
  right: -6px;
  text-align: right;
  animation-delay: 3s;
}
.op-bubble-2::before { right: 16px; }
.op-bubble-2::after { right: 9px; }

@keyframes op-bubble-float {
  0%, 6% { opacity: 0; transform: translateY(6px) scale(.92); }
  12%, 44% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: translateY(6px) scale(.92); }
}

.op-score { position: relative; height: 22px; width: 120px; }
.op-score span {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 999px; font-size: 0.66rem; font-weight: 700;
  background: rgba(255,255,255,.06); opacity: 0;
  animation: op-stage 12s ease-in-out infinite;
}
.op-score-red { color: #ff6b57; }
.op-score-amber { color: #f5c04a; }
.op-score-mint { color: #3ee0c0; }
.op-score-lav { color: #b69cff; }

.op-bills { display: flex; gap: 6px; }
.op-bills span {
  padding: 3px 7px; border-radius: 6px; font-size: 0.56rem; font-weight: 600;
  color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.14);
  animation: op-bill-1 12s ease-in-out infinite;
}
.op-bills small { font-weight: 400; opacity: .7; }
.op-bills span:nth-child(2) { animation-name: op-bill-2; }
.op-bills span:nth-child(3) { animation-name: op-bill-3; }

@keyframes op-stage { 0%, 23% { opacity: 1; } 26%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes op-drop {
  0%, 10% { opacity: 0; transform: translateY(-10px) rotate(0); }
  13% { opacity: 1; }
  22% { opacity: 1; transform: translateY(70px) rotate(200deg) scale(1); }
  25%, 100% { opacity: 0; transform: translateY(80px) rotate(220deg) scale(.3); }
}
@keyframes op-bill-1 { 0%, 24% { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.14); background: transparent; } 26%, 97% { color: #3ee0c0; border-color: rgba(62,224,192,.5); background: rgba(62,224,192,.1); } 100% { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.14); background: transparent; } }
@keyframes op-bill-2 { 0%, 49% { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.14); background: transparent; } 51%, 97% { color: #3ee0c0; border-color: rgba(62,224,192,.5); background: rgba(62,224,192,.1); } 100% { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.14); background: transparent; } }
@keyframes op-bill-3 { 0%, 74% { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.14); background: transparent; } 76%, 97% { color: #3ee0c0; border-color: rgba(62,224,192,.5); background: rgba(62,224,192,.1); } 100% { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.14); background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .solucao-flip { transition: none; }
  .solucao-back *, .solucao-back *::before, .solucao-back *::after,
  .product-hero-anim, .product-hero-anim *, .product-hero-anim *::before, .product-hero-anim *::after { animation: none !important; }
  .px-banner, .px-chat, .px-msg, .op-stage .op-ori-lav, .op-score .op-score-lav, .op-bubble { opacity: 1; }
  .px-typing, .op-coin, .op-debt { display: none; }
  .op-bubble-2 { display: none; }
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.card-icon svg { width: 20px; height: 20px; }

.card-icon-paralelo { background: rgba(62, 110, 142, 0.14); color: #3e6e8e; }
.card-icon-version { background: rgba(91, 95, 151, 0.14); color: #5b5f97; }
.card-icon-op { background: rgba(199, 125, 46, 0.14); color: var(--accent); }
.card-icon-processo { background: rgba(199, 125, 46, 0.12); color: var(--accent); }

.card-kind {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.solucao-front h3 { font-size: 1.25rem; }

.card-link {
  display: inline-block;
  margin: 16px 28px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.card-link:hover { text-decoration: underline; }

.card-tagline {
  color: var(--muted);
  font-weight: 500;
}

.solucao-front ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.92rem;
}

.solucao-front li { margin-bottom: 6px; }

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

#cases { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

#cases h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); max-width: 30ch; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.case-card {
  perspective: 1200px;
  cursor: pointer;
}

.case-card:focus-visible .flip-front { outline: 2px solid var(--accent); outline-offset: 2px; }

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.case-card.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  backface-visibility: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flip-front {
  position: relative;
  padding: 28px;
  background: var(--paper);
  overflow: hidden;
}

.flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  overflow: hidden;
  background: var(--surface);
}

.flip-back img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-peek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-card:hover .case-peek,
.case-card:focus-visible .case-peek {
  opacity: 0.9;
  animation: case-peek-shake 0.4s ease;
}

@keyframes case-peek-shake {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-1.2deg); }
  70% { transform: rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .case-card:hover .case-peek, .case-card:focus-visible .case-peek { animation: none; }
}

.case-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.case-card h3 { font-size: 1.1rem; margin-bottom: 2px; }

.case-role {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.case-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
}

.case-card li { margin-bottom: 6px; }

.cases-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

#sobre { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sobre-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.sobre-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  position: sticky;
  top: 96px;
}

.sobre-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.sobre-texto { font-size: 1.02rem; color: var(--ink); }

.trajetoria {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.trajetoria li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.trajetoria li span {
  flex: 0 0 110px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#ferramentas h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 32ch; }

.ferramentas-intro {
  max-width: 56ch;
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--ink);
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.processo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.processo-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.processo-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

.processo-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }

.processo-card .processo-tagline {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  background: var(--paper);
}

@media (max-width: 860px) {
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-photo { position: static; max-width: 220px; }
  .processo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .processo-grid { grid-template-columns: 1fr; }
  .trajetoria li { flex-direction: column; gap: 2px; }
}

#navbar {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }

.nav-brand { font-weight: 700; text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 8px; }

#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

#theme-toggle svg { width: 17px; height: 17px; }

#theme-toggle .icon-moon { display: none; }

:root[data-theme="dark"] #theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-moon { display: block; }

#nav-links { display: flex; align-items: center; gap: 24px; }

#nav-links a:not(.btn) { text-decoration: none; color: var(--ink); font-size: 0.92rem; }

#nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  #nav-toggle { display: block; }
  #nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    display: none;
  }
  #nav-links.open { display: flex; }
}


.contato {
  background: var(--panel-bg);
  color: var(--panel-text);
  text-align: center;
}

.contato .eyebrow { color: var(--accent); }

.contato h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 28ch; margin-inline: auto; }

.contato-sub { color: var(--panel-muted); margin-bottom: 24px; }

.contato .hero-cta { justify-content: center; }
.contato .btn-secondary { color: var(--panel-text); border-color: var(--panel-line); }

footer { padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
