/* ============================================================
   Sparta Tecnologia — website prototype
   Identidade: Studio Pedro Primão (2026) — ver DESIGN.md
   Tipografia: Neue Kaine (display) · Exo 2 (UI/headings) · Arimo (corpo)
   ============================================================ */

/* ---------- Fontes ---------- */
@font-face {
  font-family: "Exo 2";
  src: url("./assets/brand/fonts/Exo2-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("./assets/brand/fonts/Exo2-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("./assets/brand/fonts/Exo2-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Arimo";
  src: url("./assets/brand/fonts/Arimo-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Neue Kaine";
  src: url("./assets/brand/fonts/NeueKaine-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca (DESIGN.md §2) */
  --teal: #00303d;          /* Azul Orbital — primária */
  --areia: #dad1c8;         /* Areia Computacional — neutra quente */
  --nevoa: #92a8ad;         /* Névoa Digital — acento */
  --white: #ffffff;         /* Branco Singular */

  /* Tons derivados (DESIGN.md §11) */
  --teal-light: #174b59;    /* hover / ênfase */
  --teal-dark: #001f28;     /* pressionado / texto forte */
  --teal-950: #001820;      /* fundo profundo do gradiente */
  --areia-soft: #f1ece6;    /* superfície areia clara */
  --paper: #f6f8f7;         /* superfície de página */
  --ink: #00303d;           /* texto primário */
  --muted: #52676d;         /* texto secundário */

  /* Linhas / divisores */
  --line: rgba(0, 48, 61, 0.12);
  --line-strong: rgba(0, 48, 61, 0.2);
  --line-dark: rgba(218, 209, 200, 0.16);

  /* Elevação */
  --shadow-sm: 0 1px 0 rgba(0, 48, 61, 0.06);
  --shadow-soft: 0 18px 60px rgba(0, 48, 61, 0.1);
  --shadow-lg: 0 44px 120px rgba(0, 24, 32, 0.5);

  /* Forma */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --pill: 999px;

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--nevoa) transparent;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--nevoa);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-light);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--teal);
  font-family: "Arimo", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.04;
  overflow-wrap: break-word;
}

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

/* ---------- Tipografia utilitária ---------- */
.display {
  font-family: "Neue Kaine", "Exo 2", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--nevoa);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.light-section .eyebrow,
.sand-section .eyebrow {
  color: var(--teal-light);
}

/* ---------- Botões ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: var(--teal);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.button-primary:hover {
  background: var(--areia-soft);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button-dark {
  color: var(--white);
  background: var(--teal);
}

.button-dark:hover {
  background: var(--teal-light);
}

.light-section .button-secondary,
.sand-section .button-secondary {
  color: var(--teal);
  background: transparent;
  border-color: var(--line-strong);
}

.light-section .button-secondary:hover,
.sand-section .button-secondary:hover {
  background: rgba(0, 48, 61, 0.05);
}

/* ---------- Shell + fundo ---------- */
.site-shell {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(146, 168, 173, 0.16), transparent 55%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 44rem, var(--teal-dark) 100%);
}

/* ============================================================
   HEADER + NAVEGAÇÃO
   ============================================================ */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--teal-dark);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 12px 40px rgba(0, 16, 22, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  height: var(--header-h);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.94rem;
}

.nav-desktop > a,
.nav-desktop .has-mega > a {
  position: relative;
  padding: 9px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-desktop > a:hover,
.nav-desktop .has-mega > a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-desktop > a[aria-current="page"],
.nav-desktop .has-mega > a[aria-current="page"] {
  color: var(--white);
}

.nav-desktop > a[aria-current="page"]::after,
.nav-desktop .has-mega > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--nevoa);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  color: var(--teal);
  background: var(--white);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--areia-soft);
}

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile (painel deslizante) */
.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: rgba(0, 24, 32, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-dark);
  transition: grid-template-rows 0.34s var(--ease);
}

.site-header.is-open .nav-mobile {
  grid-template-rows: 1fr;
}

.nav-mobile-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  /* Com o menu alto, o scroll fica DENTRO do menu (não no body) */
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-mobile a:not(.button) {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.82);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-mobile a:not(.button)[aria-current="page"] {
  color: var(--nevoa);
}

