/* Arquiteto. Noite verdadeira, texto branco, luz celeste.
   Italiana só na palavra Arquiteto; Jost no resto (as duas com licença OFL, em /assets/fontes). */
@font-face { font-family: 'Italiana'; src: url('/assets/fontes/italiana-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/assets/fontes/jost-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/assets/fontes/jost-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/assets/fontes/jost-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --noite: #000000;
  --branco: #ffffff;
  --celeste: #7fd3ff;
  --celeste-claro: #cdefff;
  --celeste-fundo: #3faeea;
  --linha: rgba(127, 211, 255, 0.3);
  --filete: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(127, 211, 255, 0.45) 28%, rgba(127, 211, 255, 0.1) 56%, rgba(205, 239, 255, 0.7));
  --fonte-titulo: 'Italiana', 'Didot', 'Bodoni 72', Georgia, serif;
  --fonte-texto: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--noite); color: var(--branco); }
body { font-family: var(--fonte-texto); font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
#ceu { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--celeste-claro); outline-offset: 4px; }

/* Vidro: fundo transparente e um filete holográfico de 1 px. */
.vidro { position: relative; }
.vidro::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--filete); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

.pagina { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 32px 56px; }
.barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 28px; }
.marca { margin: 0; font-weight: 500; font-size: 15px; letter-spacing: 0.03em; }
.conta { margin: 0; display: flex; align-items: center; gap: 18px; font-size: 15px; }

/* A palavra Arquiteto: metal polido refletindo o céu, com uma única passada de luz quando a página abre. */
.titulo {
  margin: 0; padding-bottom: 0.08em; font-family: var(--fonte-titulo); font-weight: 400; font-size: clamp(64px, 10vw, 128px); line-height: 1.1; letter-spacing: 0.015em;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%),
    linear-gradient(180deg, var(--branco) 0%, var(--branco) 36%, var(--celeste-claro) 62%, var(--celeste) 100%);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0;
  animation: passagem-de-luz 2.6s cubic-bezier(0.25, 0.6, 0.2, 1) 0.5s 1 both;
}
@keyframes passagem-de-luz { from { background-position: 130% 0, 0 0; } to { background-position: -30% 0, 0 0; } }
.subtitulo { margin: 10px 0 0; font-weight: 300; font-size: 21px; line-height: 1.4; }

/* Painel: um instrumento só, dividido em quatro mostradores por filetes. */
.heroi { padding: 76px 0 52px; }
.painel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 28px; }
.instrumento { padding: 34px 38px 36px; }
.instrumento:nth-child(odd) { border-right: 1px solid var(--linha); }
.instrumento:nth-child(-n + 2) { border-bottom: 1px solid var(--linha); }
.instrumento h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: 0.01em; }
.lampada { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--celeste); }
.lampada.acesa { background: var(--celeste); box-shadow: 0 0 14px rgba(127, 211, 255, 0.85); }
.leitura { margin: 22px 0 10px; font-weight: 300; font-size: 36px; line-height: 1.15; }
.nota { margin: 0; max-width: 40ch; font-size: 15.5px; line-height: 1.65; }
.rodape { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--linha); font-size: 14px; }

/* Botões: luz que sobe do filete; o brilho cresce só quando a pessoa aponta. */
.botao {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: radial-gradient(120% 160% at 50% 0%, rgba(127, 211, 255, 0.24), rgba(127, 211, 255, 0.05) 62%, transparent);
  color: var(--branco); font: 500 16px/1.2 var(--fonte-texto); letter-spacing: 0.02em; text-decoration: none; transition: box-shadow 0.25s ease;
}
.botao:hover { box-shadow: 0 0 30px rgba(127, 211, 255, 0.45); }
.botao.discreto { padding: 8px 18px; font-size: 14px; background: transparent; }
.botao:disabled { cursor: default; box-shadow: none; }

/* Portas (entrar, sem acesso, avisos): cerimônia acima do horizonte noturno. */
.porta { display: flex; flex-direction: column; align-items: center; padding-top: 11vh; text-align: center; }
.porta .subtitulo { margin-bottom: 46px; }
.cartao { width: min(100%, 520px); padding: 38px 42px 42px; border-radius: 26px; }
.cartao h2 { margin: 0 0 12px; font-weight: 500; font-size: 22px; line-height: 1.3; }
.cartao p { margin: 0 0 28px; }
.aviso { padding: 12px 16px; border: 1px solid var(--celeste); border-radius: 14px; }
.horizonte {
  /* Curva da Terra à noite vista do alto: chão escuro, linha de luz na borda e brilho celeste que some no espaço. */
  position: fixed; z-index: 0; left: 50%; top: calc(80vh - 160px); width: 260vw; height: 260vw; pointer-events: none; transform: translateX(-50%);
  background: radial-gradient(circle closest-side, var(--noite) calc(100% - 230px), rgba(63, 174, 234, 0.2) calc(100% - 161.5px),
    rgba(205, 239, 255, 0.95) calc(100% - 160px), rgba(127, 211, 255, 0.42) calc(100% - 154px), rgba(63, 174, 234, 0.14) calc(100% - 96px), transparent 100%);
  animation: horizonte-surge 1.8s ease-out 0.2s 1 both;
}
@keyframes horizonte-surge { from { opacity: 0; transform: translate(-50%, 4vh); } to { opacity: 1; transform: translateX(-50%); } }

@media (max-width: 760px) {
  .pagina { padding: 0 20px 40px; }
  .heroi { padding: 52px 0 36px; }
  .painel { grid-template-columns: 1fr; border-radius: 24px; }
  .instrumento { padding: 28px 26px 30px; }
  .instrumento:nth-child(odd) { border-right: 0; }
  .instrumento:nth-child(-n + 2) { border-bottom: 0; }
  .instrumento:not(:last-child) { border-bottom: 1px solid var(--linha); }
  .leitura { font-size: 30px; }
  .porta { padding-top: 7vh; }
  .cartao { padding: 30px 24px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .titulo, .horizonte { animation: none; }
  .botao { transition: none; }
}
