@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

/* ===== Cores dos temas =====
   Padrão: escuro. O painel da estátua do login (.painel-direito) usa sempre as cores do escuro. */
:root,
.painel-direito {
  color-scheme: dark;
  --fundo: #0e0c08;
  --fundo-profundo: #090806;
  --superficie: #15120d;
  --superficie-2: #1b1710;
  --borda: #332d22;
  --linha: rgba(212, 175, 55, 0.22);
  --linha-suave: rgba(255, 249, 235, 0.1);
  --texto: #f3ecdc;
  --texto-forte: #fff9eb;
  --texto-2: #aaa18f;
  --texto-3: #8a8170;
  --dourado: #d4af37;
  --dourado-claro: #e5c65e;
  --dourado-texto: #d4af37;
  --vidro: rgba(20, 17, 12, 0.9);
  --sombra: rgba(0, 0, 0, 0.42);
}

/* Claro: quando o sistema da pessoa está no claro e ela não escolheu nada no botão... */
@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) {
    color-scheme: light;
    --fundo: #eee8da;
    --fundo-profundo: #e5ddcc;
    --superficie: #f8f4eb;
    --superficie-2: #e8e0d0;
    --borda: #d6cbb5;
    --linha: rgba(139, 103, 19, 0.28);
    --linha-suave: rgba(40, 34, 25, 0.13);
    --texto: #2b261d;
    --texto-forte: #17140f;
    --texto-2: #6f6759;
    --texto-3: #7d7363;
    --dourado: #9b7518;
    --dourado-claro: #b38a22;
    --dourado-texto: #84630f;
    --vidro: rgba(249, 246, 239, 0.92);
    --sombra: rgba(60, 47, 24, 0.18);
  }
}

/* ...ou quando ela escolheu claro no botão */
:root[data-tema="claro"] {
  color-scheme: light;
  --fundo: #eee8da;
  --fundo-profundo: #e5ddcc;
  --superficie: #f8f4eb;
  --superficie-2: #e8e0d0;
  --borda: #d6cbb5;
  --linha: rgba(139, 103, 19, 0.28);
  --linha-suave: rgba(40, 34, 25, 0.13);
  --texto: #2b261d;
  --texto-forte: #17140f;
  --texto-2: #6f6759;
  --texto-3: #7d7363;
  --dourado: #9b7518;
  --dourado-claro: #b38a22;
  --dourado-texto: #84630f;
  --vidro: rgba(249, 246, 239, 0.92);
  --sombra: rgba(60, 47, 24, 0.18);
}

/* ===== Base ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Inter", system-ui, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: var(--borda) var(--fundo);
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 400;
  color: var(--texto-forte);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
}

/* Sobretítulo (ex.: "O PROJETO"): letras pequenas, espaçadas e douradas */
.sobretitulo {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dourado-texto);
}

/* Seta → desenhada em SVG, usada nos botões e links */
:root {
  --icone-seta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ===== Botões: retos, com texto em maiúsculas ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid var(--linha);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.4s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Quando o .btn é um <button> (ex.: botão de enviar do formulário) */
button.btn {
  cursor: pointer;
}

.btn:focus-visible,
.btn-tema:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
}

.btn-dourado {
  border-color: var(--dourado);
  background: var(--dourado);
  color: #171207;
  box-shadow: 0 12px 32px rgba(174, 130, 28, 0.18);
}

.btn-dourado:hover {
  border-color: var(--dourado-claro);
  background: var(--dourado-claro);
}

/* Seta no botão dourado da página inicial */
.botoes .btn-dourado::after {
  content: "";
  width: 1.4em;
  height: 1.4em;
  background: currentColor;
  -webkit-mask: var(--icone-seta) center / contain no-repeat;
  mask: var(--icone-seta) center / contain no-repeat;
}

.btn-contorno {
  color: var(--texto);
}

.btn-contorno:hover {
  border-color: var(--dourado);
}

.botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ===== Logo: link pra página inicial, com cara de texto ===== */
#identidade_hermes {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Cinzel", serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--texto-forte);
  text-decoration: none;
  transition: color 0.2s ease;
}

#identidade_hermes:hover {
  color: var(--dourado);
}

#identidade_hermes:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 4px;
}

