/* ==========================================================================
   Nurface — estilos do site
   Cores e tipografia: Context/brand.md
   ========================================================================== */

/* Fontes da marca, hospedadas no próprio site (geradas por tools/copiar-fontes.mjs) */
@font-face { font-family: "Exo 2"; font-weight: 600; font-display: swap; src: url("../fonts/exo2-600.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 700; font-display: swap; src: url("../fonts/exo2-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  /* Marca */
  --cyan: #00E5FF;
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --magenta: #D946EF;
  --bg: #0B0F1A;

  /* Derivadas */
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #F1F5F9;
  --text-muted: #A3AEC2;
  --gradient: linear-gradient(90deg, var(--cyan), var(--blue) 35%, var(--violet) 65%, var(--magenta));

  /* Tipografia: poucos tamanhos, cada um com um papel */
  --text-sm: 0.9375rem;   /* 15px: menu, notas, rodapé */
  --text-body: 1.0625rem; /* 17px: textos */
  --text-lead: 1.25rem;   /* 20px: subtítulos, títulos de cards, perguntas */
  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --header-h: 72px;
  --section-space: clamp(36px, 4.5vw, 60px); /* espaço entre seções aprovado na v1: não aumentar */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

/* Nada pode passar da largura da tela: no celular isso deixaria "arrastar a página para o lado" */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }

p { margin: 0; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }

.sr-only {
  position: absolute; 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: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text--animated {
  background-image: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--violet), var(--blue), var(--cyan));
  background-size: 300% 100%;
  animation: shimmer 8s linear infinite;
}
/* Fora da tela o brilho para (redesenhar o texto a cada quadro tem custo) */
.gradient-text--animated.is-paused { animation-play-state: paused; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 16px;
}

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Brilho que acompanha o cursor pela página (só desktop) */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10), rgba(0, 229, 255, 0.04) 40%, transparent 70%);
  opacity: 0; transition: opacity 0.6s;
  translate: var(--cx, -999px) var(--cy, -999px);
}
.cursor-glow.is-active { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
  cursor: pointer;
}

/* Tons um pouco mais profundos das cores da marca: o texto branco precisa de contraste 4,5:1 */
.btn--primary {
  color: #fff;
  background: linear-gradient(110deg, #2563EB, #7C3AED 55%, #C026D3);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7);
}
.btn--primary:hover { box-shadow: 0 14px 40px -8px rgba(217, 70, 239, 0.8); }

.btn--ghost { border: 1px solid var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.24); background: var(--surface-hover); }

.btn--outline { position: relative; background: var(--bg); isolation: isolate; }
.btn--outline::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--gradient);
}
.btn--outline::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: var(--bg); transition: opacity 0.3s;
}
.btn--outline:hover::after { opacity: 0.8; }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--text-sm); }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: var(--text-body); }

/* ---------- Header ---------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__symbol { width: 44px; height: auto; transition: transform 0.6s var(--ease); }
.brand:hover .brand__symbol { transform: rotate(-12deg) scale(1.08); }
.brand__name {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.22em;
}
/* O "A" da marca é um lambda desenhado, mas continua sendo a letra A no texto
   (leitores de tela, comando de voz e Google leem "NURFACE") */
