/* ============================================================
   Traderfy.bot — Foundation
   Design tokens, reset, typography e componentes compartilhados.
   Todas as seções herdam daqui. Não edite estilos de seção aqui.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #001f54;
  --navy-deep: #00163d;
  --navy-soft: #0a2a63;      /* cartões sobre navy */
  --navy-line: rgba(255, 255, 255, 0.12);

  /* Neutros (sobre branco) */
  --white: #ffffff;
  --cloud: #f5f7fc;          /* seções claras alternadas */
  --ink: #0a1330;            /* títulos */
  --body: #434d66;           /* texto corrido */
  --muted: #6b7488;          /* legendas */
  --line: #e7eaf3;           /* bordas */
  --tint: #e9eefb;           /* chips / superfícies suaves */
  --ring: rgba(0, 31, 84, 0.10);

  /* Tipografia */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Escala de tipo (fluida) */
  --t-eyebrow: 0.8rem;
  --t-small: 0.9rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --t-h3: clamp(1.25rem, 2vw, 1.5rem);
  --t-h2: clamp(1.9rem, 3.5vw, 2.75rem);
  --t-display: clamp(2.6rem, 6vw, 4.25rem);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(0, 31, 84, 0.28);
  --shadow-soft: 0 10px 30px -18px rgba(0, 31, 84, 0.22);

  /* Espaçamento de seção */
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

/* ---------- Eyebrow (com marcador quadrado — assinatura) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--navy);
  transform: rotate(0deg);
  /* recorte escalonado que ecoa o ícone da marca */
  clip-path: polygon(0 35%, 65% 35%, 65% 0, 100% 0, 100% 65%, 35% 65%, 35% 100%, 0 100%);
}
.section--navy .eyebrow { color: #fff; }
.section--navy .eyebrow::before { background: #fff; }

/* ---------- Section heading ---------- */
.section-head { max-width: 640px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--t-h2); margin-top: 1rem; }
.section-head p { margin-top: 1rem; font-size: var(--t-lead); color: var(--muted); }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 11px;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { filter: brightness(1.12); }

.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { filter: brightness(0.95); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--ring); }
.btn--ghost:hover { border-color: var(--navy); }
.section--navy .btn--ghost { color: #fff; border-color: var(--navy-line); }
.section--navy .btn--ghost:hover { border-color: #fff; }

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Square motif utilities ---------- */
/* pequeno marcador quadrado reutilizável (listas, dividers) */
.sq {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--navy);
  clip-path: polygon(0 35%, 65% 35%, 65% 0, 100% 0, 100% 65%, 35% 65%, 35% 100%, 0 100%);
  flex: none;
}
.section--navy .sq { background: #fff; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Focus visível (quality floor) ---------- */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--navy) 45%, transparent); outline-offset: 2px; }
.section--navy :focus-visible { outline-color: rgba(255, 255, 255, 0.7); }


/* ===== navbar ===== */
/* ============================================================
   Traderfy.bot — Navbar (#topo)
   Escopado sob #topo. Reutiliza tokens/classes de foundation.css.
   ============================================================ */

#topo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

#topo .nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

/* ---------- Logo (dois sobrepostos, troca por opacidade) ---------- */
#topo .nav__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
}
#topo .nav__logo {
  height: 34px;
  width: auto;
  transition: opacity 0.28s ease;
}
#topo .nav__logo--navy {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
#topo.is-scrolled .nav__logo--white { opacity: 0; }
#topo.is-scrolled .nav__logo--navy { opacity: 1; }

/* ---------- Menu (links + ações) ---------- */
#topo .nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
#topo .nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
#topo .nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
#topo .nav__links a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

#topo .nav__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
#topo .nav__login {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.4rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}
#topo .nav__login:hover { opacity: 0.78; }

/* CTA: estado transparente = fundo branco + texto navy */
#topo .nav__cta {
  padding: 0.7rem 1.25rem;
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
#topo .nav__cta:hover { filter: brightness(0.94); }

/* ---------- Estado rolado (fundo branco) ---------- */
#topo.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
#topo.is-scrolled .nav__links a { color: var(--body); }
#topo.is-scrolled .nav__links a:hover { color: var(--navy); border-color: var(--navy); }
#topo.is-scrolled .nav__login { color: var(--navy); }
#topo.is-scrolled .nav__cta {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
#topo.is-scrolled .nav__cta:hover { filter: brightness(1.12); }