.nav-mobile .button {
  margin: 20px 0 28px;
}

/* ============================================================
   SEÇÕES BASE
   ============================================================ */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 124px) var(--gutter);
}

.section-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.light-section {
  background: var(--paper);
  color: var(--ink);
}

.dark-section {
  background: var(--teal-dark);
  color: var(--white);
}

.sand-section {
  background: var(--areia);
  color: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.dark-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

/* Cluster de blocos (motivo do "S") — acento decorativo */
.blockmark {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 30px;
}

.blockmark i {
  aspect-ratio: 1;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.85;
}

.blockmark i:nth-child(2),
.blockmark i:nth-child(4) {
  opacity: 0.4;
}

.blockmark i:last-child {
  background: var(--nevoa);
  opacity: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, 92vh, 940px);
  padding: calc(var(--header-h) + 64px) var(--gutter) 88px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  opacity: 0.5;
  filter: saturate(0.95) contrast(1.04);
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 24, 32, 0.94) 0%, rgba(0, 24, 32, 0.76) 42%, rgba(0, 24, 32, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 24, 32, 0.08), var(--teal) 100%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(218, 209, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 209, 200, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  mask-image: radial-gradient(120% 90% at 30% 20%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: -12%;
  width: min(46vw, 560px);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 6.6vw, 5.9rem);
}

.hero h1 .accent {
  color: var(--nevoa);
}

.hero-lead {
  max-width: 56ch;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.6);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

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

.hero-trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--nevoa);
}

/* ---------- Screenshot real do produto no hero ---------- */
.hero-shot {
  margin: 0;
}

.hero-shot img {
  width: 100%;
  height: auto;
  /* cantos do PNG são transparentes — drop-shadow segue o recorte, não a caixa */
  filter: drop-shadow(0 40px 80px rgba(0, 16, 22, 0.55));
}

@media (max-width: 980px) {
  .hero-shot {
    max-width: 620px;
  }
}

/* ---------- Mock de produto (janela faux-UI) ---------- */
.product-mock {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(218, 209, 200, 0.22);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(0, 24, 32, 0.4);
}

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

.mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(218, 209, 200, 0.4);
}

.mock-title {
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
}

.mock-body {
  padding: 18px;
}

.mock-window {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
}

.mock-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-radius: 14px;
  background: rgba(0, 24, 32, 0.45);
}

.mock-rail i {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border-radius: 7px;
  background: rgba(146, 168, 173, 0.25);
}

.mock-rail i:first-child {
  background: var(--nevoa);
}

.mock-panel {
  background: var(--white);
  color: var(--teal);
  border-radius: 14px;
  padding: 18px;
}

.mock-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-kpi {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mock-kpi strong {
  display: block;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.mock-kpi span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.mock-ai {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  color: var(--white);
  background: var(--teal);
  border-radius: 14px;
}

.mock-ai div {
  flex: 1;
}

.mock-ai strong {
  display: block;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.86rem;
}

.mock-ai span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
}

.mock-ai .badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: var(--pill);
  background: rgba(146, 168, 173, 0.22);
  color: var(--nevoa);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nevoa);
  box-shadow: 0 0 0 0 rgba(146, 168, 173, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(146, 168, 173, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(146, 168, 173, 0); }
  100% { box-shadow: 0 0 0 0 rgba(146, 168, 173, 0); }
}

/* ============================================================
   PRODUTOS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

/* Bento — larguras variadas (anti card-grid idêntico) */
.product-card { grid-column: span 2; }
.product-card.span-3 { grid-column: span 3; }
.product-card.span-4 { grid-column: span 4; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 26px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.product-card .blockmark {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--teal);
  opacity: 0.5;
}

.product-card.featured {
  grid-column: span 4;
  color: var(--white);
  background:
    radial-gradient(120% 120% at 90% 0%, rgba(146, 168, 173, 0.2), transparent 55%),
    var(--teal);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.product-card.featured .blockmark {
  color: var(--white);
  opacity: 0.7;
}

.tag {
  width: max-content;
  margin-bottom: 20px;
  padding: 6px 12px;
  color: var(--teal-light);
  background: var(--areia-soft);
  border-radius: var(--pill);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card.featured .tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.product-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.product-card.featured h3 {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
}

.card-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 24, 32, 0.26);
}

