/* ==========================================================================
   DevClub — Página institucional (concurso)
   Stack: CSS puro. Animações usam só transform/opacity (GPU) sempre que
   possível; scroll-driven roda em rAF; tudo respeita prefers-reduced-motion.
   ========================================================================== */

/* ---------- Fontes locais (self-hosted, variable fonts) ----------
   Um arquivo por família cobre todos os pesos (400-700). font-display: swap
   mostra texto na hora com fonte de sistema e troca quando a fonte carrega. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/spacegrotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #05050c;
  --bg-soft: #0b0b16;
  --surface: #10101f;
  --line: rgba(148, 163, 255, 0.12);
  --text: #eef0ff;
  --text-dim: #9aa0c3;
  /* Paleta baseada no site oficial (rodolfomori.com.br):
     fundo rgb(9,10,16) + verde-neon #45ffcc como cor assinatura */
  --brand-1: #7c5cff;      /* roxo (profundidade/glow) */
  --brand-2: #45ffcc;      /* verde DevClub (assinatura, CTAs) */
  --brand-blue: #38bdf8;   /* azul (apoio em gradientes) */
  --brand-3: #f857a6;      /* rosa (detalhes) */
  --glow: rgba(69, 255, 204, 0.3);
  --radius: 18px;
  --dur: 0.65s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* NÃO usar overflow-x: clip aqui — quebra o position:sticky dos cards no mobile.
   Cada seção com orbe/ticker já tem seu próprio overflow:clip. */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
::selection { background: var(--brand-2); color: #04131a; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

/* Skip-link: escondido até receber foco por teclado (Tab) */
.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 2000;
  background: var(--brand-2);
  color: #04131a;
  font-weight: 600;
  padding: 0.7em 1.2em;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* Foco visível consistente para quem navega por teclado */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Acessibilidade: quem pede menos movimento recebe a página estática */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   ABERTURA / PRELOADER
   Boot de terminal: logo se monta, barra "compila", cortina sobe revelando o
   hero. display:grid por padrão (sem-JS o <noscript> esconde). O JS anima a
   saída com translateY e remove do DOM.
   ========================================================================== */
.is-loading { overflow: hidden; }
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}
/* brilho ambiente atrás do logo */
.loader::before {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 255, 204, 0.14) 0%, transparent 60%);
  filter: blur(30px);
}
.loader--out { transform: translateY(-100%); }

.loader__inner { position: relative; text-align: center; }
.loader__logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: -0.03em;
}
.loader__logo-text {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(8px);
  animation: loader-logo-in 0.7s var(--ease) 0.15s forwards;
}
.loader__logo-text em { font-style: normal; }
.loader__tag {
  color: var(--brand-2);
  text-shadow: 0 0 24px rgba(69, 255, 204, 0.7);
  opacity: 0;
  transform: scale(0.6);
  animation: loader-tag-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}
/* cursor de terminal piscando após o logo */
.loader__caret {
  width: 3px;
  height: 1em;
  margin-left: 0.15em;
  align-self: center;
  background: var(--brand-2);
  opacity: 0;
  animation: loader-caret-in 0.3s ease 0.95s forwards, loader-blink 1s steps(1) 0.95s infinite;
}
@keyframes loader-logo-in { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes loader-tag-in { to { opacity: 1; transform: scale(1); } }
@keyframes loader-caret-in { to { opacity: 1; } }
@keyframes loader-blink { 50% { opacity: 0; } }

.loader__bar {
  width: 220px;
  height: 3px;
  margin: 1.8rem auto 0;
  border-radius: 3px;
  background: rgba(148, 163, 255, 0.12);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left center;
  animation: loader-bar 1.5s var(--ease) 0.35s forwards;
}
@keyframes loader-bar { to { transform: scaleX(1); } }

.loader__status {
  margin-top: 1rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  color: var(--text-dim);
  opacity: 0;
  animation: loader-logo-in 0.5s ease 0.6s forwards;
}
.loader__prompt { color: var(--brand-2); }
.loader__dots::after {
  content: "";
  animation: loader-dots 1.4s steps(1) infinite;
}
@keyframes loader-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

/* Movimento reduzido: sem animações; a abertura some quase na hora (via JS) */
@media (prefers-reduced-motion: reduce) {
  .loader__logo-text, .loader__tag, .loader__caret,
  .loader__bar i, .loader__status { animation: none; opacity: 1; filter: none; transform: none; }
  .loader__bar i { transform: scaleX(1); }
  .loader { transition-duration: 0.2s; }
}

/* ---------- Ícones (sprite SVG) ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
}
/* ícone de destaque dentro de um "chip" arredondado (cards) */
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: var(--brand-2);
  background: rgba(69, 255, 204, 0.08);
  border: 1px solid rgba(69, 255, 204, 0.18);
  box-shadow: 0 0 22px rgba(69, 255, 204, 0.08) inset;
}
.icon-badge .ico { width: 1.5rem; height: 1.5rem; }
/* ícone inline em listas (perks, bônus) */
.ico-inline { color: var(--brand-2); font-size: 1.15rem; margin-right: 0.1em; }

