/* MODELO da nova página inicial (home-nova.html). Usa os tokens de css/pre-lancamento-b/style.css. */

.hm {
  background: var(--bg);
  overflow-x: clip;
}

.hm-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-600);
}

/* ===================== MENU ===================== */
.hm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.hm-nav.is-scrolled {
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -20px rgba(5, 26, 2, 0.4);
}

.hm-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
}

.hm-nav__logo img {
  display: block;
  height: 56px;
  width: auto;
  margin: -10px 0;
}

.hm-nav__links {
  display: none;
  gap: var(--space-6);
  margin-left: auto;
}

.hm-nav__links a {
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
}

.hm-nav__links a:hover {
  color: var(--g-600);
}

.hm-nav__cta {
  margin-left: auto;
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .hm-nav__links { display: flex; }
  .hm-nav__cta { margin-left: 0; }
}

/* ===================== TOPO ===================== */
.hm-hero {
  padding: var(--space-8) 0 var(--space-12);
}

.hm-hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .hm-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hm-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: var(--space-3) 0 var(--space-5);
  text-wrap: balance;
}

.hm-hero__title span {
  background: var(--g-neon);
  padding: 0 0.15em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hm-hero__sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 var(--space-6);
  max-width: 560px;
  text-wrap: pretty;
}

.hm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hm-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hm-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-900);
  color: var(--g-neon);
  transition: transform var(--duration-fast) var(--ease-out);
}

.hm-social a:hover {
  transform: translateY(-2px);
}

.hm-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hm-hero__media {
  position: relative;
  max-width: 520px;
  justify-self: center;
}

.hm-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 40px 80px -40px rgba(5, 26, 2, 0.6);
}

/* ===================== NÚMEROS ===================== */
.hm-stats {
  background: var(--g-900);
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

/* As pontas somem num degradê da cor do fundo. */
.hm-stats::before,
.hm-stats::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 12%;
  pointer-events: none;
}

.hm-stats::before {
  left: 0;
  background: linear-gradient(90deg, var(--g-900), transparent);
}

.hm-stats::after {
  right: 0;
  background: linear-gradient(270deg, var(--g-900), transparent);
}

/* Esteira: dois grupos iguais lado a lado; andar 50% emenda o fim no começo. */
.hm-stats__track {
  display: flex;
  width: max-content;
  animation: hm-stats-marquee 60s linear infinite;
}

.hm-stats:hover .hm-stats__track {
  animation-play-state: paused;
}

.hm-stats__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  margin: 0;
  padding: 0 clamp(40px, 6vw, 88px) 0 0;
  list-style: none;
}

@keyframes hm-stats-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hm-stat {
  text-align: center;
  white-space: nowrap;
}

.hm-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--g-neon);
  line-height: 1.1;
}

.hm-stat span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hm-stats__sep {
  color: rgba(125, 255, 94, 0.5);
  font-size: 1.2rem;
}

/* Sem movimento: os números ficam parados e centralizados. */
@media (prefers-reduced-motion: reduce) {
  .hm-stats::before, .hm-stats::after { display: none; }
  .hm-stats__track { animation: none; width: auto; justify-content: center; }
  .hm-stats__group { flex-wrap: wrap; justify-content: center; padding: 0 var(--space-4); }
  .hm-stats__group[aria-hidden="true"], .hm-stats__sep { display: none; }
}

/* ===================== CURSOS ===================== */
.hm-courses {
  display: grid;
  gap: var(--space-6);
}

/* Curso principal sozinho numa linha (arte à esquerda, texto à direita); os outros dois lado a lado embaixo. */
@media (min-width: 700px) {
  .hm-courses {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .hm-courses .hm-course--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .hm-courses .hm-course--featured {
    flex-direction: row;
    align-items: center;
  }

  .hm-courses .hm-course--featured .hm-course__cover {
    flex: 0 0 56%;
  }

  .hm-courses .hm-course--featured .hm-course__body {
    padding: var(--space-8);
  }

  .hm-courses .hm-course--featured .hm-course__title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  }
}

.hm-course {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.hm-course--featured {
  border: 2px solid var(--g-900);
  box-shadow: 0 30px 60px -36px rgba(5, 26, 2, 0.6);
}

.hm-course__cover {
  aspect-ratio: 16 / 9;
  background: var(--g-900);
  overflow: hidden;
}

.hm-course__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-course__cover--dark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #11390c, #051a02 70%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #ffffff;
}

.hm-course__cover--dark b {
  color: var(--g-neon);
}

.hm-course__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-6);
  flex: 1;
}

.hm-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-heading);
}

.hm-badge--on {
  background: var(--g-neon);
  border-color: var(--g-neon);
  color: var(--g-900);
}

