/* ============================================================
   SC FINANCE — GLOBAL STYLES
   Design: Premium | Executivo | Internacional
   Paleta: #0A0D14 (fundo), #C9A02E (dourado), #FFFFFF (texto)
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C9A02E;
  --gold-light: #E2BC50;
  --gold-dim:   #9A7A22;
  --bg-dark:    #0A0D14;
  --bg-card:    #111520;
  --bg-card2:   #161B28;
  --text-white: #FFFFFF;
  --text-gray:  #A0A8B8;
  --text-light: #CDD3E0;
  --border:     rgba(201,160,46,0.2);
  --border-hover: rgba(201,160,46,0.6);
  --font:       'Inter', sans-serif;
  --max-w:      1200px;
  --radius:     8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.gold { color: var(--gold); }
.text-gray { color: var(--text-gray); }
.text-light { color: var(--text-light); }

/* --- Divider --------------------------------------------- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0 24px;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  max-width: 100%;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,160,46,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* --- Sections -------------------------------------------- */
section {
  padding: 96px 0;
}
section:nth-child(odd) { background: var(--bg-dark); }
section:nth-child(even) { background: var(--bg-card); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .divider { margin: 16px auto 24px; }

/* --- Navigation ------------------------------------------ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}
#navbar.scrolled {
  background: rgba(10,13,20,0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 32px;
}

.nav-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* Logo centralizada — esconde links e CTA no header, só aparecem no overlay */
.nav-links { display: none; }
.nav-cta { display: none; }

/* Hambúrguer fixo à direita — sempre visível */
.nav-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta .btn { padding: 10px 24px; font-size: 0.8rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-white);
  transition: all var(--transition);
}

/* Menu overlay — tela cheia transparente */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 8, 16, 0.97);
  backdrop-filter: blur(6px);
  gap: 2rem;
  z-index: 999;
  padding: 0;
  border: none;
}
.nav-links.open li a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color .2s;
}
.nav-links.open li a:hover { color: var(--gold); }
.nav-links.open li a.gold { color: var(--gold); }

/* CTA no menu overlay */
.nav-cta.open {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 80px; left: 0; right: 0;
  background: transparent;
  padding: 0 24px;
  z-index: 999;
}
.nav-cta.open .btn-primary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .85rem 2.5rem;
  border-radius: .25rem;
}
.nav-cta.open .btn-primary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Fechar com × — o toggle vira × quando aberto */
#navbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
#navbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------------ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #060810;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1600&q=80');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,8,16,0.88) 0%, rgba(6,10,20,0.80) 50%, rgba(8,12,22,0.75) 100%);
}

.hero-content { max-width: 680px; position: relative; z-index: 1; }
.hero-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--gold);
}

.hero-content h1 {
  margin-bottom: 24px;
}
.hero-content h1 span { color: var(--gold); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-phrase {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-light);
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin-bottom: 40px;
  background: rgba(201,160,46,0.05);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color var(--transition);
}
.hero-stat-card:hover { border-color: var(--border-hover); }
.hero-stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.hero-stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-card .stat-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Our Role -------------------------------------------- */
#nosso-papel {
  background: var(--bg-card);
}
.nosso-papel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.principle-list {
  list-style: none;
  margin-top: 28px;
}
.principle-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.95rem;
}
.principle-list li:last-child { border-bottom: none; }
.principle-list li::before {
  content: '';
  display: inline-block;
  min-width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(201,160,46,0.08), rgba(201,160,46,0.02));
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-top: 24px;
}
.highlight-box p {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
}

/* --- Solutions Journey ----------------------------------- */
#solucoes { background: var(--bg-dark); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}

.solution-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201,160,46,0.08) 0%, var(--bg-card) 50%);
}

.badge-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.solution-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin: 16px 0 4px;
}
.plan-price-note {
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  margin: 20px 0 28px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  min-width: 16px;
  margin-top: 1px;
}

.plan-access {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-bottom: 24px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  border-left: 2px solid var(--gold-dim);
}

/* ── Plan feature highlight (dourado) ── */
.plan-feature-highlight {
  color: var(--text-white) !important;
  font-weight: 500;
}
.plan-feature-highlight::before {
  content: '★' !important;
  color: var(--gold) !important;
}

/* ── Savings.Club tooltip ── */
.savings-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(201,160,46,0.15);
  border: 1px solid rgba(201,160,46,0.3);
  color: var(--gold);
  font-size: .65rem;
  font-weight: 700;
  cursor: help;
  margin-left: 4px;
  position: relative;
  text-decoration: none;
  font-style: normal;
  vertical-align: middle;
}
.savings-tip:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2030;
  color: var(--text-light);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  max-width: 240px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.footnotes {
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.7;
}
.footnotes p { margin-bottom: 4px; }

/* --- Panama / International ------------------------------- */
#internacional { background: var(--bg-card); }

