/* ==========================================================================
   CDA Gaming — Comunicado aos clientes
   ========================================================================== */

/* Fontes (hospedadas no projeto)
   Inter e Inter Tight — SIL Open Font License 1.1 (ver assets/fonts/OFL.txt)
   Arquivos reduzidos para os caracteres latinos (inclui acentos do português). */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  --navy: #0E2A56;
  --navy-deep: #071733;
  --navy-light: #183869;
  --offwhite: #F1F2F2;

  --font-display: "Inter Tight", "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  /* Largura de cada listra do fundo: acompanha a tela, com limites */
  --stripe: clamp(64px, 11vw, 230px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--navy);
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px 72px;
  -webkit-font-smoothing: antialiased;
}

/* Fundo — camada 1 (listras diagonais).
   A máscara deixa as listras claras fortes no topo e na base da tela
   e quase invisíveis no centro (atrás do card). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent var(--stripe),
    var(--navy-light) var(--stripe),
    var(--navy-light) calc(var(--stripe) * 2)
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 25%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .55) 75%, #000 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 25%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .55) 75%, #000 100%);
}

/* Fundo — camada 2 (granulado).
   Ruído gerado pelo navegador a partir de um filtro SVG (sem arquivo de imagem),
   Fica por cima das listras: dá textura de papel/impressão e suaviza o contraste delas. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: .28;
}

/* Logo */
.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 200px;
  max-width: 60vw;
  height: auto;
  margin-bottom: 40px;
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: var(--offwhite);
  border-radius: 12px;
  padding: 56px 64px 52px;
  box-shadow: 0 24px 64px rgba(3, 10, 26, .45);
}


.card h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--navy);
  margin-bottom: 28px;
}


.card p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.card strong {
  font-weight: 600;
  color: var(--navy-deep);
}

/* Frase de destaque */
.card .highlight {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy);
  border-left: 4px solid var(--navy);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
}

/* Encerramento */
.closing {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(14, 42, 86, .18);
}

.card .thanks {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--navy);
  margin-bottom: 10px;
}


/* Assinatura no fim do card: CDA Gaming | Betsul · Casa de Apostas */
.brands {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  color: #858B94;
}

.brands svg {
  display: block;
  width: auto;
  fill: currentColor;
}

.brands .brand-cda path { fill: currentColor; }

.brands .brand-cda { height: 30px; }
.brands .brand-betsul { height: 17px; }
.brands .brand-casa { height: 30px; }

.brands .divider {
  width: 1px;
  height: 34px;
  background: rgba(133, 139, 148, .4);
}

/* Animação de entrada: fade sutil com leve subida.
   Ordem: logo → card, com intervalo curto entre eles. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo,
.card {
  animation: fade-up 1s cubic-bezier(.22, .61, .36, 1) both;
}

.logo   { animation-delay: .1s; }
.card   { animation-delay: .32s; }

/* Respeita quem desativou animações no sistema */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .card { animation: none; }
}

/* Mobile */
@media (max-width: 640px) {
  body { padding: 44px 14px 52px; }
  .logo { width: 168px; margin-bottom: 32px; }
  .card { padding: 36px 24px 36px; border-radius: 10px; }
  .card h1 { font-size: 32px; margin-bottom: 22px; }
  .card p { font-size: 16px; }
  .card .highlight { font-size: 21px; padding-left: 16px; }
  .card .thanks { font-size: 24px; }
  .brands { gap: 14px; margin-top: 18px; }
  .brands .brand-cda { height: 24px; }
  .brands .brand-betsul { height: 13px; }
  .brands .brand-casa { height: 24px; }
  .brands .divider { height: 28px; }
}