/* Asa de Hermes ao lado do nome (página inicial e telas de login) */
.hermes #identidade_hermes::before,
.painel-esquerdo #identidade_hermes::before {
  content: "";
  flex-shrink: 0;
  width: 25px;
  height: 36px;
  background: var(--dourado);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -8 25 36' fill='none' stroke='black' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M1 0v28M3 5l16-9.5M3 12l13.2-7.6M3 19l9.7-5.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -8 25 36' fill='none' stroke='black' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M1 0v28M3 5l16-9.5M3 12l13.2-7.6M3 19l9.7-5.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.topo-acoes {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ===== Botão de tema: interruptor com lua (escuro) e sol (claro) =====
   O texto "Tema" fica escondido (leitores de tela continuam lendo).
   A bolinha dourada fica em cima do tema atual. */
.btn-tema {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 99px;
  background: var(--superficie);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.4s ease;
}

.btn-tema:hover {
  border-color: var(--dourado);
}

/* Bolinha dourada com o ícone do tema atual (lua no escuro) */
.btn-tema::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171207' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.25 15.4A8.5 8.5 0 0 1 8.6 3.75 8.5 8.5 0 1 0 20.25 15.4Z'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--dourado);
  transition: transform 0.28s ease, background-color 0.4s ease;
}

/* Ícone apagado do outro tema (sol, do lado direito) */
.btn-tema::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: var(--dourado);
  opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Tema claro: a bolinha desliza pra direita com o sol, e a lua apagada fica à esquerda */
:root[data-tema="claro"] .btn-tema::before {
  transform: translateX(22px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171207' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42'/%3E%3C/svg%3E");
}

:root[data-tema="claro"] .btn-tema::after {
  right: auto;
  left: 4px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.25 15.4A8.5 8.5 0 0 1 8.6 3.75 8.5 8.5 0 1 0 20.25 15.4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.25 15.4A8.5 8.5 0 0 1 8.6 3.75 8.5 8.5 0 1 0 20.25 15.4Z'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) .btn-tema::before {
    transform: translateX(22px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171207' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.65 6.35l1.42-1.42'/%3E%3C/svg%3E");
  }

  :root:not([data-tema="escuro"]) .btn-tema::after {
    right: auto;
    left: 4px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.25 15.4A8.5 8.5 0 0 1 8.6 3.75 8.5 8.5 0 1 0 20.25 15.4Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.25 15.4A8.5 8.5 0 0 1 8.6 3.75 8.5 8.5 0 1 0 20.25 15.4Z'/%3E%3C/svg%3E");
  }
}

/* ===== Página inicial: topo (sempre escuro) =====
   As medidas da área da estátua ficam em variáveis pra arco, auréola, sombra
   e cartão do chat se alinharem com a foto */
.hermes {
  --topo: 92px;
  --arte-largura: min(52vw, 780px);
  --arte-direita: 3vw;
  --margem-texto: max(7vw, calc((100% - 1260px) / 2));

  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 920px;
  overflow: hidden;
  color: var(--texto);
  /* brilho dourado no alto + linha vertical fina à esquerda + fundo */
  background:
    radial-gradient(circle at 75% 12%, rgba(212, 175, 55, 0.07), transparent 24rem),
    linear-gradient(var(--linha-suave), var(--linha-suave)) max(32px, calc((100% - 1400px) / 2)) var(--topo) / 1px 100% no-repeat,
    var(--fundo);
  border-bottom: 1px solid var(--linha-suave);
}

.hermes header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 64px, 1400px);
  height: var(--topo);
  margin: 0 auto;
  border-bottom: 1px solid var(--linha-suave);
}

/* "Entrar" do topo: link com seta, sem borda */
.hermes header .btn-contorno {
  min-height: 44px;
  gap: 10px;
  padding: 0;
  border: 0;
  font-size: 0.78rem;
}

.hermes header .btn-contorno::after {
  content: "";
  width: 1.3em;
  height: 1.3em;
  background: currentColor;
  -webkit-mask: var(--icone-seta) center / contain no-repeat;
  mask: var(--icone-seta) center / contain no-repeat;
  transition: transform 0.18s ease;
}

.hermes header .btn-contorno:hover {
  transform: none;
  color: var(--dourado);
}

.hermes header .btn-contorno:hover::after {
  transform: translateX(4px);
}