.hm-badge--soon {
  background: #fff7e0;
  border-color: #e8c97a;
}

.hm-course__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin: var(--space-1) 0 0;
}

.hm-course__text {
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.hm-course__btn {
  margin-top: var(--space-3);
  min-height: 46px;
  font-size: 0.92rem;
}

/* ===================== CONTEÚDO ===================== */
.hm-videos {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .hm-videos { grid-template-columns: repeat(3, 1fr); }
}

.hm-video {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-heading);
}

.hm-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--g-900);
}

.hm-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.hm-video:hover .hm-video__thumb img {
  transform: scale(1.04);
}

.hm-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-neon);
  color: var(--g-900);
  font-size: 1.1rem;
  padding-left: 3px;
}

.hm-video__title {
  font-weight: 600;
  line-height: 1.4;
}

.hm-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hm-channel {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.85rem;
}

.hm-channel b {
  color: var(--text-heading);
  font-size: 1rem;
}

/* ===================== SOBRE ===================== */
.hm-about {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hm-about { grid-template-columns: 0.8fr 1.2fr; }
}

/* Foto com cenário preenchendo a moldura */
.hm-about__photo {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--g-900);
  box-shadow: 0 18px 50px -10px rgba(5, 26, 2, 0.28), 0 0 40px rgba(125, 255, 94, 0.22);
}

.hm-about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

/* Sobre e Achados ficam próximos, sem o vão duplo entre as seções. */
.hm-about-section {
  padding-bottom: var(--space-8);
}

.hm-finds-section {
  padding-top: 0;
}

.hm-about__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-heading);
  margin: var(--space-2) 0 var(--space-4);
}

.hm-about__text p {
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.hm-quote {
  margin: var(--space-6) 0 0;
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--g-neon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--g-900);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

/* ===================== DEPOIMENTOS ===================== */
.hm-testimonials {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .hm-testimonials { grid-template-columns: repeat(3, 1fr); }
}

.hm-placeholder {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

/* ===================== ACHADOS ===================== */
.hm-finds {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--g-900);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out);
}

.hm-finds:hover {
  transform: translateY(-3px);
}

/* Achados e Jogos um embaixo do outro */
.hm-finds + .hm-finds {
  margin-top: var(--space-4);
}

/* Banner 16:9 dos Achados: em cima no celular, à esquerda no computador */
.hm-finds__cover {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hm-finds__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 699px) {
  .hm-finds { flex-wrap: wrap; }
}

@media (min-width: 700px) {
  .hm-finds__cover { width: min(42%, 400px); }
}

.hm-finds__text {
  flex: 1;
  line-height: 1.5;
}

.hm-finds__text b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--g-neon);
}

.hm-finds__arrow {
  font-size: 1.6rem;
  color: var(--g-neon);
}

/* ===================== CONTATO ===================== */
.hm-contact__grid {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .hm-contact__grid { grid-template-columns: 1fr 1fr; }
}

.hm-contact__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-body);
}

.hm-contact__card span {
  font-size: 1.8rem;
}

.hm-contact__card b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-heading);
}

.hm-placeholder-card {
  border-style: dashed;
}

/* ===================== RODAPÉ ===================== */
.hm-footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-10) 0;
  font-size: 0.85rem;
}

.hm-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.hm-footer__logo {
  height: 56px;
  filter: invert(1);
}

.hm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}

.hm-footer__links a,
.hm-footer__links a:visited {
  color: #ffffff;
  text-decoration: none;
}

.hm-footer__links a:hover {
  color: var(--g-neon);
}

.hm-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hm * {
    transition: none !important;
  }
}

/* Ícone do Instagram é de contorno (stroke), não preenchido. */
.hm-social svg.ig {
  fill: none;
}

/* ===================== FUNDO ANIMADO LEVE (Conteúdo gratuito) =====================
   Dois brilhos em radial-gradient passeando devagar. Só transform anima (roda na GPU),
   sem filter/blur e sem JS. Parado para quem pediu menos movimento. */
.hm-glow-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hm-glow-bg::before,
.hm-glow-bg::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hm-glow-bg::before {
  top: -35vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(125, 255, 94, 0.35) 0%, rgba(125, 255, 94, 0) 60%);
  animation: hm-glow-a 22s ease-in-out infinite alternate;
}

.hm-glow-bg::after {
  bottom: -40vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(17, 57, 12, 0.22) 0%, rgba(17, 57, 12, 0) 60%);
  animation: hm-glow-b 28s ease-in-out infinite alternate;
}

@keyframes hm-glow-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(35vw, 18vh, 0) scale(1.15); }
}

@keyframes hm-glow-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-30vw, -15vh, 0) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-glow-bg::before,
  .hm-glow-bg::after { animation: none; }
}
