/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Variáveis globais
========================= */
:root {
  --accent-start: #E91E63;   /* rosa */
  --accent-end: #9C27B0;     /* roxo */
  --blob-size: 380px;
  --mockup-max: 780px;
}


/* =========================
   Hero Section
========================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

/* Coluna esquerda (visual) */
.hero-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.shape-bg {
  position: absolute;
  width: var(--blob-size);
  height: var(--blob-size);
  background: linear-gradient(135deg, #a64ce5, #ff5fa2);
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  top: -60px;
  left: -80px;
  z-index: -1;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.95;
  animation: blobFloat 8s ease-in-out infinite;
}

.mockup {
  width: 100%;
  max-width: 480px;
  height: auto;
  /* No rounded corners or shadow: present the mockup image without contour effects */
  border-radius: 0;
  box-shadow: none;
  /* Keep layout stable — no hover transform */
  transition: none;
}

/* Disable hover lift and any shadow on hover */
.mockup:hover {
  transform: none;
  box-shadow: none;
}

/* Remove focus outline when the image is programmatically focusable */
.mockup:focus {
  outline: none;
  box-shadow: none;
}

.box {
  position: absolute;
  width: 180px;
  right: -40px;
  bottom: -20px;
  z-index: 2;
}

/* Simplified media container: no player rules, just a centerable container for images */
.media-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--mockup-max);
  overflow: visible;
}

/* Responsive 16:9 container for embedded players (Vimeo) */
.media-stage.video-responsive {
  padding-top: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.media-stage.video-responsive iframe,
.media-stage.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Poster + Play button styles for lazy-loading the iframe */
.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-poster .mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='35,25 75,50 35,75' fill='%23fff'/></svg>");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 36px 36px;
  opacity: 0.98;
  z-index: 4;
  pointer-events: none;
}

.video-poster:focus { outline: 3px solid rgba(156,39,176,0.18); }

/* Desktop: center the video and limit its width to the mockup max so it matches the image dimensions */
.media-stage.video-responsive {
  width: 100%;
  max-width: var(--mockup-max);
  margin-left: auto;
  margin-right: auto;
}

/* Mobile (<=900px): make the video edge-to-edge (full-bleed) across the viewport */
@media (max-width: 900px) {
  .media-stage.video-responsive {
    /* make the element span the full viewport width regardless of parent padding */
    width: 100vw;
    max-width: none;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-top: 56.25%; /* keep 16:9 aspect */
    box-shadow: none; /* ensure no shadow on mobile */
    border-radius: 0;
  }
}

/* Ensure picture behaves as a normal block inside the container */
.media-stage picture { display: block; }

/* Hero-left image rules (applied to the <img> inside hero-left) */
.hero-left img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  z-index: 2;
}

@media (max-width: 600px) {
  .play-overlay { width: 60px; height: 60px; background-size: 28% !important; }
  /* Ensure the media stage reserves a visible area on small screens even if aspect calc fails */
  .media-stage { min-height: 180px; }
}

/* (Removed letterbox block) On small screens we prefer the player/image to follow the
   unified mobile rules (see the max-width:900px section) to avoid duplicated
   object-fit declarations and !important overrides. */

/* Coluna direita (texto) */
.hero-right {
  flex: 1;
  text-align: center;
}

.logo-wrap img {
  background: #fff;
  border-radius: 40px;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 20px;
  max-width: 200px;
}

.hero-right h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-right p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

/* Botão CTA */
.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn:focus {
  outline: 3px solid rgba(156,39,176,0.22);
  outline-offset: 4px;
}

/* =========================
   Responsividade
========================= */
@media (min-width: 900px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 36px;
  }

  .hero-left {
    flex: 0 0 55%;
    justify-content: flex-end;
    padding-right: 40px;
  }

  .hero-right {
    flex: 0 0 45%;
    text-align: left;
    align-items: flex-start;
  }

  .hero-right h1 {
    font-size: 4rem;
  }

  .hero-right p {
    font-size: 1.4rem;
  }

  .mockup {
    max-width: var(--mockup-max);
  }

  .box {
    width: 220px;
    bottom: -40px;
    right: -60px;
  }
}

/* =========================
   Animações
========================= */
@keyframes blobFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* =========================
   Mobile refinements (prevent absolute positioning issues)
   Applied at max-width: 900px as requested
========================= */
@media (max-width: 900px) {
  /* Simplify the visual background on small screens */
  .shape-bg { display: none !important; }

  /* Remove floating decorative box to avoid layout overlap */
  .box { display: none !important; }

  /* Keep mobile rules minimal; the absolute positioning and sizing are defined
     in the global .media-stage children rules. Only adjust stacking here. */
  .media-stage iframe,
  .media-stage video {
    z-index: 3;
  }

  /* Make CTA strongly visible and easy to tap */
  .cta-btn {
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Center and space text column on mobile */
  .hero-right {
    text-align: center;
    padding-top: 30px;
  }
}

/* --- TESTE CRÍTICO DE VISIBILIDADE (REMOVER APÓS DEBUG) --- */

/* Debug overrides removed: visibility should now be managed by normal rules and fallbacks. */
