/* ==========================================================
   LeaderX — Design System v1.1 · Global Styles
   Tokens, Nav, Footer — aplicado em todas as páginas
   ========================================================== */

/* ── TOKENS ── */
:root {
  /* Brand Gold */
  --lx-gold:         #BFA15F;
  --lx-gold-light:   #D4AF7A;
  --lx-gold-dim:     rgba(191,161,95,0.10);
  --lx-gold-glow:    rgba(191,161,95,0.25);
  --lx-gold-border:  rgba(191,161,95,0.32);

  /* Tier Colors */
  --tier-pulse:  #BFA15F;
  --tier-one:    #60A5FA;
  --tier-aura:   #A78BFA;
  --tier-club:   #F87171;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #60a5fa;

  /* Dark Surface Scale */
  --dk-bg:        #080808;
  --dk-bg2:       #0d0d0d;
  --dk-surface:   #111111;
  --dk-surface2:  #181818;
  --dk-border:    rgba(255,255,255,0.07);
  --dk-border2:   rgba(255,255,255,0.12);
  --dk-text:      #F5F3EF;
  --dk-text-dim:  rgba(245,243,239,0.55);
  --dk-text-muted:rgba(245,243,239,0.30);

  /* Border Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --sh-gold:  0 8px 28px -4px rgba(191,161,95,0.35);
  --sh-card:  0 4px 24px -2px rgba(0,0,0,0.55);
  --sh-hover: 0 12px 36px -4px rgba(191,161,95,0.12);
  --sh-modal: 0 32px 64px -12px rgba(0,0,0,0.8);

  /* Transitions */
  --t-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
  --t-base: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --t-slow: all 0.40s cubic-bezier(0.22,1,0.36,1);

  /* Typography */
  --serif: 'DM Sans', sans-serif;
  --sans:  'DM Sans', sans-serif;
  --mono:  'DM Mono', monospace;

  /* Typography scale */
  --text-2xs:  14px;
  --text-xs:   14px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  28px;
  --text-3xl:  40px;
  --text-display: 46px;
  --text-h2:   clamp(28px, 3.5vw, 48px);
  --text-h1:   clamp(40px, 5.5vw, 72px);

  /* Legacy aliases (backward compat) */
  --gold:         var(--lx-gold);
  --gold-light:   var(--lx-gold-light);
  --white:        var(--dk-text);
  --muted:        var(--dk-text-dim);
  --black:        var(--dk-bg);
  --deep:         var(--dk-bg2);
  --surface:      var(--dk-surface);
  --border:       var(--dk-border);
  --border-light: var(--dk-border2);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dk-border2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--lx-gold); }

/* ── NAV ── */
nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid transparent;
  transition: var(--t-slow);
}
nav#nav.scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--dk-border);
  padding: 14px 60px;
  box-shadow: 0 1px 0 var(--dk-border), 0 8px 32px rgba(0,0,0,0.4);
}

/* Logo */
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dk-text);
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--t-fast);
}
.nav-logo span { color: var(--lx-gold); }
.nav-logo:hover { opacity: 0.85; }

/* Links */
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
/* Nav item positioning for dropdown */
.nav-item { position: relative; }
.nav-item.has-dropdown { padding-bottom: 24px; margin-bottom: -24px; }

.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dk-text-dim);
  text-decoration: none;
  padding: 8px 18px;
  display: block;
  transition: var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--dk-text); }
.nav-link.active {
  color: var(--lx-gold);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 240px;
  background: rgba(10,10,10,0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--dk-border2);
  border-top: 2px solid var(--lx-gold);
  padding: 4px 0 8px;
  z-index: 300;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: var(--sh-modal);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s cubic-bezier(0.22,1,0.36,1),
              transform 0.18s cubic-bezier(0.22,1,0.36,1),
              visibility 0s linear 0.18s;
  margin-top: 0;
}

/* PONTE INVISÍVEL CORRIGIDA — Cobre perfeitamente o espaço entre o link e o menu */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; /* Começa exatamente na base do item */
  left: -8px;
  right: -8px;
  height: 20px; /* Estende 20px para baixo, cobrindo com folga o gap de 2px */
  background: transparent;
  z-index: 299;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown,
.nav-item.has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s cubic-bezier(0.22,1,0.36,1),
              transform 0.18s cubic-bezier(0.22,1,0.36,1),
              visibility 0s linear 0s;
}
.nav-dropdown a {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dk-text-dim);
  text-decoration: none;
  padding: 11px 22px;
  transition: var(--t-fast);
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--lx-gold-light);
  background: var(--lx-gold-dim);
  padding-left: 28px;
}

