/* ============================================================
   CONNECTA — REBRANDING V3
   Monocromático: branco quente #f0efec sobre preto #060607.
   + modo claro (data-theme="light"): preto sobre branco quente.
   Uma folha só para landing, briefing e qaptura.
   ============================================================ */

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

:root,
html[data-theme="dark"] {
  color-scheme: dark;

  --void: #060607;
  --panel: #0c0c0e;
  --panel-2: #101013;

  --light: #f0efec;
  --light-85: rgba(240, 239, 236, 0.85);
  --light-70: rgba(240, 239, 236, 0.7);
  --light-55: rgba(240, 239, 236, 0.55);
  --light-38: rgba(240, 239, 236, 0.38);
  --light-24: rgba(240, 239, 236, 0.24);
  --light-14: rgba(240, 239, 236, 0.14);
  --light-09: rgba(240, 239, 236, 0.09);
  --light-05: rgba(240, 239, 236, 0.05);

  --edge: var(--light-09);
  --edge-strong: rgba(240, 239, 236, 0.2);

  --nav-scrolled: rgba(6, 6, 7, 0.82);
  --eyebrow-bg: rgba(6, 6, 7, 0.55);
  --void-60: rgba(6, 6, 7, 0.6);
  --void-45: rgba(6, 6, 7, 0.45);
  --btn-hover: #ffffff;
  --preview-shadow: rgba(0, 0, 0, 0.85);
  --ink-rgb: 240, 239, 236;
  --void-rgb: 6, 6, 7;

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ============ LIGHT THEME ============ */

html[data-theme="light"] {
  color-scheme: light;

  --void: #f0efec;
  --panel: #ffffff;
  --panel-2: #e8e7e3;

  --light: #060607;
  --light-85: rgba(6, 6, 7, 0.85);
  --light-70: rgba(6, 6, 7, 0.7);
  --light-55: rgba(6, 6, 7, 0.55);
  --light-38: rgba(6, 6, 7, 0.38);
  --light-24: rgba(6, 6, 7, 0.24);
  --light-14: rgba(6, 6, 7, 0.14);
  --light-09: rgba(6, 6, 7, 0.09);
  --light-05: rgba(6, 6, 7, 0.05);

  --edge: var(--light-09);
  --edge-strong: rgba(6, 6, 7, 0.16);

  --nav-scrolled: rgba(240, 239, 236, 0.88);
  --eyebrow-bg: rgba(255, 255, 255, 0.72);
  --void-60: rgba(240, 239, 236, 0.72);
  --void-45: rgba(240, 239, 236, 0.55);
  --btn-hover: #000000;
  --preview-shadow: rgba(6, 6, 7, 0.18);
  --ink-rgb: 6, 6, 7;
  --void-rgb: 240, 239, 236;
}

/* grão um pouco mais sutil no fundo claro */
html[data-theme="light"] .noise::after { opacity: 0.03; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--light);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 280ms var(--ease), color 280ms var(--ease);
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
em { font-style: normal; }

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

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: var(--font-mono); }

::selection { background: var(--light); color: var(--void); }

/* ============ NOISE (ruído por seção, não global) ============ */

.noise::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ============ PRELOADER ============ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  color: var(--light);
  transition: opacity 600ms var(--ease), visibility 600ms;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader-word {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
}

.preloader-bar {
  position: absolute;
  left: 50%;
  bottom: 34vh;
  transform: translateX(-50%);
  width: min(220px, 50vw);
  height: 1px;
  background: var(--light-14);
}

.preloader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--light);
  transition: width 120ms linear;
}

/* ============ CURSOR ============ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0;
}

body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor [data-cursor] { cursor: none; }

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--light);
}

.cursor-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--light-38);
  transition: width 300ms var(--ease), height 300ms var(--ease), margin 300ms var(--ease),
              background 300ms var(--ease), border-color 300ms var(--ease);
}

.cursor-ring span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--void);
  opacity: 0;
  transition: opacity 200ms ease;
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--light);
}

.cursor-ring.is-label {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: var(--light);
  border-color: var(--light);
}

.cursor-ring.is-label span { opacity: 1; }

/* ============ NAVBAR ============ */

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), background 250ms var(--ease);
}

