/* Hero (estrelas, holofote, moldura, palco dos celulares) e trilho de módulos. */
/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: -64px;
  padding-top: 152px;
  overflow: hidden;
  text-align: center;
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 46% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 63% 44%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 88% 70%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 6% 80%, rgba(0, 240, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 92% 38%, rgba(0, 240, 255, 0.5), transparent);
  background-size: 420px 380px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  pointer-events: none;
}
/* Holofotes cônicos vindos do topo, ciano no lugar do azul da AuthKit (feixes animados em motion.css). */
.spot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1100px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 22% 14% at 50% 0%, rgba(0, 240, 255, 0.35), transparent 70%);
  mask-image: radial-gradient(farthest-side at 50% 0, #000 50%, transparent 92%);
  pointer-events: none;
}
.spot i {
  position: absolute;
  left: 50%;
  top: -40px;
  width: 240px;
  height: 820px;
  border-radius: 9999px;
  transform-origin: 50% 0;
  transform: translateX(-50%) rotate(var(--r)) scale(var(--s, 1));
  opacity: 0.5;
  filter: blur(15px);
  background: conic-gradient(
    at 50% -5%,
    transparent 45%,
    rgba(0, 240, 255, 0.3) 49%,
    rgba(150, 250, 255, 0.55) 50%,
    rgba(0, 240, 255, 0.3) 51%,
    transparent 55%
  );
}
.spot i:nth-child(1) {
  --r: 20deg;
  --d: 5s;
  --dl: -1s;
}
.spot i:nth-child(2) {
  --r: -3deg;
  --s: 1.15;
  --d: 8s;
  --dl: -3s;
}
.spot i:nth-child(3) {
  --r: -22deg;
  --d: 4s;
  --dl: 0s;
}
.hero .wrap {
  position: relative;
}
/* Moldura de planta baixa: linhas que atravessam a página + marcas nos cantos. */
.frame {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 24px 40px;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.frame::before {
  inset: 0 -100vw;
  border-block: 1px solid var(--line);
}
.frame::after {
  inset: -60vh 0 -100vh;
  border-inline: 1px solid var(--line);
}
.tick {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.55);
  z-index: 1;
}
.tick.tl,
.tick.bl {
  left: -4.5px;
}
.tick.tr,
.tick.br {
  right: -4.5px;
}
.tick.tl,
.tick.tr {
  top: -4.5px;
}
.tick.bl,
.tick.br {
  bottom: -4.5px;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  margin-top: 22px;
  letter-spacing: -0.01em;
}
h1 em {
  display: block;
  font-style: normal;
  background: linear-gradient(180deg, #b8fbff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.35));
}
.lead {
  color: var(--text-2);
  font-size: 1.12rem;
  max-width: 36em;
  margin: 28px auto 30px;
}
.stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 760px;
  height: 560px;
  mask-image: linear-gradient(180deg, #000 62%, transparent);
}
.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 36px;
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    inset 0 0 0 1px var(--edge),
    0 0 80px rgba(0, 240, 255, 0.16),
    0 40px 80px -20px rgba(0, 0, 0, 0.9);
}
.phone img {
  border-radius: 27px;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top;
}
.demo-note {
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
  margin: 16px auto;
}
.ghost {
  position: absolute;
  top: 56px;
  width: 250px;
  height: auto;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  opacity: 0.32;
  filter: saturate(0.7);
  box-shadow: 0 0 0 1px var(--edge);
}
.ghost.l {
  left: calc(50% - 330px);
  transform: rotate(-5deg);
}
.ghost.r {
  right: calc(50% - 330px);
  transform: rotate(5deg);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  color: var(--text-2);
  font: 400 0.76rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.facts li::before {
  content: "▸ ";
  color: var(--protein);
}

/* ── Módulos (trilho de ícones) ─────────────────────────────────────────── */
.modules {
  padding: 72px 0 24px;
  text-align: center;
}
.lang {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(140, 230, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.lang button {
  font: 500 0.86rem/1 var(--body);
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.lang button[aria-pressed="true"] {
  color: var(--text);
}
/* Polegar deslizante; posição e largura vêm do main.js (--tx/--tw). */
.lang::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--tw, 0);
  transform: translateX(var(--tx, 4px));
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    inset 0 0 0 1px rgba(0, 240, 255, 0.25);
}
.lang-note {
  color: var(--text-3);
  font-size: 0.88rem;
  margin: 14px 0 48px;
}
.rail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.rail li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.88rem;
}
/* Conector com nó circular entre os ícones. */
.rail li + li::before {
  content: "";
  position: absolute;
  top: 28px;
  right: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 1px;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.75)) no-repeat 0 0 / 0% 100%,
    var(--line);
}
.rail li + li::after {
  content: "";
  position: absolute;
  top: 21px;
  right: calc(100% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.7) 1.5px, transparent 2px), var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.3);
}
.tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(140, 230, 255, 0.08), rgba(140, 230, 255, 0.02));
  box-shadow:
    inset 0 1px 0 var(--edge-hi),
    inset 0 0 0 1px var(--edge),
    0 0 26px -6px var(--c);
}
.tile svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--c);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
