/* =========================================================
   HERO — título, acessos e celulares
   ========================================================= */

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* título com cortina */
.hero h1 { margin: 22px 0; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: inline-block; transform: translateY(110%); animation: rise 1.4s cubic-bezier(.16,1,.3,1) forwards; }
.mask:nth-child(1) > span { animation-delay: .6s; }
.mask:nth-child(2) > span { animation-delay: .8s; }
.mask:nth-child(3) > span { animation: rise 1.4s cubic-bezier(.16,1,.3,1) 1s forwards, flow 6s linear infinite; }

.hero .lead { font-size: 1.15rem; max-width: 520px; opacity: 0; animation: up 1.2s 1.5s forwards; }

.hero .duo { margin-top: 30px; gap: 12px; flex-wrap: nowrap; opacity: 0; animation: up 1.2s 1.8s forwards; }
.hero .duo .box { flex: 1 1 0; min-width: 0; }

/* ---------- celulares ---------- */
.meet {
  position: relative;
  height: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1600px;
}

.phone {
  position: absolute;
  width: 230px;
  aspect-ratio: 9 / 19;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(145deg, #2a3448, #0b1220);
  box-shadow: 0 60px 80px -40px #0b122077, inset 0 0 0 1px #ffffff22;
  -webkit-box-reflect: below 4px linear-gradient(transparent 82%, #ffffff1c);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
}
.phone-a { --x: -115px; top: 40px; z-index: 1; animation: phoneA 2s .4s cubic-bezier(.16,1,.3,1) forwards; }
.phone-b { --x: 120px; top: 150px; animation: phoneB 2s .7s cubic-bezier(.16,1,.3,1) forwards; }

@keyframes phoneA {
  from { opacity: 0; transform: translateX(var(--x)) translateY(120px) rotateY(22deg) rotateZ(-3deg); filter: blur(10px); }
  to   { opacity: 1; transform: translateX(var(--x)) rotateY(22deg) rotateZ(-3deg); filter: none; }
}
@keyframes phoneB {
  from { opacity: 0; transform: translateX(var(--x)) translateY(120px) rotateY(-22deg) rotateZ(3deg); filter: blur(10px); }
  to   { opacity: 1; transform: translateX(var(--x)) rotateY(-22deg) rotateZ(3deg); filter: none; }
}

/* tela: logo, nome e principais funções */
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  color: #0b1220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 14px 18px;
  text-align: center;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #0b1220; }
.screen > img { width: 78px; height: 78px; object-fit: contain; margin-bottom: 8px; }
.screen > b { font-size: 16px; color: var(--c); }
.screen > small { font-size: 9.5px; color: #64748b; margin-bottom: 14px; }
.screen ul { list-style: none; width: 100%; display: grid; gap: 7px; }
.screen li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 18%, #fff);
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  animation: liIn .6s calc(2.2s + var(--i) * .12s) forwards;
}
.phone-b .screen li { animation-delay: calc(2.5s + var(--i) * .12s); }
.screen li::before {
  content: "✓";
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
}

/* ---------- notificações ---------- */
.toasts { position: absolute; z-index: 3; display: grid; gap: 10px; }
.toasts-a { left: -40px; top: 0; }
.toasts-b { right: -30px; bottom: 50px; }

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #0f1a30ee;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff1a;
  box-shadow: 0 14px 30px -12px #0b122044;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px) scale(.9);
  animation: toast .8s cubic-bezier(.3,1.5,.5,1) forwards;
}
.toast i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--c); }
.toast svg { width: 17px; height: 17px; }
.toast small { display: block; font-weight: 500; font-size: .72rem; color: #94a3b8; }
@keyframes toast { to { opacity: 1; transform: none; } }

/* ---------- tablet e celular ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 0; text-align: center; }
  /* conteúdo da coluna vira itens do grid para reordenar: texto → celulares → acessos */
  .hero-text { display: contents; }
  .hero .badge { justify-self: center; }
  .hero .lead { margin: auto; }
  .hero .duo { order: 2; margin: -10px auto 0; max-width: 560px; justify-content: center; }
  .meet { order: 1; margin-top: 36px; height: 520px; }

  .phone { width: 180px; }
  .phone-a { --x: -70px; }
  .phone-b { --x: 70px; }
  .screen > * { zoom: .72; }
  .toasts-a { left: 0; }
  .toasts-b { right: 0; }
}
@media (max-width: 480px) {
  .hero .lead { font-size: 1.02rem; }
  .hero .duo { flex-wrap: wrap; }
  .hero .duo .box { flex-basis: 100%; }
  .phone { width: 150px; }
  .phone-a { --x: -72px; }
  .phone-b { --x: 72px; }
  .toasts { display: none; }
}