/* ---------- Tipografia de seção ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35em 1em;
  margin-bottom: 1.2rem;
  background: rgba(69, 255, 204, 0.06);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* Texto em gradiente animado (hero, títulos) */
.gradient-text {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3), var(--brand-2), var(--brand-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-flow 7s linear infinite;
}
@keyframes grad-flow { to { background-position: 300% 0; } }

/* Marca-texto que varre a palavra ao entrar na tela */
.marker { position: relative; isolation: isolate; white-space: nowrap; }
.marker::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.12em;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 0.2em;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
}
.marker.play::before { animation: mark 0.7s var(--ease) 0.15s forwards; }
@keyframes mark { to { transform: scaleX(1); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8em 1.7em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  will-change: transform;
}
.btn--primary {
  /* verde assinatura DevClub com texto escuro (contraste AA) */
  background: linear-gradient(135deg, var(--brand-2), var(--brand-blue));
  color: #04131a;
  font-weight: 700;
  box-shadow: 0 8px 30px var(--glow);
}
.btn--primary:hover { box-shadow: 0 12px 44px rgba(69, 255, 204, 0.5); }
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--lg { padding: 1em 2.1em; font-size: 1.05rem; }
.btn--xl { padding: 1.15em 2.6em; font-size: 1.15rem; }

/* Brilho que varre o botão primário */
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-180%) skewX(-18deg);
  transition: transform 0.75s ease;
  pointer-events: none;
}
.shine:hover::after, .shine:focus-visible::after { transform: translateX(280%) skewX(-18deg); }

/* Halo que respira no CTA final */
.glow-pulse { position: relative; isolation: isolate; }
.glow-pulse::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-blue));
  z-index: -1;
  opacity: 0.4;
  filter: blur(18px);
  animation: glow-breathe 2.2s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.3; transform: scale(0.96); }
  50% { opacity: 0.75; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-pulse::before { animation: none; opacity: 0.45; transform: none; }
}

/* ---------- Barra de progresso ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1002;
  pointer-events: none;
}
.scroll-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* ---------- Grão de filme ----------
   Estático de propósito: a versão animada (camada de 200% da tela com jitter)
   derrubava o rasterizador em máquinas fracas. Textura parada = mesmo charme,
   custo de pintura único. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Céu estrelado global ----------
   Duas camadas de pontinhos tiled (radial-gradient) derivando em velocidades
   diferentes + cintilação por opacidade. Só transform/opacity — compositor. */
