/* ============================================================
   NL Intelligence — base / shared layout
   Theme-specific colors live in theme-a.css / theme-b.css
   ============================================================ */

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

:root {
  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: 'Inter', system-ui, sans-serif;   /* overridden per theme */
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }

/* SVG line icons (sprite) */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Section frame ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 132px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.section-title { font-size: clamp(30px, 4.4vw, 50px); }
.section-title em { font-style: normal; color: var(--accent-ink); }
.section-sub { margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text-dim); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: var(--glow-btn); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-btn-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--mark-bg); color: var(--accent-on); font-size: 15px; font-weight: 800; letter-spacing: -.04em;
  box-shadow: var(--glow-btn);
}
.brand b { font-weight: 800; }
.brand span { color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(130px, 16vw, 188px); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 80px); align-items: center; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--chip-bg); color: var(--text-dim); margin-bottom: 30px;
}
.hero-tag b { color: var(--accent-ink); font-weight: 700; }
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-lead { margin-top: 26px; font-size: clamp(18px, 1.55vw, 21px); color: var(--text-dim); max-width: 50ch; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 36px; }
.hero-stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: var(--text); letter-spacing: -.02em; }
.hero-stat .num span { color: var(--accent-ink); }
.hero-stat .lbl { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }
.hero-stat + .hero-stat { padding-left: 36px; border-left: 1px solid var(--border); }

/* Hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .6; }
.hero-panel {
  position: absolute; inset: 6%; border-radius: 24px;
  background: var(--visual-panel); border: 1px solid var(--border);
  box-shadow: var(--visual-shadow); overflow: hidden;
}
.hero-net { position: absolute; inset: 0; }
.hero-net line { stroke: var(--accent); stroke-width: 1; opacity: .35; }
.hero-net circle { fill: var(--accent); }
.hero-net .node-lg { r: 7; filter: drop-shadow(0 0 8px var(--accent)); }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 15px; border-radius: 12px; background: var(--float-bg); border: 1px solid var(--border-strong);
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text);
  box-shadow: var(--float-shadow); backdrop-filter: blur(6px);
}
.hero-chip svg { width: 17px; height: 17px; color: var(--accent-ink); }

/* ---------- Generic icon wrap ---------- */
.icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--accent-ink); flex: none;
  border: 1px solid var(--border);
}
.icon-wrap svg { width: 26px; height: 26px; }

/* ---------- Problemas ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem-card {
  padding: 34px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.problem-card .icon-wrap { background: var(--icon-warn-bg); color: var(--warn-ink); }
.problem-card h3 { font-size: 21px; margin: 22px 0 12px; }
.problem-card p { color: var(--text-dim); font-size: 16.5px; }

/* ---------- Serviços ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card {
  position: relative; padding: 38px 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: var(--card-sheen); transition: opacity .35s var(--ease);
}
.service-card:hover { transform: translateY(-5px); border-color: var(--accent-border); box-shadow: var(--card-hover-shadow); }
.service-card:hover::after { opacity: 1; }
.service-card .num-tag { position: absolute; top: 30px; right: 36px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text-faint); }
.service-card h3 { font-size: 25px; margin: 26px 0 14px; }
.service-card p { color: var(--text-dim); font-size: 17px; max-width: 42ch; }
.service-card .tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .tags span { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--text-dim); border: 1px solid var(--border); }

/* ---------- Como funciona ---------- */
.steps-wrap { position: relative; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step-grid::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: var(--step-line); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--step-dot-bg); color: var(--accent-on); font-family: var(--font-head); font-weight: 700; font-size: 19px;
  border: 1px solid var(--border-strong); box-shadow: var(--glow-btn);
}
.step h3 { font-size: 20px; margin: 26px 0 11px; }
.step p { color: var(--text-dim); font-size: 16px; max-width: 26ch; }