/* A estátua: o fundo preto da foto some no fundo da página (mix-blend lighten)
   e as bordas desaparecem suavemente */
.hermes > img {
  position: absolute;
  z-index: 1;
  top: var(--topo);
  right: calc(var(--arte-direita) - var(--arte-largura) * 0.04);
  width: min(var(--arte-largura), 700px);
  height: calc(100% - var(--topo));
  object-fit: cover;
  object-position: 48% 25%;
  filter: saturate(0.83) contrast(1.08);
  mix-blend-mode: lighten;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 18%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 18%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 70%, transparent 100%);
  mask-composite: intersect;
}

/* Tema claro: a estátua fica na mesma posição e tamanho do escuro.
   Como a foto tem fundo preto, aqui ela aparece normal (sem o "lighten",
   que apagaria a estátua no fundo creme), com as bordas sumindo suavemente */
:root[data-tema="claro"] .hermes > img {
  mix-blend-mode: normal;
  filter: sepia(0.12) saturate(0.85) contrast(1.04);
}

@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) .hermes > img {
    mix-blend-mode: normal;
    filter: sepia(0.12) saturate(0.85) contrast(1.04);
  }
}

/* Arco atrás da estátua, com uma segunda linha por dentro */
.hermes::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--topo) + 42px);
  right: calc(var(--arte-direita) + var(--arte-largura) * 0.01);
  width: calc(var(--arte-largura) * 0.8);
  height: calc((100% - var(--topo)) * 0.9);
  border: 1px solid var(--linha);
  border-bottom: 0;
  border-radius: 52% 52% 0 0 / 22% 22% 0 0;
  outline: 1px solid var(--linha-suave);
  outline-offset: -19px;
  pointer-events: none;
}

/* Auréola em volta da cabeça */
.hermes::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--topo) + (100% - var(--topo)) * 0.21);
  left: calc(100% - var(--arte-direita) - var(--arte-largura) * 0.62);
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid var(--linha);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(212, 175, 55, 0.08);
  pointer-events: none;
}

/* Base da estátua some no fundo */
.hermes-sombra {
  position: absolute;
  z-index: 2;
  right: var(--arte-direita);
  bottom: 0;
  width: var(--arte-largura);
  height: calc((100% - var(--topo)) * 0.28);
  background: linear-gradient(transparent, var(--fundo));
  pointer-events: none;
}

/* Texto do topo, centralizado na altura */
.hermes-informacoes {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--margem-texto);
  width: min(670px, 49vw);
  transform: translateY(-50%);
}

.hermes .sobretitulo {
  margin-bottom: 22px;
}

/* "ΕΡΜΗΣ" em Cinzel, um pouco maior */
.sobretitulo span {
  margin-right: 12px;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
}

.hermes h1 {
  margin: 0 0 30px;
  font-size: clamp(3.2rem, 5.3vw, 5.9rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

/* Se a palavra "IA." estiver dentro de um <em>, ela fica dourada */
.hermes h1 em {
  font-style: normal;
  color: var(--dourado);
}

.hermes-informacoes > p:not(.sobretitulo) {
  width: min(530px, 90%);
  margin: 0 0 38px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--texto-2);
}

/* "Quem foi Hermes": rodapé do topo, à esquerda */
.hermes-legenda {
  position: absolute;
  z-index: 4;
  left: var(--margem-texto);
  bottom: 34px;
  display: flex;
  gap: 20px;
  max-width: 440px;
}

.hermes-legenda span {
  flex-shrink: 0;
  padding-top: 2px;
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dourado);
}

.hermes-legenda p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--texto-2);
}

/* ----- Opcionais do topo (só aparecem se forem adicionados no HTML) ----- */

/* Cartão de prévia do chat, por cima da estátua */
.previa-chat {
  position: absolute;
  z-index: 5;
  right: calc(var(--arte-direita) + var(--arte-largura) * 0.23);
  bottom: 8%;
  width: 350px;
  padding: 17px;
  border: 1px solid var(--linha);
  background: var(--vidro);
  box-shadow: 0 24px 70px var(--sombra);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.previa-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linha-suave);
}

.previa-modelo {
  display: grid;
  grid-template-columns: 28px auto;
  column-gap: 10px;
  align-items: center;
}

