/* ===== iCodev — Mockups de Produto (iConnect + iAnalytical) =====
   Versões "ao vivo" para passar imagem tecnológica. Cores da marca:
   coral #EB435E, índigo #8f8cee. Verde #10b981 só para status "OK". */

.mockup-iconnect, .mockup-ianalytical {
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
}

/* Pontos "ao vivo" pulsantes */
.live-dot, .ok-dot, .rec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  vertical-align: middle;
}
.live-dot { background: #EB435E; box-shadow: 0 0 8px #EB435E; animation: pulseDot 1.4s infinite; }
.ok-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }
.rec-dot { background: #EB435E; margin-right: 5px; animation: pulseDot 1s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ---------- iConnect: dashboard ao vivo ---------- */
.ic-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ic-live {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .5px;
  color: #f4748a; text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}
.ic-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ic-stat {
  background: rgba(143, 140, 238, 0.10); border: 1px solid rgba(143, 140, 238, 0.28);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}
.ic-val { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.ic-unit { font-size: .9rem; color: #8f8cee; }
.ic-lbl { font-size: .68rem; color: #aeb6dd; margin-top: 5px; font-weight: 500; }

/* Gráfico de linha / área animado */
.ic-linewrap {
  background: rgba(143,140,238,0.07); border: 1px solid rgba(143,140,238,0.22);
  border-radius: 10px; padding: 10px 12px 6px;
}
.ic-chart-head { font-size: .66rem; color: #aeb6dd; font-weight: 600; margin-bottom: 6px; letter-spacing: .3px; }
.ic-line { width: 100%; height: 56px; display: block; overflow: visible; }
.ic-area { fill: url(#icFill); }
.ic-stroke {
  fill: none; stroke: #EB435E; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(235,67,94,0.5));
  stroke-dasharray: 600; stroke-dashoffset: 600;
}
.ic-line.draw .ic-stroke { animation: drawLine 1.8s ease forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.ic-dot { fill: #fff; stroke: #EB435E; stroke-width: 2; opacity: 0; }
.ic-line.draw .ic-dot { animation: dotIn .4s ease 1.7s forwards, dotPulse 1.8s ease-in-out 2.1s infinite; }
@keyframes dotIn { to { opacity: 1; } }
@keyframes dotPulse { 0%,100% { r: 3.5; } 50% { r: 5; } }

/* Feed de chamados entrando em tempo real */
.ic-feed { display: flex; flex-direction: column; gap: 5px; min-height: 44px; }
.ic-row {
  font-size: .7rem; color: #cdd3ef; background: rgba(255,255,255,0.04);
  border-left: 2px solid #EB435E; border-radius: 4px; padding: 5px 8px;
  display: flex; align-items: center; gap: 6px;
  animation: rowIn .4s ease;
}
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---------- iAnalytical: feed de IA ---------- */
.cam {
  flex: 1; position: relative; margin: 12px; min-height: 200px;
  background: radial-gradient(120% 120% at 50% 40%, #0c1430 0%, #060812 100%);
  border: 1px solid rgba(143,140,238,0.28); border-radius: 8px; overflow: hidden;
}
/* grade técnica de fundo */
.cam-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(143,140,238,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,140,238,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
/* mapa de calor (densidade de movimento) */
.cam-heat { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; }
.heat { position: absolute; border-radius: 50%; filter: blur(10px); animation: heatPulse 4s ease-in-out infinite; }
.heat.h1 {
  left: 8%; top: 38%; width: 34%; height: 50%;
  background: radial-gradient(circle, rgba(235,67,94,0.55) 0%, rgba(247,150,30,0.30) 45%, transparent 70%);
}
.heat.h2 {
  left: 48%; top: 46%; width: 30%; height: 44%; animation-delay: 1.3s;
  background: radial-gradient(circle, rgba(255,210,0,0.40) 0%, rgba(247,150,30,0.22) 45%, transparent 70%);
}
.heat.h3 {
  left: 70%; top: 22%; width: 22%; height: 30%; animation-delay: 2.4s;
  background: radial-gradient(circle, rgba(235,67,94,0.35) 0%, transparent 70%);
}
@keyframes heatPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }

/* linha de varredura */
.cam-scan {
  position: absolute; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,0.18), rgba(143,140,238,0.30), transparent);
  box-shadow: 0 0 14px rgba(143,140,238,0.4);
  animation: scan 3.4s linear infinite;
}
@keyframes scan { 0% { top: -40px; } 100% { top: 100%; } }
/* molduras de canto (HUD) */
.cam-corner { position: absolute; width: 16px; height: 16px; border: 2px solid #EB435E; }
.cam-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.cam-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.cam-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.cam-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
/* topo: REC + timestamp */
.cam-top {
  position: absolute; top: 10px; left: 0; right: 0; padding: 0 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; font-family: 'Monaco','Menlo',monospace; z-index: 3;
}
.cam-rec { color: #EB435E; font-weight: 700; display: flex; align-items: center; }
.cam-time { color: #aeb6dd; letter-spacing: .5px; }
/* bounding boxes "detectadas" */
.bbox {
  position: absolute; border: 1.5px solid #EB435E; border-radius: 3px;
  box-shadow: 0 0 12px rgba(235,67,94,0.35); z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  color: rgba(235,67,94,0.55); font-size: 1.4rem;
}
.bbox i { opacity: .35; margin-bottom: 4px; }
.bbox-tag {
  position: absolute; top: -16px; left: -1.5px;
  background: #EB435E; color: #fff; font-size: .6rem; font-weight: 700;
  padding: 1px 6px; border-radius: 3px 3px 3px 0; white-space: nowrap;
  font-family: 'Monaco','Menlo',monospace;
}
.bbox.alert { border-color: #8f8cee; box-shadow: 0 0 12px rgba(143,140,238,0.4); color: rgba(143,140,238,0.55); }
.bbox.alert .bbox-tag { background: #8f8cee; }
.bbox.b1 { left: 14%; top: 32%; width: 20%; height: 46%; animation: track1 6s ease-in-out infinite; }
.bbox.b2 { left: 55%; top: 40%; width: 18%; height: 40%; animation: track2 7s ease-in-out infinite; }
.bbox.b3 { left: 76%; top: 24%; width: 14%; height: 22%; animation: track3 5s ease-in-out infinite; }
@keyframes track1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8px,-5px); } }
@keyframes track2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-10px,4px); } }
@keyframes track3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,6px); } }
/* barra de status inferior */
.cam-stats { display: flex; gap: 8px; padding: 0 12px 12px; }
.cam-stat {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(143,140,238,0.22);
  border-radius: 6px; padding: 7px 8px; font-size: .72rem; color: #cdd3ef;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.cam-stat b { color: #fff; font-variant-numeric: tabular-nums; }
.cam-stat.ok { color: #10b981; }

/* Respeita quem prefere menos movimento: congela as animações */
@media (prefers-reduced-motion: reduce) {
  .cam-scan, .bbox, .live-dot, .rec-dot, .heat, .ic-dot { animation: none !important; }
  .cam-scan { display: none; }
  .ic-stroke { stroke-dashoffset: 0; }   /* mostra a linha já desenhada */
  .ic-dot { opacity: 1; }
}
