/* ============================
   NEXUS_ — Bento Tech
   slate · lime · Geist · 1px
   ============================ */

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

:root {
  /* Slate palette (neutro, NUNCA azul-violeta) */
  --bg:          #0A0A0F;
  --surface-1:   #101017;
  --surface-2:   #16161F;
  --border:      #23232E;
  --border-hi:   #34343F;

  /* Texto */
  --text:        #EDEDF0;
  --text-dim:    #8A8A99;
  --text-mute:   #5A5A6A;

  /* Accent — lime disciplinado */
  --accent:      #BFFF3C;
  --accent-dim:  #8FBE1F;

  /* Type */
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Geist Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --max:   1200px;
  --pad:   20px;
  --radius: 12px;
  --radius-sm: 8px;

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv01', 'ss01';
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

ul { list-style: none; }
button { font-family: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus { left: 8px; }

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

/* ============================
   BRAND / LOGO
   ============================ */
.brand {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.brand__underscore {
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
.brand__kanji {
  margin-right: 0.35em;
  padding-right: 0.35em;
  border-right: 1.5px solid var(--accent);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: #0A0A0F;
  font-weight: 600;
}
.btn--accent:hover {
  background: #d4ff5c;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hi);
  background: var(--surface-1);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.25s var(--ease);
}
.nav--scrolled {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav .brand { font-size: 20px; }
.nav .brand__kanji { font-size: 1.4em; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.nav__burger::before,
.nav__burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.25s var(--ease);
}
.nav__burger::before { top: 7px; }
.nav__burger::after { top: 15px; }
.nav__burger[aria-expanded="true"]::before { top: 11px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"]::after { top: 11px; transform: rotate(-45deg); }

/* ============================
   HERO BENTO
   ============================ */
.hero {
  padding: 120px var(--pad) 80px;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 12px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
}

/* Hero headline — 4 col, 2 rows */
.card--hero {
  grid-column: span 4;
  grid-row: span 2;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}
.card--hero:hover { border-color: var(--border-hi); }

/* Terminal — 2 col, 2 rows */
.card--terminal {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  display: flex;
}

/* Stats — 2 col each, 1 row */
.card--stat {
  grid-column: span 2;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
}

/* Segments — 6 col full, 1 row */
.card--segments {
  grid-column: span 6;
  padding: 24px 28px;
}

/* Hero typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.kicker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.display {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 460px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Terminal */
.terminal {
  width: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 12.5px;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.terminal__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__path {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-mute);
}
.terminal__body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-dim);
}
.terminal__body p { display: flex; gap: 8px; align-items: baseline; }
.t-dim { color: var(--text-mute); }
.t-lime { color: var(--accent); }
.terminal__caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  animation: blink 1.1s steps(2) infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* Stats */
.stat__num {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__unit {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 4px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* Segments card */
.card__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segments li {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.18s var(--ease);
}
.segments li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================
   SECTIONS (generic)
   ============================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--pad);
  border-top: 1px solid var(--border);
}
.section--flush { padding-bottom: 60px; }

.section__head {
  margin-bottom: 56px;
  max-width: 620px;
}
.section__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.section__sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================
   PROCESSO
   ============================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.process__step {
  background: var(--surface-1);
  padding: 28px 24px;
  transition: background 0.2s var(--ease);
}
.process__step:hover { background: var(--surface-2); }
.process__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
}
.process__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.process__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================
   TRABALHOS
   ============================ */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.work:hover { transform: translateY(-3px); }
.work__thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: hsl(var(--h), 25%, 9%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  container-type: inline-size;
  box-shadow:
    inset 0 1px 0 hsl(var(--h) 40% 100% / .05),
    0 16px 30px -22px #000000cc;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.work:hover .work__thumb {
  border-color: hsl(var(--h), 45%, 38%);
  box-shadow:
    inset 0 1px 0 hsl(var(--h) 40% 100% / .08),
    0 26px 46px -24px #000000e6,
    0 0 0 1px hsl(var(--h) 50% 45% / .28);
}
.work__meta {
  padding: 14px 4px 0;
}
.work__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.work__tag {
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--mono);
}

/* ============================
   TRABALHOS — mockups de produto
   Cada card é um "screenshot" do site/app do cliente.
   Medidas em cqw (container query) → o mockup escala junto
   com o card, mantendo proporção idêntica em qualquer viewport.
   ============================ */

/* Paletas derivadas de --h -------------------------------- */
.mock--light {
  --bg:        hsl(var(--h) 20% 97%);
  --surface:   #fff;
  --ink:       hsl(var(--h) 28% 13%);
  --muted:     hsl(var(--h) 10% 46%);
  --line:      hsl(var(--h) 16% 88%);
  --accent:    hsl(var(--h) 58% 33%);
  --tint:      hsl(var(--h) 40% 94%);
  --on-accent: hsl(var(--h) 40% 98%);
  --good:      hsl(150 55% 32%);
  --elev:      0 .3cqw 1cqw hsl(var(--h) 30% 35% / .10);
}
.mock--dark {
  --bg:        hsl(var(--h) 26% 7%);
  --surface:   hsl(var(--h) 22% 11%);
  --ink:       hsl(var(--h) 16% 93%);
  --muted:     hsl(var(--h) 12% 58%);
  --line:      hsl(var(--h) 20% 18%);
  --accent:    hsl(var(--h) 66% 58%);
  --tint:      hsl(var(--h) 40% 16%);
  --on-accent: hsl(var(--h) 45% 7%);
  --good:      hsl(150 55% 58%);
  --elev:      0 .3cqw 1cqw #00000059;
}

/* Chrome do navegador ------------------------------------- */
.mk-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  padding: 1.7cqw 2.2cqw;
  background: linear-gradient(#22222b, #16161c);
  border-bottom: 1px solid #00000066;
}
.mk-dots { display: flex; gap: 1cqw; flex-shrink: 0; }
.mk-dots i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #3b3b46; }
.mk-dots i:nth-child(1) { background: #d9615a; }
.mk-dots i:nth-child(2) { background: #d5a44a; }
.mk-dots i:nth-child(3) { background: #5aa85f; }
.mk-omni {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  height: 3.4cqw;
  padding: 0 1.5cqw;
  border-radius: 2cqw;
  background: #0e0e13;
  box-shadow: inset 0 0 0 1px #ffffff10;
  font-family: var(--mono);
  font-size: 1.6cqw;
  color: #7c7c8b;
  white-space: nowrap;
  overflow: hidden;
}
.mk-lock {
  position: relative;
  flex-shrink: 0;
  width: .95cqw;
  height: .8cqw;
  border-radius: .15cqw;
  background: currentColor;
  opacity: .75;
}
.mk-lock::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 100%;
  transform: translateX(-50%);
  width: .55cqw; height: .42cqw;
  border: .14cqw solid currentColor;
  border-bottom: 0;
  border-radius: .5cqw .5cqw 0 0;
}

/* Tela ---------------------------------------------------- */
.mk-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.2cqw;
  padding: 2.6cqw 2.8cqw;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.8cqw;
  line-height: 1.35;
  transition: transform .5s var(--ease);
}
.work:hover .mk-screen { transform: scale(1.012); }
/* brilho de vidro só no tema escuro */
.mock--dark .mk-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(200deg, #ffffff0f 0 20%, transparent 46%);
}
.mk-screen--paper { background: linear-gradient(hsl(var(--h) 30% 98%), hsl(var(--h) 22% 95%)); }

/* Layout de app: rail lateral + conteúdo ------------------- */
.mk-screen--app { flex-direction: row; gap: 0; padding: 0; }
.mk-rail {
  flex-shrink: 0;
  width: 9.5cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6cqw;
  padding: 2.4cqw 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.mk-rail i { width: 4.4cqw; height: 3.4cqw; border-radius: 1.1cqw; background: var(--tint); opacity: .6; }
.mk-rail i.on { background: var(--accent); opacity: 1; }
.mk-railmark {
  display: flex; align-items: center; justify-content: center;
  width: 4.6cqw; height: 4.6cqw;
  margin-bottom: 1cqw;
  border-radius: 1.4cqw;
  background: linear-gradient(140deg, var(--accent), hsl(calc(var(--h) + 32) 60% 45%));
  color: var(--on-accent);
  font-size: 2.2cqw; font-weight: 700; font-style: normal;
  opacity: 1;
}
.mk-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  padding: 2.4cqw 2.6cqw;
}

/* Navegação do site --------------------------------------- */
.mk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  flex-shrink: 0;
}
.mk-brand {
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  font-size: 2.9cqw;
  font-weight: 700;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.mk-brand--serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 3.1cqw;
  letter-spacing: -.005em;
}
.mk-brand--serif em { font-style: normal; color: var(--muted); }
.mk-brandmark {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 4cqw; height: 4cqw;
  border-radius: 1.2cqw;
  background: linear-gradient(140deg, var(--accent), hsl(calc(var(--h) + 32) 55% 45%));
  color: var(--on-accent);
  font-size: 1.8cqw; font-weight: 700; font-style: normal;
  letter-spacing: 0;
}
.mk-links { display: flex; gap: 2.1cqw; font-size: 1.75cqw; color: var(--muted); white-space: nowrap; }

/* Botões / chips ------------------------------------------ */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.2cqw 2.2cqw;
  border-radius: 5cqw;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.7cqw; font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--elev);
}
.mk-btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mk-btn--block { width: 100%; margin-top: auto; padding: 1.5cqw; }
.mk-tag {
  padding: .9cqw 1.6cqw;
  border-radius: 5cqw;
  background: var(--tint);
  color: var(--accent);
  font-size: 1.45cqw; font-weight: 600;
  white-space: nowrap;
}