/* ---------- Hambúrguer ---------- */
#topo .nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin: -0.5rem -0.4rem -0.5rem 0;
  border-radius: 10px;
  flex: none;
}
#topo .nav__toggle-bars {
  display: block;
  width: 24px;
  height: 16px;
  position: relative;
}
#topo .nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: background 0.28s ease, transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
#topo .nav__toggle-bars span:nth-child(1) { top: 0; }
#topo .nav__toggle-bars span:nth-child(2) { top: 7px; }
#topo .nav__toggle-bars span:nth-child(3) { top: 14px; }
#topo.is-scrolled .nav__toggle-bars span { background: var(--navy); }

/* hambúrguer -> X quando aberto */
#topo.is-open .nav__toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
#topo.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
#topo.is-open .nav__toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ============================================================
   Mobile (< 860px)
   ============================================================ */
@media (max-width: 859.98px) {
  /* fundo branco sólido p/ legibilidade do hambúrguer */
  #topo { background: var(--white); box-shadow: var(--shadow-soft); }
  #topo .nav__logo--white { opacity: 0; }
  #topo .nav__logo--navy { opacity: 1; }
  #topo .nav__toggle-bars span { background: var(--navy); }

  #topo .nav__toggle { display: inline-flex; align-items: center; }

  /* painel branco que desce abaixo da barra */
  #topo .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.3s, padding 0.3s ease;
  }
  #topo.is-open .nav__menu {
    max-height: 80vh;
    padding-block: 0.75rem 1.25rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.24s ease, visibility 0s, padding 0.34s ease;
  }

  #topo .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  #topo .nav__links a {
    color: var(--ink);
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  #topo .nav__links a:hover { color: var(--navy); border-color: var(--line); }

  #topo .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
  }
  #topo .nav__login {
    color: var(--navy);
    text-align: center;
    padding: 0.6rem;
  }
  #topo .nav__cta {
    width: 100%;
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
  }
}

@media (prefers-reduced-motion: reduce) {
  #topo,
  #topo .nav__logo,
  #topo .nav__menu,
  #topo .nav__toggle-bars span { transition: none; }
}


/* ===== hero ===== */
/* ============================================================
   Traderfy.bot — Seção HERO
   Todas as regras escopadas sob #hero.
   ============================================================ */

#hero {
  position: relative;
  overflow: hidden;
  /* navbar fixa (~72px) por cima */
  padding-top: 7rem;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}

/* ---------- Fundo decorativo (quadradinhos brancos suaves) ---------- */
#hero .hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#hero .hero-bg-sq {
  position: absolute;
  background: #fff;
  opacity: 0.05;
  clip-path: polygon(0 35%, 65% 35%, 65% 0, 100% 0, 100% 65%, 35% 65%, 35% 100%, 0 100%);
}
#hero .hero-bg-sq--a { width: 120px; height: 120px; top: 12%; left: -28px; }
#hero .hero-bg-sq--b { width: 70px; height: 70px; top: 64%; left: 16%; opacity: 0.04; }
#hero .hero-bg-sq--c { width: 200px; height: 200px; bottom: -60px; right: 6%; opacity: 0.035; }
#hero .hero-bg-sq--d { width: 54px; height: 54px; top: 22%; right: 30%; opacity: 0.05; }

/* ---------- Grid principal ---------- */
#hero .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* ---------- Coluna esquerda ---------- */
#hero .hero-title {
  font-size: var(--t-display);
  margin-top: 1.4rem;
  max-width: 14ch;
}
#hero .hero-mark {
  position: relative;
  white-space: nowrap;
  font-weight: 700;
}
#hero .hero-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.16em;
  background: repeating-linear-gradient(
    90deg,
    #fff 0,
    #fff 7px,
    transparent 7px,
    transparent 12px
  );
  opacity: 0.85;
  border-radius: 1px;
}

#hero .hero-lead {
  margin-top: 1.5rem;
  font-size: var(--t-lead);
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

#hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

