/* ═══════════════════════════════════════════════════════════════════
   DUNGEONSELECT — temática "dourado premium sobre o preto"
   Organizado em: tokens · base · utilitários · componentes · seções
   ═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────── fontes ───────────────────────────── */
@font-face {
  font-family: 'Minecraft';
  src: url('/fonts/minecraft.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

/* ──────────────────────────── tokens ────────────────────────────── */
:root {
  --bg:        #07060a;
  --bg-2:      #0b0a11;
  --card:      #101019;
  --card-2:    #14131f;
  --line:      rgba(212, 160, 23, .14);
  --line-soft: rgba(255, 255, 255, .055);

  --gold:     #d4a017;
  --gold-lt:  #f5c842;
  --gold-hi:  #ffeab0;
  --gold-dk:  #8b6914;
  --gold-glow: rgba(212, 160, 23, .35);

  --txt:   #f4f2ee;
  --txt-2: rgba(255, 255, 255, .62);
  --txt-3: rgba(255, 255, 255, .38);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --wrap:  1200px;
  --pad:   clamp(20px, 5vw, 40px);
  --gap:   clamp(56px, 9vw, 120px);

  --ease: cubic-bezier(.22, .61, .36, 1);

  --f-pixel:  'Minecraft', 'Courier New', monospace;
  --f-display: 'Cinzel', Georgia, serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ───────────────────────────── base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.btn, .nav__link, .faq__q, .lang__opt, .burger, .showcase__arrow, .showcase__dot, .totop, a { pointer-events: auto; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: rgba(212, 160, 23, .32); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dk), #5d4406);
  border: 3px solid var(--bg);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ─────────────────────────── utilitários ────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 860px; }
.wrap--mid    { max-width: 1040px; }

.section {
  position: relative;
  padding-block: var(--gap);
}
.section--tight { padding-block: clamp(48px, 7vw, 84px); }

/* barra de progresso do scroll */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  height: 2px;
  background: rgba(255, 255, 255, .04);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt) 60%, var(--gold-hi));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width .1s linear;
}

/* elipse de luz usada atrás de blocos */
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 340px at 50% 0%, rgba(212, 160, 23, .07), transparent 70%);
}

/* reveals com JS (escondidos só se o JS carregou) */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
html.js .reveal[data-reveal-delay="1"] { --d: 1; }
html.js .reveal[data-reveal-delay="2"] { --d: 2; }
html.js .reveal[data-reveal-delay="3"] { --d: 3; }
html.js .reveal[data-reveal-delay="4"] { --d: 4; }
html.js .reveal[data-reveal-delay="5"] { --d: 5; }

/* ──────────────────────── tipografia ────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--f-pixel);
  font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  height: 1px;
  width: clamp(24px, 6vw, 52px);
}
.eyebrow::before { background: linear-gradient(90deg, transparent, rgba(212, 160, 23, .55)); }
.eyebrow::after  { background: linear-gradient(270deg, transparent, rgba(212, 160, 23, .55)); }

.head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.head__title {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: .01em;
  text-wrap: balance;
}
.head__title--xl { font-size: clamp(2.1rem, 5.4vw, 3.7rem); }

.head__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold-lt) 28%, var(--gold) 62%, var(--gold-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.head__sub {
  margin: 0 auto;
  max-width: 640px;
  color: var(--txt-2);
  font-size: clamp(14.5px, 1.6vw, 16px);
  line-height: 1.75;
  text-wrap: pretty;
}

/* ─────────────────────────── botões ─────────────────────────────── */
.btn {
  --b-offset: 3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-pixel);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .10);
  border-bottom-width: var(--b-offset);
  border-radius: 11px;
  padding: 13px 26px;
  transition: transform .16s var(--ease), box-shadow .24s var(--ease),
              filter .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn:active { transform: translateY(2px); --b-offset: 1px; }

.btn--lg { padding: 16px 32px; font-size: 14px; }
.btn--sm { padding: 9px 16px; font-size: 11.5px; --b-offset: 2px; }
.btn--sm svg { width: 14px; height: 14px; }

