/* ===========================================================
   TopTrade · site de captação
   Tema escuro (padrão, como o painel) e claro. Para editar as
   cores, mexa só nas variáveis abaixo.
   =========================================================== */
:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #0b0b0d;
  --bg-alt: #101013;
  --panel: #151518;
  --panel-2: #1b1b20;
  --text: #f3efe6;
  --muted: #a7a39a;
  --border: rgba(243, 239, 230, 0.12);
  --border-2: rgba(243, 239, 230, 0.22);
  --btn-bg: #f3efe6;
  --btn-ink: #121214;
  --accent: #ff8a3d;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  --r-lg: 20px;
  --r-md: 14px;
  --r-btn: 999px;
  --nav: 72px;
  --gut: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-alt: #efece5;
  --panel: #ffffff;
  --panel-2: #f1eee8;
  --text: #151412;
  --muted: #5f5b53;
  --border: rgba(21, 20, 18, 0.12);
  --border-2: rgba(21, 20, 18, 0.24);
  --btn-bg: #151412;
  --btn-ink: #f6f4ef;
  --accent: #d9560b;
  --shadow: 0 24px 60px -34px rgba(21, 20, 18, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }

/* ---------- peças comuns ---------- */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-ink); }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(11, 11, 13, 0.55); color: #f3efe6; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r-btn); font-size: 16px; font-weight: 500; white-space: nowrap; transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--secondary:hover { border-color: var(--text); }
.hero .btn--secondary { color: #f3efe6; border-color: rgba(243, 239, 230, 0.35); background: rgba(11, 11, 13, 0.35); }
.hero .btn--primary { background: #f3efe6; color: #121214; }
.arrow { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translate(3px, -3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); transition: transform 0.25s var(--ease), border-color 0.25s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--border-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: block; }

/* ---------- topo ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav); background: var(--bg); border-bottom: 1px solid var(--border); }
.nav__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand img { height: 40px; width: auto; }
:root[data-theme="light"] .brand img, :root[data-theme="light"] .footer .brand img { filter: brightness(0) opacity(0.88); }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.2s, background-size 0.35s var(--ease); padding-bottom: 2px; }
.nav__links a:hover { color: var(--text); background-size: 100% 1px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; }
.nav__cta { min-height: 44px; }
.sheet { position: fixed; inset: var(--nav) 0 0 0; z-index: 19; background: var(--bg); padding: 24px; overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a:not(.btn) { padding: 16px 0; font-size: 24px; letter-spacing: -0.01em; border-bottom: 1px solid var(--border); }
.sheet .btn { margin-top: 24px; width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; padding: calc(var(--nav) + 48px) 0 56px; overflow: clip; background: #0b0b0d; color: #f3efe6; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.62) 42%, rgba(8, 8, 10, 0.12) 78%), linear-gradient(0deg, rgba(8, 8, 10, 0.75) 0%, transparent 38%); }
.hero__in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 56px; }
.hero__text { max-width: 760px; }
.hero h1 { margin: 24px 0 24px; font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 56ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(243, 239, 230, 0.82); }
.lead--ink { color: var(--text); }
.channels { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 28px; border-top: 1px solid rgba(243, 239, 230, 0.18); font-size: 15px; font-weight: 500; color: rgba(243, 239, 230, 0.86); }
.channels li { display: inline-flex; align-items: center; gap: 10px; }
.channels svg { width: 20px; height: 20px; fill: var(--c); }

/* entrada do hero (uma vez, ao carregar) */
.hero[data-enter] .hero__text > *, .hero[data-enter] .hero__rate { opacity: 0; transform: translateY(18px); animation: enter 0.9s var(--ease) forwards; }
.hero[data-enter] .hero__text > :nth-child(2) { animation-delay: 0.08s; }
.hero[data-enter] .hero__text > :nth-child(3) { animation-delay: 0.16s; }
.hero[data-enter] .hero__text > :nth-child(4) { animation-delay: 0.24s; }
.hero[data-enter] .hero__rate { animation-delay: 0.36s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- faixa de clientes ---------- */
.band { padding: 40px 0 48px; border-bottom: 1px solid var(--border); }
.band__label { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: slide 36s linear infinite; }
.ticker:hover .ticker__track, .filmstrip:hover .filmstrip__track { animation-play-state: paused; }
.ticker li { flex: none; display: flex; align-items: center; height: 56px; }
.ticker img { height: 44px; width: auto; }
.ticker .slot { padding: 0 20px; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--muted); font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }
.head { margin-bottom: 48px; max-width: 920px; }
.head--tight { margin-bottom: 28px; }
h2 { font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }

.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; padding: 32px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card h3 { margin: 20px 0 12px; }
.card p { color: var(--muted); }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ticks { margin: 24px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-50%); }

/* trabalho: faixa de criativos */
.filmstrip { overflow: hidden; margin-top: 16px; padding-bottom: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.filmstrip__track { display: flex; gap: 20px; width: max-content; animation: slide 60s linear infinite; padding: 12px 0; }
.filmstrip li { flex: none; width: 300px; aspect-ratio: 1; border-radius: 24px 24px 12px 12px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.filmstrip li:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.filmstrip li:hover img { transform: scale(1.03); }

/* processo */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: block; font-size: 14px; font-weight: 500; color: var(--accent); }
.steps h3 { margin-top: 48px; }

/* painel */
.deck { display: grid; gap: 16px; }
.gcard { position: relative; display: flex; align-items: center; gap: 20px; padding: 24px 28px; min-height: 108px; border-radius: var(--r-lg); color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--a), var(--b)); border: 1px solid rgba(255, 255, 255, 0.14); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.gcard:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -22px var(--a); }
.gcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); }
.gcard__mark { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 13px; fill: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.26); }
.gcard b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.gcard span { font-size: 14px; opacity: 0.8; }