.navbar.scrolled {
  background: var(--nav-scrolled);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--edge);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  background: var(--light);
  transform: scaleX(0);
  transform-origin: left;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 28px; height: 28px; object-fit: contain; }

/* logos por tema — sem FOUC (ambas no DOM, CSS escolhe) */
.brand-icon-light { display: none; }
html[data-theme="light"] .brand-icon-dark { display: none; }
html[data-theme="light"] .brand-icon-light { display: block; }
html[data-theme="dark"] .brand-icon-dark { display: block; }
html[data-theme="dark"] .brand-icon-light { display: none; }

.navbar-links { display: flex; align-items: center; gap: 4px; }

.navbar-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--light-55);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 150ms ease, background 150ms ease;
}

.navbar-links a:hover { color: var(--light); background: var(--light-05); }

.navbar-actions { display: flex; align-items: center; gap: 8px; }

/* ============ THEME TOGGLE ============ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--light-14);
  color: var(--light-70);
  background: transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--light);
  border-color: var(--light-38);
  background: var(--light-05);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--light);
  transition: transform 250ms var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 auto;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  background: var(--void);
  border-bottom: 1px solid var(--edge);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--light-05);
  color: var(--light-70);
  font-weight: 500;
}

.mobile-menu .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.btn-primary {
  background: var(--light);
  color: var(--void);
  border: 1px solid var(--light);
}

.btn-primary:hover { background: var(--btn-hover); box-shadow: 0 0 24px -6px var(--light-38); }

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--light-24);
}

.btn-secondary:hover { border-color: var(--light-55); background: var(--light-05); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 0.95rem; }

.btn[disabled], .btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 90px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.shape-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-content a, .hero-content button { pointer-events: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  margin-bottom: 30px;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  background: var(--eyebrow-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--light-70);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--light);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 1.5rem + 7.6vw, 7.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--light-70);
}

.hero-title em {
  font-style: normal;
  color: var(--light);
}

.line-mask { display: block; overflow: hidden; padding-block: 0.06em; }

.line-mask .line {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-expo);
}

body.ready .line-mask .line { transform: translateY(0); }
body.ready .line-mask:nth-child(2) .line { transition-delay: 90ms; }
body.ready .line-mask:nth-child(3) .line { transition-delay: 180ms; }

.reveal-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: 420ms;
}

body.ready .reveal-line { opacity: 1; transform: translateY(0); }

.hero-sub {
  max-width: 560px;
  margin-top: 30px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--light-55);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.hero-footer {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--light-38);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.hero-scroll-cue i {
  display: block;
  width: 1px;
  height: 34px;
  background: var(--light-14);
  position: relative;
  overflow: hidden;
}

.hero-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  animation: scroll-cue 1.8s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============ MARQUEE ============ */

.marquee-section {
  padding: 30px 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}

.marquee { overflow: hidden; white-space: nowrap; }

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  will-change: transform;
}

.marquee-inner span {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--light-38);
  transition: color 300ms ease;
}

.marquee-inner i {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--light-24);
}

/* ============ SECTIONS shared ============ */

.section { padding: 130px 0; }
.section-line { border-block: 1px solid var(--edge); }

.section-heading { max-width: 680px; margin-bottom: 64px; }
.section-heading-wide { max-width: 900px; }

.section-index {
  display: block;
  margin-bottom: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--light-38);
}

.section-heading h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.section-heading p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--light-55);
}

/* split reveal (títulos sobem por palavra) */
.split-reveal .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-reveal .w > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-expo);
}

.split-reveal.in .w > i { transform: translateY(0); }

/* ============ STATUS CHIPS ============ */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--light-55);
  white-space: nowrap;
}

.status-chip i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--light-38);
}

.status-live { border-color: var(--light-38); color: var(--light-85); }
.status-live i { background: var(--light); animation: pulse 2s ease infinite; }

/* ============ SERVIÇOS (bento 3 col) ============ */

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

.service-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  min-height: 230px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 250ms ease;
  will-change: transform;
}

.service-card-lg { grid-column: span 2; }

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--light-05), transparent 65%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.service-card:hover { border-color: var(--edge-strong); }
.service-card:hover::before { opacity: 1; }

.service-num {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--light-38);
  margin-bottom: auto;
}

