/* ==========================================================================
   RE-GO — Edição Minimalista
   Folha de Estilos Principal (styles.css)
   Organização modular & limpa
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIÁVEIS E TOKENS DE DESIGN
   -------------------------------------------------------------------------- */
:root {
  --paper: #eeede8;
  --ink: #111218;
  --black: #0d1016;
  --line: rgba(19, 23, 32, 0.18);
  --line-dark: rgba(240, 246, 255, 0.15);
  --chalk: #eeefe9;
  --soft: #aab1bb;
  --blue: #2774ff;
  --cyan: #45d9f0;
  --font: 'Space Grotesk', 'Arial', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --frame: min(1460px, calc(100% - clamp(36px, 7vw, 128px)));
  --ease: cubic-bezier(0.18, 0.75, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--chalk);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden],
.is-hidden {
  display: none !important;
}

::selection {
  background: var(--cyan);
  color: var(--black);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.frame {
  width: var(--frame);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 300;
  left: 12px;
  top: -100px;
  padding: 10px;
  background: var(--cyan);
  color: #081017;
}

.skip-link:focus {
  top: 12px;
}

.dark {
  background: var(--black);
  color: var(--chalk);
}

/* --------------------------------------------------------------------------
   3. INTRODUÇÃO & TRANSIÇÃO INICIAL
   -------------------------------------------------------------------------- */
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  color: #f3f0e8;
  background: #12151c;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.js .intro {
  display: block;
}

.intro.is-gone {
  display: none !important;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 43%, rgba(32, 97, 172, 0.19), transparent 45%);
  pointer-events: none;
}

.intro__cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(192px, 22vw, 290px);
  aspect-ratio: 3 / 3.85;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: #132842;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(0) rotate(var(--angle));
  clip-path: inset(20% 20% 20% 20%);
  will-change: transform, clip-path;
  opacity: 0;
}

.intro__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 53% 42%, rgba(109, 245, 255, 0.35), transparent 43%),
              linear-gradient(155deg, transparent 10%, rgba(0, 0, 0, 0.48) 100%);
}

.intro__card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  pointer-events: none;
}

.intro__card:nth-child(2) { background: #18345d; }
.intro__card:nth-child(3) { background: #122b3e; }
.intro__card:nth-child(4) { background: #1c254c; }
.intro__card:nth-child(5) { background: #112d45; }
.intro__card:nth-child(6) { background: #183c45; }

.intro__card img {
  position: relative;
  z-index: 1;
  width: 63%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45));
  transform: rotate(-11deg);
}

.intro__cardno,
.intro__cardname {
  position: absolute;
  z-index: 2;
  font: 700 0.67rem/1 var(--font);
  letter-spacing: 0.18em;
}

.intro__cardno {
  top: 32px;
  left: 33px;
  color: #b2cde5;
}

.intro__cardname {
  bottom: 32px;
  left: 33px;
  font-size: 0.8rem;
  color: #f4f7ff;
}

.intro__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  font: 700 clamp(5.2rem, 16vw, 17rem)/0.8 var(--font);
  letter-spacing: -0.1em;
  white-space: nowrap;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.16);
  visibility: hidden;
  pointer-events: none;
}

.intro__letters {
  display: flex;
  align-items: center;
}

.intro__letter {
  display: inline-block;
  transform: translateY(110%) rotate(10deg);
  will-change: transform, opacity;
}

.intro__count {
  position: absolute;
  top: -24px;
  left: calc(100% + 9px);
  font: 600 clamp(1rem, 1.5vw, 1.4rem)/1 var(--font);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.intro__index {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: 32px;
  font: 600 0.67rem/1 var(--font);
  letter-spacing: 0.18em;
  color: #b2c0d0;
}

.intro__skip {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 21px;
  color: #ddeaf7;
  font: 700 0.7rem var(--font);
  letter-spacing: 0.14em;
  background: transparent;
  border: 1px solid #4d6173;
  padding: 13px 18px;
  z-index: 10;
  transition: background 0.2s;
}

.intro__skip:hover {
  background: #26384e;
}

/* --------------------------------------------------------------------------
   4. CABEÇALHO & NAVEGAÇÃO
   -------------------------------------------------------------------------- */
.header {
  background: rgba(238, 237, 232, 0.94);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid rgba(18, 20, 28, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header__inner {
  height: 79px;
  display: flex;
  align-items: center;
  gap: 35px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 1.25rem/1 var(--font);
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.header__logo img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.header__logo .dash {
  color: var(--blue);
}

.header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__nav a {
  font: 700 0.83rem var(--body);
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 0.48;
}

.header__community {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: 12px;
  padding: 13px 18px;
  color: #f8fcff;
  background: var(--ink);
  font: 800 0.68rem var(--font);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.header__community:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.header__community span {
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 45px;
  height: 40px;
  margin-left: auto;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: 79px;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--paper);
  padding: 16px 8vw 32px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 32px rgba(0, 0, 0, 0.15);
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font: 700 1.35rem/1 var(--font);
}

/* --------------------------------------------------------------------------
   5. SEÇÃO HERO
   -------------------------------------------------------------------------- */
.hero {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(670px, calc(100svh - 79px));
}

.hero__glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 850px;
  max-height: 850px;
  right: -9vw;
  top: -9vw;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 174, 244, 0.20), transparent 63%);
  pointer-events: none;
}

.hero__inner {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 26px;
}

.section-line {
  font: 700 0.68rem/1.2 var(--font);
  letter-spacing: 0.13em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero__center {
  flex: 1;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  position: relative;
  min-height: 315px;
  padding: 28px 0 8px;
}

.hero__title {
  position: relative;
  z-index: 3;
  white-space: nowrap;
  font: 700 clamp(6rem, 16vw, 21rem)/0.8 var(--font);
  letter-spacing: -0.11em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 0;
}

.hero__title span {
  display: inline-block;
  transform-origin: 50% 90%;
}

.js .hero__title span {
  visibility: hidden;
}

.hero__dash {
  color: var(--blue);
}

.hero__emblem {
  position: relative;
  z-index: 1;
  right: auto;
  top: auto;
  width: clamp(230px, 27vw, 390px);
  height: clamp(230px, 27vw, 390px);
  transform: none;
  display: grid;
  place-items: center;
  justify-self: start;
  flex: 0 0 auto;
}

.hero__emblem::after {
  content: none;
}

.hero__emblem-core {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.08));
  animation: emblemFloat 3.8s ease-in-out infinite alternate;
}

@keyframes emblemFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(24px, 4vw, 44px);
  position: relative;
  z-index: 4;
}

