/* =============================================================================
   SR Core — site institucional
   -----------------------------------------------------------------------------
   Folha única, sem framework. Mesma família visual do painel (teal {>} sobre
   slate frio), em escala editorial: tipografia grande, muito respiro, uma
   seção clara no meio para dar ritmo.

   Regras da casa:
     - nenhuma cor fora dos tokens abaixo;
     - toda animação respeita prefers-reduced-motion (bloco no fim do arquivo);
     - sem JS a página aparece inteira: os estados "escondidos" só valem
       sob html.js (classe posta por boot.js).
   ============================================================================= */

:root {
  --bg: #07090c;
  --bg-2: #0a0d12;
  --surface: #0f1319;
  --surface-2: #151a22;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);

  --text: #eef1f5;
  --muted: #a1aab7;
  --dim: #6f7887;

  --accent: #1fc8b3;
  --accent-2: #5eead4;
  --accent-deep: #0b8c7e;
  --accent-ink: #00211d;
  --accent-soft: rgb(31 200 179 / 0.12);
  --coral: #fb7b5b;
  --indigo: #8b95ff;
  --danger: #ff7a7a;

  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(80px, 11vw, 148px);
  --header-h: 72px;

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: rgb(31 200 179 / 0.28); color: #fff; }

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

.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: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ tipografia ---- */
h1, h2, h3 { font-weight: 600; text-wrap: balance; }

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h2.h-small { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.section-sub {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.4vw, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- botões ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 0.95rem; font-weight: 550; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgb(94 234 212 / 0.35) inset,
              0 12px 32px -12px rgb(31 200 179 / 0.65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgb(94 234 212 / 0.5) inset,
              0 0 0 5px rgb(31 200 179 / 0.12),
              0 18px 40px -12px rgb(31 200 179 / 0.75);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.03);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgb(255 255 255 / 0.07);
  border-color: rgb(255 255 255 / 0.26);
  transform: translateY(-2px);
}

.btn-dark { background: #0b0e13; color: #fff; margin-top: 32px; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgb(11 14 19 / 0.6); }

.btn-arrow { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgb(0 33 29 / 0.25); border-top-color: var(--accent-ink);
  animation: spin 0.7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn-arrow { display: none; }
.btn.is-loading .btn-spinner { display: block; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 0.95rem; font-weight: 550; color: var(--accent-2);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  backdrop-filter: blur(8px);
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
}
.pill-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.pill-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
  animation: ping 2.4s var(--ease-out) infinite;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.02em;
  color: var(--muted);
}

/* ------------------------------------------------- barra de progresso ---- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 2px; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* -------------------------------------------------------------- cabeçalho ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgb(7 9 12 / 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid rgb(31 200 179 / 0.55);
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.06em;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark { box-shadow: 0 0 22px -4px var(--accent); transform: rotate(-4deg); }
.brand-name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav ul a {
  position: relative; display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 0.925rem; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.site-nav ul a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.site-nav ul a.is-active { color: var(--text); }
.site-nav ul a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-login:hover { color: var(--text); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.03);
}
.nav-toggle-bars { display: grid; gap: 6px; width: 18px; margin: auto; }
.nav-toggle-bars i {
  display: block; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ------------------------------------------------------------------- hero ---- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }

.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.55; will-change: transform;
}
.aurora-a {
  width: 620px; height: 620px; left: -160px; top: -220px;
  background: radial-gradient(circle, rgb(31 200 179 / 0.55), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.aurora-b {
  width: 560px; height: 560px; right: -140px; top: 8%;
  background: radial-gradient(circle, rgb(139 149 255 / 0.36), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.aurora-c {
  width: 460px; height: 460px; left: 38%; bottom: -260px;
  background: radial-gradient(circle, rgb(251 123 91 / 0.22), transparent 65%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 20%, transparent 78%);
}
/* Luz que segue o cursor — coordenadas vêm do JS em --sx/--sy */
.hero-grid::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 30%),
              rgb(31 200 179 / 0.12), transparent 60%);
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 88px);
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.hl {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 45%, #8be9ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 7s ease-in-out infinite alternate;
}
.hero-sub {
  margin-top: 26px; max-width: 56ch;
  font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.6;
  color: var(--muted); text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero-tags .icon { width: 15px; height: 15px; color: var(--accent); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px;
  border: 1px solid var(--line-strong);
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent);
  animation: wheel 2s var(--ease) infinite;
}