.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.stars::before, .stars::after {
  content: "";
  position: absolute;
  inset: -260px;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px, rgba(238, 240, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, rgba(148, 163, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 200px 180px, rgba(69, 255, 204, 0.4) 50%, transparent 51%);
  background-size: 260px 260px;
  animation:
    star-drift 120s linear infinite,
    star-twinkle 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.stars::after {
  background-size: 420px 420px;
  opacity: 0.5;
  animation-duration: 200s, 7s;
  animation-delay: 0s, -3s;
}
/* deriva exatamente um tile — loop invisível */
@keyframes star-drift { to { transform: translate3d(260px, 260px, 0); } }
@keyframes star-twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .stars::before, .stars::after { animation: none; opacity: 0.5; }
}

/* ---------- Lavagem de cor guiada pelo scroll ----------
   Camada fixa verde que ganha opacidade conforme a página desce:
   o topo é roxo (aurora), o final é verde DevClub. O JS escreve --washp. */
.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: calc(var(--washp, 0) * 0.5);
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(69, 255, 204, 0.14) 0%, transparent 70%),
    radial-gradient(60% 40% at 85% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

/* ---------- Meteoros ---------- */
.meteors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.meteors i {
  position: absolute;
  top: var(--mt, 10%);
  left: var(--ml, 80%);
  width: 130px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(238, 240, 255, 0.9), rgba(124, 92, 255, 0.4), transparent);
  opacity: 0;
  transform: rotate(215deg); /* aponta o risco pra baixo-esquerda */
  transform-origin: left center;
  animation: meteor-fall 11s linear infinite;
  animation-delay: var(--md, 0s);
  will-change: transform, opacity;
}
.meteors--green i {
  background: linear-gradient(90deg, rgba(69, 255, 204, 0.9), rgba(69, 255, 204, 0.3), transparent);
}
/* o meteoro "anda" ao longo do próprio eixo rotacionado */
@keyframes meteor-fall {
  0%   { transform: rotate(215deg) translateX(0); opacity: 0; }
  3%   { opacity: 0.9; }
  12%  { transform: rotate(215deg) translateX(340px); opacity: 0; }
  100% { transform: rotate(215deg) translateX(340px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .meteors i { animation: none; } }

/* ---------- Código flutuante do hero ---------- */
.hero__chips { position: absolute; inset: 0; pointer-events: none; }
.float-chip {
  position: absolute;
  /* o parallax de mouse move o chip; o balanço fica no span interno */
  transform: translate3d(calc(var(--px, 0) * var(--depth, 1) * 28px),
                         calc(var(--py, 0) * var(--depth, 1) * 22px), 0);
  will-change: transform;
}
.float-chip > span {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(16, 16, 31, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5em 0.9em;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: chip-bob 6s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}
@keyframes chip-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1.2deg); }
}
@media (max-width: 900px) { .hero__chips { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-chip > span { animation: none; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: transform 0.4s var(--ease), background 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(5, 5, 12, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
/* o "/>" é assinatura da marca no site oficial (DevClub/>) */
.nav__logo-tag {
  color: var(--brand-2);
  font-weight: 700;
  margin-left: 0.1em;
  text-shadow: 0 0 14px rgba(69, 255, 204, 0.6);
}
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav__logo-text em { font-style: normal; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__cta { font-size: 0.9rem; padding: 0.65em 1.4em; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(5, 5, 12, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a { text-decoration: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
  padding-top: 6rem;
}
.hero__particles { position: absolute; inset: 0; z-index: -2; }
/* Celular: canvas de partículas desligado — GPU fraca + bateria não valem
   o enfeite; a aurora sozinha já segura o clima do hero. */
@media (max-width: 768px) {
  .hero__particles { display: none; }
}
.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  /* parallax de mouse (o JS escreve --px/--py no .hero) */
  transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -18px), 0);
  will-change: transform;
}
.hero__aurora::before, .hero__aurora::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(38% 38% at 28% 30%, rgba(124, 92, 255, 0.5) 0%, transparent 60%),
    radial-gradient(32% 32% at 72% 38%, rgba(248, 87, 166, 0.3) 0%, transparent 60%),
    radial-gradient(42% 42% at 50% 78%, rgba(56, 189, 248, 0.35) 0%, transparent 60%);
  filter: blur(70px);
  will-change: transform;
  animation: aurora-drift 20s ease-in-out infinite;
}
.hero__aurora::after { animation-duration: 28s; animation-direction: reverse; opacity: 0.7; }
@keyframes aurora-drift {
  0% { transform: translate3d(-4%, -2%, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(5%, 3%, 0) scale(1.15) rotate(8deg); }
  100% { transform: translate3d(-4%, -2%, 0) scale(1) rotate(0deg); }
}
.hero__content { text-align: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.6rem;
}
.avatar-stack { display: inline-flex; }
.avatar-stack img {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
}
.avatar-stack img + img { margin-left: -8px; }
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: glow-breathe 2s ease-in-out infinite;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero__sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  justify-content: center;
}
.hero__stat { text-align: center; }
.hero__stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stat dt { font-size: 0.8rem; color: var(--text-dim); order: 2; }
.hero__scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--text-dim);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__wheel {
  width: 3px; height: 7px;
  border-radius: 3px;
  background: var(--brand-2);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
}
/* Em telas baixas/estreitas o conteúdo do hero chega perto da borda:
   a dica de scroll sobreporia as estatísticas, então some. */
@media (max-width: 900px), (max-height: 800px) {
  .hero__scroll-hint { display: none; }
}

/* Máscara de linhas do título (line mask reveal) */
.mask-reveal .line { display: block; overflow: hidden; }
.mask-reveal .line > span { display: block; transform: translateY(110%); }
.mask-reveal.play .line > span {
  animation: line-rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--line-i, 0) * 130ms);
}
@keyframes line-rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mask-reveal .line > span { transform: none; }
}

/* ---------- Reveal genérico ao rolar ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity var(--dur) var(--ease) var(--delay, 0s),
              transform var(--dur) var(--ease) var(--delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Cascata para grupos de filhos (cards, listas) */
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- Flutuação suave dos cards ----------
   Começa DEPOIS da entrada (o delay positivo deixa a transição de reveal
   terminar antes de a animação assumir o transform). Fases dessincronizadas
   via --i pra cada card balançar no próprio ritmo. */
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.reveal-stagger.is-visible > .bento__card,
.reveal-stagger.is-visible > .profile-card,
.reveal-stagger.is-visible > .tutor {
  animation: card-float 7s ease-in-out calc(1s + var(--i, 0) * 1.15s) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger.is-visible > .bento__card,
  .reveal-stagger.is-visible > .profile-card,
  .reveal-stagger.is-visible > .tutor { animation: none; }
}