.brand__lambda {
  display: inline-block; width: 0.62em; height: 0.72em; margin-right: 0.22em; overflow: hidden;
  color: transparent; letter-spacing: 0; line-height: 0.72em; background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1.2 14 6 1.5 10.8 14' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1.2 14 6 1.5 10.8 14' fill='none' stroke='%23000' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.nav__menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__menu a:not(.btn) { position: relative; font-size: var(--text-sm); color: var(--text-muted); transition: color 0.2s; }
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; border-radius: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-current::after { transform: scaleX(1); }
.nav__menu a.is-current { color: var(--text); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav__bar { width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 120px; isolation: isolate;
  /* Corta só as sobras laterais dos brilhos (senão a página fica mais larga que a tela no celular).
     Na vertical continua aberto: os brilhos seguem pela seção seguinte e se dissolvem, sem corte reto. */
  overflow-x: clip;
}
/* Brilhos e horizonte do topo: a camada passa 240 px da borda de baixo e some aos poucos (máscara),
   então o topo se dissolve na seção seguinte sem nenhuma linha de corte. A rede de pontos (animada)
   fica fora dela, com o próprio esmaecimento: máscara sobre algo animado pesa a cada quadro. */
.hero__bg {
  --fade-out: 240px;
  --fade-mask: linear-gradient(to bottom, #000 calc(100% - 440px), rgba(0, 0, 0, 0.85) calc(100% - 300px), rgba(0, 0, 0, 0.4) calc(100% - 150px), transparent);
  position: absolute; inset: 0 0 calc(-1 * var(--fade-out)); z-index: -2; overflow: hidden; pointer-events: none;
  mask-image: var(--fade-mask); -webkit-mask-image: var(--fade-mask);
}
.hero__network {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  /* Os pontos somem suavemente na parte de baixo: calculado no próprio desenho (main.js) */
}

/* Brilhos de fundo: só gradiente radial, sem filtro de desfoque (o desfoque grande deixava
   o primeiro desenho da tela lento no celular). Mesmo tamanho aparente de antes. */
.hero__glow { position: absolute; z-index: -2; border-radius: 50%; pointer-events: none; }
.hero__glow--a {
  width: 700px; height: 700px; left: -250px; top: calc(8% - 90px);
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.36), rgba(59, 130, 246, 0.16) 45%, rgba(59, 130, 246, 0.05) 75%, transparent);
}
.hero__glow--b {
  width: 740px; height: 940px; right: -250px; top: calc(30% - 90px);
  background: radial-gradient(closest-side, rgba(217, 70, 239, 0.2), rgba(217, 70, 239, 0.09) 45%, rgba(217, 70, 239, 0.03) 75%, transparent);
}

/* Horizonte de luz: faz a passagem do hero para a próxima seção */
.hero__horizon {
  position: absolute; left: 50%; bottom: calc(var(--fade-out) - 40px); z-index: -1; translate: -50% 0;
  width: max(140%, 1100px); height: 180px; pointer-events: none;
}
.hero__horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__horizon path { fill: none; stroke: url(#horizon-gradient); }
.hero__horizon-line { stroke-width: 1.5; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: drawLine 2.4s 0.6s var(--ease) forwards; }
.hero__horizon-glow { z-index: -1; filter: blur(14px); opacity: 0.55; }
.hero__horizon-glow path { stroke-width: 16; }

.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }

.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 700; margin-bottom: 24px; }
.hero__subtitle { font-size: var(--text-lead); color: var(--text-muted); max-width: 40ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__note { display: flex; align-items: center; gap: 12px; font-size: var(--text-sm); color: var(--text-muted); }
.hero__note::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: var(--gradient); flex-shrink: 0; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 36px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan); animation: scrollHint 1.8s ease-in-out infinite; }

/* ---------- Animação do logo (3 camadas: onda + 2 pontos) ---------- */

.hero__visual { display: grid; place-items: center; }
.logo-anim {
  position: relative; width: min(100%, 460px); aspect-ratio: 1; display: grid; place-items: center;
  cursor: grab;
}
/* O movimento das camadas é feito em main.js com física de molas (peso, elasticidade e inércia).
   Os pontos podem ser arrastados com o mouse ou o dedo e voltam ao lugar de forma elástica. */
.logo-anim__stage {
  position: relative; width: 82%; aspect-ratio: 720 / 509;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.logo-anim__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  will-change: transform; pointer-events: none; -webkit-user-drag: none;
}
.logo-anim__wave { transform-origin: 50.4% 52.5%; }
/* Versão maleável do N (canvas criado em main.js): maior que a arte para caber as deformações */
.logo-anim__wave--mesh { inset: -15%; width: 130%; height: 130%; transform-origin: 50% 50%; filter: none; }
/* Brilho azul do N: imagem já desfocada, na mesma moldura do canvas (30% maior que a arte) */
.logo-anim__glow { inset: -15%; width: 130%; height: 130%; transform-origin: 50% 50%; }
.logo-anim__dot--a { transform-origin: 29.4% 83.7%; }
.logo-anim__dot--b { transform-origin: 77.9% 21.5%; }
/* O logo aparece parado assim que a página abre (uma imagem leve). Depois do carregamento,
   as camadas animadas surgem por cima e a imagem parada some, numa transição suave. */
