/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
}

/* =========================
   LAYOUT BASE
========================= */
.layout {
  display: grid;
  grid-template-columns: 29% 71%;
  height: 100vh;
  position: relative;
}

/* =========================
   LEFT (IMAGEM)
========================= */
.left {
  position: relative;
  overflow: hidden;
}

.bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay IA */
.overlay {
  position: absolute;
  inset: 0;
}

.box {
  position: absolute;
  border: 2px solid #ff2c8b;
}

.b1 {
  width: 120px;
  height: 120px;
  bottom: 25%;
  left: 20%;
}
.b2 {
  width: 90px;
  height: 90px;
  bottom: 40%;
  left: 50%;
}
.b3 {
  width: 85px;
  height: 50px;
  bottom: 30%;
  left: 30%;
}

/* =========================
   RIGHT (FUNDO VERDE)
========================= */
.right {
  background: #0b4d46;
  color: #fff;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔥 CONTAINER CENTRAL (ESSENCIAL) */
.content {
  width: 100%;
  max-width: 620px;

  /* cria o espaço correto entre mockup e texto */
  margin-left: 160px;

  z-index: 2;
}

/* TIPOGRAFIA */
h1 {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 20px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.description {
  font-size: 18px;
  opacity: 0.95;
}

/* =========================
   LOGO
========================= */
.logo {
  position: absolute;
  bottom: 40px;
  right: 60px;
  width: 180px;
}

/* =========================
   ELEMENTOS SOBREPOSTOS
========================= */

/* 🔷 RETÂNGULO (posição fiel) */
.bg-rectangle {
  position: absolute;

  width: 180px;
  height: 75%;

  background: #258c89;

  top: 60%;
  left: 30%;

  transform: translate(-50%, -50%);

  z-index: 1;
}

/* 📱 MOCKUP (posição fiel) */
.device {
  position: absolute;

  width: 260px;

  top: 75%;
  left: 33%;

  transform: translate(-50%, -50%);

  background: #1f1f1f;
  border-radius: 20px;
  padding: 10px;

  z-index: 3;
}

.device img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 60vh;
  }

  .right {
    justify-content: flex-start;
    padding: 30px;
  }

  .content {
    margin-left: 0;
    max-width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  /* reposiciona elementos */
  .device {
    left: 50%;
    top: 40%;
    display: none;
  }

  .bg-rectangle {
    left: 55%;
    top: 45%;
    display: none;
  }

  .logo {
    width: 120px;
    right: 20px;
    bottom: 20px;
  }
}
