/* =========================================================
   cassino-pix-brasil.com — estilos principais
   ========================================================= */

:root {
  --bg: #0b3a44;
  --bg-2: #0f4f5c;
  --bg-deep: #072a31;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --text: #e8f5f3;
  --text-muted: #a9cbc7;
  --heading: #ffffff;
  --accent: #32bcad;          /* turquesa PIX */
  --accent-dark: #23968a;
  --cta: #ff6b5a;             /* coral para botões de ação */
  --cta-dark: #e8503f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --container: 1140px;
  --content: 860px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(50, 188, 173, 0.28), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, rgba(255, 107, 90, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 42, 49, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  color: var(--text);
  border-color: var(--accent);
  background: transparent;
}
.btn-outline:hover { background: var(--accent); color: var(--bg-deep); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-dark) 100%);
  box-shadow: 0 6px 18px rgba(255, 107, 90, 0.4);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(255, 107, 90, 0.55); }

/* =========================================================
   MAIN — conteúdo (sem wrappers extras)
   ========================================================= */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* --- Títulos --- */
main h1, main h2, main h3, main h4, main h5, main h6 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.25;
  margin: 1.8em 0 .6em;
  font-weight: 800;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
main h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  margin-top: 0;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
main h2 {
  font-size: clamp(23px, 3.2vw, 32px);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
main h3 { font-size: clamp(19px, 2.5vw, 24px); color: var(--accent); }
main h4 { font-size: 19px; }
main h5 { font-size: 17px; }
main h6 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

/* --- Texto --- */
main p { margin: 0 0 1.2em; }
main strong, main b { color: var(--heading); font-weight: 700; }
main em, main i { color: #cfe9e5; }
main small { font-size: .85em; color: var(--text-muted); }
main mark { background: rgba(50, 188, 173, .3); color: #fff; padding: 0 4px; border-radius: 4px; }

main a:not(.btn):not(.main-btn):not(.showcase-btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
main a:not(.btn):not(.main-btn):not(.showcase-btn):hover { color: #fff; }

main hr {
  border: 0;
  height: 1px;
  margin: 2.5em 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* --- Listas --- */
main ul, main ol { margin: 0 0 1.4em; padding-left: 1.4em; }
main li { margin-bottom: .5em; }
main ul { list-style: none; padding-left: 0; }
main ul > li { position: relative; padding-left: 28px; }
main ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
main ol { counter-reset: item; list-style: none; padding-left: 0; }
main ol > li { counter-increment: item; position: relative; padding-left: 40px; }
main ol > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: .15em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}
main li > ul, main li > ol { margin: .5em 0 0; }

/* --- Citação --- */
main blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 4px solid var(--cta);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #dff2ef;
}
main blockquote p:last-child { margin-bottom: 0; }

/* --- Código --- */
main code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
}
main pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
main pre code { background: none; padding: 0; }

/* --- Imagens entre parágrafos --- */
main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8em auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
main figure { margin: 1.8em 0; }
main figure img { margin: 0 auto; }
main figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Tabelas --- */
main table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
main caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-weight: 700;
  color: var(--heading);
}
main th, main td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
main th {
  background: rgba(50, 188, 173, 0.22);
  color: var(--heading);
  font-weight: 700;
  white-space: nowrap;
}
main tr:last-child td { border-bottom: 0; }
main tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.03); }
main tbody tr:hover td { background: rgba(50, 188, 173, 0.1); }

/* --- Botão central bonito --- */
main .main-btn {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 2em auto;
  padding: 16px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-dark) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 107, 90, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
main .main-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
main .main-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 32px rgba(255, 107, 90, 0.6); }
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }

/* =========================================================
   VITRINE (marcas)
   ========================================================= */
main .showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 2em 0;
  padding: 0;
  list-style: none;
}
main .showcase > li { padding: 0; margin: 0; }
main .showcase > li::before { display: none; }

main .showcase-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
main .showcase-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
main .showcase-card img {
  width: 160px;
  height: 64px;
  object-fit: contain;
  margin: 0 0 14px;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
main .showcase-card p {
  flex: 1;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
main .showcase-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
main .showcase-btn:hover { background: #4fd6c7; transform: translateY(-2px); }

/* =========================================================
   BLOCO DO AUTOR
   ========================================================= */
main .author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 3em 0 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
main .author img {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: none;
}
main .author-label {
  margin: 0 0 2px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
main .author-name {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
}
main .author-opinion { margin: 0; font-style: italic; color: #dff2ef; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  flex-shrink: 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .container { display: flex; flex-direction: column; gap: 22px; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

.responsible { display: flex; flex-direction: column; gap: 10px; }
.responsible-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
}
.responsible-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.responsible-list a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.responsible-list a:hover { border-color: var(--accent); color: var(--accent); }

.footer-text { margin: 0; line-height: 1.65; }
.footer-text strong { color: var(--text); }

/* =========================================================
   BOTÃO "VOLTAR AO TOPO"
   ========================================================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, bottom .3s ease, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #4fd6c7; }
.to-top svg { width: 22px; height: 22px; }
body.popup-open .to-top { bottom: 130px; }

/* =========================================================
   POPUP inferior
   ========================================================= */
.popup {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 200;
  width: calc(100% - 32px);
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 48px 16px 16px;
  background: linear-gradient(135deg, #0f5664 0%, #0b3a44 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transform: translate(-50%, 140%);
  opacity: 0;
  visibility: hidden;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .3s ease, visibility .45s;
}
.popup.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.popup-logo { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; border-radius: 10px; }
.popup-text { flex: 1; margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.popup-btn { flex-shrink: 0; padding: 11px 20px; }
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}
.popup-close:hover { background: rgba(255, 255, 255, .22); }

/* =========================================================
   PÁGINA 404
   ========================================================= */
.error-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(110px, 26vw, 200px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title { margin: 10px 0 12px; font-family: var(--font-head); font-size: clamp(22px, 4vw, 32px); color: var(--heading); }
.error-text { max-width: 480px; margin: 0 0 28px; color: var(--text-muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 16px; background-attachment: scroll; }
  main { padding: 32px 16px 48px; }

  /* Tabelas: rolagem horizontal no celular, sem esticar a página */
  main table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  main td { white-space: nowrap; }

  /* Imagens e outros elementos largos nunca saem da tela */
  main img, main video, main iframe { max-width: 100%; height: auto; }
  main iframe { width: 100%; aspect-ratio: 16 / 9; }

  main .author { flex-direction: column; align-items: center; text-align: center; }

  .site-footer { padding: 32px 0 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .container { padding: 0 14px; }
  .logo img { height: 32px; }
  .header-actions { gap: 6px; }
  .btn { padding: 9px 13px; font-size: 13px; }
  main .main-btn { padding: 15px 28px; font-size: 16px; width: 100%; }

  .popup { flex-wrap: wrap; bottom: 12px; padding: 14px 44px 14px 14px; gap: 12px; }
  .popup-logo { width: 44px; height: 44px; }
  .popup-text { flex: 1 1 calc(100% - 60px); font-size: 14px; }
  .popup-btn { width: 100%; }
  body.popup-open .to-top { bottom: 170px; }
  .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 440px) {
  .site-header .container { gap: 8px; }
  .logo { min-width: 0; flex-shrink: 1; }
  .logo img { height: auto; max-height: 28px; max-width: 110px; }
  .header-actions .btn { padding: 8px 10px; font-size: 12px; letter-spacing: 0; }
}

@media (max-width: 340px) {
  .logo img { max-width: 84px; }
  .header-actions .btn { padding: 7px 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