/* ---------- Orbes com parallax de scroll ----------
   Bolas de luz desfocadas atrás do conteúdo; o JS move cada uma em velocidade
   diferente conforme a seção rola (translateY só — compositor). */
.orb {
  position: absolute;
  width: var(--orb-s, 300px);
  height: var(--orb-s, 300px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb-c, var(--brand-1)) 0%, transparent 65%);
  opacity: 0.3;
  filter: blur(40px);
  pointer-events: none;
  transform: translate3d(0, var(--oy, 0px), 0);
  will-change: transform;
  z-index: 0;
}
/* seções que hospedam orbes precisam de contexto + clip */
.beyond, .testimonials, .tutors, .credibility {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.beyond > .container, .testimonials > .container, .tutors > .container,
.credibility > .container, .testimonials .mosaic { position: relative; z-index: 1; }

/* ---------- Ticker gigante ligado ao scroll ---------- */
.ticker {
  overflow: clip;
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}
.ticker__track {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 255, 0.3);
  will-change: transform;
}
.ticker__track i { font-style: normal; color: var(--brand-1); -webkit-text-stroke: 0; }
.ticker__fill {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
}

/* ---------- EMPRESAS (marquee) ---------- */
.companies { padding: 4.5rem 0 3rem; }
.companies__label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 4rem;
  padding-block: 0.9rem;
  will-change: transform;
  animation: marquee-run 32s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-dim);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease, filter 0.25s ease;
  filter: grayscale(60%);
}
.logo-chip img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
}
.logo-chip:hover { opacity: 1; color: var(--text); filter: grayscale(0%); }

/* ---------- PERFIS + "VOCÊ NÃO PRECISA" ---------- */
.profiles {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.profiles > .container { position: relative; z-index: 1; }
.profiles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s ease, transform 0.3s var(--ease);
}
.profile-card:hover {
  border-color: rgba(69, 255, 204, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 26px rgba(69, 255, 204, 0.07);
}
.profile-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.profile-card p { color: var(--text-dim); font-size: 0.95rem; }

.noneed {
  margin-top: 3.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  padding: 2.4rem;
}
.noneed h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-bottom: 1.4rem;
}
.noneed h3 em {
  font-style: normal;
  color: var(--brand-2);
  text-shadow: 0 0 16px rgba(69, 255, 204, 0.5);
}
.noneed__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem 1.4rem;
}
.noneed__list li {
  color: var(--text-dim);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
/* "x" riscado: reforça o NÃO precisa */
.noneed__list li::before {
  content: "✕";
  color: var(--brand-3);
  font-weight: 700;
  flex: none;
}
.noneed__note {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
  color: var(--text-dim);
}
.noneed__note strong { color: var(--brand-2); }

/* ---------- MERCADO / SALÁRIOS ---------- */
.market {
  padding: 6rem 0;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.market > .container { position: relative; z-index: 1; }
.market__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
  align-items: center;
}
.sal-row { margin-bottom: 1.4rem; }
.sal-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.sal-row__head span { color: var(--text-dim); font-size: 0.92rem; }
.sal-row__head b {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.sal-bar {
  height: 14px;
  border-radius: 7px;
  background: rgba(148, 163, 255, 0.08);
  overflow: hidden;
}
.sal-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-blue));
  transform: scaleX(0); /* cresce até --p quando a seção revela */
  transform-origin: left center;
  transition: transform 1.1s var(--ease) var(--d, 0s);
}
.sal-row--usd .sal-bar__fill { background: linear-gradient(90deg, var(--brand-blue), var(--brand-2)); }
.salary.is-visible .sal-bar__fill { transform: scaleX(var(--p, 1)); }
.sal-row--usd .sal-row__head b { color: var(--brand-2); }
.salary__note { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.6rem; }
.market__perks li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-dim);
  font-size: 0.98rem;
}
.market__perks li:last-child { border-bottom: 0; }

/* ---------- OFERTA / FAÇA AS CONTAS ---------- */
.offer {
  padding: 6rem 0;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.offer > .container { position: relative; z-index: 1; }
.offer__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}
.offer__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.offer__card--old {
  background: var(--surface);
  opacity: 0.75;
}
.offer__card--old h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.offer__card--old li::before { content: "✕ "; color: var(--brand-3); }
.offer__card--old li, .offer__card--new li {
  padding: 0.55rem 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}