.product-card > p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.product-card.featured > p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.product-card.featured .feature-list {
  grid-template-columns: repeat(2, 1fr);
}

.feature-list li {
  display: flex;
  gap: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.product-card.featured .feature-list li {
  color: rgba(255, 255, 255, 0.78);
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--nevoa);
}

.card-footer {
  margin-top: auto;
  padding-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 700;
  transition: gap 0.18s var(--ease);
}

.text-link::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Proof band ---------- */
.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-item {
  padding: 28px;
  border-right: 1px solid var(--line-dark);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item .blockmark {
  color: var(--nevoa);
  margin-bottom: 18px;
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.16rem;
}

.proof-item span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

/* ---------- Como opera ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  align-items: stretch;
}

.process-lead {
  padding: 38px;
  color: var(--white);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(146, 168, 173, 0.22), transparent 55%),
    var(--teal);
  border-radius: var(--radius);
}

.process-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 58px rgba(0, 24, 32, 0.22);
}

.process-lead h2 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
}

.process-lead p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card .blockmark {
  width: 34px;
  color: var(--teal);
  opacity: 0.85;
}

.step-card h3 {
  margin-top: 18px;
  font-size: 1.3rem;
}

.step-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(36px, 5vw, 60px);
  color: var(--white);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(146, 168, 173, 0.2), transparent 50%),
    var(--teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.cta-panel p {
  max-width: 56ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   PÁGINAS INTERNAS
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) var(--gutter) 80px;
  color: var(--white);
  background:
    radial-gradient(110% 90% at 85% 0%, rgba(146, 168, 173, 0.16), transparent 55%),
    var(--teal);
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-visual-stack {
  display: grid;
  gap: 16px;
}

.generated-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(218, 209, 200, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lg);
}

.generated-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-editorial {
  transform: translateY(-4px);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 60ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
  line-height: 1.62;
}

.page-hero .actions-row {
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  gap: 12px;
}

.hero-fact {
  padding: 20px;
  color: var(--teal);
  background: var(--white);
  border-radius: var(--radius);
}

.hero-fact span {
  display: block;
  color: var(--muted);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-fact strong {
  display: block;
  margin-top: 8px;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.04rem;
  line-height: 1.3;
}

.two-col {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 48px);
}

.copy-block h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

.copy-block p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.dark-section .copy-block p {
  color: rgba(255, 255, 255, 0.74);
}

.copy-block .actions-row {
  margin-top: 28px;
}

.bullet-panel {
  display: grid;
  gap: 12px;
}

.bullet {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bullet .blockmark {
  flex: 0 0 auto;
  color: var(--teal);
  opacity: 0.6;
  margin-top: 2px;
}

.bullet strong {
  display: block;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.05rem;
}

.bullet span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.capability {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.capability:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.capability .blockmark {
  width: 26px;
  color: var(--nevoa);
  margin-bottom: 16px;
}

.capability h3 {
  font-size: 1.18rem;
}

.capability p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.audience-pill {
  padding: 13px 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pill);
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  color: var(--white);
  background: var(--teal-950);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.95rem;
  transition: color 0.16s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.84rem;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Sem a nav-desktop, empurra o hambúrguer 100% para a direita */
  .header-actions {
    margin-left: auto;
  }

  .hero-grid,
  .section-heading,
  .process-grid,
  .page-hero-grid,
  .two-col,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
  }

  .product-mock {
    max-width: 560px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card,
  .product-card.span-3,
  .product-card.span-4 {
    grid-column: span 1;
  }

  .product-card.featured {
    grid-column: span 2;
  }

  .product-card.featured {
    grid-template-columns: 1fr;
  }

  .proof-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .cta-panel .actions-row {
    margin-top: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  /* Texto do hero ocupa largura toda no mobile → scrim mais vertical e forte */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 24, 32, 0.72) 0%, rgba(0, 24, 32, 0.9) 55%, var(--teal) 100%);
  }

  .metric-grid,
  .mock-kpis,
  .product-grid,
  .proof-band,
  .process-steps,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  /* Mock cabe no mobile: rail estreito, paddings/fontes reduzidos, sem badge */
  .mock-kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .mock-bar {
    padding: 12px 14px;
  }
  .mock-title {
    font-size: 0.72rem;
  }
  .mock-body {
    padding: 13px;
  }
  .mock-window {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }
  .mock-rail {
    padding: 10px 0;
    gap: 8px;
  }
  .mock-rail i {
    width: 20px;
    height: 20px;
  }
  .mock-panel {
    padding: 13px;
  }
  .mock-panel-top {
    font-size: 0.64rem;
    margin-bottom: 12px;
  }
  .mock-kpi {
    padding: 9px;
    border-radius: 9px;
  }
  .mock-kpi strong {
    font-size: 1.02rem;
  }
  .mock-kpi span {
    margin-top: 5px;
    font-size: 0.62rem;
  }
  .mock-ai {
    padding: 11px;
    gap: 9px;
  }
  .mock-ai strong {
    font-size: 0.76rem;
  }
  .mock-ai span {
    font-size: 0.68rem;
  }
  .mock-ai .badge {
    display: none;
  }

  .product-card,
  .capability {
    min-height: 0;
  }

  .product-card.featured {
    grid-column: span 1;
  }

  .proof-item,
  .proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .hero-actions .button,
  .cta-panel .button,
  .actions-row .button {
    flex: 1 1 160px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* ============================================================
   SEÇÃO — marcador numerado de narrativa (sequência deliberada)
   ============================================================ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  font-family: "Exo 2", system-ui, sans-serif;
}

