/* Site do Portfolio Investimentos — Bootstrap 5.3 com um estilo inspirado em firefox.com:
   paleta «fogo» (amarelo → laranja → rosa) sobre roxo fumado e secções creme, títulos grandes e pesados,
   etiquetas em maiúsculas, cartões muito arredondados e botões em pílula.
   As secções escuras usam o tema «Purple» da aplicação (#272236 / #312B44). */

:root {
  --fx-night: #1d1830;
  --fx-purple: #272236;
  --fx-surface: #312b44;
  --fx-surface-2: #3a3350;
  --fx-cream: #fff7ec;
  --fx-cream-2: #fdebd6;
  --fx-ink: #20123a;
  --fx-blue: #0d6efd;
  --fx-fire: linear-gradient(90deg, #9ec5fe 0%, #6ea8fe 45%, #3d8bfd 100%);
  --fx-fire-soft: linear-gradient(135deg, rgba(110, 168, 254, .28), rgba(13, 110, 253, .38));
  --fx-radius: 1.5rem;
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.pm-purple[data-bs-theme="dark"] {
  --bs-body-bg: #272236;
  --bs-body-bg-rgb: 39, 34, 54;
  --bs-tertiary-bg: #312b44;
  --bs-tertiary-bg-rgb: 49, 43, 68;
  --bs-secondary-bg: #3a3350;
  --bs-secondary-bg-rgb: 58, 51, 80;
  --bs-border-color: #463d5f;
  --bs-border-color-translucent: rgba(255, 255, 255, .12);
  --bs-emphasis-color-rgb: 255, 255, 255;
  color-scheme: dark;
}
html.pm-purple[data-bs-theme="dark"] .modal { --bs-modal-bg: #272236; }
html.pm-purple[data-bs-theme="dark"] .accordion { --bs-accordion-bg: #312b44; --bs-accordion-active-bg: #3a3350;
  --bs-accordion-border-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Ao clicar num link do menu (#funcionalidades, #apoiar, #faq), o scroll salta o espaço vazio do topo da secção:
   o título fica logo abaixo da barra de navegação, com 1,5rem de margem */
#funcionalidades, .section[id] { scroll-margin-top: calc(1.5rem - clamp(4rem, 9vw, 7.5rem)); }
body { -webkit-font-smoothing: antialiased; }

/* ------------------------------------------------------------ tipografia */
.fx-display { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.6rem, 6vw, 4.75rem); }
.fx-h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(2rem, 4vw, 3.1rem); }
.fx-h3 { font-weight: 750; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.fx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.fx-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
              background: var(--fx-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-fire-text { background: var(--fx-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-cream .fx-eyebrow { background: none; color: #0a58ca; }

/* ------------------------------------------------------------ botões em pílula */
.btn-fire, .btn-ghost { border-radius: 999px; font-weight: 700; padding: .7rem 1.5rem; }
.btn-fire { background: var(--fx-blue); color: #fff; border: 0; box-shadow: 0 .6rem 1.6rem rgba(13, 110, 253, .3); }
.btn-fire:hover, .btn-fire:focus { background: #0b5ed7; color: #fff; transform: translateY(-1px); }
.btn-fire:disabled, .btn-fire.disabled { background: var(--fx-surface-2); color: rgba(255, 255, 255, .55); box-shadow: none; opacity: 1; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.section-cream .btn-ghost { border-color: rgba(32, 18, 58, .3); color: var(--fx-ink); }
.section-cream .btn-ghost:hover { border-color: var(--fx-ink); background: rgba(32, 18, 58, .05); }
.btn-sm.btn-fire, .btn-sm.btn-ghost { padding: .4rem 1rem; }
.btn-lg.btn-fire, .btn-lg.btn-ghost { padding: .9rem 2rem; font-size: 1.1rem; }

/* ------------------------------------------------------------ navegação */
.fx-nav { background: rgba(29, 24, 48, .85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fx-nav .nav-link { font-weight: 600; color: rgba(255, 255, 255, .8); }
.fx-nav .nav-link:hover { color: #fff; }
.fx-brand { font-weight: 800; letter-spacing: -.02em; }

/* ------------------------------------------------------------ secções */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-night { background: var(--fx-night); }
.section-purple { background: var(--fx-purple); }
.section-cream { background: var(--fx-cream); color: var(--fx-ink); }
.section-cream .text-body-secondary { color: #5b4f6e !important; }

/* Herói com brilho de «fogo» por trás da captura */
.fx-hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(2.5rem, 6vw, 5rem); background: var(--fx-night); overflow: hidden; }
.fx-hero .fx-glow { position: relative; margin-top: 4rem; }
.fx-hero .fx-glow::before { content: ""; position: absolute; inset: 8% 5% -10%; background: var(--fx-fire); filter: blur(90px);
                            opacity: .45; border-radius: 50%; z-index: 0; }
.fx-hero .fx-glow img { position: relative; z-index: 1; }

/* Vídeo da aplicação no topo: começa inclinado para trás e endireita-se com o scroll (como em television.run) */
.fx-demo-frame { --demo-progress: 0; position: relative; z-index: 1; transform-origin: top center; will-change: transform;
  transform: perspective(1400px) rotateX(calc(10deg * (1 - var(--demo-progress)))) rotateZ(calc(-2deg * (1 - var(--demo-progress))))
             scale(calc(.88 + .12 * var(--demo-progress))); }
.fx-demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; cursor: default; }

/* Gradiente violeta no topo (página inicial e download): desce do topo e passa por baixo da barra de navegação */
.fx-hero { --fx-top-pad: clamp(1rem, 3vw, 2rem); }
.nav-over .fx-top {
  margin-top: calc(-1 * var(--fx-nav-h, 4.6rem));
  padding-top: calc(var(--fx-top-pad, 3rem) + var(--fx-nav-h, 4.6rem)) !important;
  background:
    radial-gradient(70% 520px at 58% 0, rgba(124, 58, 237, .38) 0%, rgba(124, 58, 237, 0) 100%),
    radial-gradient(40% 400px at 90% 0, rgba(168, 85, 247, .22) 0%, rgba(168, 85, 247, 0) 100%),
    radial-gradient(35% 340px at 8% 0, rgba(79, 70, 229, .14) 0%, rgba(79, 70, 229, 0) 100%),
    linear-gradient(180deg, #120d22 0, #0d0a18 500px, var(--fx-night) 1100px);
}
.fx-nav { transition: background-color .25s ease, border-color .25s ease; }
.nav-over .fx-nav.at-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.nav-over .fx-nav.at-top:has(.navbar-collapse.show, .navbar-collapse.collapsing) { background: rgba(29, 24, 48, .95); }

/* Capturas */
.shot { width: 100%; height: auto; border-radius: 1rem; cursor: zoom-in; background: #212529;
        box-shadow: 0 2rem 4rem rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); }
.section-cream .shot { background: #fff; border-color: rgba(32, 18, 58, .08); box-shadow: 0 2rem 4rem rgba(32, 18, 58, .18); }
.shot-sm { border-radius: .75rem; box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .25); }
.fx-hero .shot { border-radius: 1.25rem; }

/* Cartões de valores (como os de firefox.com: etiqueta, ícone, título, uma linha) */
.fx-card { background: var(--fx-surface); border-radius: var(--fx-radius); padding: 1.75rem; height: 100%;
           border: 1px solid rgba(255, 255, 255, .06); transition: transform .2s ease; }
.fx-card:hover { transform: translateY(-4px); }
.fx-card .fx-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6ea8fe; }
.fx-icon { width: 3rem; height: 3rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center;
           background: var(--fx-fire-soft); font-size: 1.4rem; color: #fff; }
.section-cream .fx-icon { background: var(--fx-cream-2); color: #0a58ca; }
.section-cream .card, .section-cream .fx-card { background: #fff; border-color: rgba(32, 18, 58, .08); }

/* Passos numerados */
.fx-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.fx-steps li { position: relative; padding-left: 4rem; margin-bottom: 1.75rem; counter-increment: step; }
.fx-steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.75rem; height: 2.75rem;
                       border-radius: 50%; background: var(--fx-blue); color: #fff; font-weight: 800;
                       display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.fx-steps h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: .25rem; }

/* Lista com visto */
.check-list { list-style: none; padding-left: 0; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: #3d8bfd;
                         font-size: 1.1rem; }
.section-cream .check-list li::before { color: #0a58ca; }

/* Pílulas das corretoras */
.fx-pill { display: inline-block; border-radius: 999px; padding: .45rem 1rem; font-weight: 600; background: var(--fx-surface);
           border: 1px solid rgba(255, 255, 255, .08); }

/* Bloco de download no fim da página */
.fx-cta { background: var(--fx-blue); color: #fff; border-radius: 2rem; padding: clamp(2.5rem, 6vw, 4.5rem); }
.fx-cta .btn-dark { border-radius: 999px; font-weight: 700; padding: .9rem 2rem; background: #fff; color: var(--fx-blue); border: 0; }
.fx-cta .btn-dark:hover { background: #e7f0ff; color: #0a58ca; }
.fx-cta a.fx-plat { color: #fff; font-weight: 600; text-decoration: none; opacity: .85; }
.fx-cta a.fx-plat:hover { opacity: 1; text-decoration: underline; }

/* Planos, preços e formulários */
.card { background: var(--fx-surface); border-radius: var(--fx-radius); }
.plan-featured { border: 2px solid var(--fx-blue) !important; }
.price { font-size: 2.75rem; font-weight: 800; letter-spacing: -.02em; }
.accordion-item { border-radius: 1rem !important; overflow: hidden; margin-bottom: .6rem; }
.accordion-button { font-weight: 600; }

/* Escolhas da página de download */
.fx-choice + .fx-choice-label, .btn-check + .fx-choice-label { border-radius: 1rem; border: 2px solid rgba(255, 255, 255, .15);
  color: #fff; font-weight: 700; background: var(--fx-surface-2); }
.btn-check:checked + .fx-choice-label { background: var(--fx-blue); color: #fff; border-color: transparent; }
.btn-check:focus-visible + .fx-choice-label { outline: 3px solid #6ea8fe; outline-offset: 2px; }
.fx-note { background: var(--fx-fire-soft); border-radius: 1.25rem; padding: 1.25rem 1.4rem; border: 1px solid rgba(110, 168, 254, .35); }

.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 999px; }
.btn-google:hover { background: #f2f2f2; color: #1f1f1f; }
.btn-apple { background: #000; color: #fff; border: 1px solid #000; border-radius: 999px; }
.btn-apple:hover { background: #1a1a1a; color: #fff; }
.token-box { font-family: var(--bs-font-monospace); font-size: .8rem; word-break: break-all; }

/* Rodapé */
.fx-footer { background: var(--fx-night); border-top: 1px solid rgba(255, 255, 255, .06); }
.fx-footer h2 { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.fx-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.fx-footer a:hover { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-card, .btn-fire { transition: none; }
  .fx-card:hover, .btn-fire:hover { transform: none; }
  .fx-demo-frame { --demo-progress: 1 !important; }
}