.logo-anim__static { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.6s var(--ease); }
.logo-anim__layer { opacity: 0; transition: opacity 0.6s var(--ease); }
.logo-anim.is-ready .logo-anim__layer { opacity: 1; }
.logo-anim.is-ready .logo-anim__static { opacity: 0; }
.logo-anim__wave--mesh { visibility: hidden; }
.logo-anim__wave--mesh.is-live { visibility: visible; }
.logo-anim.is-dragging { cursor: grabbing; }

.logo-anim__halo {
  position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.32), rgba(0, 229, 255, 0.09) 55%, transparent);
  animation: pulse 6s ease-in-out infinite;
}
.logo-anim__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border); pointer-events: none; }
.logo-anim__ring--1 { inset: 3%; animation: spin 40s linear infinite; border-top-color: rgba(0, 229, 255, 0.55); }
.logo-anim__ring--2 { inset: 14%; animation: spin 26s linear infinite reverse; border-bottom-color: rgba(217, 70, 239, 0.55); }
.logo-anim__ring--1::after, .logo-anim__ring--2::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  top: 50%; left: -4px; translate: 0 -50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.logo-anim__ring--2::after { left: auto; right: -4px; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }

@keyframes breathe { 50% { transform: scale(1.025); } }
@keyframes pulse { 50% { opacity: 0.6; transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Seções ---------- */

.section { position: relative; padding: var(--section-space) 0; }
/* As seções abaixo da primeira tela só são calculadas e desenhadas quando chegam perto da tela.
   Deixa o primeiro desenho bem mais leve no celular. O tamanho estimado evita a barra de rolagem pular. */
.section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section--problems { padding-top: calc(var(--section-space) * 0.5); }
/* Fundo alternativo sem bordas retas: um brilho radial que se dissolve no fundo */
.section--alt { isolation: isolate; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.04) 45%, transparent 75%);
}

.section__header { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 40px); }
.section__header--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; }
.section__intro { margin-top: 20px; font-size: var(--text-lead); color: var(--text-muted); max-width: 52ch; }
.section__closing { margin: clamp(28px, 3.5vw, 40px) auto 0; max-width: 52ch; font-size: var(--text-lead); color: var(--text-muted); text-align: center; }
.section__closing strong { color: var(--text); font-weight: 600; }

.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Problemas: lista em tipo grande ---------- */

.problems { list-style: none; margin: 0; padding: 0; }
.problem {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--border);
}
.problem:last-child { border-bottom: 1px solid var(--border); }
.problem__title {
  display: flex; align-items: center; gap: 18px;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 600; letter-spacing: -0.02em;
}
.problem__icon {
  width: 32px; height: 32px; flex-shrink: 0; color: var(--magenta);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.problem__text { color: var(--text-muted); font-size: var(--text-lead); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) {
  .problem:hover .problem__icon { transform: scale(1.12) rotate(-6deg); }
}

/* ---------- Cards ---------- */

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, background-color 0.4s;
}
.card__icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: var(--text-lead); font-weight: 600; margin-bottom: 12px; }
.card__text { color: var(--text-muted); font-size: var(--text-body); }

/* Cards de solução: brilho que segue o cursor (--x/--y em main.js) */
.card--solution { overflow: hidden; isolation: isolate; }
.card--solution::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 0%), rgba(139, 92, 246, 0.18), transparent 60%);
}
.card--solution::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), rgba(0, 229, 255, 0.7), rgba(217, 70, 239, 0.5) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.card--solution:hover { transform: translateY(-6px); background: var(--surface-hover); }
.card--solution:hover::before, .card--solution:hover::after { opacity: 1; }
.card--solution:hover .card__icon-wrap { transform: rotate(-6deg); }