#hero .hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-mono);
}
#hero .hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Coluna direita — assinatura visual ---------- */
#hero .hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

/* quadradinhos flutuantes */
#hero .hero-float {
  position: absolute;
  z-index: 1;
  background: #fff;
  opacity: 0.5;
  clip-path: polygon(0 35%, 65% 35%, 65% 0, 100% 0, 100% 65%, 35% 65%, 35% 100%, 0 100%);
}
#hero .hero-float--1 {
  width: 22px; height: 22px;
  top: 8%; left: 6%;
  opacity: 0.55;
  animation: hero-float 6s ease-in-out infinite;
}
#hero .hero-float--2 {
  width: 14px; height: 14px;
  bottom: 12%; right: 8%;
  opacity: 0.4;
  animation: hero-float 7.5s ease-in-out infinite 0.6s;
}
#hero .hero-float--3 {
  width: 30px; height: 30px;
  bottom: -4%; left: 14%;
  opacity: 0.3;
  animation: hero-float 8.5s ease-in-out infinite 1.2s;
}

/* ---------- Keyframes ---------- */
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
@keyframes hero-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 224, 160, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(94, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 224, 160, 0); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  #hero {
    padding-top: 6.5rem;
  }
  #hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  #hero .hero-title { max-width: 100%; }
  #hero .hero-visual {
    min-height: 320px;
    order: 2;
  }
}

@media (max-width: 520px) {
  #hero .hero-actions .btn { flex: 1 1 auto; }
  #hero .hero-float--3 { display: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  #hero .hero-float {
    animation: none;
  }
}


/* ===== indicadores ===== */
/* ============================================================
   Traderfy.bot — Seção INDICADORES (#numeros)
   Faixa de estatísticas, fundo branco. Escopado sob #numeros.
   ============================================================ */

#numeros {
  background: var(--white);
}

/* ---------- Cabeçalho discreto ---------- */
#numeros .numeros-head {
  max-width: 540px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
#numeros .numeros-head p {
  margin-top: 0.85rem;
  font-size: var(--t-lead);
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Grade de métricas ---------- */
#numeros .numeros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#numeros .numeros-item {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;
}

/* Divisores verticais finos entre colunas (desktop) */
#numeros .numeros-item + .numeros-item::before {
  content: "";
  position: absolute;
  inset-block: clamp(0.5rem, 1.5vw, 1rem);
  inset-inline-start: 0;
  width: 1px;
  background: var(--line);
}

#numeros .numeros-valor {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

#numeros .numeros-rotulo {
  margin-top: 0.7rem;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- Nota discreta ---------- */
#numeros .numeros-nota {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  font-size: var(--t-small);
  color: var(--muted);
}
#numeros .numeros-nota .sq {
  width: 8px;
  height: 8px;
}

/* ---------- Tablet / Mobile: grade 2x2 ---------- */
@media (max-width: 760px) {
  #numeros .numeros-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Anula o divisor genérico; refaz com linhas internas que respeitam 2x2 */
  #numeros .numeros-item + .numeros-item::before {
    content: none;
  }

  /* Divisor vertical apenas entre as colunas (itens à direita: 2º e 4º) */
  #numeros .numeros-item:nth-child(2n)::before {
    content: "";
    position: absolute;
    inset-block: clamp(0.5rem, 3vw, 1rem);
    inset-inline-start: 0;
    width: 1px;
    background: var(--line);
  }

  /* Divisor horizontal entre as duas linhas (itens da linha de baixo: 3º e 4º) */
  #numeros .numeros-item:nth-child(n+3)::after {
    content: "";
    position: absolute;
    inset-inline: clamp(0.75rem, 4vw, 1.5rem);
    inset-block-start: 0;
    height: 1px;
    background: var(--line);
  }
}

/* ---------- Mobile estreito: empilhar mantendo legibilidade ---------- */
@media (max-width: 400px) {
  #numeros .numeros-item {
    padding-inline: 0.75rem;
  }
}


/* ===== recursos ===== */
/* ============================================================
   Traderfy.bot — Seção Recursos
   Escopado sob #recursos. Não redefine tokens nem importa fontes.
   ============================================================ */

#recursos .recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

#recursos .recursos-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#recursos .recursos-card:hover,
#recursos .recursos-card:focus-within {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