.section-tag .blockmark {
  width: 20px;
  color: var(--teal);
  opacity: 0.7;
}

.dark-section .section-tag .blockmark {
  color: var(--nevoa);
  opacity: 1;
}

.section-tag .label {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--teal-light);
}

.dark-section .section-tag .label {
  color: rgba(255, 255, 255, 0.78);
}

.sand-section .section-tag .label {
  color: var(--teal);
}

/* ============================================================
   MOCK — widgets por tipo de produto
   ============================================================ */
.mock-stage {
  display: grid;
  gap: 12px;
}

/* lista (certames, referências de preço) */
.mock-list {
  display: grid;
  gap: 8px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock-row .label {
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal);
}

.mock-row .status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--areia-soft);
  color: var(--teal-light);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.mock-row .status.live {
  background: rgba(146, 168, 173, 0.22);
  color: var(--teal);
}

/* monitor (grade de câmeras — Orion) */
.mock-cams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-cam {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  background:
    repeating-linear-gradient(135deg, rgba(0, 48, 61, 0.06) 0 6px, rgba(0, 48, 61, 0.02) 6px 12px),
    var(--areia-soft);
  border: 1px solid var(--line);
}

.mock-cam::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nevoa);
}

.mock-cam.is-alert {
  border-color: rgba(0, 48, 61, 0.4);
  background:
    repeating-linear-gradient(135deg, rgba(0, 48, 61, 0.14) 0 6px, rgba(0, 48, 61, 0.05) 6px 12px),
    var(--areia);
}

.mock-cam.is-alert::after {
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 48, 61, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}

.mock-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--white);
}

.mock-alert .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nevoa);
}