.service-card h3 {
  margin-top: 44px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--light-55);
  max-width: 46ch;
}

.service-card .service-example {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--edge);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--light-70);
}

.service-card .service-example b {
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--light-38);
  margin-right: 6px;
}

.service-tags {
  display: block;
  margin-top: 20px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--light-24);
}

/* ============ PRODUTO — QAPTURA ============ */

.product-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  padding: 52px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color 300ms ease;
}

.product-panel:hover { border-color: var(--edge-strong); }

.product-copy { display: flex; flex-direction: column; align-items: flex-start; }

.product-copy h3 {
  margin-top: 26px;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.product-copy > p {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--light-55);
}

.product-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--light-55);
}

.product-flow b { color: var(--light-24); font-weight: 400; }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.product-link svg {
  width: 18px;
  height: 18px;
  transition: transform 300ms var(--ease);
}

.product-panel:hover .product-link svg { transform: translateX(6px); }

.product-visual {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.product-visual canvas { width: min(280px, 100%); aspect-ratio: 1; }

/* entregas assinadas */
.works { margin-top: 72px; }

.works-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--light-38);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 70px;
  align-items: center;
  gap: 24px;
  padding: 26px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}

.work-row:first-of-type { border-top: 1px solid var(--edge); }

.work-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--light);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 450ms var(--ease-expo);
  z-index: 0;
}

.work-row:hover::after { transform: scaleY(1); transform-origin: top; }

.work-row > * { position: relative; z-index: 1; }

.work-name {
  font-size: clamp(1.2rem, 0.9rem + 1.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 250ms ease, transform 450ms var(--ease);
}

.work-kind { font-size: 0.88rem; color: var(--light-38); transition: color 250ms ease; }
.work-year { font-size: 0.75rem; color: var(--light-24); text-align: right; transition: color 250ms ease; }

.work-row:hover .work-name { color: var(--void); transform: translateX(14px); }
.work-row:hover .work-kind { color: var(--void-60); }
.work-row:hover .work-year { color: var(--void-45); }

/* preview flutuante das entregas */
.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 340px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  will-change: transform;
}

.work-preview.on { opacity: 1; }

.preview-window {
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -24px var(--preview-shadow);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge);
}

.preview-bar i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--light-14);
}

.preview-url {
  margin-left: 8px;
  font-size: 0.64rem;
  color: var(--light-38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-body {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, var(--light-05) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, var(--light-05) 23px 24px),
    var(--panel-2);
}

.preview-letter {
  font-size: 6.4rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--light-24);
}

.preview-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.work-preview.has-image .preview-image { display: block; }
.work-preview.has-image .preview-letter { display: none; }

.preview-kind {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--light-38);
}

/* ============ BUSINESS OS — LOG DE UM DIA ============ */

.oslog {
  margin-top: 56px;
  padding: 44px 40px 40px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
}

.oslog-head { max-width: 560px; margin-bottom: 44px; }

.oslog-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--light-38);
}

.oslog-head p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--light-55);
}

.oslog-track { list-style: none; }

.oslog-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 24px;
  padding: 0 0 30px 0;
}

/* trilho vertical que liga os eventos */
.oslog-item::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 82px;
  width: 1px;
  background: var(--edge);
}

.oslog-item-end::before { display: none; }
.oslog-item-end { padding-bottom: 0; }

/* nó do evento */
.oslog-item::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 78px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--light-38);
  border-radius: 50%;
  background: var(--panel);
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}

.oslog-item:hover::after { background: var(--light); border-color: var(--light); }

.oslog-time {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--light-38);
  padding-top: 3px;
}

.oslog-body { padding-left: 22px; }

.oslog-body h4 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.oslog-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--light-55);
  max-width: 60ch;
}

/* ============ BLOG (páginas servidas pelo Connecta OS) ============ */

.blog-body { padding-top: 0; }
.navbar-solid { background: var(--nav-scrolled); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); }
.blog-main { padding-top: 92px; }

.blog-index .section-heading h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.blog-tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-55);
  border: 1px solid var(--edge);
  border-radius: 999px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.post-tag:hover { color: var(--light); border-color: var(--edge-strong); }
