/* ============================================
   ZAPPIX ANIMAÇÕES — Keyframes hero1–4
   ============================================ */

/* ══════════════════════════════════════════
   HERO 1 — Pipeline pedido → Pix
   ══════════════════════════════════════════ */

@keyframes particleFlow {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes nodePing {
  0%   { box-shadow: 0 0 0 0   rgba(255,92,43,0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(255,92,43,0); }
  100% { box-shadow: 0 0 0 0   rgba(255,92,43,0); }
}

@keyframes lineActive {
  0%,100% { background: rgba(255,92,43,0.15); }
  50%     { background: rgba(255,92,43,0.5); }
}

@keyframes checkAppear {
  0%,80%  { opacity: 0; transform: scale(0.5); }
  90%,100%{ opacity: 1; transform: scale(1); }
}

.pipeline-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 20px 0;
}

.pipe-node {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.pipe-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,92,43,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(255,92,43,0.1);
  position: relative;
  flex-shrink: 0;
}

.pipe-icon.active { animation: nodePing 6s ease-out infinite; }
.pipe-node:nth-child(1) .pipe-icon.active { animation-delay: 0.5s; }
.pipe-node:nth-child(3) .pipe-icon.active { animation-delay: 2s; }
.pipe-node:nth-child(5) .pipe-icon.active { animation-delay: 3.5s; }
.pipe-node:nth-child(7) .pipe-icon.active { animation-delay: 5s; }

.pipe-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pipe-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.pipe-desc {
  font-size: 0.72rem;
  color: var(--gray-400);
}

/* Linha vertical entre nós */
.pipe-connector {
  width: 2px;
  height: 40px;
  background: rgba(255,92,43,0.15);
  margin: 0;
  position: relative;
  overflow: hidden;
  animation: lineActive 6s ease-in-out infinite;
}

/* Partícula descendo */
.pipe-connector::after {
  content: '';
  position: absolute;
  top: 0; left: -2px;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, var(--zappix), transparent);
  animation: particleFlow 6s linear infinite;
}

.pipe-connector:nth-child(2)::after  { animation-delay: 0s; }
.pipe-connector:nth-child(4)::after  { animation-delay: 1.5s; }
.pipe-connector:nth-child(6)::after  { animation-delay: 3s; }

/* ══════════════════════════════════════════
   HERO 2 — iPhone com Chat de Pedido
   ══════════════════════════════════════════ */

@keyframes iphoneFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes bubbleIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.9); }
  20%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes typingDots {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 1; }
}

.iphone-wrap {
  position: relative;
  padding-top: 18px; /* reserva espaço para o float subir -14px */
  animation: iphoneFloat 5s ease-in-out infinite;
}