.mock-alert .label {
  flex: 1;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.mock-alert .time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

/* documento (geração com IA) */
.mock-doc {
  display: grid;
  gap: 9px;
  padding: 4px 2px;
}

.mock-doc i {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: var(--line);
}

.mock-doc i.head {
  height: 13px;
  width: 58%;
  background: rgba(0, 48, 61, 0.28);
}

.mock-doc i.w90 { width: 90%; }
.mock-doc i.w75 { width: 75%; }
.mock-doc i.w60 { width: 60%; }

.mock-doc i.active {
  background: linear-gradient(90deg, var(--nevoa), rgba(146, 168, 173, 0.25));
  animation: docType 2.6s var(--ease) infinite;
}

@keyframes docType {
  0% { width: 18%; }
  60% { width: 82%; }
  100% { width: 18%; }
}

/* ============================================================
   MOTION — coreografia de entrada + reveals (aditivo via .js-motion)
   Conteúdo é visível por padrão; só animamos quando JS confirma
   que prefers-reduced-motion não está ativo.
   ============================================================ */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes mockIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Entrada do hero fica escondida até o splash terminar (is-ready) — não "perde" atrás dele */
.js-motion .hero .anim,
.js-motion .page-hero .anim {
  opacity: 0;
}

.js-motion .hero .product-mock,
.js-motion .hero .hero-shot,
.js-motion .page-hero .product-mock,
.js-motion .page-hero .generated-figure {
  opacity: 0;
}

.js-motion.is-ready .hero .anim,
.js-motion.is-ready .page-hero .anim {
  animation: heroRise 0.85s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}

.js-motion.is-ready .hero .product-mock,
.js-motion.is-ready .hero .hero-shot,
.js-motion.is-ready .page-hero .product-mock {
  animation: mockIn 1s var(--ease-out-expo) 0.32s forwards;
}

/* Imagens do hero entram com a coreografia (não ficam fora da transição) */
.js-motion.is-ready .page-hero .generated-figure {
  animation: mockIn 1s var(--ease-out-expo) 0.42s forwards;
}

/* Reveals on scroll — visível por padrão; estado inicial só com .js-motion */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.js-motion [data-reveal="scale"] {
  transform: scale(0.97);
}

.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js-motion [data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.js-motion [data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

.js-motion [data-stagger].is-in > *:nth-child(1) { transition-delay: 0.04s; }
.js-motion [data-stagger].is-in > *:nth-child(2) { transition-delay: 0.1s; }
.js-motion [data-stagger].is-in > *:nth-child(3) { transition-delay: 0.16s; }
.js-motion [data-stagger].is-in > *:nth-child(4) { transition-delay: 0.22s; }
.js-motion [data-stagger].is-in > *:nth-child(5) { transition-delay: 0.28s; }
.js-motion [data-stagger].is-in > *:nth-child(6) { transition-delay: 0.34s; }
.js-motion [data-stagger].is-in > *:nth-child(7) { transition-delay: 0.4s; }
.js-motion [data-stagger].is-in > *:nth-child(n + 8) { transition-delay: 0.46s; }

/* press feedback */
.button:active,
.header-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================================
   MEGA-MENU (Produtos) — desktop
   ============================================================ */
.nav-item {
  position: relative;
}

.nav-desktop .has-mega > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.caret {
  transition: transform 0.28s var(--ease);
}

.has-mega:hover .caret,
.has-mega:focus-within .caret {
  transform: rotate(180deg);
}

.mega {
  position: fixed;
  top: calc(var(--header-h) - 8px);
  left: 50%;
  width: min(840px, 94vw);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s var(--ease-out-expo), transform 0.26s var(--ease-out-expo),
    visibility 0.26s;
  z-index: 55;
}

/* Ponte invisível: elimina o vão entre gatilho e painel (evita fechar ao cruzar) */
.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.has-mega.is-open .mega,
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 24, 32, 0.4);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mega-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.16s var(--ease);
}

.mega-link:hover {
  background: var(--areia-soft);
}

.mega-link .blockmark {
  width: 22px;
  margin-top: 2px;
  color: var(--teal);
  opacity: 0.6;
}

.mega-link strong {
  display: block;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal);
}

.mega-link span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mega-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  color: var(--white);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(146, 168, 173, 0.3), transparent 60%),
    var(--teal);
}

.mega-aside-tag {
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nevoa);
}

.mega-aside strong {
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 1.25;
}

.mega-aside-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.5;
}

.mega-aside-tag,
.mega-aside strong,
.mega-aside-desc {
  transition: opacity 0.2s var(--ease);
}

.mega-aside.is-swapping .mega-aside-tag,
.mega-aside.is-swapping .mega-aside strong {
  opacity: 0.4;
}

.mega-aside-link {
  margin-top: auto;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
}

.mega-link {
  transform: translateX(0);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.mega-link:hover {
  transform: translateX(3px);
}

/* Mobile — lista de produtos no painel */
.nav-mobile-label {
  display: block;
  padding: 16px 4px 8px;
  color: var(--nevoa);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-mobile-products {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}

.nav-mobile-products a {
  padding: 11px 4px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   BARRA DE PROGRESSO + TRANSIÇÃO DE ROTA + PRELOADER
   ============================================================ */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--nevoa), var(--areia));
}