.post-tag b { font-weight: 400; color: var(--light-24); }
.post-tag-on { color: var(--light); border-color: var(--edge-strong); background: var(--light-05); }

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

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 250ms ease, transform 300ms var(--ease);
}

.post-card:hover { border-color: var(--edge-strong); transform: translateY(-3px); }

.post-card-link { display: flex; flex-direction: column; flex: 1; }

.post-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.post-meta { font-size: 0.64rem; letter-spacing: 0.14em; color: var(--light-38); }

.post-card-body h2,
.post-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-card-body p { font-size: 0.9rem; line-height: 1.6; color: var(--light-55); }

.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 22px; }

.blog-pagination {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--light-38);
  font-size: 0.75rem;
}

.blog-empty {
  padding: 72px 32px;
  text-align: center;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.blog-empty strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.blog-empty p { margin: 12px auto 24px; max-width: 44ch; color: var(--light-55); line-height: 1.6; }

.blog-cta {
  margin-top: 72px;
  padding: 44px 40px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-cta p {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 30ch;
}

.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- post ---- */

.post-head { padding: 64px 0 40px; }
.post-head-inner { max-width: 760px; }
.post-back { display: inline-block; margin-bottom: 28px; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--light-38); }
.post-back:hover { color: var(--light); }

.post-head h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.post-lede { margin-top: 20px; font-size: 1.12rem; line-height: 1.6; color: var(--light-70); }
.post-author { display: block; margin-top: 26px; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--light-38); }

.post-cover { margin-bottom: 52px; }
.post-cover img { width: 100%; max-width: 980px; border-radius: var(--radius-lg); border: 1px solid var(--edge); }

.post-body { max-width: 760px; padding-bottom: 40px; }
.post-body-tags { padding: 36px 0 0; }

/* ---- prosa do artigo ---- */

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--light-85); }
.prose > * + * { margin-top: 26px; }

.prose h2 {
  margin-top: 52px;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--light);
}

.prose h3 {
  margin-top: 40px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--light);
}

.prose h4 { margin-top: 32px; font-size: 1.02rem; font-weight: 600; color: var(--light); }

.prose a { color: var(--light); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--light-38); }
.prose a:hover { text-decoration-color: var(--light); }

.prose strong { font-weight: 650; color: var(--light); }

/* o reset global zera list-style; no corpo do artigo os marcadores importam */
.prose ul { padding-left: 22px; list-style: disc; }
.prose ol { padding-left: 22px; list-style: decimal; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--light-38); }

.prose blockquote {
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--edge-strong);
  color: var(--light-70);
  font-size: 1.1rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  background: var(--light-05);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
}

.prose pre {
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow-x: auto;
}

.prose pre code { padding: 0; background: none; border: 0; font-size: 0.84rem; line-height: 1.6; }

.post-related { padding: 64px 0 100px; border-top: 1px solid var(--edge); }
.post-related .section-index { margin-bottom: 28px; }

/* ============ CTA DE FIM DE SEÇÃO ============ */

.section-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-cta p {
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--light-70);
  max-width: 52ch;
}

/* ============ FAQ ============ */

.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.faq-intro { position: sticky; top: 120px; }

.faq-intro h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.faq-intro > p {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--light-55);
  max-width: 38ch;
}

.faq-intro-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-list { border-top: 1px solid var(--edge); }

.faq-item { border-bottom: 1px solid var(--edge); }

.faq-q {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: baseline;
  gap: 16px;
  padding: 26px 14px;
  margin: 0 -14px;
  cursor: pointer;
  list-style: none;
  transition: background 260ms var(--ease);
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--light-05); }

.faq-q:focus-visible {
  outline: 1px solid var(--light);
  outline-offset: -1px;
}

.faq-num {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--light-24);
  transition: color 260ms var(--ease);
}

.faq-item[open] .faq-num { color: var(--light-55); }

.faq-q-text {
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--light-85);
}

.faq-item[open] .faq-q-text { color: var(--light); }

/* sinal + que vira × ao abrir */
.faq-sign {
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--light-55);
  transition: transform 320ms var(--ease), background 260ms var(--ease);
}

.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::before { transform: rotate(45deg); background: var(--light); }
.faq-item[open] .faq-sign::after { transform: rotate(-45deg); background: var(--light); }

.faq-a {
  padding: 0 14px 28px 70px;
  margin: 0 -14px;
}