.offer__card--old li:last-child, .offer__card--new li:last-child { border-bottom: 0; }
.offer__card--new { display: flex; flex-direction: column; }
.offer__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.offer__price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.offer__card--new .offer__price {
  background: linear-gradient(90deg, var(--brand-2), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer__price small {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
}
.offer__card--old .offer__price { color: var(--text-dim); text-decoration: line-through; }
.offer__card--new li { color: var(--text); }
.offer__btn { margin-top: auto; justify-content: center; }
.offer__card--new ul { margin-bottom: 1.6rem; }
.offer__guarantee {
  margin-top: 2rem;
  border: 1px solid rgba(69, 255, 204, 0.25);
  background: rgba(69, 255, 204, 0.05);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.offer__guarantee strong { color: var(--brand-2); }

/* ---------- FAQ (acordeão animado) ---------- */
.faq { padding: 6rem 0; }
.faq__list { margin-top: 2.5rem; display: grid; gap: 0.8rem; max-width: 820px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq__item.open { border-color: rgba(69, 255, 204, 0.4); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  color: var(--text);
  font: 600 1rem var(--font-display);
  text-align: left;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}
.faq__q:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.faq__icon {
  flex: none;
  color: var(--brand-2);
  font-size: 1.2rem;
  transition: transform 0.35s var(--ease);
}
.faq__item.open .faq__icon { transform: rotate(45deg); }
/* truque do grid 0fr→1fr: altura anima suave sem medir nada em JS */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding-inline: 1.4rem;
}
.faq__item.open .faq__a-inner { padding-bottom: 1.3rem; }

/* ---------- FORMAÇÕES (scroll horizontal pinado) ---------- */
.formations { /* altura definida via JS conforme a largura do track */ }
.formations__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  gap: 2.5rem;
  isolation: isolate;
}
/* malha de pontos derivando na diagonal atrás dos cards */
.formations__sticky::before {
  content: "";
  position: absolute;
  top: -28px; left: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  z-index: -1;
  background-image: radial-gradient(rgba(148, 163, 255, 0.14) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
  animation: dot-drift 36s linear infinite;
  will-change: transform;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 100%);
}
@keyframes dot-drift { to { transform: translate3d(28px, 28px, 0); } }
.formations__head { position: relative; }
.formations__hint {
  position: absolute;
  right: 0; bottom: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.formations__viewport { overflow: hidden; }
.formations__track {
  display: flex;
  gap: 1.4rem;
  padding-inline: max(4vw, calc((100vw - 1180px) / 2));
  will-change: transform;
}
.formation-card {
  flex: 0 0 clamp(240px, 26vw, 320px);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}
.formation-card {
  /* flutuação com delay negativo: cada card já entra no meio da própria fase */
  animation: card-float 6.5s ease-in-out calc(var(--i, 0) * -0.9s) infinite;
}
.formation-card:hover {
  border-color: rgba(69, 255, 204, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(69, 255, 204, 0.08);
}
@media (prefers-reduced-motion: reduce) { .formation-card { animation: none; } }
.formation-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, var(--card-glow, var(--glow)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.formation-card:hover::after { opacity: 0.8; }
.formation-card__icon { font-size: 2rem; }
.formation-card__level {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.formation-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}
.formation-card p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.formation-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* ---------- ALÉM DO CÓDIGO (bento) ---------- */
.beyond { padding: 7rem 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense; /* preenche buracos deixados pelos cards wide/tall */
  gap: 1.2rem;
  margin-top: 3rem;
}
.bento__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s ease, transform 0.3s var(--ease);
}
.bento__card:hover {
  border-color: rgba(69, 255, 204, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 26px rgba(69, 255, 204, 0.07);
}
.bento__card--tall { grid-row: span 2; }
.bento__card--wide { grid-column: span 2; }
.bento__icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.bento__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.bento__card p { color: var(--text-dim); font-size: 0.92rem; }

/* Luz que segue o cursor dentro do card */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(124, 92, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.spotlight:hover::before { opacity: 1; }

/* Mock de chat dentro do card alto */
.bento__mock--chat {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chat-bubble {
  max-width: 90%;
  font-size: 0.8rem;
  padding: 0.6em 0.9em;
  border-radius: 12px;
  line-height: 1.4;
}
.chat-bubble--in {
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.3);
  align-self: flex-start;
}
.chat-bubble--out {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  align-self: flex-end;
}

/* ---------- PLATAFORMA (scrollytelling) ---------- */
.platform { height: 500vh; /* 5 passos ⇒ 100vh por passo */ }
.platform__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* dois feixes de luz inclinados varrendo devagar atrás do conteúdo */
.platform__sticky::before, .platform__sticky::after {
  content: "";
  position: absolute;
  top: -20%;
  width: 180px;
  height: 140%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.1), transparent);
  transform: skewX(-18deg);
  animation: beam-sweep 16s ease-in-out infinite alternate;
  will-change: transform;
}
.platform__sticky::after {
  background: linear-gradient(90deg, transparent, rgba(69, 255, 204, 0.07), transparent);
  animation-duration: 22s;
  animation-delay: -8s;
}
@keyframes beam-sweep {
  from { transform: skewX(-18deg) translateX(-30vw); }
  to   { transform: skewX(-18deg) translateX(95vw); }
}
.platform__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.platform__steps { margin-top: 2rem; display: grid; }
.platform__step {
  grid-area: 1 / 1; /* passos empilhados; só o ativo aparece */
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.platform__step.active { opacity: 1; transform: none; pointer-events: auto; }
.platform__step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--brand-2);
}
.platform__step p { color: var(--text-dim); max-width: 420px; }

/* Indicador de progresso dos passos */
.platform__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.2rem;
}
.platform__dots i {
  width: 28px; height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.platform__dots i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.platform__dots i.on::after { transform: scaleX(1); }

/* Browser fake */
.browser {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 92, 255, 0.12);
  overflow: hidden;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar span:nth-child(1) { background: #ff5f57; }
.browser__bar span:nth-child(2) { background: #febc2e; }
.browser__bar span:nth-child(3) { background: #28c840; }
.browser__url {
  margin-left: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.25em 1em;
}
.browser__body { position: relative; min-height: 360px; display: grid; }
.screen {
  grid-area: 1 / 1;
  padding: 1.6rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.screen.active { opacity: 1; transform: scale(1); }

/* mock: trilhas */
.screen__row { display: flex; align-items: center; gap: 0.8rem; }
.screen__pill {
  height: 12px;
  flex: 1;
  border-radius: 6px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.screen__pill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: inherit;
}
.screen__tag { font-size: 0.75rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.screen__cards { display: flex; gap: 0.8rem; margin-top: 0.6rem; }
.screen__cards div {
  flex: 1;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.18), rgba(56, 189, 248, 0.08));
  border: 1px solid var(--line);
}

/* mock: comunidade */
.screen__chat { display: flex; gap: 0.8rem; align-items: center; }
.screen__chat i {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  flex: none;
}
.screen__chat b { height: 14px; flex: 1; border-radius: 7px; background: var(--line); }
.screen__chat--alt i { background: linear-gradient(135deg, var(--brand-2), var(--brand-1)); }
.screen__chat--alt b { flex: 0.7; }

/* mock: terminal / código */
.screen__terminal, .screen__code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
  background: #07070f;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem;
  line-height: 1.9;
}
.t-green { color: #34d399; }
.t-purple { color: var(--brand-1); }
.t-blue { color: var(--brand-2); }
.t-dim { color: var(--text-dim); }

/* mock: mural da fama */
.screen__fame { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.fame-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.4rem;
}
.fame-card img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.fame-card b { font-size: 0.85rem; font-family: var(--font-display); }
.fame-card i { font-size: 0.72rem; font-style: normal; color: var(--brand-2); }

/* ---------- MANIFESTO (texto que acende) ---------- */
.manifesto { height: 260vh; background: var(--bg-soft); }
.manifesto__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
}
.manifesto__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.manifesto__glow::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(30% 30% at 30% 40%, rgba(124, 92, 255, 0.18) 0%, transparent 60%),
    radial-gradient(28% 28% at 72% 60%, rgba(56, 189, 248, 0.14) 0%, transparent 60%);
  filter: blur(60px);
  will-change: transform;
  animation: aurora-drift 24s ease-in-out infinite;
}
.manifesto__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 900px;
  text-align: center;
}
.manifesto__text .w {
  color: rgba(238, 240, 255, 0.14);
  transition: color 0.25s ease;
}
.manifesto__text .w.lit { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .manifesto { height: auto; padding: 6rem 0; }
  .manifesto__sticky { position: static; height: auto; }
  .manifesto__text .w { color: var(--text); }
}

/* ---------- DEPOIMENTOS (mosaico marquee vertical) ---------- */
.testimonials { padding: 7rem 0 0; text-align: center; }
.mosaic {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  width: min(1180px, 92vw);
  margin-inline: auto;
}
.mosaic {
  /* o JS escreve --skew com base na velocidade do scroll (efeito "arrasto") */
  transform: skewY(var(--skew, 0deg));
  will-change: transform;
}
.mosaic__col { overflow: hidden; }
.mosaic__track {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  will-change: transform;
  animation: mosaic-up var(--speed, 40s) linear infinite;
}
.mosaic__col--reverse .mosaic__track { animation-name: mosaic-down; }
@keyframes mosaic-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes mosaic-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
.mosaic__col:hover .mosaic__track { animation-play-state: paused; }
.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: border-color 0.25s ease;
}
.t-card:hover { border-color: rgba(56, 189, 248, 0.4); }
.t-card__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.t-card__avatar {
  position: relative; /* a foto cobre a inicial; se falhar, a inicial aparece */
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--av-1, var(--brand-1)), var(--av-2, var(--brand-2)));
  flex: none;
  overflow: hidden;
}
.t-card__avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.t-card__name { font-weight: 600; font-size: 0.92rem; }
.t-card__role { font-size: 0.78rem; color: var(--brand-2); }
.t-card__text { font-size: 0.9rem; color: var(--text-dim); }
.t-card__stars { color: #fbbf24; font-size: 0.8rem; letter-spacing: 2px; margin-top: 0.7rem; }
@media (prefers-reduced-motion: reduce) {
  .mosaic { height: auto; mask-image: none; -webkit-mask-image: none; }
  .mosaic__track { animation: none; }
}

/* ---------- FUNDADOR ---------- */
.founder {
  padding: 7rem 0;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.founder__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.founder__photo {
  position: relative;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(69, 255, 204, 0.16);
}
.founder__photo img {
  display: block;
  position: relative;
  z-index: 1;
  /* a margem expõe o anel de gradiente por baixo, virando uma moldura viva */
  margin: 4px;
  width: calc(100% - 8px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 22px;
}
/* brilho diagonal varrendo a foto em loop */
.founder__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.18) 46%,
    rgba(69, 255, 204, 0.22) 50%,
    rgba(255, 255, 255, 0.18) 54%,
    transparent 68%);
  transform: translateX(-130%);
  animation: founder-shine 4.5s ease-in-out 1s infinite;
}
@keyframes founder-shine {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .founder__photo::after { animation: none; opacity: 0; }
}
/* anel de gradiente girando = a moldura viva ao redor da foto */
.founder__ring {
  position: absolute;
  inset: -60%;
  z-index: 0;
  background: conic-gradient(from 0deg,
    #45ffcc, #38bdf8, #7c5cff, #f857a6, #45ffcc);
  animation: gborder-spin 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .founder__ring { animation: none; } }
.founder__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3; /* acima do brilho que varre */
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
.founder__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
  animation: glow-breathe 2s ease-in-out infinite;
}
.founder__lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  margin-bottom: 1.6rem;
}
.founder__lead strong { color: var(--text); font-weight: 600; }
.founder__quote {
  position: relative;
  margin: 0 0 1.8rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--brand-2);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}