.route-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal-light), var(--nevoa));
  z-index: 70;
  opacity: 0;
  transition: width 0.5s var(--ease-out-expo), opacity 0.35s var(--ease);
}

.route-bar.run {
  width: 100%;
  opacity: 1;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(146, 168, 173, 0.16), transparent 60%),
    var(--teal-dark);
  transition: opacity 0.8s var(--ease-out-expo);
}

.preloader.is-fading .preloader-bg {
  opacity: 0;
}

.preloader-logo {
  position: relative;
  width: min(400px, 76vw);
  height: auto;
  transform-origin: center center;
  will-change: transform, clip-path;
  /* Reveal por wipe (clip-path) — NÃO anima transform, que fica livre para o voo */
  animation: splashReveal 1s var(--ease-out-expo) 0.15s both;
}

@keyframes splashReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

#app {
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.js-motion #app.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

/* ============================================================
   PRODUTO EM DESTAQUE — layout bento interno (2 colunas)
   ============================================================ */
.product-card.featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: 380px;
}

.featured-main {
  display: flex;
  flex-direction: column;
}

.featured-aside {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-aside .blockmark {
  position: static;
  width: 40px;
  color: var(--white);
  opacity: 0.85;
}

.product-card.featured .feature-list {
  grid-template-columns: 1fr;
  margin: 0;
}

/* ============================================================
   GRAFISMO DECORATIVO DE SEÇÃO (motivo "S")
   ============================================================ */
/* Campo de blocos do "S" — grafismo de fundo (deconstruído, não a silhueta sólida) */
.block-field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 24px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  user-select: none;
}

.block-field i {
  border-radius: 9px;
  background: currentColor;
  opacity: 0.07;
}

.block-field i:nth-child(2),
.block-field i:nth-child(4) {
  opacity: 0.035;
}

.block-field i:last-child {
  opacity: 0.13;
}

/* leve descompasso para não parecer grade perfeita */
.block-field i:nth-child(3n + 1) {
  transform: translateY(9%);
}

.block-field i:nth-child(3n) {
  transform: translateY(-7%);
}

.section-deco {
  position: absolute;
  right: -3%;
  top: 50%;
  width: min(34vw, 420px);
  transform: translateY(-50%);
  color: var(--areia);
  z-index: 0;
}

.dark-section {
  position: relative;
  overflow: hidden;
}

.dark-section .section-inner {
  position: relative;
  z-index: 1;
}

/* ---------- Tipografia mais editorial ---------- */
.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.product-card h3 {
  letter-spacing: -0.015em;
}

/* ============================================================
   RESPONSIVO — mega/bento
   ============================================================ */