.faq-a p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--light-55);
  max-width: 62ch;
}

/* ============ DIAGNÓSTICO — DORES ============ */

.pain-list { list-style: none; border-top: 1px solid var(--edge); }

.pain-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--edge);
  transition: background 320ms var(--ease);
}

.pain-row:hover { background: var(--light-05); }

/* marca ✕ desenhada em CSS — sem dependência de fonte de ícone */
.pain-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--light-24);
  border-radius: var(--radius-sm);
  transition: border-color 320ms var(--ease);
}

.pain-mark::before,
.pain-mark::after {
  content: "";
  position: absolute;
  inset: 50% 4px auto 4px;
  height: 1px;
  background: var(--light-38);
  transition: background 320ms var(--ease);
}

.pain-mark::before { transform: rotate(45deg); }
.pain-mark::after { transform: rotate(-45deg); }

.pain-row:hover .pain-mark { border-color: var(--light-38); }
.pain-row:hover .pain-mark::before,
.pain-row:hover .pain-mark::after { background: var(--light); }

.pain-symptom {
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--light-85);
  transition: color 320ms var(--ease);
}

.pain-row:hover .pain-symptom { color: var(--light); }

.pain-fix {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--light-38);
  transition: color 320ms var(--ease);
}

.pain-row:hover .pain-fix { color: var(--light-70); }

.pain-pivot {
  margin-top: 84px;
  text-align: center;
}

.pain-pivot-text {
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--light-38);
}

.pain-pivot-text em {
  font-style: normal;
  color: var(--light);
}

.pain-pivot-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============ EM CONSTRUÇÃO — editor de código ============ */

.code-window {
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--edge);
}

.code-bar i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--light-14);
}

.code-file {
  margin-left: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--light-38);
}

.code-body {
  padding: 22px 0 26px;
  font-size: 0.85rem;
  line-height: 2.1;
  overflow-x: auto;
}

.code-line {
  display: block;
  padding: 0 22px;
  white-space: nowrap;
  min-height: 1.8em;
  transition: background 150ms ease;
}

.code-item:hover { background: var(--light-05); }

.code-line .ln {
  display: inline-block;
  width: 40px;
  color: var(--light-24);
  font-size: 0.72rem;
  user-select: none;
}

.code-line .k { color: var(--light-55); }
.code-line .v { color: var(--light-85); }
.code-line .p { color: var(--light-38); }
.code-line .s { color: var(--light); font-weight: 500; }
.code-line .st { color: var(--light-70); }
.code-line .c { color: var(--light-24); font-style: italic; }

.code-item:hover .c { color: var(--light-55); }
.code-item:hover .st { color: var(--light); }

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 6px;
  background: var(--light-70);
  vertical-align: text-bottom;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============ PROCESSO ============ */

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.process-sticky {
  position: sticky;
  top: 120px;
}

.process-sticky h2 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.process-sticky p {
  margin-top: 16px;
  max-width: 380px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--light-55);
}

.process-progress {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--light-38);
}

.process-progress span { color: var(--light); font-weight: 600; }

.process-steps { display: flex; flex-direction: column; }

.process-step {
  position: relative;
  padding: 44px 0 44px 72px;
  border-bottom: 1px solid var(--edge);
  opacity: 0.32;
  transition: opacity 400ms ease;
}

.process-step.active { opacity: 1; }
.process-step:first-child { border-top: 1px solid var(--edge); }

.step-num {
  position: absolute;
  left: 0;
  top: 46px;
  font-size: 0.85rem;
  color: var(--light-38);
}

.process-step.active .step-num { color: var(--light); }

.process-step h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--light-55);
  max-width: 46ch;
}

/* ============ STATS ============ */

.stats-band {
  padding: 90px 0;
  border-top: 1px solid var(--edge);
}

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

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--light-55);
}

/* ============ MANIFESTO ============ */

.manifesto { padding: 170px 0; border-top: 1px solid var(--edge); }