/* Estrela dourada num quadradinho */
.previa-modelo::before {
  content: "";
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border: 1px solid var(--linha);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c.6 5.7 3.8 8.9 9.5 9.5-5.7.6-8.9 3.8-9.5 9.5C11.4 15.8 8.2 12.6 2.5 12c5.7-.6 8.9-3.8 9.5-9.5Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.previa-modelo b {
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--texto-forte);
}

.previa-modelo small {
  font-size: 0.6rem;
  color: var(--texto-3);
}

.previa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dourado);
}

.previa-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.previa-chat > p {
  margin: 18px 4px 20px;
  font-size: 0.84rem;
  color: var(--texto);
}

.previa-campo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding-left: 12px;
  border: 1px solid var(--linha-suave);
  font-size: 0.64rem;
  color: var(--texto-3);
}

.previa-campo::after {
  content: "";
  width: 38px;
  height: 38px;
  margin-right: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171207' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat,
    var(--dourado);
}

/* Etiqueta de museu ao lado da estátua */
.acervo {
  position: absolute;
  z-index: 3;
  right: calc(var(--arte-direita) - 2px);
  bottom: 54px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 180px;
  padding-left: 16px;
  border-left: 1px solid var(--dourado);
}

.acervo span,
.acervo small {
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.acervo strong {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--texto);
}

/* "Explore" com um tracinho, no canto de baixo */
.explorar {
  position: absolute;
  z-index: 5;
  right: max(32px, calc((100% - 1400px) / 2));
  bottom: 33px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texto-3);
}

.explorar::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--dourado);
}

.explorar:hover {
  color: var(--texto);
}

/* ===== O projeto ===== */
/* Três colunas: número da seção | título | texto */
.informacoes-projeto {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 0.72fr);
  column-gap: 40px;
  align-items: start;
  align-content: start;
  width: min(100% - 64px, 1260px);
  min-height: 690px;
  margin: 0 auto;
  padding: 150px 0 120px;
  border-bottom: 1px solid var(--linha-suave);
}

/* "02" com uma linha vertical embaixo */
.informacoes-projeto::before {
  content: "02";
  grid-column: 1;
  grid-row: 1 / span 5;
  padding-bottom: 110px;
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--texto-3);
  background: linear-gradient(var(--linha), var(--linha)) 4px 30px / 1px 86px no-repeat;
}

/* Selo "H" girado no canto */
.informacoes-projeto::after {
  content: "H";
  position: absolute;
  right: 2%;
  bottom: 50px;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  outline: 1px solid var(--linha-suave);
  outline-offset: -9px;
  font-family: "Cinzel", serif;
  font-size: 2rem;
  color: var(--dourado);
  transform: rotate(8deg);
}

.informacoes-projeto .sobretitulo {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 22px;
}

.informacoes-projeto h2 {
  grid-column: 2;
  grid-row: 2 / span 4;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

/* Frase de destaque em Cinzel, antes do texto */
.informacoes-projeto .projeto-intro {
  grid-column: 3;
  grid-row: 2;
  margin: 0 0 18px;
  padding-top: 12px;
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--texto);
}

.informacoes-projeto > p:not(.sobretitulo, .projeto-intro) {
  grid-column: 3;
  grid-row: 3;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--texto-2);
}

.informacoes-projeto a {
  grid-column: 3;
  grid-row: 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--linha);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dourado-texto);
  transition: border-color 0.2s ease, color 0.4s ease;
}

.informacoes-projeto a:hover {
  border-color: var(--dourado);
}

/* ===== Como usar (três passos) + O futuro ===== */
.colunas {
  display: block;
}

/* Título à esquerda, frase curta à direita, passos embaixo */
.como-usar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  align-items: end;
  width: min(100% - 64px, 1260px);
  margin: 0 auto;
  padding: 130px 0 150px;
}

.como-usar > .sobretitulo,
.como-usar > h2 {
  grid-column: 1;
}

.como-usar-resumo {
  grid-column: 2;
  grid-row: 2;
  max-width: 310px;
  margin: 0 0 8px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--texto-2);
}

.como-usar ol {
  grid-column: 1 / -1;
}

.como-usar .sobretitulo,
.futuro .sobretitulo {
  margin-bottom: 22px;
}

.como-usar h2,
.futuro h2 {
  max-width: 780px;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

/* Os três passos lado a lado, com números romanos */
.como-usar ol {
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 82px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha-suave);
}

