/* Layer Digital · site institucional. Tokens do design system v2 (contexto/DESIGN.md). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
}

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-alt: #F0F2F6;
  --border: #E3E6EC;
  --text: #161A23;
  --text-secondary: #5B6272;
  --accent: #2F5BFF;
  --accent-hover: #1F45E0;
  --accent-contrast: #FFFFFF;
  --accent-soft: #E8EDFF;
  --accent-soft-text: #1F45E0;
  --layer-back: #9DB2FF;
  --layer-deep: #1A2FB8;
  --success: #1E8E5A;
  --invert-bg: #161A23;
  --invert-text: #FFFFFF;
  --invert-muted: #C3C8D3;
  --header-bg: rgba(255, 255, 255, 0.86);
  --shadow-sm: 0 1px 2px rgba(22, 26, 35, 0.06);
  --shadow-md: 0 16px 32px -12px rgba(22, 26, 35, 0.22);
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1117;
    --surface: #161A22;
    --surface-alt: #1C212B;
    --border: #2A303C;
    --text: #EEF0F5;
    --text-secondary: #A2A9B8;
    --accent: #7C95FF;
    --accent-hover: #9AADFF;
    --accent-contrast: #0E1117;
    --accent-soft: #1E2750;
    --accent-soft-text: #C9D4FF;
    --layer-back: #3A4C99;
    --layer-deep: #C9D4FF;
    --success: #5CC79A;
    --invert-bg: #EEF0F5;
    --invert-text: #0E1117;
    --invert-muted: #4A5161;
    --header-bg: rgba(14, 17, 23, 0.86);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 16px; border-radius: var(--r-md); }
.skip:focus { left: 16px; }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: var(--r-full); }
.nav a:hover { background: var(--surface-alt); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-soft-text); }
.nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--invert-bg); color: var(--invert-text); }
.nav .nav-cta:hover { background: var(--invert-bg); color: var(--invert-text); opacity: 0.88; }

/* Peças comuns */
.sym .b { fill: var(--layer-back); } .sym .f { fill: var(--accent); } .sym .d { fill: var(--layer-deep); }
.section.section-tight { padding-top: 56px; }
.grid.grid-wide-gap { gap: 32px; }
.section.section-flush { padding-top: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-soft-text); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.02em; }
.chip .dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--accent); }
.chip.neutral { background: var(--surface-alt); color: var(--text-secondary); }
.eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); }
.lead { font-size: 19px; line-height: 30px; color: var(--text-secondary); max-width: 52ch; }
.muted { color: var(--text-secondary); }
.h-display { font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.h-section { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.h-card { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-full); font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 16px 32px -12px rgba(47, 91, 255, 0.45); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text); background: var(--surface-alt); }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); flex: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); min-width: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.section { padding-block: 80px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.band { background: var(--surface); border-block: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* Início */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 88px 72px; }
.hero-text { flex: 999 1 480px; min-width: 0; }
.hero-text h1 { max-width: 13ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.layers { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; }
.layers .back, .layers .front, .layers .deep { position: absolute; border-radius: var(--r-xl); }
.layers .back { left: 0; top: 0; width: 64%; height: 64%; background: var(--layer-back); }
.layers .front { right: 0; bottom: 0; width: 64%; height: 64%; background: var(--accent); }
.layers .deep { left: 36%; top: 36%; width: 28%; height: 28%; border-radius: var(--r-xl) 0 var(--r-xl) 0; background: var(--layer-deep); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-md); line-height: 20px; }
.float strong { display: block; font-size: 15px; }
.float span.sub { font-size: 13px; color: var(--text-secondary); }
.float.a { left: 6%; bottom: 8%; }
.float.b { right: 4%; top: 10%; }
.mono-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-soft-text); font-family: var(--font-display); font-weight: 700; }
.mono-tile.neutral { background: var(--surface-alt); color: var(--text); }
.mono-tile.lg { width: 56px; height: 56px; font-size: 24px; }
.product { gap: 20px; }
.product-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.product h3 { font-size: 28px; line-height: 34px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 4px 12px; border-radius: var(--r-full); background: var(--surface-alt); font-size: 14px; line-height: 22px; font-weight: 500; }
.link-out { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.feature { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cta { border-radius: var(--r-xl); background: var(--invert-bg); color: var(--invert-text); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.025em; }
.cta p { color: var(--invert-muted); }
.cta .btn { background: var(--bg); color: var(--text); overflow-wrap: anywhere; }

/* Empresa */
.page-head .wrap { padding-block: 80px 56px; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 60ch; }
.purpose { border-radius: var(--r-xl); background: #2F5BFF; color: #FFFFFF; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; margin-bottom: 24px; }
.purpose > div { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.purpose .eyebrow { color: #DCE3FF; }
.purpose p.statement { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; max-width: 26ch; text-wrap: balance; }
.purpose svg { flex: 0 0 160px; width: 160px; height: 160px; }
.facts-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.facts-layout > header { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.facts { flex: 2 1 540px; min-width: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.fact { border-radius: 16px; background: var(--bg); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact.wide { grid-column: 1 / -1; }
.fact dt { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-secondary); }
.fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fact dd.muted { font-weight: 400; color: var(--text-secondary); }
.fact dd.num { font-variant-numeric: tabular-nums; }
.fact .status { display: inline-flex; align-items: center; gap: 8px; color: var(--success); }
.fact .status::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--success); }
.contacts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.contact { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact span { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-secondary); }
.contact a { font-weight: 600; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.contact.dark { background: var(--invert-bg); border-color: var(--invert-bg); }
.contact.dark span { color: var(--invert-muted); }
.contact.dark a { color: var(--invert-text); }

/* Rodapé */
.footer { border-top: 1px solid var(--border); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px 40px; font-size: 14px; line-height: 22px; color: var(--text-secondary); }
.footer .brand strong { font-family: var(--font-display); letter-spacing: -0.02em; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--text-secondary); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .hero .wrap { padding-block: 48px 40px; gap: 40px; }
  .page-head .wrap { padding-block: 48px 40px; }
  .card, .contact { padding: 24px; }
  .cta, .purpose { padding: 32px 24px; }
  .purpose svg { flex-basis: 112px; width: 112px; height: 112px; }
  .float { padding: 10px 14px; }
}
