/* Página de links da Porang — direção A (vídeo em tela inteira + botões de vidro) */

:root {
  --preto: #000000;
  --oliva: #465f26;
  --marrom: #8c5f42;
  --oliva-claro: #9f8f5c;
  --caramelo: #b6966d;
  --bege: #d7d4c1;
  --texto: #f4f2e8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--preto);
  color: var(--texto);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Fundo: poster fixo (reserva) + vídeo fixo inteiro (contain, sem cortar as peças; sobra preto) + gradiente escuro neutro */
.bg-poster {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--preto) url("assets/poster.jpg") center / contain no-repeat;
}

/* iOS desenha um botão de play quando bloqueia o autoplay; o vídeo não recebe toque, então some com ele */
.bg-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.bg-video::-webkit-media-controls { display: none !important; }

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -2;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .82) 100%);
}

.page {
  max-width: 420px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px 24px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand { text-align: center; }
.brand h1 { margin: 0; line-height: 0; }

.logo {
  width: 210px;
  height: auto;
}

.tagline {
  margin: 8px 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: .5px;
  color: var(--bege);
}

/* Botões */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: block;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--texto);
  background: rgba(215, 212, 193, .12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(215, 212, 193, .45);
  border-radius: 14px;
  transition: transform .15s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: translateY(-2px); background-color: rgba(215, 212, 193, .2); }
.btn:active { transform: scale(.98); background-color: rgba(215, 212, 193, .24); }
.btn:focus-visible { outline: 2px solid var(--bege); outline-offset: 3px; }

.btn-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: .8px;
}

.btn-desc {
  display: block;
  margin-top: 3px;
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: .4px;
  color: var(--bege);
}

/* Revenda: destaque caramelo */
.btn.rev { background-color: rgba(182, 150, 109, .32); border-color: var(--caramelo); }
.btn.rev:hover { background-color: rgba(182, 150, 109, .45); }
.btn.rev:active { background-color: rgba(182, 150, 109, .5); }
.btn.rev .btn-desc { color: #efe3cf; }

/* Sem efeito de vidro: fundo mais opaco para manter a leitura */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .btn { background-color: rgba(20, 20, 20, .72); }
  .btn.rev { background-color: rgba(70, 52, 32, .85); }
}

/* Redes sociais */
.social {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.social a:focus-visible { outline: 2px solid var(--bege); outline-offset: 2px; }

.social svg {
  width: 20px;
  height: 20px;
  fill: var(--bege);
  opacity: .9;
  transition: opacity .2s ease;
}

.social a:hover svg { opacity: 1; }

/* Reduzir movimento: sem vídeo, só a imagem parada */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