#recursos .recursos-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tint);
  margin-bottom: 1.25rem;
}

#recursos .recursos-icon .sq {
  width: 18px;
  height: 18px;
}

#recursos .recursos-card h3 {
  font-size: var(--t-h3);
  margin-bottom: 0.6rem;
}

#recursos .recursos-card p {
  font-size: var(--t-body);
  color: var(--body);
  margin: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 880px) {
  #recursos .recursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  #recursos .recursos-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== como-funciona ===== */
/* ============================================================
   Traderfy.bot — Seção "Como funciona"
   Fundo branco. Escopado sob #como-funciona.
   ============================================================ */

#como-funciona {
  background: var(--white);
}

/* ---------- Grid de passos ---------- */
#como-funciona .cf-steps {
  list-style: none;
  margin: clamp(2.75rem, 5vw, 3.75rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Passo individual ---------- */
#como-funciona .cf-step {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#como-funciona .cf-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
}

#como-funciona .cf-step-title {
  font-size: var(--t-h3);
  margin-top: 0.35rem;
}

#como-funciona .cf-step-text {
  color: var(--body);
  font-size: var(--t-body);
  max-width: 32ch;
}

/* ---------- Conector entre passos (linha + quadradinho) ---------- */
#como-funciona .cf-conn {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* alinha verticalmente ao centro do número grande */
  height: clamp(2.5rem, 5vw, 3.25rem);
  position: relative;
}

#como-funciona .cf-conn::before,
#como-funciona .cf-conn::after {
  content: "";
  width: clamp(1.25rem, 3vw, 3rem);
  height: 2px;
  background: var(--line);
}

#como-funciona .cf-conn .sq {
  margin-inline: 0.55rem;
}

/* ---------- CTA ---------- */
#como-funciona .cf-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  #como-funciona .cf-steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 420px;
    margin-inline: auto;
  }

  #como-funciona .cf-step {
    padding-block: clamp(1.5rem, 5vw, 2rem);
  }

  /* conector vira vertical no empilhamento */
  #como-funciona .cf-conn {
    height: auto;
    width: 100%;
    flex-direction: column;
    padding-block: 0.25rem;
  }

  #como-funciona .cf-conn::before,
  #como-funciona .cf-conn::after {
    width: 2px;
    height: clamp(1rem, 4vw, 1.5rem);
  }

  #como-funciona .cf-conn .sq {
    margin-inline: 0;
    margin-block: 0.45rem;
  }
}


/* ===== prova-social ===== */
/* ============================================================
   Traderfy.bot — Seção Prova Social (Depoimentos)
   Escopado sob #depoimentos. Não redefine tokens nem importa fontes.
   ============================================================ */

#depoimentos .depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

#depoimentos .depoimento-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.8vw, 2.25rem);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#depoimentos .depoimento-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

#depoimentos .depoimento-card figure {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

#depoimentos .depoimento-texto {
  margin: 0;
  flex: 1;
}

#depoimentos .depoimento-texto p {
  font-size: var(--t-body);
  color: var(--body);
  margin: 0;
}

#depoimentos .depoimento-texto p::before { content: "\201C"; }
#depoimentos .depoimento-texto p::after { content: "\201D"; }

/* ---------- Autor + avatar quadrado (assinatura) ---------- */
#depoimentos .depoimento-autor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

#depoimentos .depoimento-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
}

#depoimentos .depoimento-pessoa {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

#depoimentos .depoimento-nome {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
  font-size: 1rem;
}

#depoimentos .depoimento-papel {
  font-size: var(--t-small);
  color: var(--muted);
}

/* ---------- Faixa de corretoras ---------- */
#depoimentos .depoimentos-corretoras {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

#depoimentos .depoimentos-corretoras-titulo {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

#depoimentos .depoimentos-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
}

#depoimentos .depoimento-chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-small);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}

/* ---------- Tablet ---------- */
@media (max-width: 880px) {
  #depoimentos .depoimentos-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  #depoimentos .depoimentos-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== cta-final ===== */
/* ============================================================
   Traderfy.bot — CTA Final
   Seção de conversão, fundo navy, conteúdo centralizado.
   Escopado sob #cta. Não redefine tokens nem importa fontes.
   ============================================================ */

#cta {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  text-align: center;
}