.manifesto-text {
  max-width: 900px;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.manifesto-text .mw {
  color: var(--light-14);
  transition: color 400ms ease;
}

.manifesto-text .mw.on { color: var(--light); }

/* ============ CTA — BURACO NEGRO ============ */

.cta-void {
  position: relative;
  min-height: 120svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--edge);
  background: #000;
  /* buraco negro fica sempre escuro, independente do tema */
  color: #f0efec;
  --light: #f0efec;
  --light-85: rgba(240, 239, 236, 0.85);
  --light-70: rgba(240, 239, 236, 0.7);
  --light-55: rgba(240, 239, 236, 0.55);
  --light-38: rgba(240, 239, 236, 0.38);
  --light-24: rgba(240, 239, 236, 0.24);
  --light-14: rgba(240, 239, 236, 0.14);
  --light-09: rgba(240, 239, 236, 0.09);
  --light-05: rgba(240, 239, 236, 0.05);
  --void: #060607;
  --btn-hover: #ffffff;
  --edge: rgba(240, 239, 236, 0.09);
}

.void-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.cta-void-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0 110px;
  pointer-events: none;
}

.cta-void-inner a { pointer-events: auto; }

.cta-void .section-index { color: var(--light-38); }

.cta-title {
  font-size: clamp(2.6rem, 1.6rem + 5.4vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--light-70);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

.cta-title em {
  font-style: normal;
  color: var(--light);
}

.cta-actions { margin-top: 52px; display: flex; justify-content: center; }

.btn-giant {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 44px;
  border-radius: 999px;
  background: var(--light);
  color: var(--void);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: box-shadow 300ms ease, background 300ms ease;
  will-change: transform;
}

.btn-giant svg {
  width: 24px;
  height: 24px;
  transition: transform 300ms var(--ease);
}

.btn-giant:hover { background: var(--btn-hover); box-shadow: 0 0 0 8px var(--light-09), 0 0 80px -12px var(--light-38); }
.btn-giant:hover svg { transform: translateX(6px); }

.cta-mail {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--light-55);
  border-bottom: 1px solid var(--light-24);
  padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease;
}

.cta-mail:hover { color: var(--light); border-color: var(--light-55); }

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--edge);
  overflow: hidden;
  background: var(--void);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 72px 0 40px;
}

.footer-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--light-38);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--light-55);
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--light-55);
  transition: color 200ms ease, transform 250ms var(--ease);
  width: fit-content;
}

.footer-col a:hover { color: var(--light); transform: translateX(4px); }

.footer-clock { font-size: 0.88rem; color: var(--light-55); font-variant-numeric: tabular-nums; }

.back-top {
  margin-top: 18px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--light-38);
  transition: color 200ms ease;
}

.back-top:hover { color: var(--light); }

.footer-giant {
  display: flex;
  justify-content: center;
  user-select: none;
  line-height: 0.78;
  margin-top: 30px;
}

.footer-giant span {
  font-size: clamp(3.4rem, 11.4vw, 11.4rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  color: var(--light-09);
  transition: color 350ms var(--ease), transform 350ms var(--ease);
}

.footer-giant span:hover {
  color: var(--light);
  transform: translateY(-8px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--edge);
  font-size: 0.78rem;
  color: var(--light-38);
}

.footer-bottom .mono { font-size: 0.66rem; letter-spacing: 0.14em; }

/* ============ REVEAL genérico ============ */

.io-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.io-reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   QAPTURA — página dedicada
   ============================================================ */

.q-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

.q-hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.q-hero h1 {
  font-size: clamp(2.4rem, 1.2rem + 5vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--light-70);
}

.q-hero h1 em {
  font-style: normal;
  color: var(--light);
}

.q-hero .hero-sub { max-width: 520px; }

.q-hero-visual {
  display: grid;
  place-items: center;
}

.q-hero-visual canvas { width: min(340px, 80vw); aspect-ratio: 1; }

/* funil */
.funnel { max-width: 720px; }

.funnel-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 34px 0;
}

.funnel-step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--edge);
}

.funnel-step:first-child::before { top: 34px; }
.funnel-step:last-child::before { bottom: auto; height: 34px; }

.funnel-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  background: var(--void);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--light-55);
  transition: border-color 300ms ease, color 300ms ease;
}

.funnel-step.active .funnel-num { border-color: var(--light); color: var(--light); }

.funnel-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  padding-top: 12px;
}

.funnel-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--light-55);
  max-width: 52ch;
}