/* --- ilustração do hero --------------------------------------------------- */
.hero-visual {
  position: relative; padding: 28px 12px 104px 0;
  perspective: 1400px;
}
.console {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: linear-gradient(180deg, rgb(21 26 34 / 0.92), rgb(12 15 20 / 0.92));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset,
              0 50px 100px -40px rgb(0 0 0 / 0.9),
              0 0 0 1px rgb(0 0 0 / 0.4),
              0 0 90px -30px rgb(31 200 179 / 0.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  backdrop-filter: blur(12px);
}
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim);
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.console-title { flex: 1; }
.console-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); }
.console-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: blink 1.6s ease-in-out infinite;
}
.console-body { padding: 24px 22px 26px; }

.term { min-height: 172px; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.5; }
.term-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); white-space: nowrap; }
.term-prompt { color: var(--accent); }
.term-text { color: var(--text); margin-left: -4px; }
.term-line.ok .icon { width: 15px; height: 15px; color: var(--accent); }
.term-line.run { color: var(--text); }
.term-spinner {
  width: 13px; height: 13px; margin: 0 1px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.16); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.term-caret {
  width: 8px; height: 17px; margin-left: 2px; background: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
.js .term-line[data-out] { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.js .term-line[data-out].is-on { opacity: 1; transform: none; }

.pipeline {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}
.pipeline-step { display: inline-flex; align-items: center; gap: 8px; }
.pipeline-node { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.2); }
.pipeline-step.is-done .pipeline-node { background: var(--accent); border-color: var(--accent); }
.pipeline-step.is-live { color: var(--text); }
.pipeline-step.is-live .pipeline-node { border-color: var(--accent); animation: pulse 1.8s ease-out infinite; }
.pipeline-track { flex: 1; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.pipeline-track i { display: block; height: 100%; background: var(--accent); animation: flow 3.2s var(--ease) infinite; }
.pipeline-track:nth-of-type(2) i { animation-delay: 1.1s; }

.float-card {
  position: absolute; z-index: 2;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(18 22 29 / 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.85);
  font-size: 0.8125rem;
}
.float-head { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.float-head .icon { width: 16px; height: 16px; color: var(--accent); }
.float-a { right: -8px; top: -6px; animation: bob 7s ease-in-out infinite; }
.float-b { left: -26px; bottom: 6px; animation: bob 8.5s ease-in-out -2s infinite; }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 12px; }
.bars i {
  width: 8px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--accent-2), rgb(31 200 179 / 0.25));
  transform-origin: 50% 100%;
  animation: grow 3.6s var(--ease) infinite alternate;
}
.bars i:nth-child(1) { height: 30%; animation-delay: -0.2s; }
.bars i:nth-child(2) { height: 42%; animation-delay: -0.9s; }
.bars i:nth-child(3) { height: 36%; animation-delay: -1.4s; }
.bars i:nth-child(4) { height: 55%; animation-delay: -0.5s; }
.bars i:nth-child(5) { height: 48%; animation-delay: -2.1s; }
.bars i:nth-child(6) { height: 66%; animation-delay: -1.1s; }
.bars i:nth-child(7) { height: 60%; animation-delay: -2.8s; }
.bars i:nth-child(8) { height: 78%; animation-delay: -0.7s; }
.bars i:nth-child(9) { height: 88%; animation-delay: -1.8s; }
.bars i:nth-child(10) { height: 100%; animation-delay: -2.4s; }

.checks { display: grid; gap: 6px; margin-top: 10px; font-size: 0.75rem; color: var(--muted); }
.checks span { display: flex; align-items: center; gap: 7px; }
.checks .icon { width: 13px; height: 13px; color: var(--accent); }

/* ---------------------------------------------------------------- logos ---- */
.logos { padding: 8px 0 56px; }
.logos-title {
  text-align: center; margin-bottom: 30px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 64px; }
