﻿:root { --azul: #0d2a6b; --verde: #1faa3c; --ouro: #f2b84b; --fonte: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: system-ui, "Segoe UI", sans-serif; background: #0a0f1a; overflow: hidden; }

/* ---------- fundo: foto real, pouco desfoque, escurecida para a logo branca ler bem ---------- */
.fundo { position: fixed; inset: 0; overflow: hidden; background: #1a0f08; }
.foto { position: absolute; inset: -4%; background: url("../img/canavial.webp") 50% 0% / cover no-repeat;
  filter: blur(3px) saturate(1.15) brightness(1.12);
  animation: revela 2.2s ease-out both, zoom 30s ease-in-out 2.2s infinite alternate; }
@keyframes revela { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.2%, -.8%); } }

/* Luz do sol varrendo a cena */
.luz { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; opacity: .5; animation: flutua 18s ease-in-out infinite alternate; }
.l1 { width: 34vmax; height: 34vmax; right: -6%; top: 6%; background: rgba(255, 170, 70, .5); }
.l2 { width: 28vmax; height: 28vmax; left: -8%; bottom: -10%; background: rgba(255, 150, 50, .35); animation-duration: 24s; }
@keyframes flutua { from { transform: translate(0, 0) scale(1); } to { transform: translate(-4vmax, 3vmax) scale(1.15); } }

/* Escurece o topo e a base (onde ficam a logo e o botão) e as bordas */
.vinheta { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 12, 28, .08) 0%, rgba(6, 12, 28, 0) 35%, rgba(6, 12, 28, .15) 75%, rgba(6, 12, 28, .5) 100%),
    radial-gradient(ellipse at center, transparent 58%, rgba(3, 8, 18, .35) 100%); }

/* Poeira dourada da colheita (canvas desenhado por js/inicio.js) */
.poeira { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: revela 3s 1s ease-out both; }

/* ---------- logo e botão, direto sobre a cena ---------- */
.palco { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; padding: 24px; }
.centro { width: min(680px, 100%); display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center; }

.logo { display: block; width: 100%; max-width: 580px; height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); animation: foco 1.8s .7s ease-out both; }
@keyframes foco {
  from { opacity: 0; filter: blur(14px) drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
  to   { opacity: 1; filter: blur(0) drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); } }


/* Lente: a própria foto fica mais desfocada e clara atrás da logo, com bordas que somem (sem caixa, sem contorno) */
.marca { position: relative; width: 100%; max-width: 580px; }
.marca .logo { position: relative; z-index: 1; }
.lente { position: absolute; inset: -46px -90px; z-index: 0;
  -webkit-backdrop-filter: blur(4px) brightness(1.1) saturate(1.03); backdrop-filter: blur(4px) brightness(1.1) saturate(1.03);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 15%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 15%, transparent 100%);
  animation: revela 1.8s .5s ease-out both; }
/* ---------- botão (minimalista) ---------- */
.botao { display: inline-flex; align-items: center; gap: 14px; padding: 15px 30px; text-decoration: none; cursor: pointer;
  font-family: var(--fonte); font-weight: 700; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(8, 20, 40, .28); border: 1px solid rgba(255, 255, 255, .85); border-radius: 4px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  animation: revela 1.4s 1.9s ease-out both; transition: background .25s, color .25s, text-shadow .25s; }
.botao svg { flex: 0 0 auto; transition: transform .25s; }
.botao:hover, .botao:focus-visible { background: #fff; color: var(--azul); text-shadow: none; outline: none; }
.botao:hover svg, .botao:focus-visible svg { transform: translateX(4px); }
.botao:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.aviso { margin: -18px 0 0; min-height: 1.4em; color: #fff; font-family: var(--fonte); font-weight: 700; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(2, 8, 20, .8); opacity: 0; transition: opacity .3s; }
.aviso.visivel { opacity: 1; }

/* ---------- mensagem de segurança e base da tela (só no celular) ---------- */
.seguranca, .base { display: none; }

/* ---------- rodapé ---------- */
.rodape { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; color: rgba(255, 255, 255, .72);
  font-family: var(--fonte); font-weight: 600; font-size: .95rem; letter-spacing: .38em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6); animation: revela 1.6s 2.4s ease-out both; }

/* ---------- página provisória de administração ---------- */
.provisorio { margin: 0; color: #fff; font-family: var(--fonte); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .65); animation: revela 1.2s .2s ease-out both; }
.provisorio-texto { margin: -14px 0 0; color: rgba(255, 255, 255, .88); font-family: var(--fonte); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65); animation: revela 1.2s .3s ease-out both; }

/* ---------- acesso à administração (só no computador) ---------- */
.admin { position: fixed; top: 20px; right: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; text-decoration: none;
  font-family: var(--fonte); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(8, 20, 40, .3); border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  animation: revela 1.4s 2.6s ease-out both; transition: background .25s, color .25s, border-color .25s, text-shadow .25s; }
.admin .engrenagem { flex: 0 0 auto; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); transition: transform .7s cubic-bezier(.3, .7, .2, 1), color .25s; }
.admin:hover, .admin:focus-visible { background: #fff; color: var(--azul); border-color: #fff; text-shadow: none; outline: none; }
.admin:hover .engrenagem, .admin:focus-visible .engrenagem { transform: rotate(135deg); filter: none; }
.admin:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- saída suave quando o botão tiver destino ---------- */
body.saindo .centro, body.saindo .rodape { transition: opacity .5s; opacity: 0; }
body.saindo .fundo { transition: filter .5s; filter: brightness(1.5) blur(6px); }

/* ---------- celular ---------- */
@media (max-width: 600px) {
  .palco { place-items: start center; padding: 13vh 16px 56px; }
  .centro { gap: 30px; }
  .marca { max-width: 100%; }
  .logo { max-width: 100%; }
  .lente { inset: -30px -24px; }
  .foto { background-position: 38% 0%; }
  .seguranca { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -4px; padding: 0 6px; text-align: center; color: #fff;
    font-family: var(--fonte); text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 2px 16px rgba(0, 0, 0, .75); animation: revela 1.6s 2.2s ease-out both; }
  .seguranca::before { content: ""; width: 44px; height: 3px; border-radius: 3px; background: var(--verde); margin-bottom: 6px; }
  .seguranca strong { font-size: 1.7rem; line-height: 1.1; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
  .seguranca span { font-size: 1.1rem; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .92); }
  .botao { width: 100%; justify-content: center; padding: 15px 18px; font-size: 1.1rem; letter-spacing: .1em; }
  .rodape, .admin { display: none; }
  .base { display: flex; flex-direction: column; align-items: center; gap: 7px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 16px 14px; text-align: center;
    font-family: var(--fonte); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    background: linear-gradient(180deg, transparent, rgba(6, 12, 28, .55) 55%); animation: revela 1.6s 2.4s ease-out both; }
  .relogio { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
  .relogio .turno { padding: 1px 9px; border: 1px solid var(--verde); border-radius: 4px; background: rgba(31, 170, 60, .25); font-size: 1rem; letter-spacing: .12em; }
  .lema { font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .92); }
  .copy { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
}
@media (max-height: 520px) { .rodape { display: none; } .centro { gap: 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .poeira { display: none; }
}

