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

:root {
  --navy: #0b1027;
  --navy-2: #121a3d;
  --blue: #1515e0;
  --blue-dark: #0a0a9e;
  --blue-light: #3b3bff;
  --yellow: #ffe94d;
  --yellow-dark: #f5d400;
  --green: #4fb52b;
  --green-dark: #3d9a1e;
  --green-light: #7ad957;
  --lavender: #edebff;
  --lavender-2: #f6f5ff;

  --page-bg: #ffffff;
  --text: #2c3140;
  --text-muted: #6b7183;
  --heading: #1c2030;
  --line: #e3e5f0;

  --container: 1180px;
  --content: 1180px;
  --radius: 16px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
}

img,
svg,
video,
iframe { max-width: 100%; }

/* ---------- Botões base ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:focus-visible,
.btn-hero:focus-visible,
.btn-cta:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.btn-register {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
}

.btn-register:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-play {
  color: #14152e;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255, 233, 77, 0.45);
}

.btn-play:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(255, 233, 77, 0.65);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.header-inner {
  max-width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Hero (banner) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 40%, rgba(120, 90, 255, 0.55), transparent 45%),
    radial-gradient(circle at 15% 100%, rgba(0, 200, 255, 0.18), transparent 40%),
    linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(3px 3px at 75% 75%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 40% 85%, rgba(255,255,255,.5), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  min-height: 470px;
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.hero p {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 24px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px 16px 22px;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue-dark);
  background: var(--yellow);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn-hero:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.btn-icon { flex-shrink: 0; }

.hero-img {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* ---------- Main (conteúdo) ---------- */
main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 20px 72px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

main > :first-child { margin-top: 0; }
main > :last-child { margin-bottom: 0; }

/* Títulos */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.6em 0 0.7em;
}

main h1 { font-size: 40px; font-weight: 800; }
main h2 { font-size: 34px; }
main h3 { font-size: 26px; }
main h4 { font-size: 22px; }
main h5 { font-size: 19px; }
main h6 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }

/* Texto */
main p { margin: 0 0 1.2em; }

main a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

main a:hover { color: var(--green-dark); }

main strong,
main b { color: #000000; font-weight: 700; }

main mark {
  background: var(--yellow);
  color: var(--heading);
  padding: 0 4px;
  border-radius: 4px;
}

main small { font-size: .85em; color: var(--text-muted); }

/* Listas — marcadores verdes */
main ul {
  margin: 0 0 1.4em;
  padding-left: 0;
  list-style: none;
}

main ul > li {
  position: relative;
  margin-bottom: .7em;
  padding-left: 50px;
}

main ul > li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

main ol {
  margin: 0 0 1.4em;
  padding-left: 50px;
}

main ol > li { margin-bottom: .7em; padding-left: 6px; }
main ol > li::marker { color: var(--green); font-weight: 700; }

main li ul,
main li ol { margin: .6em 0 0; }

/* Bloco destacado (lavanda com borda azul) */
main blockquote {
  margin: 2em 0;
  padding: 40px 44px;
  background: var(--lavender);
  border-left: 10px solid var(--blue);
  color: var(--text);
}

main blockquote > :first-child { margin-top: 0; }
main blockquote > :last-child { margin-bottom: 0; }
main blockquote h2,
main blockquote h3 { font-size: 26px; }
main blockquote .btn-center { margin: 1.4em 0 0; }

/* Linha */
main hr {
  border: 0;
  height: 1px;
  margin: 2.4em 0;
  background: var(--line);
}

/* Imagens */
main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: 20px;
}

main figure {
  margin: 2em 0;
  text-align: center;
}

main figure img { margin: 0 auto; }

main figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Botão central (verde, com ícone play) */
main .btn-center {
  text-align: center;
  margin: 2em 0;
}