.marquee.is-running .marquee-track {
  flex-wrap: nowrap; justify-content: flex-start; width: max-content;
  animation: marquee var(--marquee-time, 40s) linear infinite;
}
.marquee.is-running:hover .marquee-track { animation-play-state: paused; }
.logo-item { flex: none; display: grid; place-items: center; height: 48px; opacity: 0.6; transition: opacity 0.3s; }
.logo-item:hover { opacity: 1; }
.logo-item img { max-height: 40px; width: auto; max-width: 170px; filter: grayscale(1) brightness(1.9); transition: filter 0.3s; }
.logo-item:hover img { filter: none; }
.logo-item span { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); }

/* --------------------------------------------------------------- números ---- */
.stats { padding: 24px 0 clamp(56px, 8vw, 96px); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.03), transparent);
}
.stat { display: grid; gap: 4px; padding: 34px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, rgb(255 255 255 / 0.62));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 10px; font-weight: 550; color: var(--text); }
.stat-note { font-size: 0.875rem; color: var(--dim); }

/* ---------------------------------------------------------------- seções ---- */
.section { position: relative; padding: var(--section-y) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow::before { display: none; }

.split {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 96px);
}
.split .section-head { margin-bottom: 0; }
.section-head.is-sticky { position: sticky; top: calc(var(--header-h) + 40px); }

/* --------------------------------------------------------------- serviços ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* 4, 8 ou 16 cards: quatro colunas fecham a grade sem buraco na última linha */
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.cols-4 .card { padding: 26px 22px 24px; }
.card {
  position: relative; isolation: isolate;
  padding: 30px 28px 28px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01)), var(--surface);
  transition: transform 0.45s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}
/* Brilho que acompanha o cursor (--mx/--my vêm do JS) */
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%),
              rgb(31 200 179 / 0.16), transparent 62%);
  transition: opacity 0.4s var(--ease);
}
[data-spotlight]:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: rgb(31 200 179 / 0.36);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(31 200 179 / 0.08);
}
.card-index {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim);
}
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 26px;
  border-radius: 14px; border: 1px solid rgb(31 200 179 / 0.3);
  background: var(--accent-soft); color: var(--accent-2);
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.card-icon .icon { width: 24px; height: 24px; }
.card:hover .card-icon { transform: scale(1.06) rotate(-4deg); background: rgb(31 200 179 / 0.2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.975rem; color: var(--muted); }

/* ------------------------------------------------------------ diferenciais ---- */
.bento {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.bento-cell {
  position: relative; padding: 36px 32px 38px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}
.bento-cell:hover { background: rgb(255 255 255 / 0.025); }
.bento-cell::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.6s var(--ease-out);
}
.bento-cell:hover::after { transform: scaleX(1); }
.bento-icon { display: inline-grid; margin-bottom: 22px; color: var(--accent); }
.bento-icon .icon { width: 26px; height: 26px; }
.bento-cell h3 { margin-bottom: 8px; }
.bento-cell p { font-size: 0.975rem; color: var(--muted); }

/* --------------------------------------------------------------- projetos ---- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s var(--ease);
}
.project:hover {
  transform: translateY(-6px); border-color: var(--line-strong);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.95);
}
.project-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.project:hover .project-cover img { transform: scale(1.04); }
.project-cover.is-generated { display: grid; place-items: center; }
.project-cover.is-generated::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.tone-a.is-generated { background: radial-gradient(120% 120% at 15% 10%, rgb(31 200 179 / 0.42), transparent 55%), #0c1116; }
.tone-b.is-generated { background: radial-gradient(120% 120% at 85% 15%, rgb(139 149 255 / 0.4), transparent 55%), #0c0f17; }
.tone-c.is-generated { background: radial-gradient(120% 120% at 20% 90%, rgb(251 123 91 / 0.34), transparent 55%), #120e0d; }
.tone-d.is-generated { background: radial-gradient(120% 120% at 80% 85%, rgb(94 234 212 / 0.32), transparent 55%), #0b1213; }
.project-mono {
  position: relative; display: grid; justify-items: center; gap: 14px; padding: 0 24px;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  text-align: center; color: rgb(255 255 255 / 0.94);
  transition: transform 0.7s var(--ease-out);
}
.project-mono i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.28); background: rgb(255 255 255 / 0.06);
  font-family: var(--font-mono); font-size: 0.9375rem; font-style: normal; font-weight: 600;
  letter-spacing: -0.06em; color: rgb(255 255 255 / 0.9);
}
.project:hover .project-mono { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 30px 30px 32px; }
.project-kicker {
  margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.project-body h3 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.project-body > p:not(.project-kicker) { color: var(--muted); font-size: 0.975rem; }
.project-body .link-arrow { margin-top: auto; padding-top: 22px; }

.project.is-featured { grid-column: 1 / -1; flex-direction: row; }
.project.is-featured .project-cover { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.project.is-featured .project-body { flex: 1; justify-content: center; padding: clamp(30px, 4vw, 52px); }
.project.is-featured .project-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* ------------------------------------------------- processo (seção clara) ---- */
.paper {
  --text: #0b0e13; --muted: #4c5562; --dim: #7c8695;
  --line: rgb(11 14 19 / 0.1); --line-strong: rgb(11 14 19 / 0.18);
  background: #f2f4f6; color: var(--text);
}
.paper .eyebrow { color: var(--accent-deep); }
.paper ::selection { background: rgb(11 140 126 / 0.22); color: #0b0e13; }

.timeline { position: relative; }
.timeline-rail {
  position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px;
  border-radius: 2px; background: var(--line); overflow: hidden;
}
.timeline-rail i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform-origin: 50% 0; transform: scaleY(var(--progress, 0));
  transition: transform 0.2s linear;
}
.timeline-step {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr);
  gap: 26px; padding: 0 0 44px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--dim);
  transition: background-color 0.4s var(--ease), color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
}
.timeline-step.is-active .timeline-num {
  background: #0b0e13; border-color: #0b0e13; color: var(--accent-2);
  box-shadow: 0 0 0 6px rgb(11 140 126 / 0.14); transform: scale(1.04);
}
.timeline-step h3 { margin: 10px 0 8px; font-size: 1.375rem; letter-spacing: -0.02em; }
.timeline-step p { color: var(--muted); max-width: 54ch; }