/* Profundidade sutil sobre o navy chapado */
#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% 0%,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
}

/* ---------- Decoração de fundo ---------- */
#cta .cta-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#cta .cta-cluster {
  position: absolute;
  width: clamp(180px, 28vw, 360px);
  opacity: 0.07;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
  animation: cta-float 11s ease-in-out infinite;
}
#cta .cta-cluster--tl {
  top: -4%;
  left: -6%;
  transform: rotate(-8deg);
  animation-delay: -2s;
}
#cta .cta-cluster--br {
  bottom: -8%;
  right: -7%;
  transform: rotate(172deg);
  animation-duration: 13s;
  animation-delay: -5s;
}

/* Quadradinhos brancos espalhados */
#cta .cta-dot {
  position: absolute;
  opacity: 0.5;
  animation: cta-float 9s ease-in-out infinite;
}
#cta .cta-dot--1 { top: 16%; left: 12%; width: 12px; height: 12px; opacity: 0.55; animation-delay: -0.5s; }
#cta .cta-dot--2 { top: 28%; right: 14%; width: 9px;  height: 9px;  opacity: 0.4;  animation-delay: -3s; animation-duration: 12s; }
#cta .cta-dot--3 { bottom: 22%; left: 18%; width: 8px;  height: 8px;  opacity: 0.35; animation-delay: -6s; }
#cta .cta-dot--4 { bottom: 18%; right: 20%; width: 13px; height: 13px; opacity: 0.5;  animation-delay: -1.5s; animation-duration: 10.5s; }
#cta .cta-dot--5 { top: 50%;   left: 7%;   width: 7px;  height: 7px;  opacity: 0.3;  animation-delay: -4s; }
#cta .cta-dot--6 { top: 60%;   right: 9%;  width: 10px; height: 10px; opacity: 0.4;  animation-delay: -7.5s; animation-duration: 11.5s; }

/* ---------- Painel central ---------- */
#cta .container { position: relative; z-index: 1; }

#cta .cta-panel {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

#cta .cta-title {
  font-size: var(--t-display);
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

#cta .cta-lead {
  font-size: var(--t-lead);
  color: rgba(255, 255, 255, 0.74);
  max-width: 52ch;
  margin: 0;
}

/* ---------- Ações ---------- */
#cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

/* ---------- Microlinha de reforço ---------- */
#cta .cta-reassure {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.3rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.66);
}
#cta .cta-reassure .sq { width: 8px; height: 8px; }
#cta .cta-reassure-sep { opacity: 0.4; padding-inline: 0.15rem; }

/* ---------- Animação ---------- */
@keyframes cta-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
/* Mantém a rotação dos clusters durante a flutuação */
@keyframes cta-float-tl {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-8deg) translateY(-10px); }
}
@keyframes cta-float-br {
  0%, 100% { transform: rotate(172deg) translateY(0); }
  50%      { transform: rotate(172deg) translateY(-10px); }
}
#cta .cta-cluster--tl { animation-name: cta-float-tl; }
#cta .cta-cluster--br { animation-name: cta-float-br; }

/* ---------- Responsivo ---------- */
@media (max-width: 560px) {
  #cta .cta-actions { width: 100%; }
  #cta .cta-actions .btn { width: 100%; }
  #cta .cta-cluster { opacity: 0.05; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #cta .cta-cluster,
  #cta .cta-dot {
    animation: none !important;
  }
}


/* ===== footer ===== */
/* ============================================================
   Traderfy.bot — Rodapé (#rodape)
   Fundo navy escuro, texto branco suave. Escopado em #rodape.
   ============================================================ */

#rodape {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

/* ---------- Bloco superior em colunas ---------- */
#rodape .rodape__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Coluna da marca ---------- */
#rodape .rodape__logo {
  display: inline-block;
}
#rodape .rodape__logo img {
  height: 30px;
  width: auto;
}
#rodape .rodape__tagline {
  margin-top: 1.1rem;
  max-width: 30ch;
  font-size: var(--t-small);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}