.founder__journey { display: grid; gap: 0.9rem; }
.founder__journey li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.founder__step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-2);
  background: rgba(69, 255, 204, 0.08);
  border: 1px solid rgba(69, 255, 204, 0.2);
}

/* ---------- TUTORES ---------- */
.tutors { padding: 7rem 0; }
.tutors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.tutor {
  perspective: 700px;
}
.tutor__inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  transform: rotateX(0) rotateY(0);
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tutor:hover .tutor__inner { border-color: rgba(124, 92, 255, 0.5); }
/* Monograma premium: disco escuro + anel de gradiente (conic) que gira no
   hover do card + iniciais em gradiente. Sem foto falsa de banco de imagem. */
.tutor__avatar {
  position: relative;
  width: 88px; height: 88px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  margin-bottom: 1rem;
  isolation: isolate;
}
/* anel: conic atrás (::before) + disco escuro por cima (::after) = só a
   borda de 3px do gradiente fica visível */
.tutor__avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--av-1), var(--av-2), var(--av-1));
  z-index: -2;
}
.tutor__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  z-index: -1;
}
.tutor__avatar b {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--av-1), var(--av-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* o anel gira quando o card recebe hover */
.tutor:hover .tutor__avatar::before {
  animation: gborder-spin 2.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .tutor:hover .tutor__avatar::before { animation: none; }
}
.tutor h3 { font-family: var(--font-display); font-size: 1.1rem; }
.tutor__role { font-size: 0.8rem; color: var(--brand-2); margin-bottom: 0.6rem; }
.tutor p { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- CREDIBILIDADE (MEC + bônus) ---------- */
.credibility { padding: 3rem 0 7rem; }
.credibility__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.credibility__seal { font-size: 2.6rem; margin-bottom: 1rem; }

/* Borda de gradiente girando */
.gborder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.gborder::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--brand-1), var(--brand-3), var(--brand-2), var(--brand-1));
  animation: gborder-spin 5s linear infinite;
  will-change: transform;
}
@keyframes gborder-spin { to { transform: rotate(1turn); } }
.gborder__inner {
  position: relative;
  margin: 1.5px;
  height: calc(100% - 3px);
  padding: 2.2rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg-soft);
}
.gborder h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.7rem; }
.gborder p { color: var(--text-dim); }