/* ------------------------------------------------------------ depoimentos ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote {
  padding: 32px 30px; border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent), var(--surface);
}
.quote figure { display: flex; flex-direction: column; height: 100%; }
.quote-mark { width: 28px; height: 28px; margin-bottom: 18px; color: var(--accent); opacity: 0.8; }
.quote blockquote { flex: 1; font-size: 1.0625rem; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote figcaption span { display: grid; line-height: 1.35; }
.quote figcaption small { font-size: 0.8125rem; color: var(--dim); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-fallback {
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgb(31 200 179 / 0.3);
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-2);
}

/* ------------------------------------------------------------- quem somos ---- */
.about { overflow: hidden; }
.about-glyph {
  position: absolute; right: -4vw; top: 50%; translate: 0 -50%;
  font-family: var(--font-mono); font-weight: 600; line-height: 1;
  font-size: clamp(220px, 34vw, 520px); letter-spacing: -0.1em;
  color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.05);
  pointer-events: none; user-select: none;
}
.about .container { position: relative; }
.about-body { display: grid; gap: 22px; color: var(--muted); }
.about-body .lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; color: var(--text); letter-spacing: -0.012em; }
.about-sign {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 26px;
  border-top: 1px solid var(--line); font-size: 0.925rem; color: var(--dim);
}

/* -------------------------------------------------------------- parceiros ---- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.partner {
  display: grid; place-items: center; min-height: 104px; padding: 22px;
  border: 1px solid var(--line); border-radius: 18px; background: rgb(255 255 255 / 0.02);
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease-out);
}
.partner:hover { border-color: var(--line-strong); background: rgb(255 255 255 / 0.05); transform: translateY(-3px); }
.partner a { display: grid; place-items: center; width: 100%; }
.partner img { max-height: 44px; width: auto; max-width: 150px; filter: grayscale(1) brightness(1.9); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.partner:hover img { filter: none; opacity: 1; }
.partner span { font-weight: 600; color: var(--muted); letter-spacing: -0.01em; }

/* -------------------------------------------------------------------- faq ---- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 550; letter-spacing: -0.012em;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item summary .icon {
  width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.faq-item[open] summary .icon {
  transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.faq-answer { padding: 0 60px 30px 4px; color: var(--muted); }
.faq-item[open] .faq-answer { animation: fade-up 0.45s var(--ease-out); }

/* ---------------------------------------------------------------- contato ---- */
.contact { overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-glow {
  position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; translate: -50% 0;
  background: radial-gradient(ellipse, rgb(31 200 179 / 0.2), transparent 68%);
  filter: blur(30px); pointer-events: none;
}
.contact-grid {
  position: relative; display: grid; align-items: start;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 88px);
}
.contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }

.assurances { display: grid; gap: 12px; margin-top: 34px; font-size: 0.95rem; color: var(--muted); }
.assurances li { display: flex; align-items: center; gap: 12px; }
.assurances .icon { width: 18px; height: 18px; color: var(--accent); }

.channels { display: grid; gap: 10px; margin-top: 34px; }
.channels:empty { display: none; }
.channels a, .channels div {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / 0.02);
  transition: border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease-out);
}
.channels a:hover { border-color: rgb(31 200 179 / 0.4); background: var(--accent-soft); transform: translateX(4px); }
.channels .icon { width: 20px; height: 20px; color: var(--accent); }
.channels span { display: grid; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.channels small { font-size: 0.75rem; font-weight: 400; color: var(--dim); }

.form-card {
  position: relative; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015)), var(--surface);
  box-shadow: 0 50px 100px -50px rgb(0 0 0 / 0.95), 0 1px 0 rgb(255 255 255 / 0.06) inset;
}
.lead-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.field > label:not(.check) > span { color: var(--accent); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 13px;
  background: rgb(7 9 12 / 0.55); color: var(--text);
  font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 132px; }
.field ::placeholder { color: var(--dim); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(255 255 255 / 0.26); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgb(7 9 12 / 0.8);
  box-shadow: 0 0 0 4px rgb(31 200 179 / 0.16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgb(255 122 122 / 0.16); }
.field-error { min-height: 0; font-size: 0.8125rem; color: var(--danger); }
.field-error:empty { display: none; }
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #0b0e13 inset; -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}

.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap select:invalid, .select-wrap select option[value=""] { color: var(--dim); }
.select-wrap select option { background: #0f1319; color: var(--text); }
.select-wrap .icon {
  position: absolute; right: 15px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; color: var(--dim); pointer-events: none;
}

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

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check-box {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border: 1px solid var(--line-strong); border-radius: 7px; background: rgb(7 9 12 / 0.55);
  color: transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.check-box .icon { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgb(31 200 179 / 0.22); }
.consent.has-error .check-box { border-color: var(--danger); }
.check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.form-alert {
  padding: 13px 16px; border-radius: 12px; font-size: 0.9rem;
  border: 1px solid rgb(255 122 122 / 0.4); background: rgb(255 122 122 / 0.1); color: #ffc9c9;
}
.form-noscript { font-size: 0.875rem; color: var(--muted); text-align: center; }

.form-success { display: grid; justify-items: center; gap: 14px; padding: clamp(28px, 6vw, 64px) 12px; text-align: center; }
.form-success h3 { font-size: 1.6rem; letter-spacing: -0.025em; }
.form-success p { max-width: 42ch; color: var(--muted); }
.form-success .btn { margin-top: 10px; }
.success-mark {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgb(31 200 179 / 0.45); color: var(--accent-2);
  animation: pop 0.6s var(--ease-out);
}
.success-mark .icon { width: 32px; height: 32px; stroke-width: 2.5; }

/* ----------------------------------------------------------------- rodapé ---- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--line); background: var(--bg); font-size: 0.925rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 48px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--muted); }
.footer-title {
  margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.site-footer ul { display: grid; gap: 10px; color: var(--muted); }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }
.social { display: flex !important; gap: 10px !important; margin-top: 24px; }
.social:empty { display: none !important; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.35s var(--ease-out);
}
.social a:hover { color: var(--accent-2); border-color: rgb(31 200 179 / 0.4); background: var(--accent-soft); transform: translateY(-3px); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--dim);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--dim); }

/* -------------------------------------------------------------- flutuantes ---- */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 16px 36px -10px rgb(31 200 179 / 0.7);
  transition: transform 0.35s var(--ease-out);
}
.fab-whatsapp:hover { transform: translateY(-3px) scale(1.05); }
.fab-whatsapp .icon { width: 26px; height: 26px; }

.cookie-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 110; translate: -50% 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  width: min(720px, calc(100vw - 32px)); padding: 16px 20px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: rgb(15 19 25 / 0.94);
  backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.9);
  font-size: 0.875rem; color: var(--muted);
  animation: fade-up 0.5s var(--ease-out);
}
.cookie-bar p { flex: 1 1 320px; }
.cookie-bar a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar div { display: flex; gap: 10px; }

