/* Nify v2 — shared styles */
:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --ink: #f5f5fa;
  --ink-dim: #9090a8;
  --ink-dimmer: #5a5a70;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);
  --surface-rgb: 255, 255, 255;
  --purple: #a78bfa;
  --purple-core: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --nav-bg: rgba(7, 7, 12, 0.55);
  --grain-opacity: 0.035;
  --grain-invert: 0;
  --ambient-1: rgba(139,92,246,0.14);
  --ambient-2: rgba(109,40,217,0.10);
  --ambient-3: rgba(167,139,250,0.08);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f1f3f6;
  --ink: #0a0a14;
  --ink-dim: #525264;
  --ink-dimmer: #8a8a9a;
  --line: rgba(0,0,0,0.08);
  --line-2: rgba(0,0,0,0.14);
  --surface-rgb: 10, 10, 20;
  --purple: #6d28d9;
  --purple-core: #7c3aed;
  --purple-deep: #5b21b6;
  --purple-glow: rgba(124, 58, 237, 0.28);
  --nav-bg: rgba(250, 250, 250, 0.72);
  --grain-opacity: 0.025;
  --grain-invert: 1;
  --ambient-1: rgba(124,58,237,0.09);
  --ambient-2: rgba(91,33,182,0.06);
  --ambient-3: rgba(167,139,250,0.08);
}

html { color-scheme: dark light; }
body, .ambient, .grain, nav.site, footer.site,
.plan, .out-card, .persona-visual,
.inic-dim, .ba-frame, .pipeline-stage, .evidence-block,
.neg-card, .neg-item, .int-chip, .int-visual, .roi-card { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.display { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* AMBIENT */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% -10%, var(--ambient-1), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, var(--ambient-2), transparent 60%),
    radial-gradient(800px 400px at 50% 110%, var(--ambient-3), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; opacity: var(--grain-opacity); pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  filter: invert(var(--grain-invert));
}

/* NAV */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(18px) saturate(1.4);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
nav.site .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
nav.site .brand img { height: 26px; width: auto; display: block; }
nav.site .brand .logo-light { display: none; }
[data-theme="light"] nav.site .brand .logo-dark { display: none; }
[data-theme="light"] nav.site .brand .logo-light { display: block; }
nav.site .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple-core); box-shadow: 0 0 14px var(--purple-glow); }

/* FOOTER navy em tema light */
[data-theme="light"] footer.site {
  background: #171744;
  color: rgba(255,255,255,0.75);
  border-top: 0;
  margin-top: 80px;
}
[data-theme="light"] footer.site .footer-col-title { color: #a78bfa; }
[data-theme="light"] footer.site .footer-brand p,
[data-theme="light"] footer.site .footer-contact address { color: rgba(255,255,255,0.7); }
[data-theme="light"] footer.site .footer-contact a.mail { color: #fff; }
[data-theme="light"] footer.site .footer-contact a.mail:hover { color: #c4b5fd; border-bottom-color: #c4b5fd; }
[data-theme="light"] footer.site .footer-social a {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
[data-theme="light"] footer.site .footer-social a:hover {
  color: #fff; border-color: #a78bfa; background: rgba(167,139,250,0.2);
}
[data-theme="light"] footer.site .footer-bottom {
  border-top-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}
[data-theme="light"] footer.site .footer-bottom a { color: rgba(255,255,255,0.7); }
[data-theme="light"] footer.site .footer-bottom a:hover { color: #fff; }
nav.site .links { display: flex; gap: 32px; }
nav.site .links a { color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
nav.site .links a:hover, nav.site .links a.active { color: var(--ink); }
nav.site .cta {
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
nav.site .cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.12); }

/* THEME TOGGLE */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-dim);
  transition: color .2s, border-color .2s, background .2s, transform .15s;
  margin-right: 12px;
}
.theme-toggle:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* TYPOGRAPHY */
section {
  max-width: 1200px; margin: 0 auto;
  padding: 140px 40px;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--purple); }
h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.98;
}
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 24px;
}
p.lead { color: var(--ink-dim); font-size: 18px; max-width: 640px; line-height: 1.6; }

/* BUTTONS */
.btn-primary, .btn-ghost {
  padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 14px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer; border: 0;
}
.btn-primary {
  background: var(--purple-core); color: #fff;
  box-shadow: 0 12px 40px -8px var(--purple-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -6px var(--purple-glow); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); background: none; }
.btn-ghost:hover { border-color: var(--ink-dim); }

