/* ==========================================================================
   Distrum — estilos do site institucional
   Paleta Aurora · Manrope (títulos) · Plus Jakarta Sans (texto) · Newsreader (editorial)
   ========================================================================== */

/* ---------- Fontes (auto-hospedadas, licença SIL OFL) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Aurora */
  --roxo: #291A37;
  --violeta: #793FE4;
  --laranja: #FF6635;
  --creme: #F8F2E9;

  /* Derivações (mesmo matiz, para profundidade e contraste) */
  --roxo-950: #150C1E;
  --roxo-900: #1E1229;
  --roxo-700: #3A2749;
  --violeta-claro: #B69BF4;   /* violeta legível sobre fundos escuros */
  --laranja-texto: #B83A14;   /* laranja legível sobre creme (texto pequeno) */
  --laranja-hover: #FF7F55;
  --creme-200: #EFE6D8;
  --creme-300: #E3D6C4;
  --tinta: #291A37;
  --tinta-suave: #5B4D66;
  --creme-suave: rgba(248, 242, 233, 0.74);
  --borda-campo: #8F8299;
  --erro: #A3261E;

  /* Tipografia */
  --f-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-xl: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --t-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --t-3xl: clamp(2.125rem, 1.5rem + 3vw, 3.75rem);
  --t-hero: clamp(2.6rem, 1.2rem + 5.4vw, 5.5rem);

  /* Espaço e ritmo */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 3rem + 7vw, 9.5rem);
  --header-h: 4.75rem;
  --radius: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Contexto padrão (fundo claro) */
  --eyebrow: var(--laranja-texto);
  --muted: var(--tinta-suave);
  --line: var(--creme-300);
  --focus: var(--violeta);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--tinta);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--laranja); color: var(--roxo-950); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--laranja);
  color: var(--roxo-950);
  font-family: var(--f-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id], [id].service { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- Elementos compartilhados ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.h2 {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 1rem;
}

.section-intro {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
}

.dot { color: var(--laranja); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.85em 1.45em;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background: var(--laranja); color: var(--roxo-950); }
.btn-primary:hover { background: var(--laranja-hover); }
.btn-primary:focus-visible { outline-color: var(--focus); }
.btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-ghost { border-color: rgba(248, 242, 233, 0.38); color: var(--creme); }
.btn-ghost:hover { border-color: var(--creme); background: rgba(248, 242, 233, 0.06); }

.btn-sm { min-height: 2.6rem; padding: 0.6em 1.15em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: fit-content;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--violeta);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(121, 63, 228, 0.35);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Logotipo tipográfico provisório */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: currentColor;
  text-decoration: none;
}
.logo-dot { color: var(--laranja); letter-spacing: 0; }
.logo--lg { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem); }

/* ---------- Cabeçalho ---------- */
.site-header {
  --focus: var(--laranja);
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--creme);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: var(--roxo-950);
  box-shadow: 0 1px 0 rgba(248, 242, 233, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.nav-list { list-style: none; }
.nav-list a {
  font-family: var(--f-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--creme-suave);
  transition: color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current] { color: var(--creme); }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle-bars { position: relative; transform: translateY(-4px); }
.nav-toggle-bars::before { content: ""; position: absolute; top: 8px; left: 0; width: 1rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; width: 1.4rem; transform: rotate(-90deg); }

@media (max-width: 959.98px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--roxo-950);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s;
  }
  .nav-list { display: grid; border-top: 1px solid rgba(248, 242, 233, 0.1); }
  .nav-list a {
    display: block;
    padding: 1rem 0;
    font-size: var(--t-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--creme);
    border-bottom: 1px solid rgba(248, 242, 233, 0.1);
  }
  .nav-cta { align-self: flex-start; }
  html.nav-open .site-header { background: var(--roxo-950); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2.5rem; }
  .nav-list { display: flex; gap: 2rem; }
  .nav-list a {
    position: relative;
    font-size: var(--t-sm);
    padding-block: 0.5rem;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--laranja);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  --eyebrow: var(--laranja);
  --focus: var(--laranja);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(100vh, 60rem);
  min-height: min(100svh, 60rem);
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem));
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--creme);
  background: var(--roxo-950);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 55% at 78% 58%, rgba(255, 102, 53, 0.16), transparent 70%),
    radial-gradient(42% 50% at 8% 0%, rgba(121, 63, 228, 0.24), transparent 72%),
    linear-gradient(180deg, var(--roxo-950), var(--roxo-900));
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 3rem);
}