.como-usar li {
  counter-increment: passo;
  min-height: 330px;
  padding: 40px;
  border-right: 1px solid var(--linha-suave);
}

.como-usar li:last-child {
  border-right: 0;
}

.como-usar li::before {
  content: counter(passo, upper-roman);
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  color: var(--dourado-texto);
}

.como-usar h3,
.futuro h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--texto-forte);
}

/* Símbolo de cada passo: um nicho em arco com um desenho dourado dentro */
.como-usar h3 {
  position: relative;
}

.como-usar h3::before {
  content: "";
  display: block;
  width: 65px;
  height: 82px;
  margin: 38px 0 34px;
  border: 1px solid var(--linha);
  border-radius: 50% 50% 0 0;
}

.como-usar h3::after {
  content: "";
  position: absolute;
  /* a margem de cima do arco "vaza" pra fora do h3, então o arco começa no topo do h3 */
  top: 21px;
  left: 12.5px;
  width: 40px;
  height: 40px;
  background: var(--dourado);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/svg%3E") center / contain no-repeat;
}

.como-usar li:nth-child(2) h3::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M20 3l17 17-17 17L3 20zM6 6l28 28M34 6L6 34'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M20 3l17 17-17 17L3 20zM6 6l28 28M34 6L6 34'/%3E%3C/svg%3E");
}

.como-usar li:nth-child(3) h3::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Cpath d='M0 20h40M6 34L34 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='black' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Cpath d='M0 20h40M6 34L34 6'/%3E%3C/svg%3E");
}

.como-usar li p,
.futuro li p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--texto-2);
}

/* O futuro: foto de arquitetura à esquerda, lista numerada à direita */
.futuro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto auto 1fr;
  min-height: 760px;
  background: var(--superficie);
}

.futuro::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 680px;
  background:
    linear-gradient(rgba(10, 9, 7, 0.08), rgba(10, 9, 7, 0.7)),
    url("https://images.unsplash.com/photo-1532544847504-547ff5eac595?auto=format&fit=crop&w=1400&q=80") center / cover;
  filter: saturate(0.2) sepia(0.25);
  outline: 1px solid rgba(232, 208, 139, 0.33);
  outline-offset: -24px;
}

/* Frase em cima da foto */
.futuro::after {
  content: "Construído hoje.\APreparado para ir além.";
  position: absolute;
  left: 55px;
  bottom: 50px;
  width: calc(50% - 110px);
  padding-top: 18px;
  border-top: 1px solid rgba(245, 233, 199, 0.36);
  font-family: "Cinzel", serif;
  font-size: 1.08rem;
  line-height: 1.5;
  text-align: right;
  white-space: pre-line;
  color: #f7f0df;
}

.futuro > * {
  grid-column: 2;
  padding-inline: clamp(50px, 8vw, 130px);
}

.futuro .sobretitulo {
  grid-row: 2;
}

.futuro h2 {
  grid-row: 3;
  margin-bottom: 58px;
}

.futuro ul {
  counter-reset: futuro;
  grid-row: 4;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}

/* Linha em cima da lista, só da largura do texto */
.futuro li:first-child {
  border-top: 1px solid var(--linha);
}

.futuro li {
  counter-increment: futuro;
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 26px 0;
  border-bottom: 1px solid var(--linha-suave);
}

.futuro li::before {
  content: counter(futuro, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 4px;
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  color: var(--dourado-texto);
}

.futuro li h3,
.futuro li p {
  grid-column: 2;
}

/* ===== Chamada final ===== */
.chamada-final {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 100px 24px;
  text-align: center;
  /* linha vertical fina no meio */
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--linha-suave) calc(50% - 0.5px), var(--linha-suave) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    var(--fundo-profundo);
}

/* Ornamento: linha — H — linha */
.chamada-final::before {
  content: "H";
  display: grid;
  place-items: center;
  width: min(520px, 70vw);
  height: 48px;
  margin-bottom: 46px;
  font-family: "Cinzel", serif;
  color: var(--dourado);
  background:
    radial-gradient(circle, var(--fundo-profundo) 23px, var(--linha) 23.5px, var(--linha) 24px, transparent 24.5px),
    linear-gradient(var(--linha), var(--linha)) left center / calc(50% - 44px) 1px no-repeat,
    linear-gradient(var(--linha), var(--linha)) right center / calc(50% - 44px) 1px no-repeat;
}