.international-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.jurisdicao-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  margin-top: 24px;
}
.jurisdicao-card h4 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1rem;
}
.jurisdicao-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- Savings Club ---------------------------------------- */
#savings-club { background: var(--bg-dark); }

.savings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.comparison-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.comparison-table .table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.comparison-table .col-head {
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gray);
}
.comparison-table .col-head.gold { color: var(--gold); }

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.table-row:last-child { border-bottom: none; }
.table-cell {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.table-cell.label-cell {
  font-weight: 600;
  color: var(--text-gray);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table-cell.positive { color: var(--gold); font-weight: 600; }
.table-cell.negative { color: #E05555; }

.savings-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.asset-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-light);
  background: rgba(255,255,255,0.03);
}

/* --- VT Markets ------------------------------------------ */
#vt-markets { background: var(--bg-card); }

.vt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.platform-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color var(--transition);
}
.platform-item:hover { border-color: var(--border-hover); }
.platform-item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-white);
}
.platform-item p {
  font-size: 0.78rem;
  color: var(--text-gray);
}

.risk-disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(224,85,85,0.06);
  border: 1px solid rgba(224,85,85,0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #C0A0A0;
  line-height: 1.6;
}

.vt-logo-area {
  text-align: left;
  padding: 20px 22px 16px;
}
.vt-logo-area img {
  max-height: 44px;
  margin: 0 0 10px;
  filter: brightness(1.1);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.market-item {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.market-icon { color: var(--gold); font-size: 1rem; }

/* --- Partners Ecosystem ---------------------------------- */
#ecossistema { background: var(--bg-dark); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.partner-card .partner-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.partner-card h4 {
  font-size: 1rem;
  color: var(--text-white);
}
.partner-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  flex: 1;
}
.partner-role {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.partner-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.partner-link {
  font-size: 0.78rem;
  color: var(--gold-dim);
  transition: color var(--transition);
}
.partner-link:hover { color: var(--gold); }
.partner-link-lp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(180,140,60,0.1);
  border: 1px solid rgba(180,140,60,0.25);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all var(--transition);
}
.partner-link-lp:hover {
  background: rgba(180,140,60,0.2);
  border-color: var(--gold);
  color: var(--gold);
}

/* --- Para Quem ------------------------------------------- */
#para-quem { background: var(--bg-card); }

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.profile-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.profile-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,160,46,0.1);
  border: 1px solid rgba(201,160,46,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background var(--transition), border-color var(--transition);
}
.profile-icon i {
  font-size: 1.2rem;
  color: var(--gold);
}
.profile-card:hover .profile-icon {
  background: rgba(201,160,46,0.18);
  border-color: rgba(201,160,46,0.5);
}
.profile-card h4 { font-size: 0.92rem; color: var(--text-white); font-weight: 600; line-height: 1.3; }

.ideal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}

.ideal-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.ideal-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.ideal-box.positive h4 { color: var(--gold); }
.ideal-box.negative h4 { color: #E05555; }

.ideal-box ul {
  list-style: none;
}
.ideal-box ul li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  gap: 10px;
}
.ideal-box ul li:last-child { border-bottom: none; }
.ideal-box.positive ul li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.ideal-box.negative ul li::before { content: '✗'; color: #E05555; }

/* --- Diferenciais ---------------------------------------- */
#diferenciais { background: var(--bg-dark); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.diff-item {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  transition: all var(--transition);
}
.diff-item:hover {
  border-color: var(--border-hover);
  background: linear-gradient(160deg, rgba(201,160,46,0.05), var(--bg-card));
}
.diff-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201,160,46,0.15);
  line-height: 1;
  margin-bottom: 8px;
}
.diff-item h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-white);
}
.diff-item p {
  font-size: 0.87rem;
  color: var(--text-gray);
  line-height: 1.65;
}

/* --- Como Começar ---------------------------------------- */
#como-comecar { background: var(--bg-card); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
}

.step-item {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  color: var(--gold);
  margin: 0 auto 20px;
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}
.step-item h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-white);
}
.step-item p {
  font-size: 0.82rem;
  color: var(--text-gray);
}

/* --- FAQ ------------------------------------------------- */
#faq { background: var(--bg-dark); }

.faq-list { margin-top: 48px; max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-white);
  transition: color var(--transition);
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  min-width: 24px; height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold);
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--gold); color: var(--bg-dark); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* --- Utility classes (mobile helpers) -------------------- */
.flex-wrap-mobile { flex-wrap: wrap; }
.overflow-hidden { overflow: hidden; }

/* Garante que imagens em cards não causem overflow */
.partner-card img,
.solution-card img { max-width: 100%; height: auto; }

/* Contexto bar mobile */
.sc-context-bar { flex-wrap: wrap; gap: 12px; }