.hero__bottom p {
  font: 500 clamp(1.7rem, 3.4vw, 3.2rem)/1.15 var(--font);
  letter-spacing: -0.065em;
}

.hero__bottom p strong {
  font-weight: 700;
}

.hero__right {
  display: flex;
  align-items: end;
  gap: clamp(22px, 4vw, 70px);
}

.hero__number {
  font: 700 clamp(2.8rem, 5.5vw, 5.3rem)/0.9 var(--font);
  letter-spacing: -0.07em;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero__number small {
  font: 700 0.66rem/1 var(--font);
  letter-spacing: 0.14em;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 166px;
  padding: 20px 21px;
  white-space: nowrap;
  font: 700 0.78rem var(--font);
  letter-spacing: 0.09em;
  transition: transform 0.22s, background 0.22s;
}

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

.action--dark {
  background: var(--ink);
  color: #fff;
}

.action--dark:hover {
  background: var(--blue);
}

.action span {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   6. SEÇÃO DE RECURSOS (FEATURES)
   -------------------------------------------------------------------------- */
.section-line {
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  color: #a9b2be;
}

.section-line--light {
  border-top-color: var(--line);
  color: #72757c;
}

.features {
  padding: 110px 0 100px;
}

.features__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 40px 0 62px;
}

.features__heading h2 {
  font: 700 clamp(3.9rem, 8vw, 9.2rem)/0.88 var(--font);
  letter-spacing: -0.095em;
}

.features__heading h2 em {
  font-style: normal;
  color: var(--cyan);
}

.features__mark {
  font: 400 clamp(4rem, 12vw, 11rem)/0.8 var(--font);
  color: var(--cyan);
  opacity: 0.78;
  transform: rotate(-25deg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.feature-tile {
  min-height: 360px;
  padding: 24px;
  position: relative;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.28s, color 0.28s;
}

.feature-tile::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(41, 127, 255, 0.18), transparent 72%);
  pointer-events: none;
}

.feature-tile:hover {
  background: var(--cyan);
  color: #0b111d;
}

.feature-tile:hover::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 72%);
}

.feature-tile__top {
  position: relative;
  z-index: 2;
  font: 700 0.67rem var(--font);
  letter-spacing: 0.07em;
  color: #9eabb9;
  display: flex;
  justify-content: space-between;
}

.feature-tile:hover .feature-tile__top {
  color: #13333a;
}

.feature-tile__top span {
  font-size: 1.1rem;
}