/* Tipografia ---------------------------------------------- */
.mk-eyebrow {
  font-family: var(--mono);
  font-size: 1.4cqw; font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.mk-h1 { font-size: 4.4cqw; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.mk-h1--serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 4.2cqw;
  letter-spacing: -.01em;
  line-height: 1.14;
}
.mk-p { font-size: 1.75cqw; line-height: 1.55; color: var(--muted); }
.mk-title { font-size: 2.4cqw; font-weight: 600; letter-spacing: -.02em; }
.mk-sub { font-size: 1.5cqw; color: var(--muted); }
.mk-micro { font-size: 1.4cqw; color: var(--muted); line-height: 1.5; }
.mk-link { color: var(--accent); font-weight: 600; }

/* Hero ---------------------------------------------------- */
.mk-hero { display: flex; gap: 2.6cqw; flex: 1; min-height: 0; }
.mk-hero__text {
  flex: 1.05;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4cqw;
}
.mk-hero--stack { flex-direction: column; justify-content: center; gap: 1.5cqw; }
.mk-actions { display: flex; align-items: center; gap: 1.4cqw; margin-top: .6cqw; }

/* "Fotos" — gradientes em malha + textura ------------------ */
.mk-photo, .mk-swatch, .mk-item__thumb {
  --ph: var(--h);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(58% 46% at 25% 13%, hsl(calc(var(--ph) + 12) 72% 80% / .95), transparent 64%),
    radial-gradient(46% 40% at 62% 42%, hsl(calc(var(--ph) + 4) 62% 66% / .75), transparent 66%),
    radial-gradient(70% 66% at 86% 90%, hsl(calc(var(--ph) - 12) 55% 20% / .95), transparent 66%),
    linear-gradient(155deg, hsl(var(--ph) 50% 58%), hsl(calc(var(--ph) + 16) 46% 29%));
  box-shadow:
    inset 0 0 0 1px #ffffff2e,
    inset 0 -3cqw 6cqw #00000038;
}
.mk-photo::after, .mk-swatch::after, .mk-item__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 .9cqw, #ffffff14 .9cqw 1.8cqw);
  mix-blend-mode: overlay;
}
.mk-photo { flex: .92; border-radius: 2cqw; }
/* foto sóbria (institucional/jurídico) */
.mk-photo--muted { filter: saturate(.65) contrast(1.04); }