.hero-title {
  margin-top: 1.4rem;
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: var(--t-lg);
  line-height: 1.55;
  color: rgba(248, 242, 233, 0.88);
}

.hero-audience {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--t-sm);
  color: var(--creme-suave);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-visual { width: 100%; max-width: 30rem; justify-self: center; }

.hero-index {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(248, 242, 233, 0.14);
}
.hero-index a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.45rem;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--creme-suave);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-index a span { font-size: var(--t-xs); color: var(--laranja); font-variant-numeric: tabular-nums; }
.hero-index a:hover { color: var(--creme); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; }
  .hero-visual { max-width: none; }
  .hero-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Composição do hero: peças soltas que se organizam em uma estrutura */
.hv { width: 100%; height: auto; overflow: visible; }
.hv-dot { fill: rgba(248, 242, 233, 0.1); }
.hv-ghosts * { fill: none; stroke: var(--violeta-claro); stroke-width: 1.5; opacity: 0.55; }
.hv-labels text {
  fill: rgba(248, 242, 233, 0.62);
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.hv-flows path {
  fill: none;
  stroke: var(--violeta);
  stroke-width: 1.6;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
}
.hv-nodes circle { fill: var(--laranja); }
.hv-piece { transform-box: fill-box; transform-origin: center; }

@media (max-width: 640px) {
  .hv-labels text { font-size: 21px; }
}

/* ---------- Seções ---------- */
.section { position: relative; padding-block: var(--section-pad); }

.section--dark {
  --eyebrow: var(--laranja);
  --muted: var(--creme-suave);
  --line: rgba(248, 242, 233, 0.14);
  --focus: var(--laranja);
  background: var(--roxo);
  color: var(--creme);
}
.section--cream { background: var(--creme); color: var(--tinta); }

.section-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 4rem;
  }
}

/* ---------- Soluções ---------- */
.services { list-style: none; border-bottom: 1px solid var(--line); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem 1rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--laranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.service:hover::before, .service:focus-within::before { transform: scaleX(1); }

.service-num {
  padding-top: 0.35rem;
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.service-head { display: flex; flex-direction: column; gap: 1.25rem; }
.service-head h3 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.03em; }
.service-body { grid-column: 2; display: grid; gap: 1.4rem; }
.service-body > p { font-size: var(--t-lg); line-height: 1.55; max-width: 38rem; }

@media (min-width: 900px) {
  .service {
    grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.5rem;
  }
  .service-body { grid-column: 3; }
}

.glyph {
  width: 3.25rem;
  height: 3.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph-accent {
  fill: var(--laranja);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s var(--ease-out);
}
.service:hover .glyph-accent { transform: scale(1.12); }

.apps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: var(--t-sm);
  color: var(--muted);
}
.apps li { display: flex; align-items: center; gap: 0.55rem; }
.apps li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--laranja);
  flex: none;
}

/* ---------- Tecnologia que começa com o problema ---------- */
.problem { background: var(--roxo); overflow: hidden; }

.h2-quiet {
  margin-top: 1rem;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--creme-suave);
}

.statement {
  margin-top: 1.5rem;
  max-width: 22ch;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.1rem + 3.8vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--laranja); }