/* ---------- Diferenciais ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.diff-card {
  display: flex; gap: 22px; padding: 32px 30px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.diff-card:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.diff-card .icon-wrap { background: var(--icon-bg); }
.diff-card h3 { font-size: 21px; margin-bottom: 10px; }
.diff-card p { color: var(--text-dim); font-size: 16px; }
.diff-mini { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; }
.diff-mini span {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500;
  padding: 13px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.diff-mini span svg { width: 18px; height: 18px; color: var(--accent-ink); }

/* ---------- Fundador ---------- */
.founder-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.founder-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.founder-badge {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: var(--float-bg); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); box-shadow: var(--float-shadow);
}
.founder-badge .av { width: 44px; height: 44px; border-radius: 50%; background: var(--mark-bg); display: grid; place-items: center; color: var(--accent-on); font-weight: 800; font-family: var(--font-head); }
.founder-badge .nm { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.founder-badge .rl { font-size: 13px; color: var(--text-dim); }
.founder-bio h2 { font-size: clamp(28px, 3.5vw, 44px); }
.founder-bio p { margin-top: 22px; font-size: 18px; color: var(--text-dim); max-width: 54ch; }
.founder-bio .quote { margin-top: 26px; padding-left: 22px; border-left: 3px solid var(--accent); font-size: 19px; color: var(--text); font-style: italic; }

/* ---------- CTA final ---------- */
.cta-section { padding-bottom: clamp(72px, 9vw, 120px); }
.cta-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 6vw, 84px);
  background: var(--cta-bg); border: 1px solid var(--cta-border); text-align: center;
  box-shadow: var(--cta-shadow);
}
.cta-card h2 { font-size: clamp(30px, 4.4vw, 52px); color: var(--cta-text); max-width: 18ch; margin-inline: auto; }
.cta-card p { margin: 22px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--cta-text-dim); max-width: 56ch; }
.cta-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-actions .btn-primary { background: var(--cta-btn); color: var(--cta-btn-on); }
.cta-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; font-size: 15px; color: var(--cta-text-dim); }
.cta-meta a { display: inline-flex; align-items: center; gap: 9px; }
.cta-meta svg { width: 17px; height: 17px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 60px 40px; background: var(--footer-bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: 18px; color: var(--text-dim); font-size: 15.5px; max-width: 38ch; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer ul li { color: var(--text-dim); font-size: 15.5px; transition: color .2s; display: inline-flex; align-items: center; gap: 10px; }
.footer ul a:hover { color: var(--accent-ink); }
.footer ul svg { width: 16px; height: 16px; color: var(--accent-ink); }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; color: var(--text-faint); font-size: 14px; }

/* ---------- Placeholder ---------- */
.ph { position: relative; width: 100%; height: 100%; background:
  repeating-linear-gradient(45deg, var(--ph-a) 0 12px, var(--ph-b) 12px 24px);
  display: grid; place-items: center; }
.ph span { font-family: 'Inter', monospace; font-size: 13px; letter-spacing: .04em; color: var(--text-dim);
  background: var(--ph-label); padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border-strong); }

/* ---------- Identity switcher ---------- */
.switcher {
  position: fixed; z-index: 90; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px;
  background: var(--switch-bg); border: 1px solid var(--border-strong); box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(14px);
}
.switcher .lbl { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding-left: 12px; padding-right: 4px; }
.switcher button {
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  padding: 9px 17px; border-radius: 999px; border: 0; background: transparent; color: var(--text-dim); transition: all .25s var(--ease);
}
.switcher button.active { background: var(--accent); color: var(--accent-on); box-shadow: var(--glow-btn); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 12px; }
  .problem-grid, .service-grid, .step-grid, .diff-grid { grid-template-columns: 1fr; }
  .step-grid::before { display: none; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 360px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero-stat + .hero-stat { padding-left: 0; border-left: 0; }
  .switcher { right: 14px; bottom: 14px; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 76px 0 auto 0; z-index: 55; background: var(--nav-bg); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 22px var(--pad-x) 30px; display: none; flex-direction: column; gap: 6px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 0; font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 16px; }