.chamada-final .sobretitulo {
  margin-bottom: 22px;
}

.chamada-final h2 {
  position: relative;
  margin-bottom: 42px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.chamada-final .botoes {
  justify-content: center;
}

/* ===== Rodapé ===== */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  align-items: center;
  gap: 36px;
  width: min(100% - 64px, 1400px);
  min-height: 160px;
  margin: 0 auto;
  border-top: 1px solid var(--linha-suave);
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--texto-3);
}

footer span:first-child {
  font-family: "Cinzel", serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--texto-forte);
}

footer span a {
  color: var(--texto-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Link do GitHub, com seta */
footer > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dourado-texto);
}

footer > a::after {
  content: "";
  width: 1.3em;
  height: 1.3em;
  background: currentColor;
  -webkit-mask: var(--icone-seta) center / contain no-repeat;
  mask: var(--icone-seta) center / contain no-repeat;
  transition: transform 0.18s ease;
}

footer > a:hover::after {
  transform: translateX(4px);
}

/* ===== Cadastro / Login (.auth) ===== */
/* Duas colunas: formulário à esquerda (segue o tema), estátua à direita (sempre escura) */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.painel-esquerdo {
  display: flex;
  flex-direction: column;
  padding: 0 4rem 3rem;
  background: var(--fundo);
}

.painel-esquerdo header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 92px;
  border-bottom: 1px solid var(--linha-suave);
}

.auth-conteudo {
  flex: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 1rem;
}

.auth-conteudo h1 {
  margin: 16px 0 16px;
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.auth-conteudo h1 + p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto-2);
}

/* Formulário */
.cadastro,
.login {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-2);
}

/* "Esqueci a senha": link pequeno à direita, na linha do "Senha".
   Funciona com o link dentro do <label> (como está hoje) */
.campo label:has(a) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.campo label a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dourado-texto);
  text-decoration: none;
}

.campo label a:hover {
  text-decoration: underline;
}

.campo input {
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--borda);
  border-radius: 0;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-size: 15px;
  outline: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.4s ease, color 0.4s ease;
}

.campo input::placeholder {
  color: var(--texto-3);
  opacity: 1;
}

.campo input:focus {
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Borda vermelha só depois que a pessoa mexeu no campo e ele ficou inválido */
.campo input:user-invalid {
  border-color: #c0564a;
}

/* Mensagem de erro do formulário: só ocupa espaço quando tem texto */
.form-erro {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #e2786b;
}

/* Vermelho mais escuro pra ler bem no fundo claro */
:root[data-tema="claro"] .form-erro {
  color: #a8402f;
}

@media (prefers-color-scheme: light) {
  :root:not([data-tema="escuro"]) .form-erro {
    color: #a8402f;
  }
}

.form-erro:empty {
  display: none;
}

/* Dica abaixo do campo: com a classe .campo-dica ou um <p> comum dentro do .campo */
.campo-dica,
.campo > p:not(.form-erro) {
  margin: 0;
  font-size: 13px;
  color: var(--texto-2);
}

/* Campo do código de verificação: grande, centralizado e com os dígitos espaçados */
#codigo {
  height: 64px;
  padding: 0 16px 0 calc(16px + 0.5em); /* compensa o espaço que o letter-spacing deixa depois do último dígito */
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5em;
  text-align: center;
}

#codigo::placeholder {
  color: var(--texto-3);
  opacity: 0.7;
}

.cadastro .btn,
.login .btn {
  width: 100%;
  margin-top: 10px;
}

.auth-alternativa {
  margin: 32px 0 0;
  font-size: 15px;
  text-align: center;
  color: var(--texto-2);
}

.auth-alternativa a {
  color: var(--dourado-texto);
  font-weight: 600;
  text-decoration: none;
}

.auth-alternativa a:hover {
  text-decoration: underline;
}

/* Painel da estátua (sempre escuro) */
.painel-direito {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--fundo);
  border-left: 1px solid var(--linha);
}

.painel-direito > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: saturate(0.83) contrast(1.08);
}

/* Moldura fina por dentro do painel */
.painel-direito::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid var(--linha);
  pointer-events: none;
}

.painel-sombra {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(to top, var(--fundo) 10%, transparent 100%);
  pointer-events: none;
}