/* CTA */
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dk-bg);
  background: var(--lx-gold);
  padding: 11px 24px;
  text-decoration: none;
  transition: var(--t-base);
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: var(--r-full);
  box-shadow: var(--sh-gold);
}
.nav-cta:hover {
  background: var(--lx-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(191,161,95,0.45);
}
.nav-cta:active { transform: scale(0.97); }

/* ── CTA DROPDOWN (desktop hover) ── */
.nav-cta-wrapper {
  position: relative;
  flex-shrink: 0;
}

/* Ponte invisível — mantém o hover ao mover o cursor para o dropdown */
.nav-cta-wrapper::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 16px;
  background: transparent;
}

.nav-cta-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 210px;
  background: rgba(8,8,8,0.99);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--dk-border2);
  border-top: 2px solid var(--lx-gold);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 4px 0 6px;
  z-index: 300;
  box-shadow: 0 24px 60px rgba(0,0,0,0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s cubic-bezier(0.22,1,0.36,1),
              transform 0.18s cubic-bezier(0.22,1,0.36,1),
              visibility 0s linear 0.18s;
}

.nav-cta-wrapper:hover .nav-cta-dropdown,
.nav-cta-wrapper:focus-within .nav-cta-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s cubic-bezier(0.22,1,0.36,1),
              transform 0.18s cubic-bezier(0.22,1,0.36,1),
              visibility 0s linear 0s;
}

.nav-cta-drop-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dk-text-dim);
  text-decoration: none;
  padding: 11px 20px;
  transition: var(--t-fast);
  white-space: nowrap;
}
.nav-cta-drop-item svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: var(--t-fast);
}
.nav-cta-drop-item:hover {
  color: var(--dk-text);
  background: rgba(255,255,255,0.04);
  padding-left: 24px;
}
.nav-cta-drop-item:hover svg { opacity: 1; }

/* Segundo item — destaque dourado */
.nav-cta-drop-primary {
  color: var(--lx-gold);
  border-top: 1px solid var(--dk-border);
  margin-top: 2px;
}
.nav-cta-drop-primary svg { opacity: 0.7; }
.nav-cta-drop-primary:hover {
  color: var(--lx-gold-light);
  background: var(--lx-gold-dim);
}
.nav-cta-drop-primary:hover svg { opacity: 1; }

/* ── MOBILE — link "Conheça os níveis" ── */
.nav-mobile-levels-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dk-text-muted);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--dk-border);
  border-radius: var(--r-full);
  transition: var(--t-fast);
  text-align: center;
}
.nav-mobile-levels-link svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: var(--t-fast);
}
.nav-mobile-levels-link:hover,
.nav-mobile-levels-link:active {
  color: var(--lx-gold);
  border-color: var(--lx-gold-border);
  background: var(--lx-gold-dim);
}
.nav-mobile-levels-link:hover svg,
.nav-mobile-levels-link:active svg { opacity: 1; }

/* ── FOOTER ── */
footer {
  background: var(--dk-bg2);
  border-top: 1px solid var(--dk-border);
  padding: 80px 0 40px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
  opacity: 0.9;
  transition: var(--t-fast);
}
.footer-logo-link:hover { opacity: 1; }
.footer-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-brand-desc {
  font-size: var(--text-base);
  color: var(--dk-text-muted);
  line-height: 1.85;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dk-text-muted);
  margin-bottom: 20px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  color: rgba(245,243,239,0.35);
  text-decoration: none;
  transition: var(--t-fast);
}
.footer-links a:hover {
  color: var(--dk-text);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--dk-border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: var(--text-base); color: var(--dk-text-muted); }
.footer-legal { display: flex; gap: 32px; list-style: none; }
.footer-legal a {
  font-size: var(--text-base);
  color: var(--dk-text-muted);
  text-decoration: none;
  transition: var(--t-fast);
}
.footer-legal a:hover { color: var(--dk-text-dim); }
.footer-dev-credit {
  text-align: left;
  margin-top: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; /* Aumentado em 3px */
  color: rgba(245,243,239,0.18);
  line-height: 1.7;
}