@media (max-width: 980px) {
  .product-card.featured {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 0;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .preloader {
    display: none;
  }
}

/* ============================================================
   CLIENTES — marquee (slide infinito)
   ============================================================ */
.clients-section {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.clients-head {
  max-width: 60ch;
  margin: 0 auto 40px;
  text-align: center;
}

.clients-label {
  margin: 0;
  color: var(--teal-light);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clients-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding-right: 16px;
}

.client {
  flex: 0 0 auto;
  width: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.client .tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 96px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s var(--ease);
}

.client.on-dark .tile {
  background: var(--teal);
  border-color: transparent;
}

.marquee:hover .client:hover .tile {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.client img {
  max-height: 68px;
  max-width: 122px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s var(--ease-out-expo);
}

.marquee:hover .client:hover img {
  transform: scale(1.06);
}

.client span {
  color: var(--muted);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    animation: none;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================================
   EVEN CARD HEADINGS (corrige quebra desigual de títulos)
   ============================================================ */
.product-card h3,
.index-row h3,
.capability h3 {
  text-wrap: balance;
}

/* ============================================================
   CONTATO — formulário real
   ============================================================ */
.contato-grid {
  align-items: start;
}

.contato-promise {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.contato-promise li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.contato-promise .blockmark {
  flex: 0 0 auto;
  width: 22px;
  color: var(--nevoa);
}

.contato-promise strong {
  color: var(--white);
}

.contato-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.contato-direct a {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contato-direct span {
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nevoa);
}

.contato-direct strong {
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.16s var(--ease);
}

.contato-direct a:hover strong {
  color: var(--nevoa);
}

.contato-form-wrap {
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contato-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  margin-bottom: 7px;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--teal);
}

.form-field .req {
  color: var(--nevoa);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 48, 61, 0.12);
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #b23a2e;
  box-shadow: 0 0 0 3px rgba(178, 58, 46, 0.12);
}

.field-error {
  min-height: 1.1em;
  margin-top: 6px;
  color: #9a2c22;
  font-size: 0.82rem;
}

.field-error:empty {
  min-height: 0;
  margin-top: 0;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 4px;
}

.form-foot .button {
  flex: 0 0 auto;
}

/* Botão primário dentro do card branco → versão teal (branco sobre branco não serve) */
.contato-form .button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 30px rgba(0, 48, 61, 0.18);
}

.contato-form .button-primary:hover {
  background: var(--teal-light);
}

.form-note {
  flex: 1 1 200px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.contato-success {
  padding: clamp(24px, 3vw, 36px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contato-success[hidden] {
  display: none;
}

.contato-success .blockmark {
  width: 44px;
  color: var(--teal);
  margin-bottom: 18px;
}

.contato-success h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contato-success p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.contato-success .actions-row {
  margin-top: 24px;
}

/* ============================================================
   PRODUTOS — índice por família
   ============================================================ */
.family-stack {
  display: grid;
  gap: clamp(44px, 6vw, 76px);
}

.family-head {
  margin-bottom: 26px;
}

.family-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.family-head p {
  margin-top: 10px;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.55;
}

.family-count {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--areia-soft);
  color: var(--teal-light);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.index-list {
  display: grid;
  gap: 14px;
}

.index-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.index-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.index-row > .blockmark {
  align-self: start;
  width: 30px;
  margin-top: 4px;
  color: var(--teal);
  opacity: 0.6;
}

.index-row .tag {
  margin-bottom: 12px;
}

.index-row h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.index-row-tagline {
  margin-top: 8px;
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 600;
  color: var(--teal-light);
}

.index-row-outcome {
  margin-top: 8px;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.5;
}

.index-row-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.index-row-audience span {
  padding: 5px 11px;
  border-radius: var(--pill);
  background: var(--areia-soft);
  color: var(--teal-light);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
}

.index-row-go {
  flex: 0 0 auto;
  align-self: center;
  color: var(--teal);
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s var(--ease);
}

.index-row:hover .index-row-go {
  transform: translateX(4px);
}

/* ============================================================
   SOBRE — trajetória
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item .blockmark {
  flex: 0 0 auto;
  width: 28px;
  margin-top: 3px;
  color: var(--teal);
  opacity: 0.6;
}

.timeline-item strong {
  display: block;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--teal);
}

.timeline-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   404 — página não encontrada
   ============================================================ */
.notfound-hero {
  display: grid;
  place-items: center;
  min-height: 68vh;
  text-align: center;
}

.notfound-inner {
  max-width: 620px;
}

.notfound-inner .blockmark {
  width: 46px;
  margin: 0 auto 22px;
  color: var(--nevoa);
}

.notfound-inner h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.notfound-inner > p {
  margin: 20px auto 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.6;
}

.notfound-inner .actions-row {
  justify-content: center;
  margin-top: 30px;
}

/* ============================================================
   SOLUÇÕES SOB MEDIDA — grade de domínios
   ============================================================ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.solucoes-cta {
  margin-top: 38px;
}

/* ============================================================
   FOOTER — marca de água "S" + social + base
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-deco {
  position: absolute;
  top: 50%;
  right: 1%;
  width: min(30vw, 380px);
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  padding: 8px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.78);
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease);
}

.footer-social a:hover {
  color: var(--white);
  border-color: var(--nevoa);
  background: rgba(146, 168, 173, 0.12);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

@media (max-width: 980px) {
  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .index-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 18px;
  }

  .index-row-go {
    display: none;
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }
}