/* dourado — estilo botão de Minecraft, mas com profundidade */
.btn--gold {
  color: #1c1503;
  background: linear-gradient(180deg, #fbd971 0%, var(--gold) 52%, #b07f0d 100%);
  border-color: rgba(0, 0, 0, .5);
  border-bottom-color: #4f3a05;
  box-shadow:
    0 8px 24px rgba(212, 160, 23, .30),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -2px 0 rgba(0, 0, 0, .18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.btn--gold:hover {
  filter: brightness(1.07) saturate(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(212, 160, 23, .42),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.btn--gold:active { box-shadow: 0 4px 14px rgba(212, 160, 23, .35), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* contorno / secundário */
.btn--ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, .13);
  border-bottom-color: rgba(0, 0, 0, .55);
}
.btn--ghost:hover {
  background: rgba(212, 160, 23, .10);
  border-color: rgba(212, 160, 23, .35);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}

.btn--discord {
  color: #fff;
  background: linear-gradient(180deg, #6a76ff, #5865f2);
  border-bottom-color: #3641b5;
  box-shadow: 0 8px 24px rgba(88, 101, 242, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--discord:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(88, 101, 242, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* botão ainda sem arquivo — clique mostra aviso */
.btn[data-jar][href="#"] { will-change: transform; }

/* ─────────────────────────── banner ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 28px;
  padding: 8px 16px;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: linear-gradient(180deg, rgba(212, 160, 23, .12), rgba(212, 160, 23, .05));
  border: 1px solid rgba(212, 160, 23, .3);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(212, 160, 23, .12), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.badge svg { width: 14px; height: 14px; }
.badge__ver {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .38);
  text-transform: none;
  padding-left: 10px;
  border-left: 1px solid rgba(212, 160, 23, .28);
}

/* ────────────────────────── cabeçalho ───────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  padding-block: 14px;
  background: rgba(7, 6, 10, .6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.header.stuck {
  padding-block: 9px;
  background: rgba(7, 6, 10, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 24px;
  height: 24px;
  color: var(--gold-lt);
  filter: drop-shadow(0 0 7px rgba(212, 160, 23, .6));
  transition: filter .35s var(--ease);
}
.brand:hover .brand__mark { filter: drop-shadow(0 0 12px rgba(212, 160, 23, .85)); }
.brand__text {
  display: flex;
  font-family: var(--f-pixel);
  font-size: 17px;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__a {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, var(--gold-dk));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(212, 160, 23, .45));
}
.brand__b {
  background: linear-gradient(135deg, #fff, #efe2c4 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand--sm .brand__text { font-size: 15px; }

/* navegação */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--txt-2);
  text-decoration: none;
  border-radius: 9px;
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(212, 160, 23, .08); }
.nav__link:hover::after { width: 55%; left: 22.5%; }
.nav__link.active { color: var(--gold-lt); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* seletor de idioma — botão + menu suspenso */
.lang { position: relative; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lang__btn:hover,
.lang__btn[aria-expanded="true"] {
  background: rgba(212, 160, 23, .1);
  border-color: rgba(212, 160, 23, .3);
}
.lang__flag { display: block; width: 19px; height: 19px; flex: none; border-radius: 3px; overflow: hidden; }
.lang__code { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--txt-2); }
.lang__caret {
  width: 13px;
  height: 13px;
  color: var(--txt-3);
  transition: transform .26s var(--ease), color .2s var(--ease);
}
.lang__btn[aria-expanded="true"] .lang__caret { transform: rotate(180deg); color: var(--gold-lt); }

.lang__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 600;
  min-width: 196px;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: rgba(14, 13, 20, .98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 160, 23, .22);
  border-radius: 13px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .65);
}
.lang__menu[hidden] { display: none; }
.lang__menu:not([hidden]) { animation: langIn .18s var(--ease); }
@keyframes langIn {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
}

.lang__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--txt-2);
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.lang__opt + .lang__opt { margin-top: 2px; }
.lang__opt:hover { background: rgba(212, 160, 23, .1); color: #fff; }
.lang__opt.is-active { background: rgba(212, 160, 23, .13); color: var(--gold-lt); }
.lang__opt span { flex: 1; }
.lang__opt:focus-visible { outline-offset: -2px; }

.lang__check {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0;
  color: var(--gold-lt);
  transition: opacity .16s var(--ease);
}
.lang__opt.is-active .lang__check { opacity: 1; }

/* hambúrguer */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────── hero ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 170px) 0 clamp(72px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 10, .88) 0%, rgba(7, 6, 10, .5) 38%, rgba(7, 6, 10, .82) 78%, var(--bg) 100%),
    radial-gradient(75% 60% at 50% 42%, rgba(212, 160, 23, .13), transparent 68%),
    linear-gradient(90deg, rgba(7, 6, 10, .7), transparent 35%, transparent 65%, rgba(7, 6, 10, .7));
}
.hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title { margin: 0 0 26px; }
.hero__line1 {
  display: block;
  font-family: var(--f-pixel);
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .8);
}
.hero__line2 {
  display: block;
  margin-top: .18em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 9vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.005em;
  background: linear-gradient(178deg, #fff 4%, var(--gold-hi) 34%, var(--gold) 68%, var(--gold-dk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(212, 160, 23, .3));
}

.hero__sub {
  max-width: 620px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(56px, 8vw, 84px);
}

/* showcase */
.showcase {
  position: relative;
  width: min(100%, 1040px);
  margin: 0;
}
.showcase__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .75), 0 0 0 1px rgba(212, 160, 23, .06);
}
/* showcase slides */
.showcase__slides {
  position: relative;
  width: 100%;
  height: clamp(240px, 40vw, 430px);
  overflow: hidden;
}
.showcase__slides > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease), transform 1.1s var(--ease);
  pointer-events: none;
}
.showcase__slides > img.active {
  opacity: 1;
  pointer-events: auto;
}
.showcase:hover .showcase__slides > img.active { transform: scale(1.02); }
.showcase__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 10, .35) 0%, transparent 30%, rgba(7, 6, 10, .9) 92%),
    linear-gradient(90deg, rgba(7, 6, 10, .55), transparent 30%, transparent 70%, rgba(7, 6, 10, .55));
  pointer-events: none;
  z-index: 2;
}
.showcase__bar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
  z-index: 3;
}