/* ── GLOBAL COMPONENT TOKENS ── */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dk-bg) !important;
  background: var(--lx-gold);
  padding: 15px 36px;
  text-decoration: none;
  transition: var(--t-base);
  border-radius: var(--r-full);
  box-shadow: var(--sh-gold);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--lx-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(191,161,95,0.45);
}
.btn-primary:active { transform: scale(0.97); box-shadow: var(--sh-gold); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dk-text-dim);
  text-decoration: none;
  transition: var(--t-fast);
  border-bottom: 1px solid var(--dk-border2);
  padding-bottom: 3px;
}
.btn-ghost:hover {
  color: var(--dk-text);
  border-color: var(--lx-gold);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid;
  white-space: nowrap;
}
.badge-gold   { color: var(--lx-gold);  background: var(--lx-gold-dim);     border-color: var(--lx-gold-border); }
.badge-green  { color: #4ade80;         background: rgba(34,197,94,0.10);   border-color: rgba(34,197,94,0.25); }
.badge-red    { color: #f87171;         background: rgba(239,68,68,0.10);   border-color: rgba(239,68,68,0.25); }
.badge-gray   { color: var(--dk-text-dim); background: rgba(255,255,255,0.05); border-color: var(--dk-border2); }
.tier-pulse   { color: #BFA15F;  background: rgba(191,161,95,0.10); border-color: rgba(191,161,95,0.30); }
.tier-one     { color: #60A5FA;  background: rgba(96,165,250,0.10); border-color: rgba(96,165,250,0.30); }
.tier-aura    { color: #A78BFA;  background: rgba(167,139,250,0.10);border-color: rgba(167,139,250,0.30); }
.tier-club    { color: #F87171;  background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.30); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Divider gold */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--lx-gold), transparent);
  margin: 36px 0;
}

/* Section label */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lx-gold);
  margin-bottom: 20px;
  display: block;
}

/* Section title */
.section-title {
  font-family: var(--serif);
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: 1.08;
}
.section-title em { font-style: italic; color: var(--lx-gold-light); }

/* Gold line accent  */
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--lx-gold), transparent 70%);
  margin: 0;
}

/* Live dot */
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.35} }
.live-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { justify-content: center; flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── NAV ACTIONS (login + cta) ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dk-text-dim);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--dk-border2);
  border-radius: var(--r-full);
  transition: var(--t-fast);
  white-space: nowrap;
}
.nav-login:hover {
  color: var(--dk-text);
  border-color: var(--lx-gold-border);
  background: var(--lx-gold-dim);
}
.nav-login svg {
  opacity: 0.6;
  transition: var(--t-fast);
}
.nav-login:hover svg { opacity: 1; }



/* ── PARTNERS STRIP ── */
.lx-partners {
  background: var(--dk-bg2);
  border-top: 1px solid var(--dk-border);
  border-bottom: 1px solid var(--dk-border);
  padding: 32px 0;
  overflow: hidden;
}
.lx-partners-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dk-text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.lx-partners-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.lx-partners-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: partnersScroll 28s linear infinite;
}
.lx-partners-track:hover { animation-play-state: paused; }

@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.lx-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 200px;
  width: 200px;
  color: var(--dk-text-muted);
  text-decoration: none;
  opacity: 0.45;
  transition: var(--t-base);
  flex-shrink: 0;
  filter: grayscale(1);
}
.lx-partner-item:hover {
  opacity: 1;
  color: var(--lx-gold);
  filter: grayscale(0);
}
.lx-partner-item img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* ── NAV SOCIAL ICONS ── */
/* Separador visual antes dos ícones sociais */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid var(--dk-border2);
}
.nav-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--dk-text-muted);
  border-radius: var(--r-xs);
  text-decoration: none;
  transition: var(--t-fast);
  flex-shrink: 0;
  opacity: 0.55;
}
.nav-social-btn:hover {
  color: var(--lx-gold);
  background: var(--lx-gold-dim);
  opacity: 1;
}
@media (max-width: 1100px) {
  .nav-social { display: none; }
}

/* ── FOOTER SOCIAL ICONS ── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--dk-text-muted);
  border: 1px solid var(--dk-border2);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: var(--t-fast);
  flex-shrink: 0;
  opacity: 0.6;
}
.footer-social-btn:hover {
  color: var(--lx-gold);
  border-color: var(--lx-gold-border);
  background: var(--lx-gold-dim);
  opacity: 1;
}

/* ── MOBILE DRAWER SOCIAL ICONS ── */
.nav-mobile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}
.nav-mobile-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* Aumentado touch target de 38px para 44px para melhor UX Mobile */
  height: 44px; /* Aumentado touch target de 38px para 44px para melhor UX Mobile */
  color: var(--dk-text-dim);
  border: 1px solid var(--dk-border2);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: var(--t-fast);
  flex-shrink: 0;
}
.nav-mobile-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}
.nav-mobile-social-btn:hover,
.nav-mobile-social-btn:active {
  color: var(--lx-gold);
  border-color: var(--lx-gold-border);
  background: var(--lx-gold-dim);
}



/* ── PARTNER FALLBACK (quando img não carrega) ── */
.lx-partner-fallback {
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: currentColor;
  display: none;
}

/* Clube highlight no dropdown */
.nav-dropdown-highlight {
  color: var(--lx-gold) !important;
  font-weight: 600 !important;
  position: relative;
}
.nav-dropdown-highlight::before {
  content: '★';
  font-size: var(--text-xs);
  margin-right: 6px;
  opacity: 0.8;
}