/* Fotos reais dentro dos blocos — o gradiente em malha continua
   como fallback caso a imagem não carregue. */
.mk-photo > img,
.mk-swatch > img,
.mk-item__thumb > img,
.mk-av > img,
.mk-avs i > img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* com foto, a textura diagonal do placeholder sai de cena */
.mk-photo:has(img)::after,
.mk-swatch:has(img)::after,
.mk-item__thumb:has(img)::after { content: none; }
.mk-photo__chip {
  position: absolute;
  left: 1.3cqw; right: 1.3cqw; bottom: 1.3cqw;
  z-index: 1;
  display: flex; align-items: center; gap: 1cqw;
  padding: 1.1cqw 1.3cqw;
  border-radius: 1.4cqw;
  background: #ffffffee;
  color: hsl(var(--h) 30% 15%);
  font-size: 1.45cqw; font-weight: 600;
  box-shadow: 0 .4cqw 1cqw #00000026;
}
.mk-photo__chip em { margin-left: auto; font-style: normal; color: hsl(var(--h) 55% 32%); }
.mk-photo__tag {
  position: absolute;
  top: 1.3cqw; left: 1.3cqw;
  z-index: 1;
  padding: .7cqw 1.3cqw;
  border-radius: 5cqw;
  background: #ffffffe6;
  color: hsl(var(--h) 30% 15%);
  font-size: 1.35cqw; font-weight: 600;
}
.mk-avs { display: flex; flex-shrink: 0; }
.mk-avs i {
  position: relative;
  overflow: hidden;
  width: 2.4cqw; height: 2.4cqw;
  border-radius: 50%;
  border: 1px solid #fff;
  margin-right: -.8cqw;
  background: linear-gradient(140deg, hsl(var(--h) 50% 70%), hsl(calc(var(--h) + 40) 45% 45%));
}
.mk-avs i:nth-child(2) { background: linear-gradient(140deg, hsl(calc(var(--h) + 30) 50% 72%), hsl(calc(var(--h) - 20) 45% 45%)); }
.mk-avs i:nth-child(3) { background: linear-gradient(140deg, hsl(calc(var(--h) - 25) 50% 68%), hsl(calc(var(--h) + 25) 45% 42%)); }
.mk-av {
  display: block;
  position: relative;
  overflow: hidden;
  width: 3.4cqw; height: 3.4cqw;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(140deg, hsl(var(--h) 50% 62%), hsl(calc(var(--h) + 35) 45% 38%));
  box-shadow: 0 0 0 1px var(--line);
}

