:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: #151926;
  --text: #e7ebf3;
  --muted: #a7b0c0;
  --primary: #6aa2ff;
  --primary-2: #3a7bff;
  --border: #233047;
  --success: #19c37d;
  --danger: #ef4444;
  --warning: #f59e0b;
  --header-height: 15vh;
}

* { box-sizing: border-box; }
html {scroll-padding-top: var(--header-height);scroll-behavior: smooth;}
html, body { margin: 0; padding: 0; min-width: 375px; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, var(--bg) 0%, #0e1117 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-2); text-decoration: underline; }

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,18,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header .wrap {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
}
header > div > a {
  display: contents;
}
.logo {
  width: 5%;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
nav a { 
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600; 
  color: var(--muted);
  transition: all 0.2s ease;
}
nav a.active, nav a:hover { 
  color: var(--text); 
  background: rgba(106, 162, 255, 0.1);
  text-decoration: none;
}
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.container div a{
  padding: 8px 12px;
  text-decoration: none;
}
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h2 {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 400;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 24px 0 12px; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.875rem; color: #d7def0; font-weight: 600; }
h3 { font-size: 1.25rem; color: var(--text); font-weight: 600; }
h4 { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.24);
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
/* FAQ */
.faq { margin: 0 auto; max-width: 980px; }
.faq h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.faq details { background: linear-gradient(180deg, var(--card), var(--bg-soft)); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; font-weight: 600; outline: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq p { margin: 0.6rem 0 0; color: var(--muted); line-height: 1.45; }
.faq a { color: var(--primary-color, #0077cc); text-decoration: underline; }
#faq { scroll-margin-top: 4rem; }
/* ESTILOS DO BOTÃO MELHORADO */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}
.back-to-top:active {
    transform: translateY(-2px) scale(1.02);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
/* Ícone SVG personalizado */
.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}
.back-to-top:hover svg {
    transform: translateY(-2px);
}
/* Efeito de pulso sutil */
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.7); }
    100% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
}
.back-to-top.show {
    animation: pulse 3s infinite;
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
/*     
    h1 {
        font-size: 2rem;
    } */
}
@media (max-width: 425px) {
    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
      /* .back-to-top svg {
          width: 16px;
          height: 2px;
      } */
/*     
    h1 {
        font-size: 2rem;
    } */
}
.ad-slot, .ad-container {
  margin: 32px 0;
  border: 2px dashed var(--border);
  border-radius: 16px;
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: rgba(15, 19, 32, 0.5);
  font-weight: 500;
  transition: border-color 0.2s ease;
  display: none;
}
.ad-container:hover {
  border-color: var(--primary);
}
footer {
  border-top: 1px solid var(--border);
  /* margin-top: 60px; */
  /* padding: 32px 20px; */
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg-soft);
  margin-left: auto;
  width: 100%;
}
/* Lists */
ul, ol {
  padding-left: 20px;
}
li {
  margin: 8px 0;
}
/* Buttons */
.btn {
  appearance: none; 
  border: 1px solid var(--border);
  padding: 12px 20px; 
  border-radius: 12px; 
  cursor: pointer; 
  font-weight: 600;
  color: var(--text); 
  background: #0f1422;
  font-size: 0.95em;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  background: #1a2332;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: var(--primary);
  color: white;
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-2), #2563eb);
  box-shadow: 0 8px 20px rgba(106, 162, 255, 0.3);
}
.btn.ghost {
  background: transparent;
  border-color: var(--muted);
  color: var(--muted);
}
.btn.ghost:hover {
  background: rgba(167, 176, 192, 0.1);
  color: var(--text);
}
/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: linear-gradient(135deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  max-width: 600px;
  width: calc(100% - 40px);
  /* display: none; */
}
.cookie-banner p {
  margin: 0 0 16px;
  color: var(--text);
  text-align: center;
  font-size: 0.9em;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-actions .btn {
  padding: 10px 16px;
  font-size: 0.9em;
  min-width: 120px;
}
/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover {
  background: rgba(106, 162, 255, 0.05);
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 162, 255, 0.1);
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}
/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 20px 0;
  border-left: 4px solid;
}
.alert.success {
  background: rgba(25, 195, 125, 0.1);
  border-color: var(--success);
  color: #22c55e;
}
.alert.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: #ef4444;
}
.alert.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: #f59e0b;
}
/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}
.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(106, 162, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}
/* Tooltips */
.tooltip {
  position: relative;
  cursor: help;
}
.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-soft);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--border);
  z-index: 10;
}
.tooltip:hover::before {
  opacity: 1;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .col-8 { grid-column: span 12; }
  /* .col-6 { grid-column: span 12; } */
  /* .col-4 { grid-column: span 6; } */
  .col-3 { grid-column: span 6; }
  
  .hero h1 { font-size: 2.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  header .wrap {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .logo {
    display: none;
  }
  nav {
    justify-content: center;
  }
  .card { padding: 20px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.1rem; }
  .cookie-banner {
    bottom: 10px;
    padding: 16px;
    max-width: none;
    width: calc(100% - 20px);
  }
  .cookie-banner p {
    font-size: 0.85em;
  }
  .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-actions .btn {
    width: 100%;
    min-width: auto;
  }
}
@media (max-width: 690px) {
  .col-6, .col-4, .col-3 { grid-column: span 12; }
}
@media (max-width: 480px) {
  nav a {
    padding: 6px 10px;
    font-size: 0.9em;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero h2 { font-size: 1rem; }
  .hero p { font-size: 1rem; }
  .btn {
    padding: 10px 16px;
    font-size: 0.9em;
  }
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}
/* Print Styles */
@media print {
  header, footer, .cookie-banner, .ad-container {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #ffffff;
    --text: #ffffff;
    --bg: #000000;
    --card: #111111;
  }
}
/* Dark mode is default, but support for light mode preference */
@media (prefers-color-scheme: light) {
  /* Users who prefer light mode can override with custom CSS */
}
.none {
  display: none;
}
@media (max-width: 374px) {
    body {
        width: 375px;
        margin: 0 auto;
        overflow-x: auto;
    }
}
