:root {
  /* Jungle Noir */
  --bg: #070a08;
  --fg: #f0f0ea;
  --muted: rgba(240, 240, 234, .74);
  --accent: #7ee787;

  --card: rgba(255, 255, 255, .04);
  --card-border: rgba(126, 231, 135, .12);

  --font-h: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-p: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --h1-size: clamp(2rem, 4vw, 3.2rem);
  --h2-size: clamp(1.35rem, 2.2vw, 1.85rem);

  --p-size: 1.05rem;
  --p-leading: 1.7;

  --h1-tracking: .14em;
  --h1-weight: 700;

  --h2-tracking: .08em;
  --h2-weight: 600;

  --p-weight: 400;

  --noise-opacity: .06;
  --vignette: radial-gradient(1200px 700px at 50% 18%,
      rgba(126, 231, 135, .05),
      rgba(0, 0, 0, .62) 55%,
      rgba(0, 0, 0, .90) 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-p);
  letter-spacing: .01em;
}

/* Fundo com vignette + “grain” */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--vignette);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  margin: 32px auto 64px;
  padding: 14px 22px 22px 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

/* Padronização de headings e parágrafos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-h);
  color: var(--fg);
  margin: 0;
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  letter-spacing: var(--h1-tracking);
  text-transform: uppercase;
  line-height: 1.06;
}

/* “Frase” final (maior que p, menor que h1) */
h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  letter-spacing: var(--h2-tracking);
  line-height: 1.2;
  text-transform: uppercase;
}

p {
  font-family: var(--font-p);
  font-size: var(--p-size);
  font-weight: var(--p-weight);
  line-height: var(--p-leading);
  color: var(--muted);
  margin: 0;
}

p+p {
  margin-top: 14px;
  /* espaço entre parágrafos consecutivos */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 26px 0 10px;
  /* topo / baixo */
  line-height: 1.2;
}

/* Seu h4 como “seção” */
h4 {
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .18), transparent);
  margin: 32px 0;
}

/* Centralização apenas do título e da frase */
.center {
  text-align: center;
}

.hero-gif {
  display: flex;
  justify-content: center;
  margin: 18px 0 12px;
  pointer-events: none;
}

.hero-gif img {
  width: clamp(220px, 36vw, 420px);
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: .98;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-gif img {
    animation: none;
  }
}

/* Rodapé (ações) */
.site-footer{
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  margin: 0 auto 64px;
  padding: 12px 18px;
  /* background: var(--card); */
  /* border: 1px solid var(--card-border); */
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.footer-actions{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

#btnTop   { justify-self: start; }
#btnExtra { justify-self: center; }
#btnShare { justify-self: end; }

.footer-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--fg);
  font-family: var(--font-h);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}

.footer-btn:hover{
  border-color: rgba(126, 231, 135, .26);
  background: rgba(255,255,255,.05);
}

.footer-btn:active{
  transform: translateY(1px);
}

.footer-btn:focus-visible{
  outline: 2px solid rgba(126, 231, 135, .55);
  outline-offset: 2px;
}

.footer-btn--icon{
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--fg);
}

.footer-btn--icon svg{
  width: 18px;
  height: 18px;
  opacity: .92;
}

.footer-btn--icon.is-copied{
  border-color: rgba(126, 231, 135, .55);
  color: var(--accent);
}

@media (max-width: 520px){
  .site-footer{
    padding: 12px 14px;
    margin: 0 auto 52px;
  }

  .footer-actions{
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
    align-items: stretch;
  }

  /* Linha 1: Voltar + Share */
  #btnTop{
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  #btnShare{
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    justify-self: end;
  }

  /* Linha 2: Extra (full width) */
  #btnExtra{
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    text-align: center;
  }

  .footer-btn{
    width: 100%;
    padding: 12px 12px;
    font-size: .78rem;
    letter-spacing: .06em;
    white-space: normal;   /* permite quebrar linha no botão longo */
    line-height: 1.15;
  }

  /* mantém o ícone quadrado */
  .footer-btn--icon{
    padding: 0;
    white-space: nowrap;
  }
}