/* Superfícies ---------------------------------------------- */
.mk-row { display: flex; gap: 1.5cqw; flex-shrink: 0; }
.mk-cols { display: flex; gap: 1.8cqw; flex: 1; min-height: 0; }
.mk-colstack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.2cqw; }
.mk-list { display: flex; flex-direction: column; gap: 1.1cqw; flex-shrink: 0; }
.mk-tile {
  min-width: 0;
  padding: 1.5cqw 1.6cqw;
  border-radius: 1.6cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev);
}
.mk-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4cqw;
  flex-shrink: 0;
  padding: 1.3cqw 1.6cqw;
  border-radius: 1.4cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.55cqw;
  box-shadow: var(--elev);
}

/* tiles só esticam quando dividem uma linha/coluna */
.mk-row > .mk-tile,
.mk-cols > .mk-tile,
.mk-colstack > .mk-tile { flex: 1; min-height: 0; }

/* Cards de métrica ---------------------------------------- */
.mk-stat { display: flex; flex-direction: column; gap: .2cqw; min-height: 0; position: relative; }
.mk-stat b { font-size: 3.4cqw; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.mk-stat span { font-size: 1.4cqw; color: var(--muted); }
.mk-delta {
  position: absolute; top: 1.4cqw; right: 1.4cqw;
  font-size: 1.35cqw; font-weight: 600; font-style: normal;
  color: var(--good);
}

/* Gráficos ------------------------------------------------ */
.mk-panel { display: flex; flex: 1; flex-direction: column; gap: 1.2cqw; min-height: 0; }
.mk-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.5cqw; color: var(--muted);
}
.mk-legend { display: flex; align-items: center; gap: .8cqw; color: var(--ink); font-weight: 600; }
.mk-legend i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--accent); }
.mk-chart { display: block; width: 100%; flex: 1; min-height: 0; color: var(--accent); overflow: visible; }
.mk-chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk-chart .line, .mk-spark .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* o SVG não pode impor sua altura intrínseca ao card: basis fixa + min 0 */
.mk-spark { display: block; width: 100%; flex: 1 1 auto; height: 4.5cqw; min-height: 0; margin-top: .6cqw; color: var(--accent); }