.funnel-result {
  margin-top: 24px;
  padding: 34px 38px;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.funnel-result .mono {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--light-38);
  margin-bottom: 14px;
}

.funnel-result p {
  font-size: clamp(1.1rem, 1rem + 1vw, 1.5rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* implantação */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* CTA qaptura */
.q-cta {
  padding: 150px 0;
  border-top: 1px solid var(--edge);
  text-align: center;
}

.q-cta h2 {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--light-70);
}

.q-cta h2 em {
  font-style: normal;
  color: var(--light);
}

.q-cta p {
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--light-55);
}

.q-cta .cta-actions { gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BRIEFING — fluxo em etapas
   ============================================================ */

body[data-page="briefing"] { min-height: 100svh; display: flex; flex-direction: column; }

.brief-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--edge);
  background: var(--nav-scrolled);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brief-header .theme-toggle {
  margin-left: auto;
}

.brief-progress {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--light-38);
  font-variant-numeric: tabular-nums;
}

.brief-progress b { color: var(--light); font-weight: 500; }

.brief-track {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--light);
  transition: width 500ms var(--ease);
}

.brief-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}

.brief-step {
  display: none;
  width: min(680px, 100%);
}

.brief-step.active { display: block; animation: step-in 500ms var(--ease) both; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.brief-step-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--light-38);
  margin-bottom: 18px;
}

.brief-step h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.brief-step .hint {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--light-55);
  line-height: 1.6;
}

.brief-fields { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--light-38);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field label .opt { color: var(--light-24); letter-spacing: 0.1em; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--panel);
  border: 1px solid var(--light-14);
  border-radius: var(--radius);
  color: var(--light);
  font: inherit;
  font-size: 1rem;
  transition: border-color 200ms ease, background 200ms ease;
}

.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.field input::placeholder, .field textarea::placeholder { color: var(--light-24); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--light-55);
  background: var(--panel-2);
}

/* chips de escolha (contato, orçamento, prazo, sim/não) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 12px 20px;
  border: 1px solid var(--light-14);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--light-55);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.chip:hover { border-color: var(--light-38); color: var(--light); }

.chip.selected {
  background: var(--light);
  border-color: var(--light);
  color: var(--void);
}

/* cards de objetivo (etapa 2) */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.goal-card {
  position: relative;
  padding: 22px 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--light-14);
  border-radius: var(--radius);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease);
}

.goal-card .mono {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--light-24);
}

.goal-card b { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }

.goal-card:hover { border-color: var(--light-38); transform: translateY(-2px); }

.goal-card.selected {
  border-color: var(--light);
  background: var(--panel-2);
}

.goal-card.selected::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* navegação entre etapas */
.brief-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
}

.brief-back {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--light-38);
  transition: color 200ms ease;
}

.brief-back:hover { color: var(--light); }
.brief-back[hidden] { visibility: hidden; display: inline; }

/* confirmação */
.brief-summary {
  margin-top: 32px;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--light-55);
}

.brief-summary b { color: var(--light); font-weight: 500; }

.brief-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.brief-note {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--light-38);
  line-height: 1.6;
}

.brief-done { text-align: center; }