.problem-body {
  display: grid;
  gap: 3.5rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.problem-text { display: grid; gap: 1.25rem; align-content: start; max-width: 34rem; color: var(--creme-suave); }
.problem-text p:first-child { color: var(--creme); font-size: var(--t-lg); line-height: 1.5; }

.factors { list-style: none; display: grid; gap: 0; }
.factor {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
  border-left: 1.5px solid var(--violeta-claro);
}
.factor::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  background: var(--roxo);
  border: 1.5px solid var(--violeta-claro);
  border-radius: 50%;
}
.factor h3 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.015em; }
.factor p { margin-top: 0.4rem; font-size: var(--t-sm); color: var(--creme-suave); }

.converge { display: none; }

.factor-result {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.4rem;
  border: 1.5px solid var(--laranja);
  border-radius: var(--radius);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-lg);
  letter-spacing: -0.015em;
}
.factor-result span {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laranja);
}

@media (min-width: 720px) {
  .factors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
  .factor { padding: 1.4rem 0 0; border-left: 0; border-top: 1.5px solid var(--violeta-claro); }
  .factor::before { left: 50%; top: -6px; transform: translateX(-50%); }
  .converge {
    display: block;
    width: 100%;
    height: 4rem;
    margin-block: 1rem 0.75rem;
    fill: none;
    stroke: var(--violeta-claro);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    opacity: 0.8;
  }
  .converge path { vector-effect: non-scaling-stroke; }
  .factor-result { align-items: center; text-align: center; max-width: 24rem; margin-inline: auto; }
}

@media (min-width: 1024px) {
  .problem-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
}

/* ---------- Como trabalhamos (escada) ---------- */
.steps { list-style: none; display: grid; }

.step {
  position: relative;
  padding: 0 0 2.25rem 2rem;
  border-left: 2px solid var(--roxo);
}
.step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: var(--laranja);
}
.step:last-child { padding-bottom: 0; }
.step-num {
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 800;
  color: var(--laranja-texto);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 0.35rem; font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.035em; }
.step p { margin-top: 0.6rem; color: var(--muted); max-width: 30rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .step {
    padding: 1.75rem 1.5rem 2rem;
    border-left: 0;
    border-top: 2px solid var(--roxo);
  }
  .step::before { left: 0; top: -7px; }
  .step:last-child { padding-bottom: 2rem; }
  .step-num { font-size: var(--t-2xl); }
  .step:nth-child(1) { min-height: 15rem; background: var(--creme-200); }
  .step:nth-child(2) { min-height: 18.5rem; background: #E8DCCA; }
  .step:nth-child(3) { min-height: 22rem; background: #DFD0BB; }
  .step:nth-child(4) {
    --muted: var(--creme-suave);
    min-height: 25.5rem;
    background: var(--roxo);
    color: var(--creme);
  }
  .step:nth-child(4) .step-num { color: var(--laranja); }
}

.steps-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--muted);
}
.steps-note svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--violeta); }

/* ---------- Por que a Distrum ---------- */
.why-grid { display: grid; gap: 3rem; }
.why-head .section-intro { margin-top: 1.5rem; }

.pillars {
  list-style: none;
  display: none;
  margin-top: 3rem;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 2.2;
  color: rgba(248, 242, 233, 0.5);
}

.reasons { list-style: none; border-bottom: 1px solid var(--line); }
.reason {
  display: grid;
  grid-template-columns: 0.75rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.reason::before {
  content: "";
  grid-row: 1;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  background: var(--laranja);
}
.reason h3 { grid-column: 2; font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
.reason p { grid-column: 2; color: var(--muted); max-width: 38rem; }

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .why-head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .pillars { display: block; }
}

/* ---------- Projetos e aplicações ---------- */
.projects { background: var(--creme-200); --line: #D9CBB7; }

.note {
  padding-left: 1rem;
  border-left: 3px solid var(--violeta);
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 34rem;
}
.note strong { color: var(--tinta); font-weight: 700; }

.scenarios { display: grid; gap: 2.5rem; }
.scenario { display: grid; align-content: start; gap: 1rem; }
.scenario + .scenario { padding-top: 2.5rem; border-top: 1px solid var(--line); }

.scenario-tag {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violeta);
  border: 1px dashed currentColor;
  border-radius: 3px;
}
.scenario-tag--real { color: var(--laranja-texto); border-style: solid; }
.scenario h3 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
.scenario dl { margin: 0.5rem 0 0; display: grid; gap: 0.3rem; }
.scenario dt {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta);
}
.scenario dd { margin: 0 0 0.9rem; font-size: var(--t-sm); color: var(--muted); }