.credibility__bonus {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.credibility__bonus h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.2rem; }
.credibility__bonus li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.credibility__bonus li:last-child { border-bottom: 0; }

/* ---------- CTA FINAL ---------- */
.cta {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: clip;
  isolation: isolate;
  background: var(--bg-soft);
}
/* chão de grade synthwave em perspectiva, rolando pra sempre */
.cta { perspective: 420px; }
.cta__grid-floor {
  position: absolute;
  left: -50%; right: -50%; bottom: -12%;
  height: 65%;
  z-index: -2;
  --tile: 46px;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.35) 1px, transparent 1px);
  background-size: var(--tile) var(--tile);
  transform-origin: bottom center;
  animation: grid-scroll 5s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 85%);
          mask-image: linear-gradient(to top, #000 15%, transparent 85%);
  will-change: transform;
}
/* desloca exatamente um tile por ciclo = loop sem emenda */
@keyframes grid-scroll {
  from { transform: rotateX(62deg) translateY(0); }
  to   { transform: rotateX(62deg) translateY(var(--tile)); }
}
.cta__spotlight {
  position: absolute;
  z-index: -1;
  width: 60%; height: 120%;
  top: -10%; left: 20%;
  background: radial-gradient(circle at center, rgba(124, 92, 255, 0.3) 0%, transparent 60%);
  animation: spot-move 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes spot-move {
  0%, 100% { transform: translateX(-110%); }
  50% { transform: translateX(110%); }
}
.cta__title {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.cta__content p { color: var(--text-dim); max-width: 520px; margin: 0 auto 2.2rem; }
.cta__note { font-size: 0.85rem !important; margin-top: 1.6rem !important; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer__logo { font-size: 1.4rem; }
.footer__tag { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.4rem; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__note {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.underline-grow {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.underline-grow:hover { color: var(--text); }
.underline-grow::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: var(--brand-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.underline-grow:hover::after, .underline-grow:focus-visible::after { transform: scaleX(1); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .profiles__grid { grid-template-columns: 1fr; }
  .noneed__list { grid-template-columns: repeat(2, 1fr); }
  .market__grid { grid-template-columns: 1fr; }
  .offer__grid { grid-template-columns: 1fr; }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 340px; margin-inline: auto; }
  .nav__burger { display: flex; margin-left: auto; } /* empurra o hambúrguer pra direita */
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--wide { grid-column: span 2; }
  .platform__grid { grid-template-columns: 1fr; gap: 2rem; }
  .platform__screen { display: none; }
  .platform { height: 400vh; }
  .credibility__grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; height: 560px; }
  .mosaic__col:nth-child(3) { display: none; }
  .hero__stats { grid-template-columns: repeat(2, auto); }
}
/* Celular: formações viram uma PILHA de cards (efeito stacked/empilhado).
   Cada card gruda no topo com um pequeno degrau; o próximo sobe e empilha
   por cima — como um baralho sendo folheado. Sem scroll horizontal. */
@media (max-width: 760px) {
  .formations { height: auto !important; }
  .formations__sticky {
    position: static;
    height: auto;
    min-height: 0;
    display: block;
    padding: 4rem 0 0;
    overflow: visible; /* CRÍTICO: overflow:hidden aqui quebraria o sticky dos cards */
  }
  .formations__sticky::before { display: none; }
  .formations__hint { display: none; }
  .formations__viewport { overflow: visible; }
  .formations__track {
    display: block;
    padding: 1.4rem 0 8vh;
    transform: none !important;
  }
  .formation-card {
    position: sticky;
    top: calc(80px + var(--i, 0) * 6px); /* degrau da pilha (usa o índice) */
    width: auto;
    max-width: 440px;
    /* cards ALTOS = empilhamento nítido (um cobre o outro ao rolar) */
    min-height: 56vh;
    margin: 0 auto 2.2rem;
    padding: 1.8rem;
    animation: none;
    justify-content: center;
    /* sombra em cima realça a borda de cada card na pilha */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 22px 50px rgba(0, 0, 0, 0.45);
  }
  .formation-card p { flex: none; }

  /* "Isso é pra você?" (perfis) — mesma pilha empilhada */
  .profiles__grid { display: block; grid-template-columns: none; }
  .profile-card {
    position: sticky;
    top: calc(80px + var(--i, 0) * 8px);
    max-width: 440px;
    min-height: 46vh;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 22px 50px rgba(0, 0, 0, 0.45);
  }

  /* "Muito além do código" (bento) — pilha empilhada */
  .bento { display: block; }
  .bento__card {
    position: sticky;
    top: calc(80px + var(--i, 0) * 6px);
    grid-row: auto !important;
    grid-column: auto !important;
    max-width: 440px;
    min-height: 48vh;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 22px 50px rgba(0, 0, 0, 0.45);
  }

  /* desliga a flutuação (especificidade maior) nas pilhas */
  .reveal-stagger.is-visible > .bento__card,
  .reveal-stagger.is-visible > .profile-card { animation: none; }
}

@media (max-width: 560px) {
  .noneed__list { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic__col:nth-child(2) { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
