/* home.css | Home The Game Society inspirada em The Players Impact */

.tgs-main {
  background: #050504;
  overflow: hidden;
}

.tgs-kicker {
  display: inline-flex;
  color: var(--pb-accent-bright);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tgs-impact-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 88px);
  padding: 0rem 0 2rem;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(232, 206, 143, 0.14);
  background:
    linear-gradient(120deg, rgba(214, 173, 85, 0.12), transparent 34%),
    radial-gradient(circle at 78% 46%, rgba(214, 173, 85, 0.12), transparent 24rem),
    linear-gradient(135deg, #050504 0%, #090806 52%, #020202 100%);
}

.tgs-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: grayscale(1) contrast(1.14) brightness(0.76);
  pointer-events: none;
  transition: opacity 420ms ease, filter 420ms ease;
}

.tgs-hero-video.is-switching {
  opacity: 0.28;
}

.tgs-impact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.9), rgba(5, 5, 4, 0.58) 52%, rgba(5, 5, 4, 0.82)),
    linear-gradient(180deg, rgba(5, 5, 4, 0.2), rgba(5, 5, 4, 0.94)),
    radial-gradient(circle at 78% 36%, rgba(214, 173, 85, 0.14), transparent 24rem);
  pointer-events: none;
}

.tgs-impact-hero .container-xxl {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tgs-impact-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
  flex: 1;
}

.tgs-impact-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 2rem;
}

.tgs-impact-copy h1,
.tgs-lobby-copy h2,
.tgs-section-head h2,
.tgs-ecosystem-copy h2,
.tgs-final-cta h2 {
  margin: 0;
  color: #fff8e7;
  font-weight: 400;
  letter-spacing: 0;
}

.tgs-impact-copy h1 {
  /* max-width: 13ch; */
  margin-top: 1rem;
  font-size: clamp(3.8rem, 7vw, 5rem);
  line-height: 0.9;
}

.tgs-impact-copy p {
  /* max-width: 620px; */
  margin: 1.15rem 0 0;
  color: #d1c19c;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.48;
}

.tgs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.tgs-impact-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(232, 206, 143, 0.2);
  border-radius: 8px;
  background: #050504;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.76);
  transform: translate3d(0, var(--tgs-hero-shift, 0), 0);
}

.tgs-impact-stage img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0.78;
  filter: contrast(1.08) saturate(0.82);
  transform: scale(1.02);
}

.tgs-impact-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.32), rgba(5, 5, 4, 0.04)),
    linear-gradient(180deg, rgba(5, 5, 4, 0.18), rgba(5, 5, 4, 0.56));
  pointer-events: none;
}

.tgs-circuit {
  position: absolute;
  inset: 8% 7%;
  z-index: 1;
  opacity: 0.58;
  pointer-events: none;
}

.tgs-circuit span {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 229, 161, 0.92), transparent);
  transform-origin: left center;
  animation: tgsSignal 5s ease-in-out infinite;
}

.tgs-circuit span:nth-child(1) {
  width: 46%;
  top: 18%;
  left: 6%;
  transform: rotate(28deg);
}

.tgs-circuit span:nth-child(2) {
  width: 62%;
  top: 40%;
  left: 20%;
  transform: rotate(-12deg);
  animation-delay: 800ms;
}

.tgs-circuit span:nth-child(3) {
  width: 38%;
  right: 2%;
  bottom: 28%;
  transform: rotate(42deg);
  animation-delay: 1200ms;
}

.tgs-circuit span:nth-child(4) {
  width: 44%;
  left: 12%;
  bottom: 18%;
  transform: rotate(-24deg);
  animation-delay: 1700ms;
}

.tgs-circuit span:nth-child(5) {
  width: 34%;
  top: 6%;
  right: 6%;
  transform: rotate(90deg);
  animation-delay: 2200ms;
}

.tgs-stage-caption {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(232, 206, 143, 0.22);
  border-radius: 8px;
  background: rgba(5, 5, 4, 0.72);
  backdrop-filter: blur(16px);
  color: #fff8e7;
  text-transform: uppercase;
}

.tgs-stage-caption span {
  color: var(--pb-text-muted);
  font-size: 0.72rem;
}

.tgs-stage-caption strong {
  color: var(--pb-accent-bright);
  font-size: 0.78rem;
  font-weight: 400;
}

.tgs-access-points {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tgs-access-points article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(232, 206, 143, 0.14);
  border-radius: 8px;
  background: rgba(13, 12, 10, 0.78);
}

.tgs-access-points span {
  color: var(--pb-accent-bright);
  font-size: 0.84rem;
}

.tgs-access-points strong {
  color: #fff8e7;
  font-size: 1rem;
  font-weight: 400;
  text-align: right;
}

.tgs-lobby-feature,
.tgs-membership-structure,
.tgs-drop-section,
.tgs-ecosystem {
  padding: 4rem 0;
}

.tgs-lobby-grid,
.tgs-ecosystem-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.tgs-lobby-media,
.tgs-ecosystem-stack {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.tgs-lobby-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid rgba(232, 206, 143, 0.18);
  border-radius: 8px;
  filter: contrast(1.05) saturate(0.92);
}

.tgs-lobby-copy {
  max-width: 720px;
}

