/* ==========================================================================
   VARIÁVEIS GLOBAIS E ESTILOS BASE
   ========================================================================== */
:root {
  /* Cores - Dark Mode (padrão) */
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-tertiary: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #FFFFFF;
  --accent: #FFD700;
  --accent-light: #FFC000;
  --accent-dark: #FFAA00;
  --white: #FFFFFF;
  --black: #000000;

  /* Tamanhos principais */
  --header-height: 100px;
  --logo-height: 160px;
  --mobile-logo-height: 100px;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.8rem; margin-bottom: 20px; text-align: center; }
h3 { font-size: 1.8rem; margin-bottom: 15px; }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.accent {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 15px auto 30px;
}

/* ==========================================================================
   LAYOUT DO HEADER E NAVEGAÇÃO
   ========================================================================== */
header {
  background-color: var(--bg-secondary);
  height: var(--header-height);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo img {
  height: var(--logo-height);
  width: auto;
  transition: transform 0.3s;
  object-fit: contain;
}

/* Navegação Desktop */
.desktop-menu ul {
  display: flex;
  gap: 30px;
}

.desktop-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
}

.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s;
}

.desktop-menu a:hover,
.desktop-menu a.active {
  color: var(--accent);
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
  width: 100%;
}

/* Navegação Mobile */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-secondary);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  padding: 12px 15px;
  border-radius: var(--border-radius);
}

.mobile-menu a:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent);
}

/* ==========================================================================
   COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--black);
  padding: 5px;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
  border-radius: 8px;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--black);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--black);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  background-color: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.card:hover {
  transform: translateY(-5px);
}

/* ==========================================================================
   SEÇÃO HERO (PARA PÁGINA INICIAL)
   ========================================================================== */
.hero {
  padding: calc(var(--header-height) + 50px) 0 100px;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('trading-bg.jpg') no-repeat center/cover;
  position: relative;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  background-color: rgba(255, 215, 0, 0.1);
  padding: 20px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--accent);
  min-width: 150px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   LAYOUT DE SEÇÕES GENÉRICAS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--bg-tertiary);
}

.section-light {
  background-color: var(--bg-secondary);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.content-split {
  display: flex;
  align-items: center;
  gap: 50px;
}

.content-text, .content-image {
  flex: 1;
}

.content-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.content-image img {
  transition: transform 0.5s ease;
  width: 100%;
}

.content-image:hover img {
  transform: scale(1.03);
}

.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list i {
  color: var(--accent);
  margin-top: 3px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--bg-tertiary);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo img {
  margin-bottom: 20px;
  width: 200px;
}

.footer-logo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--text-primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3, .footer-newsletter h3 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--bg-tertiary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid var(--bg-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-legal a {
  color: var(--text-secondary);
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ==========================================================================
   COMPONENTES FLUTUANTES
   ========================================================================== */
.theme-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

#theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#theme-toggle:hover {
  transform: scale(1.1);
}

#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--accent);
  color: var(--black);
}

/* ==========================================================================
   FORMULÁRIOS
   ========================================================================== */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
textarea,
select {
  padding: 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--bg-tertiary);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1200px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
}

@media (max-width: 992px) {
  .content-split {
    flex-direction: column;
    gap: 40px;
  }
  
  .content-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 80px;
    --logo-height: 120px;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  
  .hero {
    padding: calc(var(--header-height) + 30px) 0 80px;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .stat-item {
    padding: 15px 20px;
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  :root {
    --mobile-logo-height: 80px;
  }
  
  h1 { font-size: 2rem; }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-item {
    min-width: calc(50% - 15px);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
  }
  
  #back-to-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .theme-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}