/* Stepper de onboarding ----------------------------------- */
.mk-steps { display: flex; align-items: flex-start; gap: 1cqw; flex-shrink: 0; }
.mk-step {
  display: flex; flex-direction: column; align-items: center; gap: .8cqw;
  font-size: 1.35cqw;
}
.mk-step i {
  display: flex; align-items: center; justify-content: center;
  width: 4.4cqw; height: 4.4cqw;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.7cqw; font-weight: 600; font-style: normal;
}
.mk-step em { font-style: normal; color: var(--muted); white-space: nowrap; }
.mk-step.is-done i { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.mk-step.is-on i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 .5cqw hsl(var(--h) 66% 58% / .16); }
.mk-step.is-done em, .mk-step.is-on em { color: var(--ink); }
.mk-step-line { flex: 1; height: 1px; margin-top: 2.2cqw; background: var(--line); }

/* Formulário ---------------------------------------------- */
.mk-form { display: flex; flex-direction: column; gap: .9cqw; justify-content: center; }
.mk-form .mk-sectionhead + .mk-micro { margin-bottom: .4cqw; }
.mk-label { font-size: 1.35cqw; color: var(--muted); }
.mk-input {
  display: block;
  padding: 1.1cqw 1.3cqw;
  margin-bottom: .6cqw;
  border-radius: 1cqw;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 1.4cqw;
  color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.mk-form .mk-btn { margin-top: .6cqw; align-self: flex-start; }

/* Cabeçalho de app ---------------------------------------- */
.mk-apphead { display: flex; align-items: center; justify-content: space-between; gap: 1.5cqw; flex-shrink: 0; }

/* Agenda / horários --------------------------------------- */
.mk-slot {
  display: flex; align-items: center; gap: 1.2cqw;
  padding: 1.1cqw 1.3cqw;
  border-radius: 1.2cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.5cqw;
  white-space: nowrap; overflow: hidden;
}
.mk-slot time { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.mk-slot span { overflow: hidden; text-overflow: ellipsis; }
.mk-slot em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 1.35cqw; }
.mk-slot--on { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: var(--elev); }
.mk-slot--on time, .mk-slot--on em { color: inherit; opacity: .85; }

/* Calendário ---------------------------------------------- */
.mk-calwrap { display: flex; flex-direction: column; gap: 1.1cqw; flex: 1.15; }
.mk-calhead { display: flex; align-items: center; justify-content: space-between; font-size: 1.5cqw; font-weight: 600; }
.mk-calhead span { color: var(--muted); letter-spacing: .3em; }
.mk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6cqw; }
.mk-cal span {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  border-radius: .7cqw;
  background: var(--tint);
  font-size: 1.25cqw;
  color: var(--muted);
}
.mk-cal .hd { background: none; font-size: 1.15cqw; font-weight: 600; letter-spacing: .04em; }
.mk-cal .off { opacity: .4; }
.mk-cal .on { background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* Cardápio / lista de produtos ---------------------------- */
.mk-item {
  display: flex; align-items: center; gap: 1.3cqw;
  padding: 1.1cqw 1.3cqw;
  border-radius: 1.4cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev);
}
.mk-item__thumb { flex-shrink: 0; width: 5.2cqw; height: 5.2cqw; border-radius: 1.1cqw; }
.mk-item__body { min-width: 0; display: flex; flex-direction: column; }
.mk-item__body b { font-size: 1.7cqw; font-weight: 600; }
.mk-item__body em { font-style: normal; font-size: 1.35cqw; color: var(--muted); }
.mk-price { margin-left: auto; font-size: 1.9cqw; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Abas ---------------------------------------------------- */
.mk-tabs { display: flex; gap: 1cqw; margin-top: .8cqw; flex-wrap: wrap; }
.mk-tabs span {
  padding: .8cqw 1.6cqw;
  border-radius: 5cqw;
  background: var(--tint);
  color: var(--muted);
  font-size: 1.4cqw;
}
.mk-tabs .on { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Serviços em chip (Studio Bela) --------------------------- */
.mk-chipcard {
  flex: 1;
  min-width: 0;
  display: flex; align-items: center; gap: 1.1cqw;
  padding: 1.1cqw 1.2cqw;
  border-radius: 1.3cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.45cqw;
  white-space: nowrap; overflow: hidden;
  box-shadow: var(--elev);
}
.mk-swatch { flex-shrink: 0; width: 3.2cqw; height: 3.2cqw; border-radius: .9cqw; }
.mk-chipcard b { margin-left: auto; color: var(--accent); font-size: 1.45cqw; }

/* Áreas editoriais (Ribeiro) ------------------------------- */
.mk-areas { display: flex; gap: 2cqw; flex-shrink: 0; }
.mk-area { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5cqw; padding-top: 1.4cqw; border-top: 1px solid var(--line); }
.mk-area .mk-num { font-family: var(--mono); font-size: 1.3cqw; color: var(--accent); }
.mk-area b { font-size: 1.75cqw; font-weight: 600; }

/* Blocos de página cheia (usados no showcase do case) ------ */
.mk-sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1.4cqw; flex-shrink: 0; }
.mk-sectiontitle { font-size: 2.2cqw; font-weight: 600; letter-spacing: -.025em; }
.mk-cards { display: flex; gap: 1.6cqw; flex: 1; min-height: 0; }
.mk-cards--tight { flex: 0 0 auto; }
.mk-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  padding: 1.2cqw;
  border-radius: 1.6cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev);
}
.mk-card .mk-photo { flex: 1; min-height: 3cqw; }
.mk-card b { font-size: 1.7cqw; font-weight: 600; }
.mk-card .mk-price { margin-left: 0; }
.mk-quote {
  display: flex; align-items: center; gap: 1.4cqw;
  flex-shrink: 0;
  padding: 1.4cqw 1.6cqw;
  border-radius: 1.6cqw;
  background: var(--tint);
}
.mk-quote p { font-size: 1.6cqw; font-style: italic; }
.mk-quote cite { font-style: normal; font-size: 1.35cqw; color: var(--muted); margin-left: auto; white-space: nowrap; }
.mk-table {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.4cqw;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.mk-tr { display: flex; align-items: center; gap: 1.2cqw; padding: 1cqw 1.3cqw; font-size: 1.5cqw; border-top: 1px solid var(--line); }
.mk-tr:first-child { border-top: 0; background: var(--bg); color: var(--muted); font-size: 1.35cqw; }
.mk-tr span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-tr span:first-child { flex: 1.7; }
.mk-tr span:last-child { flex: .7; text-align: right; }
.mk-progress { height: 1cqw; border-radius: 1cqw; background: var(--tint); overflow: hidden; }
.mk-progress i { display: block; height: 100%; background: var(--accent); border-radius: 1cqw; }
.mk-pillrow { display: flex; gap: 1cqw; flex-wrap: wrap; flex-shrink: 0; }
.mk-pill {
  display: flex; align-items: center; gap: .8cqw;
  padding: .8cqw 1.4cqw;
  border-radius: 5cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.4cqw;
}
.mk-pill i { width: 1.6cqw; height: 1.6cqw; border-radius: .5cqw; background: var(--accent); opacity: .85; }
.mk-person { display: flex; align-items: center; gap: 1.1cqw; }
.mk-person b { font-size: 1.6cqw; font-weight: 600; display: block; }
.mk-person span { font-size: 1.35cqw; color: var(--muted); }
.mk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4cqw;
  flex-shrink: 0;
  padding-top: 1.4cqw;
  border-top: 1px solid var(--line);
  font-size: 1.4cqw;
  color: var(--muted);
}