/* arrow buttons */
.showcase__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 160, 23, .3);
  border-radius: 50%;
  background: rgba(7, 6, 10, .55);
  backdrop-filter: blur(6px);
  color: var(--gold-lt);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .25s, border-color .25s;
}
.showcase__frame:hover .showcase__arrow { opacity: 1; }
.showcase__arrow:hover {
  background: rgba(212, 160, 23, .2);
  border-color: var(--gold);
}
.showcase__arrow svg { width: 20px; height: 20px; }
.showcase__arrow--prev { left: 14px; }
.showcase__arrow--next { right: 14px; }

/* dots */
.showcase__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
  padding: 0;
}
.showcase__dot.active {
  background: var(--gold);
  border-color: var(--gold-lt);
  transform: scale(1.25);
}
.showcase__dot:hover:not(.active) {
  background: rgba(255, 255, 255, .35);
}

.showcase__meta { text-align: right; }
.showcase__label {
  margin: 0;
  font-family: var(--f-pixel);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.showcase__hint { margin: 5px 0 0; font-size: 11.5px; color: var(--txt-3); }

/* cantos em L */
.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(212, 160, 23, .45);
  pointer-events: none;
}
.corner--tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.corner--tr { top: -10px; right: -10px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: -10px; left: -10px; border-right: 0; border-top: 0; }
.corner--br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(212, 160, 23, .4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  background: var(--gold-lt);
  border-radius: 3px;
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(15px); }
}

/* ──────────────────────────── stats ─────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 22px);
}
.stat {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(22px, 3vw, 32px) 16px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, .5), transparent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.stat::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 160%;
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(212, 160, 23, .16), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.stat:hover {
  border-color: rgba(212, 160, 23, .3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.stat:hover::before, .stat:hover::after { opacity: 1; }

.stat__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  color: rgba(212, 160, 23, .7);
  background: rgba(212, 160, 23, .07);
  border: 1px solid rgba(212, 160, 23, .18);
  border-radius: 12px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.stat__icon svg { width: 22px; height: 22px; }
.stat:hover .stat__icon { color: var(--gold-lt); background: rgba(212, 160, 23, .14); }

.stat__num {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat__label {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-family: var(--f-pixel);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-3);
}

/* ──────────────────────────── sobre ─────────────────────────────── */
#about .glow { position: absolute; }