@media (min-width: 900px) {
  .scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .scenario { padding-inline: 2rem; }
  .scenario:first-child { padding-left: 0; }
  .scenario:last-child { padding-right: 0; }
  .scenario + .scenario { padding-top: 0; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Chamada final ---------- */
.cta-final {
  --focus: var(--laranja);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  background: var(--roxo-950);
  color: var(--creme);
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(45% 70% at 85% 50%, rgba(255, 102, 53, 0.18), transparent 70%);
}
.cta-arcs {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -12rem;
  width: min(44rem, 120vw);
  transform: translateY(-50%);
  fill: none;
  stroke: url(#cta-g);
  stroke-width: 1.5;
  opacity: 0.45;
}
.cta-fill { fill: url(#cta-g); stroke: none; opacity: 0.85; }

.cta-inner { position: relative; }
.cta-title {
  max-width: 16ch;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.cta-text {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: var(--t-lg);
  color: rgba(248, 242, 233, 0.86);
}
.cta-final .btn { margin-top: 2.5rem; }

@media (min-width: 1024px) {
  .cta-arcs { right: 2rem; opacity: 0.7; }
}

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 3.5rem; }
.contact-intro .section-intro { margin-top: 1.5rem; }

.contact-subtitle {
  margin-top: 2.75rem;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tinta);
}

.next-steps { list-style: none; counter-reset: passo; margin-top: 1rem; display: grid; gap: 0.75rem; }
.next-steps li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  color: var(--muted);
}
.next-steps li::before {
  content: counter(passo, decimal-leading-zero);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-sm);
  line-height: 1.75;
  color: var(--laranja-texto);
}

.channels { list-style: none; display: grid; gap: 0.75rem; margin-top: 1rem; }
.channels a {
  display: inline-grid;
  gap: 0.1rem;
  text-decoration: none;
}
.channels .channel-label {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.channels .channel-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-lg);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(121, 63, 228, 0.4);
}
.channels a:hover .channel-value { text-decoration-color: currentColor; }

.contact-form {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: #FFFCF7;
  border: 1px solid var(--creme-300);
  border-radius: 10px;
}
.form-title { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1.75rem; }

.form-mode {
  margin: -0.75rem 0 1.5rem;
  padding: 0.8rem 1rem;
  font-size: var(--t-sm);
  color: var(--tinta);
  background: var(--creme-200);
  border-left: 3px solid var(--violeta);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.form-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: grid; gap: 0.45rem; margin-bottom: 1.35rem; align-content: start; }
.field label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-sm);
}
.field .optional { font-weight: 500; color: var(--muted); }
.field-hint { margin-top: -0.2rem; font-size: var(--t-xs); color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: #fff;
  border: 1.5px solid var(--borda-campo);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23291A37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--roxo); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--violeta);
  box-shadow: 0 0 0 3px rgba(121, 63, 228, 0.28);
}
.field [aria-invalid="true"] { border-color: var(--erro); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(163, 38, 30, 0.22); }

.field-error { font-size: var(--t-xs); font-weight: 600; color: var(--erro); }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.privacy { font-size: var(--t-xs); color: var(--muted); max-width: 22rem; }