/* Legado: mockups da página de case (mockups.js) ----------- */
.mock__dot { width: 6px; height: 6px; border-radius: 50%; }
.mock__dot--r { background: #ff5f57; }
.mock__dot--y { background: #febc2e; }
.mock__dot--g { background: #28c840; }
.mock__url {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.01em;
  color: #6b6b78;
}

/* ============================
   DIFERENCIAIS
   ============================ */
.diff {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.diff__item {
  background: var(--surface-1);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.2s var(--ease);
}
.diff__item:hover { background: var(--surface-2); }
.diff__mark {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  line-height: 1.4;
  flex-shrink: 0;
}
.diff__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.diff__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================
   FAQ
   ============================ */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: none; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface-1);
  border: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s var(--ease);
}
.faq__q:hover { background: var(--surface-2); }
.faq__icon {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq__item.active .faq__icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq__item.active .faq__a { max-height: 200px; }
.faq__a p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
  background: var(--surface-1);
}

/* ============================
   CTA FINAL
   ============================ */
.cta {
  border-top: 1px solid var(--border);
  padding: 120px var(--pad);
}
.cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.cta__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.cta__title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 20px;
}
.cta__sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ============================
   FOOTER
   ============================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 48px var(--pad);
}
.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot__brand { margin-right: auto; }
.foot__tag {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
  font-family: var(--mono);
}
.foot__nav {
  display: flex;
  gap: 24px;
}
.foot__nav a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.18s var(--ease);
}
.foot__nav a:hover { color: var(--text); }
.foot__copy {
  width: 100%;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--mono);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease),
              transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__grid .reveal { transition-delay: 0s; }