.about {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.5fr 1fr;
  gap: clamp(10px, 1.5vw, 16px);
}
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.shot--wide { grid-column: span 2; }
.shot img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.shot:hover img { transform: scale(1.03); }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 10, .88));
  pointer-events: none;
}
.shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-pixel);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--gold-lt);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--gold-glow);
}

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 2.6vw, 28px);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-lt), rgba(212, 160, 23, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.feature:hover {
  border-color: rgba(212, 160, 23, .3);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .45);
}
.feature:hover::before { transform: scaleY(1); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: rgba(212, 160, 23, .8);
  background: rgba(212, 160, 23, .08);
  border: 1px solid rgba(212, 160, 23, .2);
  border-radius: 12px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature:hover .feature__icon { background: rgba(212, 160, 23, .16); color: var(--gold-lt); }

.feature h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: color .3s var(--ease);
}
.feature:hover h3 { color: var(--gold-lt); }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--txt-3); }

/* ─────────────────────────── destaques ──────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card--wide { grid-column: span 3; }

.card:hover {
  border-color: rgba(212, 160, 23, .32);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 160, 23, .05);
}
.card__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card:hover .card__line { opacity: .85; }

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.03); filter: brightness(1.06); }
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--card) 98%);
}

.card__body { padding: clamp(18px, 2.4vw, 26px); }
.card__kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-pixel);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__body h3 {
  margin: 0 0 9px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: color .3s var(--ease);
}
.card:hover .card__body h3 { color: var(--gold-lt); }
.card__body p { margin: 0; font-size: 13.5px; line-height: 1.72; color: var(--txt-3); }

/* cartões largos: imagem ao lado */
.card--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card--wide .card__media--side {
  aspect-ratio: auto;
  min-height: 230px;
}
.card--wide .card__media--side::after {
  background: linear-gradient(90deg, transparent 45%, var(--card) 96%);
}
.card--wide .card__body { display: flex; flex-direction: column; justify-content: center; }

/* ──────────────────────── instalação ────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(16px, 3vw, 26px);
  padding-bottom: clamp(22px, 3vw, 34px);
}
.step:last-child { padding-bottom: 0; }

.step__rail {
  position: absolute;
  left: 26px;
  top: 52px;
  bottom: -4px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(212, 160, 23, .5), rgba(212, 160, 23, .08));
}
.step:last-child .step__rail { display: none; }

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: var(--f-pixel);
  font-size: 16px;
  color: #1c1503;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 60%, #b07f0d);
  border: 1px solid rgba(0, 0, 0, .5);
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(212, 160, 23, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover .step__num {
  box-shadow: 0 12px 30px rgba(212, 160, 23, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.step__card {
  padding: clamp(20px, 2.6vw, 28px);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.step:hover .step__card {
  border-color: rgba(212, 160, 23, .28);
}
.step__card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 650; }
.step__card p { margin: 0; font-size: 14px; line-height: 1.72; color: var(--txt-2); }

.step__tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px !important;
  padding-top: 14px;
  font-size: 12.5px !important;
  color: rgba(212, 160, 23, .8) !important;
  border-top: 1px solid rgba(212, 160, 23, .13);
}
.step__tip svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* ─────────────────────────── download ───────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding-block: clamp(80px, 12vw, 150px);
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(7, 6, 10, .78) 40%, rgba(7, 6, 10, .8) 60%, var(--bg) 100%),
    radial-gradient(60% 55% at 50% 50%, rgba(212, 160, 23, .16), transparent 70%);
}
.cta__inner { position: relative; }

.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 40px);
  margin: clamp(48px, 7vw, 64px) 0 0;
}
.meta i { width: 1px; height: 42px; background: var(--line-soft); }
.meta > div { text-align: center; }
.meta dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--gold-lt);
}
.meta dt {
  margin-top: 5px;
  font-family: var(--f-pixel);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-3);
}

/* ─────────────────────────── comunidade ─────────────────────────── */
.community {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 60px);
  background: linear-gradient(160deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.community__glow {
  position: absolute;
  inset: -60% -20% auto;
  height: 380px;
  background: radial-gradient(closest-side, rgba(212, 160, 23, .14), transparent);
  pointer-events: none;
}
.community__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  color: var(--gold-lt);
  background: rgba(212, 160, 23, .1);
  border: 1px solid rgba(212, 160, 23, .28);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(212, 160, 23, .18);
}
.community__icon svg { width: 36px; height: 36px; }

.community h3 {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
}
.community p {
  position: relative;
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--txt-2);
  font-size: 15px;
  line-height: 1.75;
}
.community .btn { position: relative; }

