/* UB5 — home da proposta imersiva (estática, validação)
   Medidas em vw seguem a composição aprovada (layout de 1024 px de largura). */
:root {
  --ink: #050807;
  --green: #3ee59a;
  --green-2: #16b37d;
  --text: #f3f5f2;
  --muted: #c2c7c3;
  --gray: #8e948f;
  --line: rgba(255, 255, 255, 0.16);
  --pad: 6.45vw;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
p,
h1,
h2 {
  margin: 0;
}
em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 2.4vw rgba(62, 229, 154, 0.28);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #04130b;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}
.wrap {
  padding-inline: var(--pad);
}

/* ---------- camadas de fundo ---------- */
section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bg {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
  will-change: transform;
}
.bg picture,
.bg img {
  width: 100%;
  height: 100%;
}
.bg img {
  object-fit: cover;
}
.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- tipografia ---------- */
.eyebrow,
.scroll-cue {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(10px, 0.86vw, 15px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9ceca;
}
.h-hero,
.h-sec {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text);
}
.h-hero {
  font-size: clamp(2.5rem, 4.75vw, 6.4rem);
}
.h-sec {
  font-size: clamp(2.1rem, 4.45vw, 5.8rem);
}
.ln {
  display: block;
}
.lead {
  font-size: clamp(1rem, 1.55vw, 1.85rem);
  line-height: 1.5;
  color: #e3e6e3;
  letter-spacing: -0.01em;
}

/* ---------- botões ---------- */
.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  transition: box-shadow 0.4s var(--ease), background 0.4s;
  will-change: transform;
}
.btn-solid {
  height: clamp(46px, 3.35vw, 64px);
  padding: 0 clamp(22px, 2.5vw, 44px);
  font-size: clamp(14px, 1.2vw, 20px);
  color: #04130b;
  background: linear-gradient(180deg, #5af0ad, #36dd90);
  box-shadow: 0 0 0 1px rgba(120, 255, 190, 0.6), 0 0 2.2vw rgba(62, 229, 154, 0.55), 0 0.6vw 2.4vw rgba(62, 229, 154, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn-solid:hover::before {
  transform: translateX(120%);
}
.btn-solid:hover {
  box-shadow: 0 0 0 1px #9dffd0, 0 0 3.2vw rgba(62, 229, 154, 0.8), 0 0.6vw 2.4vw rgba(62, 229, 154, 0.35);
}
.btn-outline {
  height: clamp(38px, 2.6vw, 50px);
  padding: 0 clamp(16px, 1.5vw, 28px);
  font-size: clamp(13px, 0.92vw, 17px);
  color: var(--text);
  background: rgba(10, 40, 26, 0.55);
  box-shadow: inset 0 0 0 1.5px var(--green), 0 0 1.4vw rgba(62, 229, 154, 0.45), inset 0 0 1vw rgba(62, 229, 154, 0.25);
}
.btn-outline:hover {
  background: rgba(62, 229, 154, 0.16);
}
.arr {
  font-style: normal;
  font-size: 0.95em;
  transition: transform 0.4s var(--ease);
}
a:hover .arr {
  transform: translate(2px, -2px);
}

/* ---------- vidro ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 45%, rgba(62, 229, 154, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1.4vw 3vw rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}

/* ---------- menu ---------- */
.nav-wrap {
  position: fixed;
  top: clamp(10px, 1.3vw, 22px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  width: min(46.6vw, 1100px);
  min-width: 640px;
  height: clamp(50px, 3.75vw, 72px);
  padding: 0 clamp(5px, 0.45vw, 9px) 0 clamp(18px, 2.1vw, 40px);
  border-radius: 999px;
  background: rgba(6, 10, 9, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 1vw 3vw rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background 0.4s;
}
.scrolled .nav {
  background: rgba(6, 10, 9, 0.82);
}
.logo svg {
  width: clamp(56px, 4.3vw, 90px);
  height: auto;
}
.logo .u,
.logo-f .u {
  fill: var(--green);
}
.nav-links {
  display: flex;
  gap: clamp(22px, 3.6vw, 64px);
  margin-left: auto;
  margin-right: clamp(24px, 3.4vw, 64px);
}
.nav-links a {
  position: relative;
  font-size: clamp(13px, 0.98vw, 18px);
  color: #e6e9e6;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.menu-btn {
  display: none;
}
.menu-m {
  pointer-events: auto;
}

/* ---------- HERO ---------- */
.hero {
  height: clamp(560px, 52.8vw, 100svh);
}
.hero .bg img {
  object-position: 70% 50%;
}
.sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(28vw 22vw at var(--sx, 72%) var(--sy, 35%), rgba(110, 255, 190, 0.13), transparent 70%);
}
.sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.shade-hero {
  background: linear-gradient(90deg, rgba(2, 5, 4, 0.78) 0%, rgba(2, 5, 4, 0.45) 30%, rgba(2, 5, 4, 0) 52%), linear-gradient(180deg, rgba(2, 5, 4, 0.4), transparent 22%, transparent 78%, var(--ink));
}
.hero-copy {
  position: absolute;
  top: 20.6%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-copy .eyebrow {
  margin-bottom: 2.6vw;
}
.hero-copy .lead {
  margin-top: 2.2vw;
}
.hero-copy .btn-solid {
  margin-top: 2.7vw;
}
.flow {
  position: absolute;
  left: 53.2%;
  top: 65%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 46px);
  height: clamp(44px, 5.2vw, 96px);
  padding: 0 clamp(16px, 2.6vw, 48px);
  border-radius: clamp(8px, 0.8vw, 14px);
  font-size: clamp(12px, 1.2vw, 22px);
  color: #edf0ed;
}
.flow i {
  font-style: normal;
  color: var(--green);
  font-size: 1.15em;
}
.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 9.5%;
  display: inline-flex;
  gap: 0.9em;
  align-items: center;
  font-size: clamp(9px, 0.78vw, 14px);
}
.scroll-cue i {
  font-style: normal;
  letter-spacing: 0;
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

/* ---------- TUDO CONECTADO ---------- */
.connected .stage {
  position: relative;
  aspect-ratio: 1024 / 470;
}
.connected .bg {
  inset: -4% 0;
}
.connected .bg img {
  object-position: 50% 3%;
}
.orb-glow {
  position: absolute;
  left: 50%;
  top: 58.5%;
  width: 24%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 255, 190, 0.35), rgba(62, 229, 154, 0.12) 35%, transparent 65%);
  mix-blend-mode: screen;
  animation: orb 4.5s ease-in-out infinite;
}
@keyframes orb {
  50% {
    opacity: 0.45;
    scale: 1.12;
  }
}
.shade-con {
  background: linear-gradient(180deg, var(--ink) 0%, rgba(5, 8, 7, 0.55) 9%, transparent 24%, transparent 86%, var(--ink));
}
.con-title {
  position: absolute;
  top: 3.4%;
  left: 0;
}
.orb-label {
  position: absolute;
  left: 50%;
  top: 58.5%;
  translate: -50% -50%;
  text-align: center;
  font-size: clamp(14px, 1.75vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 1.4vw rgba(0, 0, 0, 0.9), 0 0 2vw rgba(62, 229, 154, 0.6);
  pointer-events: none;
}
.pulses {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.cards {
  position: absolute;
  inset: 0;
  perspective: 1400px;
}
.slot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 20.6%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}
.card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.3vw;
  min-height: 8.4vw;
  padding: 1.3vw 1.6vw 1.3vw 2vw;
  border-radius: 0.5vw;
  font-size: clamp(13px, 1.42vw, 28px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #f4f6f4;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 38%, rgba(20, 60, 40, 0.18) 100%);
  /* espessura da placa de vidro + brilho nas arestas */
  box-shadow: inset 0 0 0 1px rgba(220, 255, 235, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.85), inset 0 -0.5vw 0.9vw rgba(62, 229, 154, 0.12), 0.3vw 0.45vw 0 -0.02vw rgba(150, 255, 200, 0.28), 0.55vw 0.8vw 0 -0.02vw rgba(255, 255, 255, 0.1), 0 1.6vw 3vw rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px) saturate(1.4);
  -webkit-backdrop-filter: blur(6px) saturate(1.4);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: box-shadow 0.4s;
}
.slot[data-side="l"] .card {
  --base: 13deg;
}
.slot[data-side="r"] .card {
  --base: -13deg;
}
.card {
  transform: rotateY(calc(var(--base, 0deg) + var(--ry))) rotateX(var(--rx));
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(18vw circle at var(--mx, 85%) var(--my, 90%), rgba(150, 255, 205, 0.32), transparent 45%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.4s;
}
.card::after {
  /* ponto de luz no canto, como nas placas da proposta */
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 0.9vw;
  height: 0.9vw;
  border-radius: 50%;
  background: #eafff3;
  box-shadow: 0 0 0.6vw 0.25vw rgba(62, 229, 154, 0.9);
  opacity: 0.8;
}
.card:hover {
  box-shadow: inset 0 0 0 1px rgba(170, 255, 210, 0.95), inset 0 1.5px 0 #fff, inset 0 -0.5vw 0.9vw rgba(62, 229, 154, 0.25), 0.25vw 0.35vw 0 -0.05vw rgba(150, 255, 200, 0.35), 0 0 3vw rgba(62, 229, 154, 0.35), 0 1.6vw 3vw rgba(0, 0, 0, 0.6);
}
.card:hover::before {
  opacity: 1;
}
.card svg {
  flex: none;
  width: 2.5vw;
  height: 2.5vw;
  min-width: 22px;
  min-height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 0.35vw rgba(62, 229, 154, 0.7));
}
.card .go {
  margin-left: auto;
  font-style: normal;
  color: #b8f5d6;
  font-size: 1.05em;
  transition: transform 0.4s var(--ease);
}
.card:hover .go {
  transform: translateX(4px);
}

/* ---------- PROXIMIDADE ---------- */
.people {
  height: clamp(320px, 23.5vw, 900px);
}
.people .bg img {
  object-position: 72% 24%;
}
.shade-ppl {
  background: linear-gradient(90deg, rgba(3, 6, 5, 0.92) 0%, rgba(3, 6, 5, 0.65) 32%, rgba(3, 6, 5, 0) 58%), linear-gradient(180deg, var(--ink), transparent 16%, transparent 84%, var(--ink));
}
.ppl-copy {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}
.h-ppl {
  font-size: clamp(1.8rem, 3.3vw, 4.4rem);
  line-height: 1.12;
}
.ppl-copy .lead {
  margin-top: 1.6vw;
  font-size: clamp(0.95rem, 1.3vw, 1.6rem);
}

/* ---------- CTA + RODAPÉ ---------- */
.cta {
  height: clamp(420px, 28vw, 1000px);
}
.cta .bg img {
  object-position: 62% 40%;
}
.flare {
  position: absolute;
  left: 71%;
  top: 40%;
  width: 22vw;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 225, 0.35), rgba(62, 229, 154, 0.12) 30%, transparent 62%);
  mix-blend-mode: screen;
  animation: orb 5s ease-in-out infinite;
}
.shade-cta {
  background: linear-gradient(90deg, rgba(2, 5, 4, 0.82) 0%, rgba(2, 5, 4, 0.45) 34%, transparent 60%), linear-gradient(180deg, var(--ink), transparent 18%, transparent 70%, rgba(2, 5, 4, 0.75));
}
.cta-copy {
  position: absolute;
  top: 17%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cta-copy .h-sec {
  font-size: clamp(2rem, 3.4vw, 4.6rem);
  line-height: 1.12;
}
.cta-copy .btn-solid {
  margin-top: 2.2vw;
}
.foot {
  position: absolute;
  left: 0;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4.4vw, 80px);
  font-size: clamp(13px, 1.17vw, 20px);
  color: #d7dcd8;
}
.logo-f {
  width: clamp(64px, 5.5vw, 110px);
  height: auto;
}
.sep {
  width: 1px;
  height: clamp(22px, 2.2vw, 40px);
  background: rgba(255, 255, 255, 0.4);
}
.foot a:hover {
  color: var(--green);
}