/* --- CTA Final ------------------------------------------- */
#cta-final {
  background: linear-gradient(135deg, #0A0D14 0%, #111820 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,160,46,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 20px; }
.cta-inner p { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 40px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* --- Footer ---------------------------------------------- */
footer {
  background: #060810;
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  object-position: left;
  margin-bottom: 18px;
  filter: brightness(1.05);
}
.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-gray);
  line-height: 1.75;
  max-width: 300px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-gray);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-gray);
  line-height: 1.7;
}
.footer-legal p { margin-bottom: 8px; }

.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span {
  font-size: 0.78rem;
  color: #555;
}

/* --- Broker Banner --------------------------------------- */
.broker-banner {
  background: linear-gradient(90deg, rgba(201,160,46,0.1), rgba(201,160,46,0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}
.broker-banner-text h3 { font-size: 1.2rem; margin-bottom: 6px; }
.broker-banner-text p { font-size: 0.9rem; color: var(--text-gray); }

/* --- Animations ------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .nosso-papel-grid,
  .international-grid,
  .savings-grid,
  .vt-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-visual { display: none; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .broker-banner { padding: 24px 28px; gap: 20px; }
}

/* ============================================================
   RESPONSIVE — MOBILE GRANDE (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  /* Base */
  .container { padding: 0 16px; }
  section { padding: 72px 0; }

  /* Títulos */
  h1 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  /* Navbar */
  .nav-logo img { height: 48px; }

  /* Hero */
  #hero { padding: 100px 0 60px; min-height: 90vh; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-phrase { font-size: 0.85rem; padding: 10px 16px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Soluções */
  .solutions-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .solution-card { padding: 24px 18px; }
  .plan-price { font-size: 1.6rem; }

  /* Grids 2 colunas → 1 */
  .nosso-papel-grid,
  .international-grid,
  .savings-grid,
  .vt-grid,
  .ideal-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Parceiros */
  .partners-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .partner-card { padding: 22px 18px; }

  /* Perfis */
  .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .profile-card { padding: 20px 14px; }

  /* Diferenciais */
  .diff-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .diff-item { padding: 24px 20px; }

  /* Passos */
  .steps-row { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .broker-banner { flex-direction: column; text-align: center; padding: 24px; }

  /* Tabelas comparativas */
  .comparison-table .table-header,
  .table-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .table-cell, .col-head { padding: 10px 10px; font-size: 0.78rem; }

  /* Markets / Platforms */
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .platforms-grid { grid-template-columns: 1fr 1fr; }

  /* Buttons — evita overflow horizontal */
  .btn { white-space: normal; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ============================================================
   RESPONSIVE — MOBILE PEQUENO (≤ 480px)
============================================================ */
@media (max-width: 480px) {
  /* Base */
  .container { padding: 0 14px; }
  section { padding: 56px 0; }

  /* Soluções — 1 coluna */
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { padding: 22px 16px; }

  /* Parceiros — 1 coluna */
  .partners-grid { grid-template-columns: 1fr; }

  /* Perfis — 1 coluna */
  .profiles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Diferenciais — 1 coluna */
  .diff-grid { grid-template-columns: 1fr; }

  /* Passos — 1 coluna */
  .steps-row { grid-template-columns: 1fr; gap: 16px; }

  /* Footer — 1 coluna */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand p { max-width: 100%; }

  /* Markets / Platforms — 1 coluna */
  .markets-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }

  /* Tabela comparativa — layout mais compacto */
  .comparison-table .table-header,
  .table-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .table-cell, .col-head { padding: 8px 8px; font-size: 0.72rem; }

  /* Seção hero */
  #hero { padding: 90px 0 52px; }
  .hero-tagline { font-size: 0.65rem; }
  .hero-ctas .btn { padding: 13px 20px; font-size: 0.82rem; }

  /* Ideal grid — 1 coluna */
  .ideal-grid { grid-template-columns: 1fr; gap: 16px; }

  /* FAQ — aumenta área de toque */
  .faq-question { padding: 18px 0; font-size: 0.9rem; }

  /* Section header */
  .section-header { margin-bottom: 36px; }

  /* Broker banner */
  .broker-banner { padding: 20px 16px; gap: 16px; }
  .broker-banner-text h3 { font-size: 1rem; }

  /* Botões inline em seções específicas */
  [style*="display:flex"][style*="gap:12px"],
  [style*="display:flex"][style*="gap:1rem"] {
    flex-wrap: wrap !important;
  }

  /* Grids RC saúde / copy trading inline */
  .vt-grid [style*="display:flex;gap:1rem"],
  [style*="display:flex;gap:1rem;flex-wrap:wrap"] {
    flex-direction: column;
  }
  .vt-grid [style*="display:flex;gap:1rem"] .btn,
  [style*="display:flex;gap:1rem;flex-wrap:wrap"] .btn {
    width: 100%;
    justify-content: center;
  }
}