/* FOOTER */
footer.site {
  border-top: 1px solid var(--line);
  color: var(--ink-dim); font-size: 14px;
  margin-top: 40px;
}
.footer-top {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 40px 56px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-col ul.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col ul.footer-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 13px;
  transition: color .2s;
}
.footer-col ul.footer-links a:hover { color: var(--purple); }
.footer-brand .footer-social { margin-top: 22px; }
.footer-brand img { height: 28px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-dim); font-size: 13px; line-height: 1.55; max-width: 280px; }

.footer-col-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple); font-weight: 700; margin-bottom: 14px;
}
.footer-contact address {
  font-style: normal; font-size: 13px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 16px;
}
.footer-contact a.mail {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 13px;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.footer-contact a.mail:hover { color: var(--purple); border-bottom-color: var(--purple); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: color .2s, border-color .2s, background .2s, transform .15s;
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--purple); border-color: var(--purple);
  background: rgba(139,92,246,0.08);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
  padding: 22px 40px 28px;
  color: var(--ink-dimmer); font-size: 12px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px 32px;
  align-items: center;
}
.footer-bottom a { color: var(--ink-dim); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--ink); }
.footer-corp { line-height: 1.6; }
.footer-corp strong { color: var(--ink-dim); font-weight: 600; }
.footer-corp .cnpj-placeholder { color: var(--ink-dimmer); font-style: italic; }
.footer-legal { display: flex; gap: 18px; justify-content: flex-end; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; }
.footer-mini { grid-column: 1 / -1; text-align: center; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; color: var(--ink-dimmer); }

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr; gap: 32px;
    padding: 44px 24px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-legal { justify-content: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* LANGUAGE SWITCHER */
.lang-switcher { position: relative; }
.lang-switcher .lang-current {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink-dim); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.lang-switcher .lang-current:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-1px); }
.lang-switcher .lang-current .lang-flag { font-size: 15px; line-height: 1; }
.lang-switcher .lang-current .lang-code { letter-spacing: 0.04em; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.lang-switcher .lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  z-index: 100;
}
.lang-switcher.open .lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-switcher .lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; background: none;
  color: var(--ink); font-size: 13px; font-weight: 500; text-align: left;
  border-radius: 8px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-switcher .lang-menu button:hover { background: rgba(139,92,246,0.1); color: var(--purple); }
.lang-switcher .lang-menu button.active { background: rgba(139,92,246,0.15); color: var(--purple); }
.lang-switcher .lang-menu button .lang-flag { font-size: 16px; line-height: 1; }
[data-theme="light"] .lang-switcher .lang-menu {
  background: #fff; border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 50px -12px rgba(23,23,68,0.2);
}
@media (max-width: 900px) {
  .lang-switcher .lang-current .lang-code { display: none; }
  .lang-switcher .lang-current { padding: 0 9px; }
}

/* FINAL CTA */
.final {
  padding: 140px 40px;
  text-align: center;
}
.final h2 { font-size: clamp(36px, 5.5vw, 72px); max-width: 900px; margin: 0 auto 28px; }
.final h2 span { background: linear-gradient(135deg, #fff 0%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Gradiente azul→roxo no tema light */
[data-theme="light"] .accent,
[data-theme="light"] .final h2 span,
[data-theme="light"] .hero h1 .accent,
[data-theme="light"] .page-hero h1 .accent,
[data-theme="light"] .p-hero h1 .accent,
[data-theme="light"] .m-hero h1 .accent,
[data-theme="light"] .i-hero h1 .accent,
[data-theme="light"] .traj-stat .num {
  background-image: linear-gradient(135deg, #171744 0%, #4c1d95 55%, #7c3aed 100%) !important;
  background-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Footer Produto/Empresa links em branco no tema light (bg do footer é escuro) */
[data-theme="light"] footer.site .footer-col ul.footer-links a { color: rgba(255,255,255,0.8); }
[data-theme="light"] footer.site .footer-col ul.footer-links a:hover { color: #a78bfa; }

/* Nome do fundador em branco no tema light (bg do card é escuro) */
[data-theme="light"] .founder-card .fc-name,
[data-theme="light"] .founder-card .fc-tag,
[data-theme="light"] .founder-card .fc-role { color: #fff; }
[data-theme="light"] .founder-card .fc-tag { color: #a78bfa; }
[data-theme="light"] .founder-card .fc-role { color: rgba(255,255,255,0.7); }
.final p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 40px; font-size: 17px; }
.final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-actions .btn-primary, .final-actions .btn-ghost { padding: 16px 28px; font-size: 15px; }

@media (max-width: 900px) {
  nav.site { padding: 14px 20px; }
  nav.site .links { display: none; }
  section { padding: 100px 20px; }
}