.form-status { margin-top: 1.25rem; font-size: var(--t-sm); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-info, .form-status.is-error {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
}
.form-status.is-success { background: #EFE7FC; color: #3B1E78; }
.form-status.is-info { background: var(--creme-200); color: var(--tinta); }
.form-status.is-error { background: #FBE9E7; color: var(--erro); }
.form-status a { color: inherit; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
}

/* ---------- Rodapé ---------- */
.site-footer {
  --focus: var(--laranja);
  --muted: var(--creme-suave);
  padding-block: clamp(4rem, 3rem + 4vw, 6rem) 2rem;
  background: var(--roxo-950);
  color: var(--creme);
}
.footer-grid { display: grid; gap: 2.75rem; }
.footer-slogan { margin-top: 1rem; font-size: var(--t-lg); color: var(--creme-suave); max-width: 22rem; }
.footer-tagline {
  margin-top: 1.5rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 242, 233, 0.5);
}
.footer-tagline span { color: var(--laranja); }

.footer-title {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 242, 233, 0.55);
}
.footer-nav ul { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }
.footer-nav a, .footer-fallback a {
  text-decoration: none;
  color: var(--creme-suave);
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-fallback a:hover { color: var(--creme); }
.footer-fallback { margin-top: 1rem; }
.channels--footer .channel-value { font-size: var(--t-base); text-decoration-color: rgba(248, 242, 233, 0.3); }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  font-size: var(--t-xs);
  color: rgba(248, 242, 233, 0.6);
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(248, 242, 233, 0.1);
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); }
}

/* ---------- Página 404 ---------- */
.not-found {
  --eyebrow: var(--laranja);
  --focus: var(--laranja);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--roxo-950);
  color: var(--creme);
  overflow: hidden;
}
.not-found::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 60% at 80% 55%, rgba(255, 102, 53, 0.14), transparent 70%),
              radial-gradient(40% 50% at 5% 0%, rgba(121, 63, 228, 0.22), transparent 72%);
}
.not-found .header-inner { height: var(--header-h); }
.nf-main { flex: 1; display: grid; align-items: center; padding-block: 3rem 5rem; }
.nf-grid { display: grid; gap: 3rem; align-items: center; }
.nf-title {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.nf-text { margin-top: 1.5rem; max-width: 32rem; font-size: var(--t-lg); color: rgba(248, 242, 233, 0.86); }
.nf-visual { max-width: 22rem; width: 100%; justify-self: center; }
.nf-back { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); color: var(--creme-suave); text-decoration: none; }
.nf-back:hover { color: var(--creme); }
@media (min-width: 900px) {
  .nf-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .nf-visual { max-width: 26rem; }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada do hero (só CSS: não depende de JavaScript) */
  .rise { animation: rise 0.9s var(--ease-out) both; }
  .rise-1 { animation-delay: 0.08s; }
  .rise-2 { animation-delay: 0.16s; }
  .rise-3 { animation-delay: 0.24s; }

  .hv-ghosts, .hv-labels { animation: fade 1.2s ease both; }
  .hv-flows path { animation: fade 1s ease 0.5s both, flow 16s linear 1.5s infinite; }
  .hv-nodes circle { animation: fade 0.6s ease 1.25s both; }
  .hv-piece { animation: settle 1.25s var(--ease-out) both; }
  .hv-p1 { --from: translate(-270px, -96px) rotate(-14deg) scale(0.6); animation-delay: 0.3s; }
  .hv-p3 { --from: translate(-185px, 58px) rotate(18deg) scale(0.6); animation-delay: 0.44s; }
  .hv-p4 { --from: translate(-330px, 15px) rotate(-30deg) scale(0.35); animation-delay: 0.58s; }

  /* Revelação ao rolar (ativada por JS; sem JS o conteúdo fica visível) */
  html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
  html.reveal-ready .steps [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
  html.reveal-ready .steps [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
  html.reveal-ready .steps [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
  html.reveal-ready .scenarios [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
  html.reveal-ready .scenarios [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
}

@keyframes rise { from { opacity: 0; transform: translateY(1rem); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: var(--from); } }
@keyframes flow { to { stroke-dashoffset: -220; } }

@media print {
  .site-header, .nav-toggle, .hero-visual, .cta-arcs, .contact-form { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero, .section--dark, .cta-final, .site-footer { background: #fff; color: #000; }
}
