/* Lingo4All — hero v3 da home (2026-10-12): foco no aluno, palco com peças
   flutuantes. Usa os tokens de site.css. Movimento: flutuação lenta + leve
   paralaxe no mouse (hero.js); tudo desligado com prefers-reduced-motion. */

.hero-v3 { isolation: isolate; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: -1; }
.orb-a { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, #3B8FE5, transparent 70%); }
.orb-b { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, #D9342B, transparent 70%); opacity: .35; }

.hero3 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px);
}
.hero-v3 h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: .98; letter-spacing: -.045em; }
.hero-v3 h1 .accent {
  background: linear-gradient(90deg, #8FC2F7 0%, #5FB0FF 45%, #FF8A80 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero3-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h3-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 16.5px; text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t), background var(--t);
}
.h3-btn .icon { width: 20px; height: 20px; }
.h3-btn-red { background: var(--red); color: #fff; box-shadow: 0 14px 30px -10px rgba(217, 52, 43, .7); }
.h3-btn-red:hover { color: #fff; background: #C42D25; transform: translateY(-2px); }
.h3-btn-light { background: #fff; color: var(--navy); }
.h3-btn-light:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.h3-btn-light .icon { transition: transform var(--t) var(--ease); }
.h3-btn-light:hover .icon { transform: translateX(4px); }
.h3-btn:focus-visible { outline: 3px solid #9CC8F5; outline-offset: 3px; }

.hero3-pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero3-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: #E4EDF8; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.hero3-pills .icon { width: 17px; height: 17px; color: #8FC2F7; }
.hero-v3 .choice-foot { margin-top: 22px; }

/* ---------- palco ---------- */
.stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / .95; margin-inline: auto; --px: 0; --py: 0; }
.stage-ring {
  position: absolute; left: 50%; top: 56%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(59, 143, 229, .55), rgba(30, 58, 92, .2) 62%, transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12), 0 0 0 18px rgba(255, 255, 255, .03), 0 0 0 40px rgba(255, 255, 255, .02);
}
.stage-cami {
  position: absolute; left: 50%; top: 56%; width: 46%; transform: translate(calc(-50% + var(--px) * 6px), calc(-50% + var(--py) * 6px));
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45)); z-index: 3;
}

.fp {
  position: absolute; z-index: 4;
  transform: translate3d(calc(var(--px) * var(--z, 1) * 14px), calc(var(--py) * var(--z, 1) * 14px), 0) rotate(var(--r, 0deg));
  animation: fp-float 7s ease-in-out infinite; animation-delay: var(--d, 0s);
  transition: transform .5s var(--ease);
}
@keyframes fp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.fp-unit { left: 0; top: 3%; width: 60%; --r: -5deg; z-index: 2; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.fp-unit img { width: 100%; height: auto; display: block; }
.fp-bar { display: flex; gap: 5px; height: 20px; align-items: center; padding: 0 9px; background: #EEF2F7; }
.fp-bar i { width: 7px; height: 7px; border-radius: 50%; background: #C9D3E0; }
.fp-phone {
  right: 1%; top: 6%; width: 24%; --r: 6deg; z-index: 2; border-radius: 22px; overflow: hidden;
  border: 6px solid #0B1626; background: #0B1626; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65);
}
.fp-phone img { width: 100%; height: auto; display: block; border-radius: 15px; }

.fp-chat {
  left: -3%; bottom: 3%; width: 52%; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .97); color: var(--ink);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); z-index: 5;
}
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chat-head b { display: block; font-size: 13px; color: var(--navy); }
.chat-head em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1FB57A; box-shadow: 0 0 0 0 rgba(31, 181, 122, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(31, 181, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 181, 122, 0); } }
.bub { margin: 6px 0 0; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.35; max-width: 92%; }
.bub-in { background: var(--blue-50); color: var(--ink); border-bottom-left-radius: 4px; }
.bub-out { margin-left: auto; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }

.fp-levels {
  right: -1%; bottom: 33%; display: flex; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .97);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); --r: -3deg;
}
.lv { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; font-size: 13px; color: #fff; }
.lv.a1 { background: #C0492C; } .lv.a2 { background: #DE8A2E; } .lv.b1 { background: #E1B52C; color: #2A2205; } .lv.b2 { background: #27795F; }

.fp-listen, .fp-quiz {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .97);
  color: var(--ink); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); font-size: 13.5px;
}
.fp-listen { right: 3%; bottom: 6%; --r: 2deg; }
.fp-quiz { right: 24%; top: -1%; --r: -4deg; z-index: 3; }
.fico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-text); }
.fico .icon { width: 19px; height: 19px; }
.fico-red { background: var(--red-50); color: var(--red-text); }
.fp-listen b, .fp-quiz b { display: block; color: var(--navy); }
.fp-quiz em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--teal); font-weight: 700; font-size: 12.5px; }
.wave { display: flex; align-items: center; gap: 3px; height: 16px; margin-top: 3px; }
.wave i { width: 3px; height: 40%; border-radius: 2px; background: var(--blue); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.4s; } .wave i:nth-child(4) { animation-delay: -.6s; }
.wave i:nth-child(5) { animation-delay: -.8s; } .wave i:nth-child(6) { animation-delay: -.3s; } .wave i:nth-child(7) { animation-delay: -.5s; }
@keyframes wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.hi { padding: 7px 13px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); white-space: nowrap; }
.hi::after { content: ""; position: absolute; bottom: -5px; left: 16px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.hi-en { left: 8%; top: 47%; background: var(--blue); --r: -6deg; }
.hi-es { right: 12%; top: 41%; background: var(--red); --r: 5deg; }
.hi-pt { left: 54%; top: 75%; background: var(--teal); --r: -3deg; z-index: 3; }

.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 3.2s ease-in-out infinite; }
.s1 { left: 62%; top: 30%; } .s2 { left: 18%; top: 36%; animation-delay: -1.2s; width: 6px; height: 6px; } .s3 { right: 6%; top: 60%; animation-delay: -2s; width: 5px; height: 5px; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero3 { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 520px; }
}
@media (max-width: 560px) {
  .hero-v3 h1 { font-size: clamp(38px, 11vw, 52px); }
  .h3-btn { width: 100%; justify-content: center; }
  /* Celular: menos peças e a Cami sempre visível no centro. */
  .stage { aspect-ratio: 1 / 1.22; margin-top: 8px; }
  .stage-ring, .stage-cami { top: 47%; }
  .stage-cami { width: 50%; }
  .stage-ring { width: 72%; }
  .fp-unit { width: 60%; top: 0; }
  .fp-phone { width: 27%; top: 3%; }
  .fp-chat { width: 80%; left: 0; bottom: 0; padding: 10px; }
  .fp-levels { right: 0; bottom: auto; top: 53%; z-index: 6; }
  .lv { width: 30px; height: 30px; font-size: 12px; }
  .hi-en { left: 0; top: 46%; }
  .fp-quiz, .fp-listen, .hi-es, .hi-pt, .spark { display: none; }
  .bub { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp, .spark, .wave i, .live { animation: none !important; }
  .fp, .stage-cami { transition: none; }
}