.iphone-body {
  width: 200px;
  background: #1A1A1A;
  border-radius: 32px;
  padding: 14px 8px;
  box-shadow:
    0 0 0 2px #333,
    0 30px 70px rgba(255,92,43,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

/* Notch */
.iphone-notch {
  width: 80px;
  height: 22px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 5;
}
.iphone-notch::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #111;
}

/* Tela WhatsApp */
.iphone-screen {
  background: #ECE5DD;
  border-radius: 18px;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.wa-header {
  background: #075E54;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.wa-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.wa-status {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
}

.wa-messages {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wa-msg {
  max-width: 75%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.4;
  font-family: var(--font-sans);
  animation: bubbleIn 7s ease-in-out infinite;
}

.wa-msg-in {
  background: #fff;
  align-self: flex-start;
  border-radius: 0 8px 8px 8px;
  color: #1A1A1A;
}

.wa-msg-out {
  background: #DCF8C6;
  align-self: flex-end;
  border-radius: 8px 0 8px 8px;
  color: #1A1A1A;
}

.wa-msg-bot {
  background: #fff;
  align-self: flex-start;
  border-radius: 0 8px 8px 8px;
  color: #1A1A1A;
  border-left: 3px solid #FF5C2B;
}

.wa-msg-pix {
  background: linear-gradient(135deg, #FF5C2B, #FF8A5C);
  color: #fff;
  align-self: flex-start;
  border-radius: 0 8px 8px 8px;
  font-weight: 600;
}

.wa-msg:nth-child(1) { animation-delay: 0s; }
.wa-msg:nth-child(2) { animation-delay: 1s; }
.wa-msg:nth-child(3) { animation-delay: 2.5s; }
.wa-msg:nth-child(4) { animation-delay: 4s; }
.wa-msg:nth-child(5) { animation-delay: 5.5s; }

/* Bolinha de digitando */
.wa-typing {
  background: #fff;
  padding: 8px 12px;
  border-radius: 0 8px 8px 8px;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin: 0 8px;
}
.wa-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #aaa;
  animation: typingDots 1s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Home bar */
.iphone-home {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* ══════════════════════════════════════════
   HERO 3 — Cozinha + Tablet de Pedidos
   ══════════════════════════════════════════ */

@keyframes flameFlicker {
  0%,100% { transform: scaleY(1)   scaleX(1);   filter: brightness(1); }
  25%     { transform: scaleY(1.08) scaleX(0.95); filter: brightness(1.15); }
  75%     { transform: scaleY(0.94) scaleX(1.04); filter: brightness(0.9); }
}

@keyframes orderSlide {
  0%   { opacity: 0; transform: translateY(100%) scale(0.95); }
  15%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20%); }
}

@keyframes warmGlow {
  0%,100% { box-shadow: 0 0 40px rgba(255,140,50,0.2), inset 0 0 30px rgba(255,100,20,0.05); }
  50%     { box-shadow: 0 0 60px rgba(255,140,50,0.35), inset 0 0 50px rgba(255,100,20,0.1); }
}

.kitchen-scene {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Parede do fundo */
.kitchen-wall {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #2A1508, #1A0D04);
}

/* Forno de tijolo */
.oven-wrap {
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 120px;
}

.oven-body {
  width: 100%;
  height: 80px;
  background: #3A1A0A;
  border-radius: 8px 8px 0 0;
  border: 2px solid #5A3020;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.oven-door {
  width: 70px; height: 55px;
  border-radius: 6px;
  background: #1A0805;
  border: 2px solid #5A3020;
  position: relative;
  overflow: hidden;
}

.oven-fire {
  position: absolute;
  bottom: 5px;
  left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px;
  background: radial-gradient(ellipse at bottom, #FF8C00, #FF4500, transparent 80%);
  border-radius: 50% 50% 30% 30%;
  animation: flameFlicker 0.8s ease-in-out infinite;
}

/* Balcão / counter */
.counter {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22%;
  background: linear-gradient(to bottom, #3A1A0A, #2A1008);
  border-top: 3px solid #5A3020;
}

/* Tablet na bancada */
.tablet-wrap {
  position: absolute;
  bottom: 22%;
  left: 8%;
  width: 160px;
  animation: warmGlow 4s ease-in-out infinite;
}

.tablet-body {
  background: #1A1A1A;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.tablet-screen {
  background: #0D0D0D;
  border-radius: 7px;
  overflow: hidden;
}

.tablet-header {
  background: #FF5C2B;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tablet-header span {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-sans);
}
.tablet-count {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.55rem;
  color: #fff;
}

.tablet-orders {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100px;
  overflow: hidden;
}

.tablet-order {
  background: #1A1A1A;
  border: 1px solid rgba(255,92,43,0.2);
  border-radius: 5px;
  padding: 5px 7px;
  animation: orderSlide 7s ease-in-out infinite;
}
.tablet-order:nth-child(1) { animation-delay: 0s; }
.tablet-order:nth-child(2) { animation-delay: 2s; }
.tablet-order:nth-child(3) { animation-delay: 4s; }

.order-num {
  font-size: 0.58rem;
  font-weight: 600;
  color: #FF5C2B;
  font-family: var(--font-sans);
}
.order-item {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
}

/* Luz ambiente quente */
.warm-light {
  position: absolute;
  top: 0; right: 10%;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,160,50,0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: flameFlicker 3s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   HERO 4 — Flatlay: Pizza + Pix
   ══════════════════════════════════════════ */

@keyframes scaleIn {
  0%   { opacity: 0; transform: scale(0.6) rotateX(50deg); }
  100% { opacity: 1; transform: scale(1)   rotateX(50deg); }
}

@keyframes phoneNotifPop {
  0%,60% { opacity: 0; transform: scale(0.8) rotateX(50deg); }
  75%    { opacity: 1; transform: scale(1.05) rotateX(50deg); }
  90%,100%{ opacity: 1; transform: scale(1) rotateX(50deg); }
}

@keyframes coinFloat {
  0%,100% { transform: translateY(0) rotateX(50deg); }
  50%     { transform: translateY(-6px) rotateX(50deg); }
}

.flatlay-scene {
  perspective: 600px;
  perspective-origin: center 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.flatlay-stage {
  position: relative;
  width: 280px;
  height: 280px;
  transform: rotateX(50deg) rotateZ(-10deg);
}

/* Pizza */
.pizza-circle {
  position: absolute;
  top: 20px; left: 20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    #C8470A 0deg, #C8470A 45deg,
    #E85A10 45deg, #E85A10 90deg,
    #C8470A 90deg, #C8470A 135deg,
    #E85A10 135deg, #E85A10 180deg,
    #C8470A 180deg, #C8470A 225deg,
    #E85A10 225deg, #E85A10 270deg,
    #C8470A 270deg, #C8470A 315deg,
    #E85A10 315deg, #E85A10 360deg
  );
  box-shadow: 0 8px 24px rgba(200,71,10,0.3);
  animation: scaleIn 1s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* Fatia removida */
.pizza-slice-gone {
  position: absolute;
  top: 20px; left: 20px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cream) 0deg, var(--cream) 45deg,
    transparent 45deg
  );
  pointer-events: none;
}

/* Celular */
.flatlay-phone {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 90px; height: 55px;
  background: #1A1A1A;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: phoneNotifPop 4s ease-out forwards 1.5s;
  opacity: 0;
}

.flatlay-phone-notif {
  background: #0D0D0D;
  border-radius: 5px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.flatlay-pix-label {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.flatlay-pix-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF5C2B;
  font-family: var(--font-sans);
}
.flatlay-pix-check {
  font-size: 0.6rem;
  color: #28C840;
  font-family: var(--font-sans);
}

/* Moedas / coins */
.coin {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 2px 8px rgba(255,165,0,0.4);
  animation: coinFloat 3s ease-in-out infinite;
}
.coin-1 { width: 20px; height: 20px; top: 10px; right: 30px; animation-delay: 0s; }
.coin-2 { width: 14px; height: 14px; top: 30px; right: 10px; animation-delay: 0.5s; }
.coin-3 { width: 18px; height: 18px; bottom: 40px; left: 10px; animation-delay: 1s; }

/* ══════════════════════════════════════════
   EMBED MODE — contraste para fundo escuro
   ══════════════════════════════════════════ */

/* Hero 1 — pipeline */
.embed .pipe-title { color: rgba(255,255,255,0.88) !important; }
.embed .pipe-desc  { color: rgba(255,255,255,0.45) !important; }
.embed .pipe-icon  {
  background: rgba(255,92,43,0.12) !important;
  border-color: rgba(255,92,43,0.60) !important;
  box-shadow: 0 0 20px rgba(255,92,43,0.25) !important;
}
.embed .pipe-connector {
  background: rgba(255,92,43,0.28) !important;
}

/* Hero 2 — iPhone WhatsApp */
.embed .iphone-body {
  box-shadow:
    0 0 0 2px rgba(255,92,43,0.5),
    0 30px 70px rgba(255,92,43,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.10) !important;
}
.embed .iphone-screen { background: #1a0a00 !important; }

/* Hero 3 — cozinha (já escura, mantém) */

/* Hero 4 — flatlay: oculta o corte de fatia pois var(--cream) sumiu */
.embed .pizza-slice-gone { display: none !important; }