main .btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  padding: 10px 36px 10px 82px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  border: 2px solid var(--green-dark);
  box-shadow: 0 8px 22px rgba(61, 154, 30, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

main .btn-cta::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l8.5-5.5z' fill='%23ffffff'/%3E%3C/svg%3E") center / 30px no-repeat,
    linear-gradient(180deg, var(--green-light) 0%, var(--green) 100%);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
  transition: transform .3s ease;
}

main .btn-cta:hover {
  color: #ffffff;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(61, 154, 30, 0.45);
}

main .btn-cta:hover::before { transform: translateY(-50%) scale(1.06); }

/* Tabelas */
main .table-scroll {
  width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
}

main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
  background: #ffffff;
}

main .table-scroll table { margin: 0; }

main thead tr { background: var(--navy); }

main thead th {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

main th,
main td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

main tbody tr:nth-child(even) { background: var(--lavender-2); }
main tbody tr:hover { background: var(--lavender); }
main tbody tr:last-child > * { border-bottom: 0; }
main tbody th { color: var(--heading); font-weight: 700; }

main caption {
  caption-side: bottom;
  padding: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Código */
main code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .9em;
  padding: 2px 6px;
  background: var(--lavender-2);
  border-radius: 6px;
}

main pre {
  margin: 1.8em 0;
  padding: 18px;
  overflow-x: auto;
  background: var(--navy);
  color: #e8eaf5;
  border-radius: 12px;
}

main pre code { padding: 0; background: none; color: inherit; }

/* Vídeo / iframe */
main iframe,
main video {
  display: block;
  width: 100%;
  margin: 2em auto;
  border: 0;
  border-radius: 16px;
}

main iframe { aspect-ratio: 16 / 9; height: auto; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 40px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin-bottom: 18px;
}

.footer-nav a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--yellow); }

.site-footer p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero-inner { min-height: 0; padding: 48px 20px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 20px; }
  .btn-hero { font-size: 22px; }
  main h2 { font-size: 30px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.75; }

  .header-inner { min-height: 62px; }
  .logo img { height: 34px; }
  .btn { padding: 9px 18px; font-size: 14px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 16px 32px;
    text-align: center;
  }
  .hero h1 { font-size: 30px; }
  .hero p { margin: 0 auto 24px; font-size: 18px; }
  .btn-hero { font-size: 19px; padding: 14px 26px 14px 18px; }
  .hero-img { justify-self: center; max-width: 300px; }

  main { padding: 36px 16px 48px; }
  main h1 { font-size: 30px; }
  main h2 { font-size: 26px; }
  main h3 { font-size: 22px; }
  main h4 { font-size: 19px; }

  main ul > li { padding-left: 28px; }
  main ul > li::before { left: 6px; }
  main ol { padding-left: 28px; }

  main blockquote { padding: 26px 20px; border-left-width: 6px; }
  main blockquote h2,
  main blockquote h3 { font-size: 22px; }

  main img,
  main figure { margin: 1.5em auto; }
  main img { border-radius: 14px; }

  /* Tabelas rolam horizontalmente no celular */
  main table { min-width: 560px; font-size: 14px; }
  main th,
  main td { padding: 10px 12px; }

  /* Fallback sem JS */
  main > table {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  main .btn-cta {
    min-height: 58px;
    padding: 8px 26px 8px 70px;
    font-size: 18px;
  }
  main .btn-cta::before { width: 50px; height: 50px; background-size: 26px, auto; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 12px; gap: 8px; }
  .logo img { height: 28px; }
  .header-buttons { gap: 6px; }
  .btn { padding: 8px 12px; font-size: 12px; }

  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; }
  .btn-hero { font-size: 17px; }
  .hero-img { max-width: 240px; }

  main h2 { font-size: 23px; }
}

@media (max-width: 360px) {
  .logo img { height: 24px; }
  .btn { padding: 7px 9px; font-size: 11px; }
}

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

/* Nota de independência no topo */
.hero .hero-disclosure {
  margin: -6px 0 22px;
  font-size: 14px;
  line-height: 1.5;
  opacity: .85;
}