.card__title--icon { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card__icon-wrap { display: grid; flex-shrink: 0; color: var(--cyan); transition: transform 0.4s var(--ease); }
.card__link {
  margin-top: auto; padding-top: 24px; font-weight: 600; font-size: var(--text-sm); color: var(--cyan);
  display: inline-flex; align-items: center; gap: 8px;
}
.card__link span { transition: transform 0.3s var(--ease); }
.card__link:hover span { transform: translateX(4px); }

/* ---------- Ilustração das soluções: painel e site no celular (HTML, sem imagens) ---------- */

.solutions-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(28px, 5vw, 72px); margin-bottom: clamp(28px, 3.5vw, 40px);
}
.solutions-intro .section__header { margin-bottom: 0; }

.showcase { margin: 0; }
/* Tudo em "em": a ilustração inteira cresce ou diminui junto com o tamanho da fonte */
.showcase__stage { position: relative; font-size: clamp(10px, 1.05vw, 14px); height: 26em; }

.mock-dash {
  position: absolute; left: 0; top: 0; width: 36em; padding: 1.6em;
  border-radius: 1.2em; background: #111830; border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, 0.6);
}
.mock-dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3em; }
.mock-dash__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15em; }
.mock-dash__chip { font-size: 0.8em; padding: 0.35em 0.8em; border-radius: 999px; color: var(--cyan); background: rgba(0, 229, 255, 0.1); }
.mock-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; margin-bottom: 1.4em; }
.mock-kpi { display: grid; gap: 0.3em; padding: 0.9em 1em; border-radius: 0.8em; background: rgba(255, 255, 255, 0.04); }
.mock-kpi__label { font-size: 0.8em; color: var(--text-muted); }
.mock-kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 1.35em; font-variant-numeric: tabular-nums; }
.mock-chart__bars { display: flex; align-items: flex-end; gap: 0.9em; height: 9em; padding: 0 0.2em; }
.mock-chart__bar {
  flex: 1; height: var(--h); border-radius: 0.4em 0.4em 0.15em 0.15em;
  background: linear-gradient(to top, var(--blue), var(--cyan));
  transform-origin: bottom; transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 70ms + 200ms);
}
.mock-chart__bar:last-child { background: linear-gradient(to top, var(--violet), var(--magenta)); }
/* As barras crescem quando a ilustração aparece na tela */
.showcase:not(.is-visible) .mock-chart__bar { transform: scaleY(0.12); }
.no-js .showcase .mock-chart__bar { transform: none; }
.mock-chart__axis { display: flex; gap: 0.9em; margin-top: 0.6em; padding: 0 0.2em; }
.mock-chart__axis span { flex: 1; text-align: center; font-size: 0.75em; color: var(--text-muted); }

.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 13.5em; height: 25em; padding: 0.55em;
  border-radius: 2.2em; background: #1B2340; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2em 4em -1em rgba(0, 0, 0, 0.7);
}
.mock-phone__screen {
  display: flex; flex-direction: column; gap: 0.75em; height: 100%; padding: 1.1em 1em; overflow: hidden;
  border-radius: 1.7em; background: radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, 0.25), transparent 60%), var(--bg);
}
.mock-phone__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4em; }
.mock-phone__logo { width: 2.6em; height: 0.7em; border-radius: 999px; background: rgba(255, 255, 255, 0.5); }
.mock-phone__menu { width: 1.2em; height: 0.55em; border-top: 2px solid rgba(255, 255, 255, 0.6); border-bottom: 2px solid rgba(255, 255, 255, 0.6); }
.mock-phone__title { font-family: var(--font-display); font-weight: 700; font-size: 1.35em; line-height: 1.15; }
.mock-line { height: 0.5em; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.mock-line--short { width: 65%; }
.mock-phone__btn {
  margin-top: 0.3em; padding: 0.7em; border-radius: 999px; text-align: center; font-weight: 600; font-size: 0.8em; color: #fff;
  background: linear-gradient(110deg, #2563EB, #7C3AED 55%, #C026D3);
}
.mock-phone__card { height: 3.6em; border-radius: 0.8em; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); }
.mock-phone__card--b { opacity: 0.6; }

/* ---------- Linha do tempo (Como trabalhamos) ---------- */

.timeline {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
/* trilho + preenchimento conforme a rolagem (--progress de 0 a 1, em main.js) */
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; border-radius: 2px;
}
.timeline::before { background: var(--border); }
.timeline::after { background: var(--gradient); transform-origin: left; transform: scaleX(var(--progress)); box-shadow: 0 0 16px rgba(139, 92, 246, 0.6); }

.timeline__step { position: relative; z-index: 1; }
.timeline__dot {
  width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-body);
  background: var(--bg); border: 2px solid var(--border);
  transition: border-color 0.5s, box-shadow 0.5s, color 0.5s;
}
.timeline__step.is-active .timeline__dot { border-color: var(--violet); color: var(--cyan); box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12), 0 0 24px rgba(139, 92, 246, 0.5); }
.timeline__title { font-size: var(--text-lead); font-weight: 600; margin-bottom: 10px; }
.timeline__text { color: var(--text-muted); font-size: var(--text-body); }

