/* ═══════════════════════════════════════════════════════════
   MS Developer — Shared Project Page CSS
   Usado em: approtina, mercado-pdv, vitoria-fitness, automacao-whatsapp
   Contém padrões duplicados extraídos dos 4 projetos.
═══════════════════════════════════════════════════════════ */

/* ── Garante visibilidade imediata (sem splash nas páginas de projeto) ── */
#site { opacity: 1; }

/* ═══════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════ */
.case-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .76rem;
  color: var(--muted-2); letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 44px);
  opacity: 0; transform: translateY(10px);
  animation: heroFade .8s var(--ease) .15s forwards;
}
.case-breadcrumb a { color: var(--muted); transition: color var(--t); }
.case-breadcrumb span { color: var(--muted-2); }
.case-breadcrumb > span:last-child { color: var(--text); }

/* ═══════════════════════════════════════════════
   TECH BADGES (hero)
═══════════════════════════════════════════════ */
.tech-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  animation: heroRise 1s var(--ease) .9s forwards;
}
.tech-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: .8rem; font-weight: 500;
  color: var(--text-soft);
  transition: all var(--t);
}
.tech-chip:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}
.tech-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* ═══════════════════════════════════════════════
   GHOST BUTTON (hero)
═══════════════════════════════════════════════ */
.btn-outline.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.btn-outline.ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-soft);
  background: var(--surface);
}

/* ═══════════════════════════════════════════════
   HERO SCROLL INDICATOR (genérico)
═══════════════════════════════════════════════ */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  animation: heroFade .8s var(--ease) 1.4s forwards;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ═══════════════════════════════════════════════
   FEAT CARDS (features section)
═══════════════════════════════════════════════ */
.feat-card {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  overflow: hidden;
  isolation: isolate;
}
.feat-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t);
  z-index: -1;
}
.feat-card:hover {
  transform: translateY(-6px);
}
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  transition: transform var(--t);
}
.feat-card:hover .feat-icon { transform: rotate(-6deg) scale(1.06); }
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}
.feat-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   EDGE ITEMS (diferenciais section)
═══════════════════════════════════════════════ */
.edge-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.edge-item {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  overflow: hidden;
}
.edge-item::after {
  content: attr(data-num);
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted-2);
  letter-spacing: .12em;
  font-weight: 700;
}
.edge-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.edge-item:hover {
  transform: translateY(-4px);
}
.edge-item:hover::before { transform: scaleY(1); }
.edge-item h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.edge-item p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   TECH CARDS (tech section)
═══════════════════════════════════════════════ */
.tech-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent, var(--cyan)), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t);
}
.tech-card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
}
.tech-card:hover::before { opacity: 1; }
.tc-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display: grid; place-items: center;
  color: var(--accent, var(--cyan));
  transition: all var(--t);
}
body.light .tc-icon { background: #f4f6fb; }
.tech-card:hover .tc-icon {
  background: var(--accent, var(--cyan));
  color: #fff;
  transform: scale(1.05);
}
.tc-icon svg { width: 28px; height: 28px; }
.tech-card h4 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.tech-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   CTA WRAP (seção CTA final — comum a todos)
═══════════════════════════════════════════════ */
.cta-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
}
.cta-glow {
  position: absolute; inset: -30%;
  filter: blur(50px);
  z-index: -2;
}
.cta-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 90%);
}
body.light .cta-grid-bg {
  background-image:
    linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px);
}
.cta-inner {
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 60px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-inner .section-label {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.cta-inner h2 {
  font-family: var(--head);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.cta-inner h2 em {
  font-style: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-inner p {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 30px;
}
.cta-btns {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════
   ARCHITECTURE (arch-canvas, arch-layer, arch-node)
   — compartilhado entre mercado-pdv e vitoria-fitness
═══════════════════════════════════════════════ */
.arch-canvas {
  max-width: 980px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
}
.arch-layer {
  width: 100%;
  position: relative;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.arch-layer::before {
  content: attr(data-layer);
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translate(-100%, -50%);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.arch-layer.cloud { padding-top: 12px; }
.arch-node {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all var(--t);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.arch-node::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.arch-node:hover { transform: translateY(-4px); }
.arch-node:hover::before { opacity: 1; }
.arch-i {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
}
.arch-i svg { width: 22px; height: 22px; }
.arch-node h4 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.arch-node p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
}
.arch-flow {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
}
.arch-flow span {
  display: block;
  width: 1px; height: 16px;
  position: relative;
}
.arch-flow span::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: .6;
}

/* ═══════════════════════════════════════════════
   SECURITY CARDS
   — compartilhado entre mercado-pdv e vitoria-fitness
═══════════════════════════════════════════════ */
.sec-card {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.sec-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(16,185,129,.08));
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.sec-card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.30); }
.sec-card:hover::after { opacity: 1; }
.sec-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.sec-tag {
  font-size: .72rem;
  color: #10b981;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.24);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.sec-tag.mono { font-family: var(--mono); }
.sec-led {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  position: relative;
}
.sec-led.on {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}
.sec-card h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}
.sec-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   ROADMAP
   — compartilhado entre mercado-pdv e vitoria-fitness
═══════════════════════════════════════════════ */
.road-line {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}
.road-line::before {
  content: '';
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
}
.road-item {
  position: relative;
  margin-bottom: 22px;
}
.road-item:last-child { margin-bottom: 0; }
.road-dot {
  position: absolute;
  left: -36px; top: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid;
  display: grid; place-items: center;
  z-index: 2;
}
.road-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  background: currentColor;
}
.road-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.road-card:hover { transform: translateX(6px); }
.road-stage {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.road-card h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.road-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS (project pages)
═══════════════════════════════════════════════ */
.reveal,
.reveal-l,
.reveal-r,
.reveal-line {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal       { transform: translateY(30px); }
.reveal-l     { transform: translateX(-30px); }
.reveal-r     { transform: translateX(30px); }
.reveal-line  { transform: translateY(40px); }

.reveal.on,
.reveal-l.on,
.reveal-r.on,
.reveal-line.on {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   SECTION-HEADER override (project pages)
═══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section-header .section-label {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-header .section-title {
  font-family: var(--head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.section-header .section-title em {
  font-style: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header .section-sub {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   HERO ANIMATIONS (keyframes compartilhados)
═══════════════════════════════════════════════ */
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-l, .reveal-r, .reveal-line { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — mobile (project pages)
═══════════════════════════════════════════════ */
@media (max-width: 560px) {
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn-primary,
  .cta-btns .btn-outline { justify-content: center; }
  .road-line { padding-left: 30px; }
  .road-dot  { left: -30px; width: 20px; height: 20px; }
}