/* ---------- estados iniciais da animação (só com JS) ---------- */
.js .ln {
  clip-path: inset(0 0 100% 0);
}
.js [data-rise],
.js .slot,
.js .nav {
  opacity: 0;
}

/* ---------- CELULAR ---------- */
@media (max-width: 760px) {
  :root {
    --pad: 22px;
  }
  .nav {
    width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 6px 0 20px;
  }
  .nav-links,
  .nav > .btn-outline {
    display: none;
  }
  .menu-btn {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: rgba(62, 229, 154, 0.12);
    box-shadow: inset 0 0 0 1px rgba(62, 229, 154, 0.5);
    cursor: pointer;
  }
  .menu-btn span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.4s var(--ease);
  }
  .menu-open .menu-btn span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }
  .menu-open .menu-btn span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }
  .menu-m:not([hidden]) {
    position: fixed;
    inset: 84px 16px auto;
    display: grid;
    gap: 6px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(6, 10, 9, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    font-size: 22px;
    font-weight: 500;
  }
  .menu-m a {
    padding: 10px 6px;
  }
  .menu-m .btn-solid {
    margin-top: 10px;
    justify-content: center;
  }

  .hero {
    height: 100svh;
    min-height: 640px;
  }
  .shade-hero {
    background: linear-gradient(180deg, rgba(2, 5, 4, 0.82) 0%, rgba(2, 5, 4, 0.55) 45%, rgba(2, 5, 4, 0.1) 70%, var(--ink));
  }
  .hero-copy {
    top: 104px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .h-hero {
    font-size: clamp(2.3rem, 10.4vw, 3.2rem);
  }
  .hero-copy .lead {
    margin-top: 16px;
  }
  .hero-copy .lead br {
    display: none;
  }
  .hero-copy .btn-solid {
    margin-top: 24px;
  }
  .flow {
    left: 50%;
    top: auto;
    bottom: 13%;
    translate: -50% 0;
    gap: 10px;
    font-size: 13px;
    height: 46px;
    padding: 0 16px;
    white-space: nowrap;
  }
  .scroll-cue {
    bottom: 5%;
    font-size: 9.5px;
  }

  .connected .stage {
    aspect-ratio: auto;
    padding: 40px 0 56px;
  }
  .connected .bg {
    inset: 0 0 auto 0;
    height: 640px;
  }
  .connected .bg img {
    object-position: 50% 50%;
  }
  .shade-con {
    background: linear-gradient(180deg, var(--ink), rgba(5, 8, 7, 0.4) 120px, rgba(5, 8, 7, 0.2) 420px, var(--ink) 640px);
  }
  .con-title {
    position: relative;
    top: auto;
  }
  .orb-glow {
    top: 309px;
    width: 70vw;
  }
  .orb-label {
    top: 309px;
    font-size: 22px;
  }
  .cards {
    margin-top: 280px;
  }
  .pulses {
    display: none;
  }
  .cards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-inline: var(--pad);
    perspective: none;
  }
  .slot {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
  }
  .card {
    height: 100%;
    min-height: 84px;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    transform: none !important;
  }
  .card svg {
    width: 24px;
    height: 24px;
  }
  .card .go {
    display: none;
  }
  .card::after {
    width: 7px;
    height: 7px;
  }

  .people {
    height: 92svh;
    min-height: 560px;
  }
  .people .bg img {
    object-position: 50% 30%;
  }
  .shade-ppl {
    background: linear-gradient(180deg, var(--ink), transparent 18%, transparent 45%, rgba(3, 6, 5, 0.85) 72%, var(--ink));
  }
  .ppl-copy {
    top: auto;
    bottom: 48px;
    translate: none;
  }
  .ppl-copy .lead {
    margin-top: 14px;
  }

  .cta {
    height: 92svh;
    min-height: 600px;
  }
  .cta .bg img {
    object-position: 50% 50%;
  }
  .flare {
    left: 52%;
    top: 42%;
    width: 70vw;
  }
  .shade-cta {
    background: linear-gradient(180deg, var(--ink), rgba(2, 5, 4, 0.55) 22%, transparent 45%, rgba(2, 5, 4, 0.85));
  }
  .cta-copy {
    top: 64px;
  }
  .cta-copy .btn-solid {
    margin-top: 22px;
  }
  .foot {
    bottom: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .ln {
    clip-path: none;
  }
  .js [data-rise],
  .js .slot,
  .js .nav {
    opacity: 1;
  }
}