.painel-legenda {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 3.5rem 3.5rem;
}

.painel-legenda .sobretitulo {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--dourado);
}

.painel-legenda h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ===== Telas médias ===== */
@media (max-width: 1050px) {
  .hermes {
    min-height: 760px;
    --arte-largura: 58vw;
    --arte-direita: -8vw;
  }

  .hermes-informacoes {
    left: 7vw;
    width: 54vw;
  }

  .previa-chat {
    right: 12%;
    width: 315px;
  }

  .acervo {
    display: none;
  }

  .informacoes-projeto {
    grid-template-columns: 70px 1fr 0.8fr;
  }

  .como-usar li {
    padding: 30px;
  }

  .futuro > * {
    padding-inline: 55px;
  }
}

/* Tela estreita do login/cadastro: só o formulário */
@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .painel-direito {
    display: none;
  }

  .painel-esquerdo {
    padding: 0 1.5rem 2.5rem;
  }

  .painel-esquerdo header {
    height: 72px;
  }
}

/* ===== Celular ===== */
@media (max-width: 800px) {
  /* Topo: texto em cima, estátua embaixo */
  .hermes {
    --topo: 72px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    background:
      radial-gradient(circle at 75% 12%, rgba(212, 175, 55, 0.07), transparent 24rem),
      var(--fundo);
  }

  .hermes header {
    flex-shrink: 0;
    width: calc(100% - 36px);
  }

  #identidade_hermes {
    gap: 10px;
    font-size: 0.92rem;
  }

  .topo-acoes {
    gap: 14px;
  }

  /* "Entrar" vira só a seta */
  .hermes header .btn-contorno {
    font-size: 0;
    gap: 0;
  }

  .hermes header .btn-contorno::after {
    width: 22px;
    height: 22px;
  }

  .hermes-informacoes {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: auto;
    padding: 58px 22px 24px;
    transform: none;
  }

  .hermes .sobretitulo {
    margin-bottom: 16px;
    font-size: 0.6rem;
  }

  .hermes h1 {
    margin-bottom: 20px;
    font-size: clamp(2.55rem, 12vw, 4rem);
    line-height: 1.08;
  }

  .hermes-informacoes > p:not(.sobretitulo) {
    width: 100%;
    margin-bottom: 26px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .botoes {
    flex-wrap: nowrap;
  }

  .botoes .btn {
    flex: 1;
    min-height: 48px;
    padding-inline: 16px;
    font-size: 0.64rem;
  }

  .hermes > img {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: 100%;
    height: 420px;
    object-position: 54% 18%;
  }

  .hermes::before {
    top: auto;
    right: 6%;
    bottom: 0;
    width: 76%;
    height: 400px;
  }

  .hermes::after {
    top: auto;
    bottom: 190px;
    left: 42%;
    width: 180px;
  }

  .hermes-sombra {
    right: 0;
    width: 100%;
    height: 140px;
  }

  /* Cartão do chat sobe um pouco por cima da estátua */
  .previa-chat {
    position: relative;
    right: auto;
    bottom: auto;
    order: 3;
    width: auto;
    margin: -110px 20px 0;
    padding: 13px;
  }

  .previa-chat > p {
    margin-block: 13px;
  }

  .hermes-legenda {
    position: relative;
    left: auto;
    bottom: auto;
    order: 4;
    max-width: none;
    padding: 28px 22px 36px;
  }

  .acervo,
  .explorar {
    display: none;
  }

  /* O projeto: uma coluna só */
  .informacoes-projeto {
    display: block;
    width: calc(100% - 40px);
    min-height: 0;
    padding: 90px 0 150px;
  }

  .informacoes-projeto::before {
    display: none;
  }

  .informacoes-projeto::after {
    right: 0;
    bottom: 24px;
    transform: scale(0.7) rotate(8deg);
    transform-origin: right bottom;
  }

  .informacoes-projeto h2,
  .como-usar h2,
  .futuro h2 {
    font-size: 2.35rem;
  }

  .informacoes-projeto .projeto-intro {
    padding-top: 32px;
    font-size: 1.12rem;
  }

  /* Como usar: passos um embaixo do outro */
  .como-usar {
    display: block;
    width: calc(100% - 40px);
    padding: 90px 0;
  }

  .como-usar-resumo {
    margin-top: 28px;
  }

  .como-usar ol {
    display: block;
    margin-top: 55px;
  }

  .como-usar li {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 16px;
    min-height: 0;
    padding: 32px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--linha-suave);
  }

  .como-usar li:last-child {
    border-bottom: 0;
  }

  .como-usar li::before {
    grid-row: 1 / span 2;
  }

  /* Arco do símbolo ao lado do título */
  .como-usar h3 {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    column-gap: 16px;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .como-usar h3::before {
    width: 50px;
    height: 62px;
    margin: 0;
  }

  .como-usar h3::after {
    top: 16px;
    left: 10px;
    width: 30px;
    height: 30px;
  }

  .como-usar li p {
    padding-left: 66px;
  }

  /* O futuro: texto em cima, foto embaixo */
  .futuro {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .futuro::before {
    order: 2;
    min-height: 430px;
  }

  .futuro::after {
    left: 35px;
    right: 35px;
    bottom: 35px;
    width: auto;
  }

  .futuro > * {
    padding-inline: 22px;
  }

  .futuro .sobretitulo {
    padding-top: 90px;
  }

  .futuro h2 {
    margin-bottom: 44px;
  }

  .futuro ul {
    margin-bottom: 70px;
  }

  /* Chamada final */
  .chamada-final {
    min-height: 540px;
    padding-inline: 22px;
  }

  .chamada-final h2 {
    font-size: 2.55rem;
  }

  .chamada-final .botoes {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .chamada-final .botoes .btn {
    width: 100%;
  }

  /* Rodapé empilhado */
  footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 22px;
    width: calc(100% - 40px);
    min-height: 0;
    padding: 50px 0;
  }

  footer span:first-child,
  footer span:nth-child(3) {
    width: 100%;
  }

  footer > a {
    margin-left: auto;
  }
}

/* ===== Animações ===== */
/* Só o "from": o fim da animação é o próprio estilo do elemento */
@keyframes aparecer {
  from {
    opacity: 0;
  }
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes revelar-imagem {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* Entrada do topo, em sequência */
.hermes header {
  animation: aparecer 0.8s ease both;
}

.hermes > img {
  animation: revelar-imagem 1.6s ease both;
}

.hermes::before,
.hermes::after {
  animation: aparecer 1.6s ease 0.4s both;
}

.hermes-informacoes > * {
  animation: surgir 0.8s ease both;
}

.hermes-informacoes > :nth-child(1) {
  animation-delay: 0.2s;
}

.hermes-informacoes > :nth-child(2) {
  animation-delay: 0.35s;
}

.hermes-informacoes > :nth-child(3) {
  animation-delay: 0.5s;
}

.hermes-informacoes > :nth-child(4) {
  animation-delay: 0.65s;
}

.previa-chat {
  animation: surgir 0.8s ease 0.9s both;
}

.hermes-legenda,
.acervo,
.explorar {
  animation: aparecer 0.8s ease 1s both;
}

/* Entrada do cadastro/login */
.painel-esquerdo header {
  animation: aparecer 0.8s ease both;
}

.auth-conteudo > * {
  animation: surgir 0.7s ease both;
}

.auth-conteudo > :nth-child(2) {
  animation-delay: 0.1s;
}

.auth-conteudo > :nth-child(3) {
  animation-delay: 0.2s;
}

.auth-conteudo > :nth-child(4) {
  animation-delay: 0.3s;
}

.auth-conteudo > :nth-child(5) {
  animation-delay: 0.4s;
}

.painel-direito > img {
  animation: revelar-imagem 1.6s ease both;
}

.painel-legenda {
  animation: surgir 0.8s ease 0.6s both;
}

/* Seções de baixo surgem ao rolar a página (em navegadores que suportam;
   nos outros elas só aparecem normalmente) */
@supports (animation-timeline: view()) {
  .informacoes-projeto > *,
  .como-usar > *,
  .como-usar li,
  .futuro > *,
  .chamada-final > * {
    animation: surgir linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
}

/* Troca de tema suave */
body,
.painel-esquerdo,
.futuro,
.chamada-final {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

h1,
h2,
h3,
p,
label,
footer a,
footer span {
  transition: color 0.4s ease;
}

/* Quem desativou animações no sistema não vê nada se mexendo */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