/* ------------------------------------------- página de texto (privacidade) ---- */
.doc { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 var(--section-y); }
.doc .container { max-width: calc(780px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; }
.doc-meta { margin-top: 16px; font-size: 0.875rem; color: var(--dim); }
.doc-body { display: grid; gap: 18px; margin-top: 44px; color: var(--muted); }
.doc-body h2 { margin-top: 22px; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--text); }
.doc-body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.doc-body ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 0.9rem; color: var(--muted); }
.doc-back:hover { color: var(--text); }

/* ---------------------------------------------- entrada ao rolar (só com JS) ---- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Cards com hover próprio: depois de entrar, o hover volta a responder na hora */
.js .card[data-reveal].is-done, .js .project[data-reveal].is-done,
.js .partner[data-reveal].is-done { transition-delay: 0s; transition-duration: 0.45s; }

/* -------------------------------------------------------------- keyframes ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(31 200 179 / 0.55); } 100% { box-shadow: 0 0 0 10px rgb(31 200 179 / 0); } }
@keyframes flow { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes grow { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(90px, 60px, 0) scale(1.15); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-110px, 80px, 0) scale(0.95); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------ responsivo ---- */
@media (max-width: 1180px) {
  .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; padding-right: 12px; }
  .hero { min-height: 0; }
  .hero-scroll { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    margin: 0; padding: 24px var(--gutter) 36px;
    background: rgb(7 9 12 / 0.97); backdrop-filter: blur(20px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0s 0.3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul a {
    padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
    font-size: 1.5rem; font-weight: 550; letter-spacing: -0.025em; color: var(--text);
  }
  .site-nav ul a.is-active::after { display: none; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .nav-actions .btn { height: 54px; font-size: 1rem; }
  .nav-login { text-align: center; padding: 10px; }
  body.nav-open { overflow: hidden; }
  .site-header.nav-open { background: rgb(7 9 12 / 0.97); border-bottom-color: var(--line); }

  .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head.is-sticky, .contact-copy { position: static; }
  .split .section-head { margin-bottom: 12px; }
  .project.is-featured { flex-direction: column; }
  .project.is-featured .project-cover { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-glyph { opacity: 0.6; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .cards, .bento, .projects, .form-row { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 24px; }
  .stat:last-child { border-bottom: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-tags { gap: 10px 18px; }
  .float-a { right: 0; top: -14px; }
  .float-b { left: 0; bottom: -6px; }
  .hero-visual { padding: 30px 0 52px; }
  .term { font-size: 0.78rem; min-height: 158px; }
  .console-body { padding: 20px 16px 22px; }
  .card { padding: 26px 22px 24px; }
  .bento-cell { padding: 30px 22px 32px; }
  .project-body { padding: 24px 22px 26px; }
  .faq-item summary { padding: 22px 0; font-size: 1.0625rem; }
  .faq-answer { padding: 0 0 26px; }
  .timeline-step { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 36px; }
  .timeline-num { width: 44px; height: 44px; }
  .timeline-rail { left: 21px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fab-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* --------------------------------------------------- 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; transition-delay: 0s !important;
  }
  .js [data-reveal], .js .term-line[data-out] { opacity: 1; transform: none; }
  .aurora { animation: none; }
  .console { transform: none; }
  .marquee.is-running .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

@media print {
  .site-header, .hero-bg, .hero-visual, .fab-whatsapp, .cookie-bar, .scroll-progress, .hero-scroll { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