/* ---------- Diferenciais ---------- */

/* Duas colunas de texto, sem caixas */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 48px) clamp(40px, 6vw, 96px); }
.feature { display: flex; gap: 18px; }
.feature__icon {
  width: 28px; height: 28px; margin-top: 2px; flex-shrink: 0;
  fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s var(--ease), stroke 0.4s;
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover .feature__icon { transform: scale(1.1); stroke: var(--cyan); }
}
.feature__title { font-size: var(--text-lead); font-weight: 600; margin-bottom: 8px; }
.feature__text { color: var(--text-muted); font-size: var(--text-body); max-width: 46ch; }

/* ---------- Dúvidas ---------- */

.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color 0.3s, background-color 0.3s; }
.faq__item[open] { border-color: rgba(139, 92, 246, 0.4); background: var(--surface-hover); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-lead);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 14px; height: 2px; border-radius: 2px;
  background: var(--cyan); transition: transform 0.35s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__answer { padding: 0 26px 24px; color: var(--text-muted); }
.faq__answer p { max-width: 65ch; }

/* ---------- Contato ---------- */

.section--contact { padding-top: calc(var(--section-space) * 0.5); padding-bottom: calc(var(--section-space) * 1.2); }
.contact {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(217, 70, 239, 0.16), transparent 55%),
    #0E1324;
}
.contact::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact__network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.7; }
.contact__content { max-width: 640px; margin-inline: auto; }
.contact__text { margin: 20px auto 36px; font-size: var(--text-lead); color: var(--text-muted); }
.contact__channels { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.contact__channels a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); transition: color 0.2s; }
.contact__channels a:hover { color: var(--text); }
.contact__channels svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Rodapé ---------- */

.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer__slogan { margin-top: 14px; color: var(--text-muted); font-size: var(--text-sm); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__nav a, .footer__social { color: var(--text-muted); font-size: var(--text-sm); transition: color 0.2s; }
.footer__nav a:hover, .footer__social:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- Botão flutuante do WhatsApp (celular) ---------- */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--violet), var(--magenta));
  box-shadow: 0 10px 30px -6px rgba(139, 92, 246, 0.7);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Páginas simples (privacidade, 404) ---------- */

.page-simple { min-height: 100svh; padding: calc(var(--header-h) + 64px) 0 var(--section-space); }
.page-simple h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.page-simple h2 { font-size: var(--text-lead); margin: 40px 0 12px; }
.page-simple p { color: var(--text-muted); margin-bottom: 12px; max-width: 65ch; }
.page-simple .updated { font-size: var(--text-sm); }
.page-simple p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.page-404 { display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.page-404 img { width: 180px; margin: 0 auto 32px; animation: breathe 6s ease-in-out infinite; }
.page-404 p { margin: 16px 0 32px; }

/* ---------- Animação de entrada ---------- */

/* Usa `translate` (e não `transform`) para não conflitar com os efeitos de hover e inclinação */
.reveal { opacity: 0; translate: 0 24px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease), transform 0.4s var(--ease), border-color 0.4s, background-color 0.4s; }
.reveal.is-visible { opacity: 1; translate: none; }
/* Primeira tela: animação em CSS puro, sem esperar o JavaScript, e começando quase invisível
   (não 100% invisível) para o navegador considerar o título já desenhado — o site "aparece" mais rápido */