.tgs-lobby-copy h2,
.tgs-section-head h2,
.tgs-ecosystem-copy h2,
.tgs-final-cta h2 {
  margin-top: 0.65rem;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.tgs-lobby-copy p,
.tgs-ecosystem-copy p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--pb-text-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.tgs-mini-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.tgs-mini-feed span {
  border: 1px solid rgba(232, 206, 143, 0.24);
  border-radius: var(--pb-radius-pill);
  padding: 0.24rem 0.7rem;
  color: var(--pb-accent-bright);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.tgs-membership-structure {
  background: #090806;
  border-top: 1px solid rgba(232, 206, 143, 0.12);
  border-bottom: 1px solid rgba(232, 206, 143, 0.12);
}

.tgs-section-head {
  max-width: 920px;
  margin-bottom: 1.35rem;
}

.tgs-section-head-row {
  display: grid;
  gap: 1rem;
  align-items: end;
  max-width: none;
}

.tgs-membership-grid {
  display: grid;
  gap: 0.9rem;
}

.tgs-membership-card,
.tgs-drop-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 206, 143, 0.16);
  border-radius: 8px;
  background: #10100d;
  min-height: 390px;
}

.tgs-membership-card img,
.tgs-drop-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.82);
  transform: scale(1.01);
  transition: transform 500ms ease, filter 500ms ease;
}

.tgs-membership-card::after,
.tgs-drop-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.08), rgba(5, 5, 4, 0.78)),
    linear-gradient(120deg, rgba(214, 173, 85, 0.16), transparent 46%);
}

.tgs-membership-card div,
.tgs-drop-card div {
  position: absolute;
  z-index: 1;
  inset: auto 1rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.tgs-membership-card span,
.tgs-drop-card span {
  color: var(--pb-accent-bright);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tgs-membership-card h3,
.tgs-drop-card h3 {
  max-width: 15ch;
  margin: 0;
  color: #fff8e7;
  font-size: 1.65rem;
  line-height: 1.02;
  font-weight: 400;
}

.tgs-membership-card:hover img,
.tgs-drop-card:hover img {
  transform: scale(1.06);
  filter: contrast(1.12) saturate(0.98);
}

.tgs-drop-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31vw);
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 173, 85, 0.55) rgba(255, 255, 255, 0.06);
  padding-bottom: 0.9rem;
  cursor: grab;
}

.tgs-drop-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.tgs-drop-card {
  min-height: 460px;
  scroll-snap-align: start;
}

.tgs-ecosystem {
  background:
    linear-gradient(180deg, rgba(214, 173, 85, 0.06), transparent 16rem),
    #050504;
}

.tgs-ecosystem-copy {
  max-width: 720px;
}

.tgs-ecosystem-copy .pb-btn-secondary {
  margin-top: 1.15rem;
}

.tgs-ecosystem-stack {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: end;
}

.tgs-ecosystem-stack img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(232, 206, 143, 0.16);
  border-radius: 8px;
}

.tgs-ecosystem-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.tgs-ecosystem-stack img:last-child {
  aspect-ratio: 4 / 4.8;
  transform: translateY(2rem);
}

.tgs-final-cta {
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(232, 206, 143, 0.12);
  background-image:
    linear-gradient(90deg, rgba(5, 5, 4, 0.96), rgba(5, 5, 4, 0.68), rgba(5, 5, 4, 0.34)),
    var(--tgs-final-image);
  background-position: center;
  background-size: cover;
}

.tgs-final-cta-copy {
  max-width: 920px;
}

.tgs-motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.tgs-motion-ready [data-reveal='left'] {
  transform: translate3d(-34px, 0, 0);
}

.tgs-motion-ready [data-reveal='right'] {
  transform: translate3d(34px, 0, 0);
}

.tgs-motion-ready [data-reveal='scale'] {
  transform: translate3d(0, 28px, 0) scale(0.98);
}

.tgs-motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.tgs-motion-ready .tgs-impact-stage[data-reveal].is-visible {
  transform: translate3d(0, var(--tgs-hero-shift, 0), 0) scale(1);
}

@keyframes tgsSignal {
  0%,
  100% {
    opacity: 0.18;
    filter: blur(0);
  }

  50% {
    opacity: 0.86;
    filter: blur(0.6px);
  }
}

@media (max-width: 575.98px) {
  .tgs-impact-hero {
    min-height: auto;
    padding: 2rem 0 1.5rem;
  }

  .tgs-impact-copy h1 {
    max-width: 10ch;
    font-size: 3.55rem;
  }

  .tgs-impact-stage,
  .tgs-impact-stage img {
    min-height: 430px;
  }

  .tgs-access-points article {
    min-height: 60px;
  }

  .tgs-lobby-feature,
  .tgs-membership-structure,
  .tgs-drop-section,
  .tgs-ecosystem {
    padding: 3rem 0;
  }

  .tgs-membership-card {
    min-height: 330px;
  }

  .tgs-drop-track {
    grid-auto-columns: minmax(260px, 78vw);
  }

  .tgs-drop-card {
    min-height: 390px;
  }

  .tgs-section-head-row .pb-btn-secondary {
    width: fit-content;
  }

  .tgs-ecosystem-stack img:last-child {
    transform: translateY(1.2rem);
  }

  .tgs-final-cta {
    min-height: 460px;
  }
}

@media (min-width: 768px) {
  .tgs-access-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tgs-access-points article {
    display: grid;
    align-content: space-between;
  }

  .tgs-access-points strong {
    text-align: left;
  }

  .tgs-membership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .tgs-impact-hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  }

  .tgs-lobby-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.82fr);
  }

  .tgs-section-head-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tgs-ecosystem-grid {
    grid-template-columns: minmax(0, 0.76fr) minmax(420px, 0.8fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgs-circuit span {
    animation: none;
  }

  .tgs-motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tgs-impact-stage {
    transform: none;
  }
}