.hero__headline.reveal { transition-delay: 0.05s; }
.hero__terminal.reveal { transition-delay: 0.12s; }
.hero__stat-1.reveal { transition-delay: 0.18s; }
.hero__stat-2.reveal { transition-delay: 0.22s; }
.hero__segments.reveal { transition-delay: 0.28s; }
.process .process__step:nth-child(2) { transition-delay: 0.06s; }
.process .process__step:nth-child(3) { transition-delay: 0.12s; }
.process .process__step:nth-child(4) { transition-delay: 0.18s; }
.works .work:nth-child(2) { transition-delay: 0.05s; }
.works .work:nth-child(3) { transition-delay: 0.1s; }
.works .work:nth-child(4) { transition-delay: 0.05s; }
.works .work:nth-child(5) { transition-delay: 0.1s; }
.works .work:nth-child(6) { transition-delay: 0.15s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card--hero { grid-column: span 4; grid-row: span 1; }
  .card--terminal { grid-column: span 4; grid-row: span 1; min-height: 280px; }
  .card--stat { grid-column: span 2; }
  .card--segments { grid-column: span 4; }

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

  .section { padding: 72px var(--pad); }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links.is-open {
    display: flex;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--pad);
    gap: 0;
  }
  .nav__links.is-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .hero { padding: 100px var(--pad) 60px; }
  .hero__grid { grid-template-columns: 1fr; }
  .card--hero, .card--terminal, .card--stat, .card--segments {
    grid-column: span 1;
  }
  .card--hero { min-height: auto; padding: 32px 24px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  .process { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .diff { grid-template-columns: 1fr; }

  .cta__inner { text-align: left; }

  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__nav { flex-wrap: wrap; }
}

/* Capturas reais de sites (Charme Chave, Sus Beats) --------- */
.mk-screen--shot { padding: 0; gap: 0; overflow: hidden; }
.mk-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