.hero .reveal { opacity: 1; translate: none; transition: none; animation: heroIn 0.6s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: 0.05s; }
.hero .reveal:nth-child(3) { animation-delay: 0.1s; }
.hero .reveal:nth-child(4) { animation-delay: 0.15s; }
.hero .reveal:nth-child(5) { animation-delay: 0.2s; }
@keyframes heroIn { from { opacity: 0.01; translate: 0 24px; } }
.no-js .reveal { opacity: 1; translate: none; }

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
  .solutions-intro { grid-template-columns: 1fr; }
  .showcase__stage { font-size: clamp(9px, 1.9vw, 14px); max-width: 44em; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .logo-anim { width: min(60vw, 280px); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
}

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

  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 28px; background: rgba(11, 15, 26, 0.97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  /* Ao abrir, os links ficam visíveis (e focáveis pelo teclado) na hora; ao fechar, somem depois do fade */
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s; }
  .nav__menu a:not(.btn) { display: block; padding: 14px 0; font-size: var(--text-body); color: var(--text); border-bottom: 1px solid var(--border); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 20px; }
  .nav__cta .btn { width: 100%; }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .wa-float { display: grid; }
  .cursor-glow { display: none; }
}

@media (max-width: 640px) {
  /* Hero no celular: título em largura total; subtítulo e logo lado a lado; botões embaixo.
     Assim o texto e o logo animado aparecem juntos na primeira tela. */
  .hero { align-items: flex-start; padding-bottom: 96px; }
  .hero__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "eyebrow eyebrow" "title title" "subtitle logo" "actions actions" "note note";
    column-gap: 10px; row-gap: 0;
  }
  .hero__content { display: contents; }
  .hero__content .eyebrow { grid-area: eyebrow; }
  .hero__title { grid-area: title; margin-bottom: 18px; }
  .hero__subtitle { grid-area: subtitle; align-self: center; margin-bottom: 0; font-size: 1rem; } /* divide a linha com o logo */
  .hero__visual { grid-area: logo; align-self: center; margin-right: -8px; }
  .logo-anim { width: clamp(132px, 40vw, 170px); }
  .hero__actions { grid-area: actions; margin: 26px 0 22px; }
  .hero__note { grid-area: note; }

  .grid--4, .features { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 1fr; gap: 10px; }
  .problem__text { font-size: var(--text-body); }
  .timeline { grid-template-columns: 1fr; padding-left: 0; }
  /* No celular a linha do tempo fica vertical */
  .timeline__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .timeline__dot { grid-row: span 2; margin: 0; }
  .timeline__title { align-self: end; margin-top: 4px; }
}

@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; padding: 0 18px; }
  .hero__scroll { display: none; }
  .btn--lg { width: 100%; padding: 0 18px; }
  .brand__name { font-size: 1.05rem; }
  .brand__symbol { width: 38px; }
  .card { padding: 28px 22px; }
  .footer__inner { flex-direction: column; }
}

/* Telas de toque: sem o efeito de vidro (desfoque do fundo), que pesa na rolagem do celular.
   Um fundo quase sólido no lugar, praticamente igual de longe. */
@media (hover: none) and (pointer: coarse) {
  .header.is-scrolled, .nav__menu { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* O brilho que corre no texto em gradiente redesenha o texto a cada quadro: no celular fica parado */
  .gradient-text--animated { animation: none; }
  /* Texto e blocos aparecem na hora, sem animação de entrada */
  .reveal, .hero .reveal { opacity: 1; translate: none; animation: none; transition: transform 0.4s var(--ease), border-color 0.4s, background-color 0.4s; }
  .header.is-scrolled { background: rgba(11, 15, 26, 0.94); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  .hero__horizon-line { stroke-dashoffset: 0; }
}