.feature-tile img {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(68%, 162px);
  height: 162px;
  object-fit: contain;
  filter: drop-shadow(0 20px 23px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s var(--ease);
}

.feature-tile:hover img {
  transform: translateY(-13px) rotate(-9deg) scale(1.08);
}

.feature-tile strong {
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font: 700 clamp(1.15rem, 2.05vw, 2.4rem)/1 var(--font);
  letter-spacing: -0.055em;
  word-break: normal;
}

.feature-tile strong span {
  font-size: 0.65em;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: transform 0.2s, opacity 0.2s;
}

.feature-tile:hover strong span {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   7. CATÁLOGO DE MÓDULOS
   -------------------------------------------------------------------------- */
.catalog {
  padding: 0 0 120px;
  scroll-margin-top: 80px;
}

.section-line--catalog {
  margin-top: 0;
}

.catalog__heading {
  padding: 43px 0 35px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}

.catalog__heading h2 {
  font: 700 clamp(3.8rem, 8.5vw, 9rem)/0.95 var(--font);
  letter-spacing: -0.095em;
}

.period {
  color: var(--cyan);
}

.catalog__search {
  position: relative;
  flex: 0 1 315px;
}

.catalog__search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.catalog__search input {
  width: 100%;
  color: var(--chalk);
  padding: 15px 12px 15px 49px;
  background: transparent;
  border: 1px solid #46515b;
  border-radius: 0;
  font: 500 0.86rem var(--body);
  outline-offset: 4px;
}

.catalog__search input::placeholder {
  color: #9ca6b1;
}

.catalog__search input:focus {
  border-color: var(--cyan);
  outline: 0;
}

.filterbar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 13px;
  margin-bottom: 27px;
  scrollbar-width: thin;
  scrollbar-color: #334656 transparent;
}

.filter {
  white-space: nowrap;
  background: transparent;
  color: #bac3cc;
  border: 1px solid #38414b;
  padding: 10px 14px;
  font: 600 0.73rem var(--font);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter sup {
  font: 600 0.62rem var(--font);
  color: #8b969f;
  margin-left: 5px;
}

.filter:hover {
  border-color: #b8c9db;
  color: #fff;
}

.filter.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #09151c;
}

.filter.is-active sup {
  color: #26525b;
}

.catalog__meta {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  color: #8995a2;
  margin: 0 0 17px;
  font: 700 0.65rem/1.2 var(--font);
  letter-spacing: 0.11em;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}

.module {
  background: #151b24;
  border: 1px solid #29323d;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}

.module:hover,
.module[open] {
  border-color: #6396a6;
  background: #1b242e;
}

.module summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 111px;
  padding: 18px;
  user-select: none;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module__image {
  flex: 0 0 61px;
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  background: #222d39;
  border-radius: 3px;
}

.module__image img {
  object-fit: contain;
  width: 42px;
  height: 42px;
}

.module__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.module__cat {
  color: #7f9cae;
  font: 700 0.61rem/1.1 var(--font);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.module__title {
  font: 700 clamp(0.86rem, 1.2vw, 1.05rem)/1.24 var(--font);
  letter-spacing: -0.035em;
}

.module__paused {
  font: 700 0.56rem var(--font);
  color: #f7b17d;
  border: 1px solid #7e513e;
  padding: 4px;
  align-self: start;
  white-space: nowrap;
}

.module__arrow {
  color: var(--cyan);
  font-size: 1rem;
  align-self: center;
  transition: transform 0.2s;
}

.module[open] .module__arrow {
  transform: rotate(90deg);
}

.module__detail {
  border-top: 1px solid var(--line-dark);
  margin: 0 18px;
  padding: 15px 0 19px;
  color: #c0cbd5;
  font: 0.82rem/1.5 var(--body);
}

.module__state {
  display: inline-block;
  color: #70e0f5;
  margin-top: 10px;
  font-size: 0.75rem;
}

.catalog__bottom {
  text-align: center;
  margin-top: 31px;
}

.catalog__more {
  border: 1px solid #768690;
  background: transparent;
  color: #fff;
  min-width: 300px;
  padding: 19px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font: 700 0.8rem var(--font);
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}

.catalog__more:hover {
  background: var(--cyan);
  color: var(--black);
}

#mods-empty {
  color: #a6b1bd;
  margin: 35px;
}

/* --------------------------------------------------------------------------
   8. FATOS & INFORMAÇÕES
   -------------------------------------------------------------------------- */
.facts {
  background: var(--paper);
  color: var(--ink);
  padding: 100px 0 120px;
}

.facts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(9vw, 130px);
  padding-top: 75px;
}

.facts__left h2 {
  font: 700 clamp(3.8rem, 7.5vw, 8rem)/0.9 var(--font);
  letter-spacing: -0.095em;
}

.facts__left h2 em {
  color: var(--blue);
  font-style: normal;
}

.facts__left p {
  font-size: 0.94rem;
  color: #5a5d64;
  margin-top: 40px;
  max-width: 380px;
}

.facts__right {
  padding-top: 5px;
}

.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.fact:first-child {
  border-top: 1px solid var(--line);
}

.fact > span {
  font: 700 0.67rem var(--font);
  letter-spacing: 0.08em;
  color: #6b6b72;
}

.fact strong {
  font: 700 clamp(1rem, 1.5vw, 1.4rem) var(--font);
  letter-spacing: -0.04em;
  text-align: right;
}

.fact--note {
  display: block;
}

.fact--note p {
  color: #5c6066;
  font-size: 0.83rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 480px;
}

/* --------------------------------------------------------------------------
   9. COMUNIDADE & RODAPÉ
   -------------------------------------------------------------------------- */
.community {
  padding: 100px 0 120px;
}

.community__inner {
  position: relative;
}

.community h2 {
  font: 700 clamp(4.4rem, 10vw, 11rem)/0.88 var(--font);
  letter-spacing: -0.1em;
  margin-top: 0;
}

.community h2 span {
  color: var(--cyan);
}

.community__link {
  display: inline-flex;
  gap: 55px;
  align-items: center;
  justify-content: space-between;
  background: var(--cyan);
  color: #102027;
  font: 800 1rem var(--font);
  padding: 24px 30px;
  margin-top: 55px;
  min-width: 250px;
  transition: background 0.2s, transform 0.2s;
}

.community__link:hover {
  background: white;
  transform: translateY(-3px);
}

.footer {
  border-top: 1px solid var(--line-dark);
  padding: 44px 0 30px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer__brand {
  font: 700 3.25rem/0.85 var(--font);
  letter-spacing: -0.09em;
}

.footer__brand span {
  color: var(--cyan);
}

.footer__links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__links a,
.footer__links button {
  color: #c3cbd5;
  font: 600 0.78rem var(--body);
  background: transparent;
  border: 0;
  padding: 0;
}

.footer__links a:hover,
.footer__links button:hover {
  color: var(--cyan);
}

.footer__lower {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  color: #7e8996;
  border-top: 1px solid var(--line-dark);
  margin-top: 45px;
  padding-top: 22px;
  font-size: 0.7rem;
  line-height: 1.55;
}

.footer__lower p {
  max-width: 285px;
}

.footer__lower span {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. BOTÃO VOLTAR AO TOPO
   -------------------------------------------------------------------------- */
.backtotop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 40;
  background: var(--cyan);
  border: 0;
  color: #091217;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform 0.2s, opacity 0.2s;
}

.backtotop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* --------------------------------------------------------------------------
   11. MEDIA QUERIES (RESPONSIVIDADE)
   -------------------------------------------------------------------------- */

/* Telas Grandes / Desktops Menores (<= 1200px) */
@media (max-width: 1200px) {
  .feature-tile {
    min-height: 300px;
    padding: 20px;
  }

  .feature-tile img {
    height: 128px;
  }

  .feature-tile strong {
    font-size: 1.55rem;
  }

  .hero__center {
    min-height: 260px;
  }

  .module summary {
    padding: 16px;
    gap: 12px;
  }

  .module__image {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

/* Tablets e Desktops Médios (<= 900px) */
@media (max-width: 900px) {
  :root {
    --frame: calc(100% - 48px);
  }

  .header__nav {
    gap: 15px;
  }

  .header__community {
    margin-left: 0;
    gap: 15px;
  }

  .hero__center {
    gap: 24px;
  }

  .hero__bottom {
    margin-bottom: 62px;
  }

  .hero__title {
    font-size: 17vw;
  }

  .hero__emblem {
    width: clamp(200px, 26vw, 300px);
    height: clamp(200px, 26vw, 300px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile {
    min-height: 330px;
  }

  .feature-tile strong {
    font-size: 2.25rem;
  }

  .feature-tile img {
    height: 165px;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts__grid {
    gap: 50px;
  }

  .facts__left h2 {
    font-size: 6.9vw;
  }
}

/* Tablets Menores e Dispositivos Móveis (<= 680px) */
@media (max-width: 680px) {
  :root {
    --frame: calc(100% - 36px);
  }

  .header__inner {
    height: 68px;
  }

  .header__nav,
  .header__community {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    top: 68px;
  }

  .hero {
    min-height: max(620px, calc(100svh - 68px));
  }

  .hero__inner {
    padding-top: 23px;
    padding-bottom: 23px;
  }

  .section-line {
    font-size: 0.59rem;
    letter-spacing: 0.075em;
  }

  .hero__center {
    min-height: 310px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 18px;
  }

  .hero__title {
    font-size: 21vw;
    justify-content: center;
  }

  .hero__emblem {
    justify-self: center;
    width: 46vw;
    height: 46vw;
  }

  .hero__bottom {
    margin-bottom: 43px;
    align-items: start;
  }

  .hero__bottom p {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .hero__right {
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
  }

  .hero__number {
    font-size: 2.7rem;
    gap: 2px;
  }

  .hero__number small {
    font-size: 0.54rem;
  }

  .action {
    padding: 16px;
    min-width: 135px;
    font-size: 0.71rem;
  }

  .features {
    padding: 70px 0;
  }

  .features__heading {
    padding: 40px 0 45px;
  }

  .features__heading h2 {
    font-size: clamp(3.6rem, 11vw, 6rem);
  }

  .features__mark {
    font-size: 5rem;
  }

  .feature-tile {
    min-height: 270px;
    padding: 16px;
  }

  .feature-tile strong {
    font-size: clamp(1.23rem, 3.2vw, 2rem);
  }

  .feature-tile img {
    height: 130px;
  }

  .feature-tile__top {
    font-size: 0.59rem;
  }

  .catalog {
    padding-bottom: 85px;
  }

  .catalog__heading {
    align-items: start;
    flex-direction: column;
  }

  .catalog__heading h2 {
    font-size: clamp(3.75rem, 12vw, 6rem);
  }

  .catalog__search {
    flex: auto;
    width: 100%;
  }

  .catalog__meta {
    font-size: 0.55rem;
  }

  .facts {
    padding: 75px 0 90px;
  }

  .facts__grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 42px;
  }

  .facts__left h2 {
    font-size: clamp(4rem, 12vw, 7rem);
  }

  .facts__left p {
    margin-top: 22px;
  }

  .community {
    padding: 75px 0 90px;
  }

  .community h2 {
    font-size: clamp(4.4rem, 12.2vw, 7rem);
    margin-top: 30px;
  }

  .community__link {
    margin-top: 35px;
  }

  .footer__row {
    align-items: start;
    flex-direction: column;
    gap: 33px;
  }

  .footer__links {
    gap: 18px 28px;
  }

  .footer__lower {
    display: block;
  }

  .footer__lower p,
  .footer__lower span {
    display: block;
    margin-bottom: 10px;
    max-width: unset;
  }

  .intro__brand {
    font-size: 18vw;
  }

  .intro__card {
    width: 220px;
  }

  .intro__count {
    top: -17px;
  }

  .intro__index {
    bottom: 25px;
  }
}

/* Dispositivos Móveis Pequenos (<= 480px) */
@media (max-width: 480px) {
  .hero {
    min-height: max(580px, calc(100svh - 68px));
  }

  .hero__center {
    min-height: 320px;
  }

  .hero__title {
    font-size: 20vw;
  }

  .hero__emblem {
    width: 51vw;
    height: 51vw;
  }

  .hero__bottom p {
    font-size: 1.7rem;
  }

  .hero__right {
    gap: 14px;
  }

  .hero__number {
    font-size: 2.35rem;
  }

  .action {
    padding: 15px;
    gap: 14px;
    min-width: 115px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile {
    height: 235px;
    min-height: 0;
    padding: 14px;
  }

  .feature-tile__top {
    font-size: 0.52rem;
  }

  .feature-tile img {
    height: 110px;
  }

  .feature-tile strong {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module summary {
    min-height: 96px;
  }

  .features__mark {
    display: none;
  }

  .filter {
    padding: 9px 12px;
  }

  .catalog__meta {
    letter-spacing: 0.035em;
  }

  .catalog__more {
    min-width: min(100%, 300px);
  }

  .intro__card {
    width: 195px;
  }

  .intro__brand {
    font-size: 18vw;
  }
}

/* --------------------------------------------------------------------------
   12. ACESSIBILIDADE & PREFERÊNCIA DE MOVIMENTO REDUZIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .js .hero__title span {
    visibility: visible;
  }

  .intro {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. ESTADOS GLOBAIS DE BLOQUEIO DE SCROLL
   -------------------------------------------------------------------------- */
body.intro-playing,
body.menu-open {
  overflow: hidden;
}

#apk-download[aria-disabled="true"] { opacity: .6; cursor: default; transform: none; }
