*,
*::after,
*::before {
  box-sizing: border-box;
}


/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: '';
  position: fixed;
  z-index: 1000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.7, 0.7, 1);
  }
}

a {
  text-decoration: underline;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
	 that don't support :focus-visible */
  outline: none;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
  outline: 2px solid #ff0000;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.unbutton:focus {
  outline: none;
}


.frame {
  opacity: 0.6;
  font-size: 12px;
  position: relative;
  display: grid;
  width: 100%;
  grid-row-gap: 16px;
  grid-column-gap: 32px;
  pointer-events: none;
  justify-items: start;
  text-transform: uppercase;
  font-weight: 400;
}

.frame--header {
  grid-template-columns: 100%;
  grid-template-areas: 'title' 'back' 'archive' 'github' 'tags' 'sponsor';
}

.frame--footer {
  margin-top: 40vh;
  grid-template-columns: auto auto;
  justify-content: space-between;
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  font-weight: 400;
  margin: 0;
}

.frame__back {
  grid-area: back;
  justify-self: start;
}

.frame__archive {
  grid-area: archive;
  justify-self: start;
}
.intro {
  display: grid;
  min-height: 50vh;
  margin-bottom: 80vh;
}

.intro h2 {
  font-size: clamp(32px, 6vw, 128px);
  line-height: 0.8;
  margin: 0;
  align-self: end;
  text-transform: uppercase;
  font-family: "the-seasons", serif;
  font-weight: 300;
}

.intro h2 > span {
  animation: shine 2s linear forwards;
}

@keyframes shine {
  from {
    filter: brightness(60%) blur(6px);
  }
  to {
    filter: brightness(150%) blur(0px);
  }
}
.container__letras,
.content--layout,
.content__sobre1 {
    position: relative;
    z-index: 1;
}

.container__letras {
  display: grid;
  min-height: 100vh;
  font-size: clamp(32px,7vw,52px);
  line-height: 1.2;
  letter-spacing: -0.0225em;
}
.content__desc p {
	font-family: 'Roboto Mono', monospace;
	font-size: 35px;
	line-height: 1.6; /* melhora a leitura */
	color: white; /* opcional: cor da fonte */
}

.container__inner {
  justify-self: start;
  margin-bottom: 60vh;
}

.container__inner p {
  margin: 0;
  max-width: 900px;
  text-wrap: balance;
}

.hx {
  background: none;
  color: var(--color-highlight-start);
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.hx-5 {
  display: inline-flex;
  --after-scale: 1;
  --color-bg-highlight: blue;
  --color-highlight-start: #e1def4;
}

.hx-5::after {
  content: '';
  left: -2.5%;
  top: 10%;
  bottom: -7.5%;
  position: absolute;
  z-index: -1;
  width: 105%;
  transform: scale3D(var(--after-scale),var(--after-scale),var(--after-scale));
  background: var(--color-bg-highlight);
  border-radius: 8px;
}


.hx-flip {
  font-size: clamp(32px,20vw,352px);
  margin: 0;
  position: relative;
}

.hx-flip__inner,
.hx-flip__placeholder {
  font-weight: 200;
  background: none;
  color: inherit;
  display: inline-block;
}

.hx-flip__placeholder,
.hx__placeholder {
  opacity: 0;
}

.hx-flip__inner {
  position: absolute;
  left: 0;
  top: 0;
}

.word,
.word > .char {
  display: inline-block;
}

.hx__select {
  position: absolute;
  width: var(--select-width);
  height: 100%;
  left: -1%;
  top: 10%;
  background: rgb(109 215 230 / 14%);
  mix-blend-mode: plus-lighter;
}

.hx__select::before,
.hx__select::after {
  content: '';
  position: absolute;
  top: -0.125em;
  left: -0.075em;
  width: 0.155em;
  height: calc(100% + 0.1275em);
  background: url(https://res.cloudinary.com/dcqa6ttvr/image/upload/f_auto,q_auto/egis/select_svg.svg) no-repeat 0 0;
  background-size: auto 100%;
}

.hx__select::after {
  transform: scaleY(-1);
  left: auto;
  right: -0.075em;
  top: auto;
  bottom: -0.125em;
}
/* Responsivo para tablets (até 768px) */
@media screen and (max-width: 768px) {
  .intro h2 {
    font-size: clamp(28.8px, 8vw, 80px);
    line-height: 1;
    text-align: center;
  }
  .frame--header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .frame__title,
  .frame__back,
  .frame__archive {
    justify-self: center;
  }

  .content__desc p {
    font-size: 50px;
    padding: 0 16px;
    text-align: center;
  }

  .container__inner {
    margin-bottom: 40vh;
    justify-self: center;
    text-align: center;
  }

  .hx-flip {
    font-size: clamp(28.8px, 14vw, 160px);
  }
}

/* Responsivo para celulares (até 480px) */
@media screen and (max-width: 480px) {
  .content__desc p {
    font-size: 500px;
  }

  .frame {
    grid-row-gap: 8px;
    font-size: 10px;
  }

  .frame--footer {
    flex-direction: column;
    gap: 16px;
  }
}
@media screen and (max-width: 1024px) {
  .content {
    flex-direction: column;
    text-align: center;
  }

  .content__desc p {
    font-size: 150px;
  }

  .content__img {
    max-width: 100%;
  }
}
@media (min-width: 768px) {
  .footer-left,
  .footer-right {
    flex: 1 1 45%;
    max-width: 45%;
    margin-bottom: 0;
  }
}

.newsletter-form input,
.newsletter-form button {
  padding: 12.8px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  margin-top: 8px;
}
.card-valor {
  background: linear-gradient(to bottom, #120053, #090033);
  padding: 30px;
  border-radius: 20px;
  box-sizing: border-box;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-valor:hover {
  transform: translateY(-8px);
}

.card-valor .icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: white;
}

.card-valor h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.card-valor p,
.card-valor ul {
  font-size: 16px;
  line-height: 1.6;
}

.card-valor ul {
  padding-left: 20px;
}

.card-valor ul li {
  margin-bottom: 10px;
}
.valores-section {
  padding: 0px 20px 60px; /* top já incluso */
  display: flex;
  justify-content: center;
}

.valores-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* sempre 3 colunas fixas */
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .valores-container {
    grid-template-columns: 1fr; /* Uma única coluna */
    gap: 20px;
    padding: 0 10px;
  }

  .valores-section {
    padding: 20px 10px 60px;
  }

  .card-valor {
    width: 100%;
  }
}
