/* =========================================================
   DataLurk — lurklens.css (página "em breve" do LurkLens)
   Carrega depois de site.css. O âmbar do LurkLens é o ponto de luz da página:
   o horizonte, o selo "Em breve" e o que acende quando um painel termina de montar.
   A página é toda escura: âmbar #F59E0B sobre grafite tem contraste de sobra.
   ========================================================= */

.ls-back { gap: 8px; }

.ls { position: relative; overflow: hidden; min-height: calc(100svh - 73px); display: flex; flex-direction: column; background: var(--dl-graphite); }
.ls::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 25%, transparent 80%); }

/* ---------- texto ---------- */
.ls__copy { position: relative; z-index: 4; max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vh, 64px) 24px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ls__copy > * { max-width: 100%; }
.ls__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.01em; }
.ls__brand img { width: 28px; height: 28px; }
.ls__tag { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding: 4px 11px; border-radius: 999px; border: 1px solid #F59E0B55; color: var(--lurklens); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ls__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--lurklens); animation: ls-pulse 1.8s ease-in-out infinite; }
@keyframes ls-pulse { 0%, 100% { box-shadow: 0 0 0 0 #F59E0B66; } 50% { box-shadow: 0 0 0 6px #F59E0B00; } }
.ls h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
.ls h1 em { font-style: normal; color: var(--lurklens); }
.ls .lead { max-width: 600px; }
.ls__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 4px; }

/* ---------- cena ---------- */
.ls__stage { --hy: 80%; position: relative; flex: 1; min-height: 300px; margin-top: clamp(8px, 2vh, 24px); }
.ls__horizon { position: absolute; left: 0; right: 0; top: var(--hy); height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent 0%, #F59E0B40 15%, var(--lurklens) 50%, #F59E0B40 85%, transparent 100%);
  box-shadow: 0 0 18px 1px #F59E0B55; }
.ls__glow { position: absolute; left: 0; right: 0; top: calc(var(--hy) + 2px); bottom: 0; z-index: 1;
  background: radial-gradient(ellipse 30% 80% at 50% 0%, #F59E0B17, transparent 70%); }

/* Lurkzinho: só os olhos acima da linha (espiando o trabalho) */
.ls__lurk { position: absolute; left: 50%; top: var(--hy); z-index: 2; width: clamp(120px, 12vw, 168px); transform: translate(-50%, -100%); margin-top: 1px;
  clip-path: inset(-200% -200% 0 -200%); }
.ls__lurk svg { display: block; width: 100%; height: auto; overflow: visible; transform: translateY(34%); transform-origin: 50% 100%; animation: ls-bob 5s ease-in-out infinite; }
@keyframes ls-bob { 0%, 100% { transform: translateY(34%); } 50% { transform: translateY(30%); } }
.ls__lurk .eye { transform-box: fill-box; transform-origin: center; transition: transform .09s; }
.ls__lurk.blink .eye { transform: scaleY(.12); }
.ls__lurk .happy { opacity: 0; transition: opacity .15s; }
.ls__lurk .eye { transition: transform .09s, opacity .15s; }
.ls__lurk.is-happy .eye { opacity: 0; }
.ls__lurk.is-happy .happy { opacity: 1; }
.ls__horizon { transition: box-shadow .4s; }
.ls__horizon.flare { box-shadow: 0 0 34px 4px #F59E0B88; }
/* onda que corre pela linha quando ele cai de volta */
.ls__ripple { position: absolute; left: 50%; top: calc(var(--hy) - 1px); z-index: 3; width: 60%; height: 4px; margin-left: -30%; border-radius: 2px; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, #F59E0B, transparent 70%); }

/* ---------- painéis em esqueleto ---------- */
.sk { position: absolute; z-index: 2; width: clamp(200px, 21vw, 272px); padding: 16px 18px; border-radius: 14px; display: flex; flex-direction: column; gap: 14px;
  background: var(--dl-graphite-2); border: 1px dashed #F59E0B40; box-shadow: 0 30px 50px -30px #000;
  animation: ls-float var(--fd, 7s) ease-in-out infinite; animation-delay: var(--fdl, 0s);
  transition: border-color .5s, box-shadow .5s; }
@keyframes ls-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.sk.on { border-style: solid; border-color: #F59E0B88; box-shadow: 0 30px 50px -30px #000, 0 0 32px -8px #F59E0B55; }
.sk--bars { left: 7%; bottom: calc(100% - var(--hy) + 34px); --fd: 7.5s; }
.sk--kpi  { left: 50%; margin-left: calc(clamp(200px, 21vw, 272px) / -2); bottom: calc(100% - var(--hy) + 96px); --fd: 6.6s; --fdl: -2s; }
.sk--line { right: 7%; bottom: calc(100% - var(--hy) + 52px); --fd: 8s; --fdl: -4s; }

.sk__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sk b { display: block; height: 8px; border-radius: 4px; background: #33373D; position: relative; overflow: hidden; }
.sk b::after { /* brilho de "carregando" */
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, #ffffff14, transparent); animation: ls-shim 1.8s ease-in-out infinite; }
@keyframes ls-shim { to { transform: translateX(100%); } }
.sk__pill { width: 44px; height: 16px !important; border-radius: 999px !important; transition: background-color .5s; }
.sk.on .sk__pill { background: #F59E0B33; }
.sk__big { width: 34%; height: 22px !important; border-radius: 6px !important; transition: width .8s var(--ease), background-color .6s; }
.sk.on .sk__big { width: 62%; background: #F2F1ECd9; }

.sk__bars { display: flex; align-items: flex-end; gap: 7px; height: 76px; }
.sk__bars i { flex: 1; height: var(--h); border-radius: 3px; background: #3A3F46; transform-origin: bottom; transform: scaleY(.16); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1), background-color .4s; }
.sk.on .sk__bars i { transform: scaleY(1); }
.sk.on .sk__bars i:last-child { background: var(--lurklens); }
.sk.on .sk__bars i:nth-child(2) { transition-delay: .07s; } .sk.on .sk__bars i:nth-child(3) { transition-delay: .14s; }
.sk.on .sk__bars i:nth-child(4) { transition-delay: .21s; } .sk.on .sk__bars i:nth-child(5) { transition-delay: .28s; }
.sk.on .sk__bars i:nth-child(6) { transition-delay: .35s; }

.sk__spark, .sk__chart { display: block; width: 100%; overflow: visible; }
.sk__spark { height: 34px; }
.sk__chart { height: 76px; }
.sk__spark path, .sk__path { fill: none; stroke: var(--lurklens); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.1s var(--ease), opacity .15s; }
.sk.on .sk__spark path, .sk.on .sk__path { stroke-dashoffset: 0; opacity: 1; } /* sem o tracinho da ponta enquanto não monta */
.sk__grid { fill: none; stroke: #33373D; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.sk__area { fill: #F59E0B; opacity: 0; transition: opacity .6s ease .5s; }
.sk.on .sk__area { opacity: .1; }

/* ---------- rodapé ---------- */
.ls__foot { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--pad);
  font-size: 12.5px; color: var(--dl-muted-dark); background: var(--dl-graphite); border-top: 1px solid #22262B; }

/* ---------- entrada ---------- */
.intro .ls__copy > * { animation: ls-up .8s var(--ease) both; }
.intro .ls__copy > :nth-child(2) { animation-delay: .08s; }
.intro .ls__copy > :nth-child(3) { animation-delay: .18s; }
.intro .ls__copy > :nth-child(4) { animation-delay: .28s; }
@keyframes ls-up { from { opacity: 0; transform: translateY(18px); } }
.intro .ls__horizon { animation: ls-line 1.3s cubic-bezier(.6, 0, .2, 1) .3s both; }
@keyframes ls-line { from { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } }
.intro .ls__glow { animation: ls-fade 1.2s ease 1s both; }
@keyframes ls-fade { from { opacity: 0; } }
.intro .ls__lurk svg { animation: ls-show 2.8s .9s both, ls-bob 5s ease-in-out 3.7s infinite; }
/* o corte fica no .ls__lurk e a animação no svg: nada aparece abaixo da linha durante a subida */
@keyframes ls-show {
  0%   { transform: translateY(102%); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  22%  { transform: translateY(34%); }                                                       /* só os olhos */
  60%  { transform: translateY(34%); animation-timing-function: cubic-bezier(.3, 0, .35, 1); }
  72%  { transform: translateY(-8%) scale(.93, 1.08); animation-timing-function: ease-in; }    /* pulinho */
  84%  { transform: translateY(36%) scale(1.07, .93); animation-timing-function: ease-out; }   /* cai e amassa */
  92%  { transform: translateY(31%) scale(.98, 1.02); }
  100% { transform: translateY(34%); }
}
.intro .ls__ripple { animation: ls-ripple .9s ease-out 3.25s both; }
@keyframes ls-ripple { 0% { opacity: 0; transform: scaleX(.1); } 25% { opacity: .9; } 100% { opacity: 0; transform: scaleX(1.6); } }
.intro .sk { animation: ls-in .9s var(--ease) both, ls-float var(--fd, 7s) ease-in-out infinite; animation-delay: var(--in, 1.5s), var(--fdl, 0s); }
.intro .sk--bars { --in: 1.65s; } .intro .sk--line { --in: 2.05s; } .intro .sk--kpi { --in: 2.4s; } /* surgem quando ele olha */
@keyframes ls-in { from { opacity: 0; filter: blur(10px); } } /* entra "focando", como uma lente */

/* ---------- telas menores ---------- */
@media (max-width: 1000px) { .sk--bars { left: 3%; } .sk--line { right: 3%; } }
@media (max-width: 780px) {
  .sk--bars, .sk--line { display: none; }
  .ls__stage { min-height: 280px; }
  .ls__cta .btn { width: 100%; }
  .ls__foot { justify-content: center; text-align: center; }
}

/* ---------- menos movimento: tudo montado e parado ---------- */
@media (prefers-reduced-motion: reduce) {
  .sk b::after { display: none; }
}
