/* ═══════════════════════════════════════════════════════════════
   MASTERCARD BLACK — EMPRESA PAGE
   ═══════════════════════════════════════════════════════════════ */

html, body { overflow: hidden !important; }
@media (max-width: 860px) { html, body { overflow: hidden !important; } }

#bg-canvas { opacity: 0.13; }

/* ════════════════════
   WRAPPER
   ════════════════════ */
.em-wrap {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ════════════════════
   HEADER
   ════════════════════ */
.em-header {
  flex-shrink: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(201,169,110,0.10);
  background: linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.20) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: relative;
  z-index: 20;
}
.em-header .mc-logo {
  text-decoration: none;
  flex: 1;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}
.em-header .mc-logo:hover { opacity: 1; }

.em-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 20px;
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: 100px;
  background: rgba(201,169,110,0.045);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.em-badge span {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.em-header-spacer { flex: 1; }

/* ════════════════════
   MAIN
   ════════════════════ */
.em-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 0 80px 60px;
}

/* Luz branca suave centralizada atrás do conteúdo */
.em-main::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(
      ellipse 55% 60% at 50% 50%,
      rgba(220, 235, 255, 0.13) 0%,
      rgba(200, 220, 255, 0.07) 35%,
      rgba(255, 255, 255, 0.025) 60%,
      transparent 80%
    );
  pointer-events: none;
  animation: em-light-breathe 5s ease-in-out infinite;
  z-index: 0;
}

@keyframes em-light-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.08); }
}

/* Linhas laterais decorativas */
.em-side-line {
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201,169,110,0.18) 30%,
    rgba(201,169,110,0.22) 50%,
    rgba(201,169,110,0.18) 70%,
    transparent 100%
  );
  pointer-events: none;
}
.em-side-line.left  { left: 48px; }
.em-side-line.right { right: 48px; }

/* ════════════════════
   SLIDE STAGE
   ════════════════════ */
.em-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── EYEBROW ── */
.em-eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.em-eyebrow-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35));
}
.em-eyebrow-wrap .em-eyebrow-line:last-child {
  background: linear-gradient(90deg, rgba(201,169,110,0.35), transparent);
}
.em-eyebrow {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* ── HEADLINE ── */
.em-headline-wrap {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-headline {
  font-family: 'FF Mark', 'FFMark', 'Mark Pro', 'Inter', sans-serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  color: var(--white-soft);
  letter-spacing: -0.02em;
  line-height: 1.45;
  text-align: center;
  width: 100%;
  margin: 0;
}

.em-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #A07840);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Clip-reveal: cada palavra ──
   .wc = container overflow:hidden (a "cortina")
   .wi = palavra que sobe por trás da cortina               */
.em-headline .wc {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}

.em-headline .wi {
  display: inline-block;
  transform: translateY(108%);
  transition:
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.35s ease;
  opacity: 0;
}

.em-headline .wi.up {
  transform: translateY(0%);
  opacity: 1;
}

/* ── DIVISOR ANIMADO ── */
.em-divider {
  width: 100%;
  max-width: 380px;
  height: 1px;
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.em-div-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,169,110,0.45) 40%,
    rgba(232,201,138,0.75) 50%,
    rgba(201,169,110,0.45) 60%,
    transparent
  );
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── CORPO: palavras entram uma a uma ── */
.em-body-wrap {
  width: 100%;
  max-width: 580px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 300;
  color: rgba(240,237,232,0.88);
  line-height: 1.85;
  letter-spacing: 0.015em;
  text-align: center;
  width: 100%;
}

/* Cada palavra do body: fade + sobe levemente */
.em-body .bw {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity  0.45s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.em-body .bw.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── CONTADOR ── */
.em-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.em-counter-cur {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.05em;
  min-width: 20px;
  text-align: right;
}
.em-counter-tot {
  font-size: 10px;
  font-weight: 300;
  color: rgba(240,237,232,0.22);
  letter-spacing: 0.05em;
  min-width: 20px;
}
.em-counter-track {
  width: 110px;
  height: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.em-counter-prog {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 1px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 6px rgba(201,169,110,0.45);
}

/* ════════════════════
   BOTÃO RETORNAR
   ════════════════════ */
.em-back-btn {
  position: fixed;
  bottom: 28px;
  left: 32px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(201,169,110,0.18);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(16px);
  color: rgba(240,237,232,0.42);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color .3s, border-color .3s, background .3s, transform .25s, box-shadow .3s;
}
.em-back-btn:hover {
  color: var(--gold-light);
  border-color: rgba(201,169,110,0.45);
  background: rgba(20,18,14,0.75);
  transform: translateX(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.em-back-icon { width:14px; height:14px; flex-shrink:0; color:inherit; transition:transform .25s; }
.em-back-btn:hover .em-back-icon { transform: translateX(-2px); }

/* ════════════════════
   TIMER BAR
   ════════════════════ */
.em-timer-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(201,169,110,0.08);
  z-index: 60;
  overflow: hidden;
}
.em-timer-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(201,169,110,0.25) 0%,
    rgba(201,169,110,0.55) 50%,
    rgba(232,201,138,0.70) 100%
  );
  box-shadow: 0 0 8px rgba(201,169,110,0.4);
  transition: none;
}

.em-wrap::after {
  content: '';
  position: fixed;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,169,110,0.18) 30%,
    rgba(201,169,110,0.25) 50%,
    rgba(201,169,110,0.18) 70%,
    transparent
  );
  pointer-events: none;
  z-index: 30;
}
