/* ==========================================================================
   Finx Wallet — Landing Page
   Identidade visual alinhada ao app:
   fundo slate-950 + gradientes radiais, acento índigo→roxo, painéis "glass",
   fonte Inter.
   ========================================================================== */

:root {
  --bg: #020617;
  --bg-soft: #0b1120;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --purple: #9333ea;
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --teal: #14b8a6;
  --sky: #0ea5e9;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.35);
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.18) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.14) 0, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #a5b4fc, #c084fc 60%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------ Botões ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.40);
}

.btn-primary:hover {
  box-shadow: 0 0 34px rgba(99, 102, 241, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  background: var(--glass);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ------------------------------ Navbar ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

.brand span {
  background: linear-gradient(90deg, var(--indigo-light), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding: 92px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  color: var(--emerald);
}

/* Mockup do dashboard (100% CSS, sem imagens) */
.mock {
  position: relative;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 20px;
  animation: float 7s ease-in-out infinite;
}

.mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.55),
      rgba(147, 51, 234, 0.15) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mock-title {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mock-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.kpi label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 700;
}

.kpi b {
  display: block;
  font-size: 1.32rem;
  font-weight: 800;
  margin-top: 4px;
}

.kpi small {
  font-size: 0.72rem;
  color: var(--emerald);
  font-weight: 600;
}

.c-emerald { color: var(--emerald); }
.c-amber { color: var(--amber); }
.c-indigo { color: var(--indigo-light); }
.c-teal { color: var(--teal); }

.mock-chart {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.mock-chart .mock-title {
  margin-bottom: 14px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
}

.bars .bar {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--indigo-light), var(--indigo));
  opacity: 0.9;
  animation: grow 1.1s ease forwards;
  transform-origin: bottom;
}

.bars .bar.g { background: linear-gradient(180deg, #34d399, var(--emerald)); }
.bars .bar.r { background: linear-gradient(180deg, #fb7185, var(--rose)); }

.mock-legend {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

/* blobs decorativos */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.blob-1 { width: 420px; height: 420px; background: #4f46e5; top: -120px; left: -120px; }
.blob-2 { width: 360px; height: 360px; background: #9333ea; top: 40px; right: -140px; opacity: 0.3; }

/* ------------------------------ Faixa / logos ------------------------------ */
.strip {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip p {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  font-weight: 700;
}

.strip-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
}

/* ------------------------------ Seções ------------------------------ */
section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-head .eyebrow {
  color: var(--indigo-light);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Três pilares */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar {
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  background: var(--glass-hover);
}

.pillar.personal:hover { border-color: rgba(244, 63, 94, 0.45); }
.pillar.company:hover { border-color: rgba(16, 185, 129, 0.45); }
.pillar.project:hover { border-color: rgba(99, 102, 241, 0.45); }

.pillar .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.pillar.personal .ico { background: rgba(244, 63, 94, 0.12); color: var(--rose); }
.pillar.company .ico { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }
.pillar.project .ico { background: rgba(99, 102, 241, 0.12); color: var(--indigo-light); }

.pillar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pillar ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 9px;
}

.pillar li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 24px;
  position: relative;
}

.pillar li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* Recursos (grid) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  background: var(--glass-hover);
  border-color: var(--border-strong);
}

.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-light);
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 30px;
}

.step .num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: var(--shadow-glow);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Split / destaque (PWA + patrimônio) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.18;
}

.split p {
  color: var(--muted);
  margin-bottom: 18px;
}

.split ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.split li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.96rem;
}

.split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: inset 0 0 0 5px rgba(16, 185, 129, 0.0);
}

.split li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 3px;
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 800;
}

.card-visual {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(147, 51, 234, 0.10));
  border: 1px solid var(--border-strong);
  padding: 30px;
  display: grid;
  gap: 14px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.mini-row span {
  font-size: 0.88rem;
  color: var(--muted);
}

.mini-row b {
  font-size: 1rem;
  font-weight: 700;
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
  background: var(--glass-hover);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--indigo-light);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0 0 18px;
}

/* CTA final */
.cta {
  position: relative;
  text-align: center;
  border-radius: 28px;
  padding: 64px 32px;
  background:
    radial-gradient(at 20% 20%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(at 80% 80%, rgba(147, 51, 234, 0.20), transparent 55%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.cta .hero-actions {
  justify-content: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--muted-2);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Animações */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes grow {
  from { transform: scaleY(0.15); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.95; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------ Responsivo ------------------------------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero p.lead { max-width: none; }
  .features,
  .pillars,
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn-secondary { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .features,
  .pillars,
  .steps { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }

  /* menu mobile aberto */
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 22px 24px;
    gap: 20px;
    align-items: flex-start;
  }
}