#rodape .rodape__cluster {
  display: flex;
  gap: 7px;
  margin-top: 1.6rem;
}
#rodape .rodape__cluster .sq {
  width: 11px;
  height: 11px;
  background: #fff;
  opacity: 0.85;
}
#rodape .rodape__cluster .sq:nth-child(2) { opacity: 0.55; }
#rodape .rodape__cluster .sq:nth-child(3) { opacity: 0.35; }
#rodape .rodape__cluster .sq:nth-child(4) { opacity: 0.2; }

/* ---------- Colunas de links ---------- */
#rodape .rodape__title {
  font-family: var(--font-display);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.1rem;
}
#rodape .rodape__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
#rodape .rodape__links a {
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.18s ease;
}
#rodape .rodape__links a:hover {
  color: #fff;
}

/* ---------- Linha inferior ---------- */
#rodape .rodape__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--navy-line);
}
#rodape .rodape__copy {
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.55);
  flex: none;
}
#rodape .rodape__risk {
  flex: 1 1 460px;
  max-width: 620px;
  text-align: right;
  font-size: var(--t-eyebrow);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  #rodape .rodape__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  #rodape .rodape__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  #rodape .rodape__top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  #rodape .rodape__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  #rodape .rodape__risk {
    text-align: left;
  }
}


/* ============================================================
   Seletor de idioma (PT / EN / ES)
   ============================================================ */
#topo .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: 0.15rem;
}
#topo .lang-switch__btn {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
#topo .lang-switch__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
#topo .lang-switch__btn:hover { color: rgba(255, 255, 255, 0.85); }
#topo .lang-switch__btn.is-active { color: #fff; }
#topo .lang-switch__btn.is-active::after { transform: scaleX(1); }

/* estado rolado / claro */
#topo.is-scrolled .lang-switch__btn { color: var(--muted); }
#topo.is-scrolled .lang-switch__btn:hover { color: var(--ink); }
#topo.is-scrolled .lang-switch__btn.is-active { color: var(--navy); }

@media (max-width: 859.98px) {
  /* navbar mobile tem fundo claro -> usa paleta clara */
  #topo .lang-switch {
    align-self: center;
    gap: 0.9rem;
    margin: 0.25rem 0;
  }
  #topo .lang-switch__btn { color: var(--muted); font-size: 0.82rem; }
  #topo .lang-switch__btn:hover { color: var(--ink); }
  #topo .lang-switch__btn.is-active { color: var(--navy); }
}

/* ============================================================
   Páginas legais (Termos de uso / Política de privacidade)
   ============================================================ */
.legal {
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: var(--white);
}
.legal__inner {
  max-width: 760px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.legal__back::before { content: "←"; }
.legal__back:hover { color: var(--navy); }

.legal__head { border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; margin-bottom: 2.2rem; }
.legal__head h1 { font-size: var(--t-h2); }
.legal__updated {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.legal__lead {
  margin-top: 1.2rem;
  font-size: var(--t-lead);
  color: var(--body);
}

.legal__block { margin-top: 2rem; }
.legal__block h2 {
  font-size: var(--t-h3);
  margin-bottom: 0.7rem;
}
.legal__block p {
  color: var(--body);
  line-height: 1.7;
}

/* bloco de divulgação de riscos: destaque */
.legal__block--risk {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.legal__block--risk h2 { margin-top: 0; }


/* ============================================================
   Hero — card com gráfico do TradingView
   ============================================================ */
#hero .hero-card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  padding: 1.15rem 1.2rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#hero .hero-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
}
#hero .hero-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
}
#hero .hero-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ee0a0;
  box-shadow: 0 0 0 0 rgba(94, 224, 160, 0.7);
  animation: hero-pulse 2.4s ease-out infinite;
}
#hero .hero-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
#hero .hero-card__chart {
  height: 230px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
#hero .hero-card__chart .tradingview-widget-container,
#hero .hero-card__chart .tradingview-widget-container__widget {
  height: 100%;
  width: 100%;
}
#hero .hero-card__chart .tradingview-widget-copyright {
  display: none;
}

@media (max-width: 880px) {
  #hero .hero-card { width: min(400px, 92%); }
}
@media (prefers-reduced-motion: reduce) {
  #hero .hero-card__dot { animation: none; }
}
