/* ClicXis - pagina "em breve" (so HTML + CSS, sem JavaScript)
   Tipografia do design (material/design): Noto Serif Display italica nos
   destaques, Noto Sans nos textos. Movimento no conceito do reel 01: o flash
   do "clic", o logo cai como foto impressa e se revela como polaroid.
   Com "reduzir movimento", tudo parado. */

@font-face {
  font-family: "Noto Serif Display";
  src: url("/assets/fontes/noto-serif-display-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fontes/noto-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --vermelho: #bb3528;
  --vermelho-claro: #c8402f;
  --vermelho-escuro: #9a2a1f;
  --creme: #fbe9ca;
  --fundo: #fbf5ea;
  --flash: #fff8ec;
  --sombra: rgba(60, 10, 5, 0.3);
  --curva: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

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

html {
  background: var(--vermelho);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(120% 85% at 50% 38%, var(--vermelho-claro) 0%, var(--vermelho) 52%, var(--vermelho-escuro) 100%);
  color: var(--creme);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* grao de filme, bem leve */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* o flash do "clic" */
.clic {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: var(--flash);
  opacity: 0;
  animation: clic 0.95s ease-out 0.15s both;
}

.palco {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(14px, 2.4vh, 24px);
  padding: clamp(40px, 8vh, 88px) 16px 24px;
  text-align: center;
}

.marca {
  line-height: 0;
}

.marca a {
  display: inline-block;
  border-radius: 12px;
}

.logo {
  display: block;
  width: min(64vw, 46vh, 360px);
  height: auto;
  filter: drop-shadow(0 18px 30px var(--sombra));
  animation:
    cair 1.3s var(--curva) 0.2s both,
    revelar 1.9s ease-out 0.2s both;
}

.logo--pequeno {
  width: min(42vw, 32vh, 220px);
}

.slogan {
  font-family: "Noto Serif Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fundo);
  animation: subir 0.9s var(--curva) 1.15s both;
}

.linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(100%, 980px);
  font-weight: 700;
  font-size: clamp(11.5px, 1.5vw, 14px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: subir 0.9s var(--curva) 1.35s both;
}

.linha span + span::before {
  content: "·";
  margin: 0 0.9em;
}

.selo {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 20px 10px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--vermelho);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(60, 10, 5, 0.22);
  animation: subir 0.9s var(--curva) 1.55s both;
}

a.selo {
  transition: transform 0.18s var(--curva), box-shadow 0.18s var(--curva);
}

a.selo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(60, 10, 5, 0.28);
}

a:focus-visible {
  outline: 3px solid var(--fundo);
  outline-offset: 4px;
}

.rodape {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: subir 0.9s var(--curva) 1.75s both;
}

/* faixa de listras, como o cenario "Diagonal Clic" */
.rodape::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--creme) 0 10px, var(--vermelho) 10px 20px);
  background-size: 28.284px 28.284px;
  animation: listras 3.2s linear infinite;
}

.rodape span + span::before {
  content: "·";
  margin: 0 0.6em;
}

/* Sem espaco para uma linha so: empilha, sem o "·" sobrando na ponta. */
@media (max-width: 820px) {
  .linha {
    flex-direction: column;
    gap: 6px;
  }
  .linha span + span::before {
    content: none;
  }
}

@media (max-width: 560px) {
  .rodape {
    flex-direction: column;
  }
  .rodape span + span::before {
    content: none;
  }
}

@keyframes clic {
  0% { opacity: 0; }
  7% { opacity: 0.92; }
  100% { opacity: 0; }
}

@keyframes cair {
  0% { opacity: 0; transform: translateY(-34px) rotate(-8deg) scale(1.06); }
  55% { opacity: 1; transform: translateY(5px) rotate(1.5deg) scale(0.995); }
  78% { transform: translateY(-2px) rotate(-0.6deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes revelar {
  0% { filter: brightness(2) saturate(0) blur(6px) drop-shadow(0 0 0 rgba(60, 10, 5, 0)); }
  40% { filter: brightness(1.35) saturate(0.5) blur(1.5px) drop-shadow(0 10px 18px rgba(60, 10, 5, 0.18)); }
  100% { filter: brightness(1) saturate(1) blur(0) drop-shadow(0 18px 30px var(--sombra)); }
}

@keyframes subir {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes listras {
  to { background-position: 28.284px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .clic {
    display: none;
  }
}