.brief-done-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--light-38);
  border-radius: 999px;
  font-size: 1.6rem;
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .noise::after, .eyebrow-dot, .hero-scroll-cue i::after, .status-live i, .caret { animation: none; }
  .preloader { display: none; }
  .line-mask .line, .split-reveal .w > i { transform: none; transition: none; }
  .reveal-line, .io-reveal { opacity: 1; transform: none; transition: none; }
  .manifesto-text .mw { color: var(--light); }
  .marquee-inner { transform: none !important; }
  .work-row::after, .work-row:hover .work-name { transition: none; }
  .process-step { opacity: 1; }
  .brief-step.active { animation: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-lg { grid-column: span 2; }
  .product-panel { grid-template-columns: 1fr; padding: 36px; }
  .product-visual { min-height: 0; margin-top: 10px; }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-sticky { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .q-hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .deploy-grid { grid-template-columns: 1fr; }
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shape-canvas { display: none; }
}

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

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-intro { position: static; }
}

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .blog-cta-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .post-head { padding: 44px 0 28px; }
  .prose { font-size: 1rem; }

  .section-cta { flex-direction: column; align-items: flex-start; margin-top: 44px; }
  .section-cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  .faq-q { grid-template-columns: 32px 1fr 16px; gap: 12px; padding: 22px 14px; }
  .faq-a { padding-left: 58px; }
  .faq-intro-actions { flex-direction: column; align-items: stretch; max-width: 320px; }

  .oslog { padding: 32px 22px 30px; }
  .oslog-item { grid-template-columns: 56px 1fr; gap: 14px; }
  .oslog-item::before { left: 62px; }
  .oslog-item::after { left: 58px; }
  .oslog-body { padding-left: 16px; }

  .pain-row {
    grid-template-columns: 18px 1fr;
    gap: 8px 16px;
    padding: 22px 14px;
  }
  .pain-fix { grid-column: 2; }
  .pain-pivot { margin-top: 60px; }
  .pain-pivot-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }

  .navbar-links { display: none; }
  .navbar-actions .btn { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 110px 0 80px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; }
  .hero-footer .hero-coord { display: none; }

  .section { padding: 90px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-lg { grid-column: span 1; }
  .service-card { min-height: 0; }
  .service-card h3 { margin-top: 30px; }

  .product-panel { padding: 28px 22px; }

  .work-row { grid-template-columns: 1fr auto; padding: 22px 14px; margin: 0 -14px; }
  .work-kind { display: none; }
  .work-preview { display: none; }


  .code-body { font-size: 0.74rem; }
  .code-line { padding: 0 14px; }
  .code-line .ln { width: 30px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 16px; }

  .manifesto { padding: 110px 0; }

  .cta-void-inner { padding: 90px 0; }
  .btn-giant { padding: 20px 34px; }

  .q-hero { padding: 110px 0 70px; }
  .funnel-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .funnel-num { width: 44px; height: 44px; }
  .funnel-step::before { left: 21px; }
  .funnel-result { padding: 26px 22px; }

  .goal-grid { grid-template-columns: 1fr; }
  .brief-header { padding: 14px 20px; }
  .brief-shell { padding: 40px 20px 60px; }
  .chip { padding: 11px 16px; font-size: 0.88rem; }

  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ============ WIDGET — KAIRO (VENDAS) ============ */

.kairo-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

.kairo-fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: var(--light);
  color: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px -8px var(--preview-shadow);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  pointer-events: auto;
}

.kairo-fab:hover { transform: scale(1.06); box-shadow: 0 10px 34px -6px var(--preview-shadow); }
.kairo-fab-icon { width: 24px; height: 24px; }
.kairo-fab-close { display: none; font-size: 20px; line-height: 1; }
.kairo-widget.open .kairo-fab-icon { display: none; }
.kairo-widget.open .kairo-fab-close { display: block; }

.kairo-panel {
  width: min(360px, calc(100vw - 40px));
  height: min(480px, calc(100vh - 120px));
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -16px var(--preview-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.kairo-widget.open .kairo-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.kairo-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--edge);
}

.kairo-panel-head strong { display: block; font-size: 0.95rem; }
.kairo-status { color: var(--light-55); font-size: 0.72rem; letter-spacing: 0.04em; }

.kairo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--light);
  color: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.kairo-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kairo-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.kairo-msg-bot {
  align-self: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--edge);
  border-bottom-left-radius: 4px;
}

.kairo-msg-user {
  align-self: flex-end;
  background: var(--light);
  color: var(--void);
  border-bottom-right-radius: 4px;
}

.kairo-msg-typing { display: flex; gap: 4px; align-items: center; padding: 12px 13px; }
.kairo-msg-typing span {
  width: 5px; height: 5px; border-radius: 999px; background: var(--light-55);
  animation: kairo-typing 1.1s ease infinite;
}
.kairo-msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.kairo-msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes kairo-typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.kairo-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--edge);
}

.kairo-form input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.kairo-form input:focus { outline: none; border-color: var(--edge-strong); }

.kairo-form button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: var(--light);
  color: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 160ms var(--ease);
}

.kairo-form button:hover { transform: scale(1.06); }
.kairo-form button svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .kairo-widget { right: 14px; bottom: 14px; }
  .kairo-panel { width: calc(100vw - 28px); height: min(70vh, 520px); }
}