/* ───────────────────────────── FAQ ──────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.faq__item:hover { border-color: rgba(212, 160, 23, .26); }
.faq__item.open {
  border-color: rgba(212, 160, 23, .38);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .45), inset 0 0 34px rgba(212, 160, 23, .035);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: clamp(17px, 2.4vw, 22px) clamp(18px, 2.6vw, 26px);
  background: none;
  border: 0;
  text-align: left;
  font-size: clamp(14.5px, 1.8vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: color .25s var(--ease);
}
.faq__q:hover { color: var(--gold-lt); }
.faq__item.open .faq__q { color: var(--gold-lt); }

.faq__i {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: rgba(212, 160, 23, .75);
  background: rgba(212, 160, 23, .09);
  border: 1px solid rgba(212, 160, 23, .2);
  border-radius: 9px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.faq__i svg { width: 15px; height: 15px; }
.faq__item.open .faq__i {
  transform: rotate(135deg);
  background: rgba(212, 160, 23, .2);
  color: var(--gold-lt);
}

/* abre/fecha com grid-template-rows: animação de verdade, sem altura mágica */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease);
}
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  margin: 0;
  padding: 0 clamp(18px, 2.6vw, 26px) clamp(18px, 2.4vw, 24px);
  font-size: 14px;
  line-height: 1.78;
  color: var(--txt-2);
  border-top: 1px solid rgba(212, 160, 23, .12);
  padding-top: 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s .1s var(--ease), transform .35s .1s var(--ease);
}
.faq__item.open .faq__a p { opacity: 1; transform: none; }

/* ──────────────────────────── rodapé ────────────────────────────── */
.footer { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.footer__box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 60px);
  padding: clamp(30px, 4vw, 48px);
  background: linear-gradient(160deg, var(--card-2), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
}
.footer__about { max-width: 300px; }
.footer__desc {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--txt-3);
}
.footer__rights {
  margin: 22px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .22);
}

.footer__cols { display: flex; gap: clamp(36px, 6vw, 80px); }
.footer__cols h4 {
  margin: 0 0 16px;
  font-family: var(--f-pixel);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__cols a {
  position: relative;
  font-size: 13.5px;
  color: var(--txt-3);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer__cols a::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 50%;
  width: 5px;
  height: 5px;
  translate: 0 -50%;
  background: var(--gold-lt);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.footer__cols a:hover { color: var(--gold-lt); }
.footer__cols a:hover::before { opacity: 1; }

/* ───────────────────────── voltar ao topo ───────────────────────── */
.totop {
  position: fixed;
  right: clamp(16px, 3vw, 26px);
  bottom: clamp(16px, 3vw, 26px);
  z-index: 400;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #1c1503;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 60%, #b07f0d);
  border: 1px solid rgba(0, 0, 0, .5);
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(212, 160, 23, .34), inset 0 1px 0 rgba(255, 255, 255, .45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .3s var(--ease);
}
.totop svg { width: 19px; height: 19px; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { box-shadow: 0 14px 38px rgba(212, 160, 23, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }

/* ──────────────────────── toast (jar) ───────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 9500;
  translate: -50% 0;
  padding: 13px 22px;
  font-family: var(--f-pixel);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  background: rgba(16, 15, 24, .96);
  border: 1px solid rgba(212, 160, 23, .4);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ───────────────────────── responsivo ───────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__gallery { grid-template-rows: auto; }
  .shot--wide { grid-column: span 2; }
  .shot img { min-height: 180px; }
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 62px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px var(--pad) 24px;
    background: rgba(7, 6, 10, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .42s var(--ease);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
  }
  .nav.open { transform: none; }
  .nav__link { padding: 14px 16px; font-size: 15px; }
  .nav__link::after { display: none; }
  .burger { display: flex; }
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: auto; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__media--side { min-height: 200px; aspect-ratio: 16 / 10; }
  .card--wide .card__media--side::after {
    background: linear-gradient(180deg, transparent 40%, var(--card) 98%);
  }
}

@media (max-width: 720px) {
  .header .btn--sm span { display: none; }
  .header .btn--sm { padding: 9px 11px; }
  .hero__scroll { display: none; }
  .showcase__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .showcase__meta { text-align: left; }
  .corner { display: none; }
  .meta i { display: none; }
  .meta { gap: 24px; }
  .footer__box { flex-direction: column; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .about__gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .shot--wide { grid-column: auto; }
  .shot img { min-height: 200px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .feature:hover { transform: none; }
  .step:hover .step__card { transform: none; }
  .lang__code { display: none; }
}