/* ============================================================
   Matrix Print — Seção de Marcas
   Prefixo: mpb- (mp-brands)
   Sem conflito com outros arquivos CSS
   ============================================================ */

/* ============================================================
   SEÇÃO
   ============================================================ */
.mpb-section {
  position: relative;
  background: #0d1020;
  padding: 70px 0;
  overflow: hidden;
}

/* Partículas de fundo */
.mpb-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,26,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,107,26,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================================
   LINHAS DE LUZ (bordas superior e inferior)
   ============================================================ */
.mpb-light-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  overflow: hidden;
}

.mpb-light-line--top { top: 0; }
.mpb-light-line--bottom { bottom: 0; }

.mpb-light-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,107,26,0.1) 20%,
    rgba(255,107,26,0.6) 50%,
    rgba(255,107,26,0.1) 80%,
    transparent 100%
  );
  animation: mpb-line-scan 4s linear infinite;
}

.mpb-light-line--bottom::before {
  animation-delay: 2s;
}

@keyframes mpb-line-scan {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ============================================================
   HEADING
   ============================================================ */
.mpb-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.mpb-heading {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mpb-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF6B1A;
  background: rgba(255,107,26,0.08);
  border: 1px solid rgba(255,107,26,0.2);
  border-radius: 20px;
  padding: 7px 18px;
}

.mpb-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: rgba(160,168,192,0.5);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ============================================================
   TRACK WRAPPER
   ============================================================ */
.mpb-track-wrapper {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}

/* Fade nas bordas */
.mpb-fade-left,
.mpb-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 3;
  pointer-events: none;
}

.mpb-fade-left {
  left: 0;
  background: linear-gradient(90deg, #0d1020 0%, transparent 100%);
}

.mpb-fade-right {
  right: 0;
  background: linear-gradient(270deg, #0d1020 0%, transparent 100%);
}

/* ============================================================
   RAIO DE LUZ QUE PASSA
   ============================================================ */
.mpb-ray {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 26, 0.03) 30%,
    rgba(255, 107, 26, 0.12) 50%,
    rgba(255, 107, 26, 0.03) 70%,
    transparent 100%
  );
  filter: blur(8px);
  animation: mpb-ray-sweep 5s ease-in-out infinite;
}

@keyframes mpb-ray-sweep {
  0%   { left: -200px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% + 200px); opacity: 0; }
}

/* ============================================================
   TRACK — marquee infinito
   ============================================================ */
.mpb-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: mpb-scroll 35s linear infinite;
}

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

@keyframes mpb-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ITEM + CARD
   ============================================================ */
.mpb-item {
  flex-shrink: 0;
}

.mpb-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
  min-width: 200px;
  height: 90px;
}

.mpb-card:hover {
  background: rgba(255,107,26,0.06);
  border-color: rgba(255,107,26,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,107,26,0.08);
}

/* Efeito de brilho no hover */
.mpb-card-shine {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0) 100%
  );
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mpb-card:hover .mpb-card-shine {
  opacity: 1;
}

/* Linha de topo no hover */
.mpb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,26,0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mpb-card:hover::before {
  opacity: 1;
}

/* ============================================================
   LOGO SVG
   ============================================================ */
.mpb-logo {
  height: 42px;
  width: auto;
  display: block;
  color: rgba(160,168,192,0.5);
  transition: color 0.4s ease, filter 0.4s ease;
  filter: none;
}

.mpb-card:hover .mpb-logo {
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 0 8px rgba(255,107,26,0.2));
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .mpb-section {
    padding: 36px 0;
  }

  .mpb-fade-left,
  .mpb-fade-right {
    width: 80px;
  }

  .mpb-card {
    padding: 14px 24px;
    min-width: 130px;
    height: 60px;
  }

  .mpb-logo {
    height: 26px;
  }

  .mpb-track {
    animation-duration: 25s;
  }
}

@media (max-width: 480px) {
  .mpb-fade-left,
  .mpb-fade-right {
    width: 50px;
  }
}