/* resultados */
.cases { display: grid; gap: 24px; }
.case { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 40px; align-items: center; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform 0.35s var(--ease), border-color 0.35s; }
.case:hover { transform: translateY(-2px); border-color: var(--border-2); }
.case__photo { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); }
blockquote { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -0.01em; max-width: 52ch; }
.case__who { margin-top: 24px; display: grid; }
.case__who b { font-weight: 500; }
.case__who span, .stat span { color: var(--muted); font-size: 14px; }
.stat { display: grid; gap: 4px; padding: 28px; border-radius: var(--r-md); background: var(--panel-2); }
.stat strong { font-size: clamp(40px, 4vw, 56px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.stat b { font-weight: 500; margin-top: 12px; }

/* contato */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 500; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 12px; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
textarea { resize: vertical; min-height: 120px; }
input:hover, textarea:hover { border-color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.form .btn { justify-self: start; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--muted); }

/* rodapé */
.footer { padding: 96px 0 40px; border-top: 1px solid var(--border); }
.brand--lg img { height: 72px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 64px 0; }
.footer h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.footer .link { display: flex; width: fit-content; margin-bottom: 10px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* ---------- telas menores ---------- */
@media (max-width: 1100px) {
  :root { --gut: 48px; }
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: 160px minmax(0, 1fr); }
  .case__photo { width: 160px; }
  .stat { grid-column: 1 / -1; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 40px; }
  .section { padding: 96px 0; }
}
@media (max-width: 640px) {
  :root { --gut: 24px; --nav: 64px; }
  .nav__cta { display: none; }
  .brand img { height: 34px; }
  .hero { padding-bottom: 32px; }
  .hero__in { gap: 32px; }
  .btn-row .btn { width: 100%; }
  .section { padding: 72px 0; }
  .head { margin-bottom: 32px; }
  .card { padding: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps h3 { margin-top: 28px; }
  .case { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case__photo { width: 100%; aspect-ratio: 1; }
  .filmstrip li { width: 240px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); margin: 48px 0; }
  .form .btn { width: 100%; justify-self: stretch; }
}

/* quem pediu menos movimento: tudo parado, nada escondido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero[data-enter] .hero__text > *, .hero[data-enter] .hero__rate { opacity: 1; transform: none; }
  .ticker, .filmstrip { overflow-x: auto; }
}
