/*
 * skills.coleoni.com
 * Tokens do kit Coleoni (coleoni_kit/tokens). Escuro é a identidade; o verde
 * fica em detalhe, foco e estado, nunca em preenchimento grande.
 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --surface: #111111;
  --surface-2: #151515;
  --surface-3: #1a1a1a;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-contrast: rgba(255, 255, 255, 0.28);

  --text: #f5f5f5;
  --text-2: #a0a0a0;
  --text-3: #707070;
  --text-4: #4a4a4a;

  --accent: #aefa0e;
  --accent-ink: #0a0a0a;
  --accent-hover: #c2ff3d;
  --accent-dim: rgba(174, 250, 14, 0.12);
  --accent-line: rgba(174, 250, 14, 0.38);
  --accent-glow: rgba(174, 250, 14, 0.22);

  --hover: rgba(255, 255, 255, 0.05);
  --pressed: rgba(255, 255, 255, 0.09);

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --r-1: 3px;
  --r-2: 5px;
  --r-3: 8px;
  --r-4: 12px;

  --page-pad: clamp(1rem, 4.45vw, 4rem);
  --page-max: 80rem;
  --nav-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --motion-slow: 360ms;

  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 48px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-2);
}

h1,
h2,
h3,
p {
  margin: 0;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ---------------------------------------------------------------- navbar */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-normal) var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  height: 24px;
  width: auto;
  flex: none;
}

.brand-sep {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  transform: skewX(-18deg);
  flex: none;
}

/* a logo "skills", em adesivo, um pouco maior que o lockup para pesar igual */
.brand img.brand-skills {
  height: 28px;
}

/* no celular o lockup vira só o símbolo, para caber a logo skills */
.brand-mark {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-3);
  color: var(--text-2);
  font-size: 0.875rem;
  transition:
    color var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--hover);
}

.nav-link[aria-current='page'] {
  color: var(--text);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ---------------------------------------------------------------- tipografia */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  flex: none;
}

.display {
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 560;
  text-wrap: balance;
}

.display .muted {
  color: var(--text-3);
}

.h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 560;
  text-wrap: balance;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 560;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 38rem;
  text-wrap: pretty;
}

.body-2 {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
}

.slash {
  color: var(--accent);
}

/* ---------------------------------------------------------------- botões */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-3);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--motion-normal) var(--ease),
    border-color var(--motion-normal) var(--ease),
    color var(--motion-normal) var(--ease),
    transform var(--motion-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--text);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--line-contrast);
  background: var(--hover);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(4.5rem, 11vw, 9.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 -10% 0;
  z-index: -1;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 1.4px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 30% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-stack {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- seções */

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- cards de skill */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color var(--motion-slow) var(--ease),
    transform var(--motion-slow) var(--ease-out);
}

a.skill-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.skill-card .media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.skill-card .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 900ms var(--ease-out),
    opacity 600ms var(--ease);
}

.skill-card .media img + img {
  opacity: 0;
}

a.skill-card:hover .media img {
  transform: scale(1.025);
}

a.skill-card:hover .media img + img {
  opacity: 1;
}

.skill-card .body {
  display: grid;
  gap: 10px;
  padding: 24px 24px 22px;
}

.skill-card .cmd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-2);
}

.skill-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.skill-card .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition:
    background-color var(--motion-normal) var(--ease),
    color var(--motion-normal) var(--ease),
    border-color var(--motion-normal) var(--ease),
    transform var(--motion-slow) var(--ease-out);
}

.skill-card .go svg {
  width: 15px;
  height: 15px;
}

a.skill-card:hover .go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-45deg);
}

/* a skill em destaque na home: imagem de um lado, texto do outro */
.skill-card.is-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.skill-card.is-feature .media {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.skill-card.is-feature + .skill-card.is-feature {
  margin-top: 20px;
}

/* cards alternados: a imagem passa pro lado direito */
.skill-card.is-feature.is-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.skill-card.is-feature.is-flip .media {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.skill-card.is-feature .body {
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 3.4vw, 48px);
}

.skill-card.is-feature .h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}

@media (max-width: 960px) {
  .skill-card.is-feature {
    grid-template-columns: 1fr;
  }

  .skill-card.is-feature .media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .skill-card.is-feature.is-flip {
    grid-template-columns: 1fr;
  }

  .skill-card.is-feature.is-flip .media {
    order: 0;
    border-left: 0;
  }
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  overflow: hidden;
}

@media (max-width: 860px) {
  .use-grid {
    grid-template-columns: 1fr;
  }
}

.use {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  border-left: 1px solid var(--line);
}

.use:first-child {
  border-left: 0;
}

@media (max-width: 860px) {
  .use {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .use:first-child {
    border-top: 0;
  }
}

/* ícone de cada passo: terminal, os agentes, a barra do comando */
.use-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  background: var(--surface-2);
  color: var(--text);
  transition:
    border-color var(--motion-normal) var(--ease),
    color var(--motion-normal) var(--ease);
}

.use-icon svg {
  width: 20px;
  height: 20px;
}

.use:hover .use-icon {
  border-color: var(--line-contrast);
}

/* passo 2: as logos se revezam no mesmo lugar (site.js troca a .is-on) */
.use-icon.agents .logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 19px;
  height: 19px;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  filter: blur(2px);
  transition:
    opacity 260ms var(--ease),
    transform 420ms var(--ease-out),
    filter 260ms var(--ease);
}

.use-icon.agents .logo.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.use-icon.agents .logo.is-out {
  transform: translateY(-6px) scale(0.9);
}

.use h3 {
  font-size: 1.125rem;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.use code,
.lead code {
  font-size: 0.875em;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- moldura de imagem */

.shot {
  position: relative;
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.shot img {
  width: 100%;
  height: auto;
}

button.zoomable {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

/* ---------------------------------------------------------------- galeria do hero */

.showcase {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 520ms var(--ease),
    transform 900ms var(--ease-out);
}

.stage img.is-on {
  opacity: 1;
  transform: none;
}

.stage .zoom-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.stage-caption {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  pointer-events: none;
}

.stage-caption b {
  color: var(--text);
  font-weight: 500;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.thumb-btn {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-2);
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity var(--motion-normal) var(--ease),
    border-color var(--motion-normal) var(--ease);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn:hover {
  opacity: 0.85;
}

.thumb-btn[aria-pressed='true'] {
  opacity: 1;
  border-color: var(--accent-line);
}

.thumb-btn[aria-pressed='true']::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------- fluxo */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.terminal {
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.terminal-bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.terminal pre {
  margin: 0;
  padding: 20px 22px 24px;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
}

.terminal .p {
  color: var(--text-3);
  user-select: none;
}

.terminal .c {
  color: var(--text);
}

.terminal .a {
  color: var(--accent);
}

.terminal .d {
  color: var(--text-3);
}

.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--surface);
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
}

.step .n {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
  padding-top: 3px;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- layouts */

.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

.layout-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.layout-card .shot {
  aspect-ratio: 3 / 2;
  transition: border-color var(--motion-slow) var(--ease);
}

.layout-card .shot img {
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.layout-card:hover .shot {
  border-color: var(--line-strong);
}

.layout-card:hover .shot img {
  transform: scale(1.03);
}

.layout-card .meta {
  display: grid;
  gap: 4px;
}

.layout-card .name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
}

/* ---------------------------------------------------------------- fundos */

.bg-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .bg-lab {
    grid-template-columns: 1fr;
  }
}

.swatches {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
}

@media (max-width: 960px) {
  .swatches {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.swatch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-3);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    background-color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease);
}

.swatch:hover {
  background: var(--hover);
}

.swatch[aria-pressed='true'] {
  background: var(--surface-3);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}

.swatch .chip {
  width: 34px;
  height: 34px;
  border-radius: var(--r-3);
  flex: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.swatch .t {
  display: grid;
  line-height: 1.3;
}

.swatch .t b {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.swatch .t span {
  font-size: 0.75rem;
  color: var(--text-3);
}

.chip-auto {
  background: radial-gradient(120% 90% at 38% 40%, #2b2c30 0%, #18191c 60%, #121315 100%);
}
.chip-dark {
  background: radial-gradient(90% 80% at 42% 38%, #2a2f22 0%, #1a1e15 55%, #0e100b 100%);
}
.chip-brand {
  background: radial-gradient(120% 90% at 38% 40%, #cdf46a 0%, #bef228 60%, #b3e426 100%);
}
.chip-mesh {
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(190, 242, 40, 0.55) 0%, transparent 70%),
    radial-gradient(60% 70% at 90% 90%, rgba(220, 248, 140, 0.6) 0%, transparent 72%),
    #1c1d20;
}
.chip-grid {
  background:
    radial-gradient(circle at 1px 1px, rgba(234, 235, 238, 0.35) 1px, transparent 1.4px) 0 0 / 7px 7px,
    #1f2023;
}
.chip-blur {
  background:
    radial-gradient(50% 50% at 70% 35%, rgba(190, 242, 40, 0.45), transparent 70%),
    radial-gradient(60% 60% at 25% 70%, rgba(120, 120, 130, 0.5), transparent 70%),
    #141414;
  filter: saturate(1.1);
}
.chip-hex {
  background: radial-gradient(120% 90% at 38% 40%, #4a5a73 0%, #1d2b3f 60%, #1a283b 100%);
}

/* ---------------------------------------------------------------- tamanhos */

.sizes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

@media (max-width: 860px) {
  .sizes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .sizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.size {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  text-align: center;
}

.size .box {
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.size .box i {
  display: block;
  border: 1px solid var(--line-contrast);
  border-radius: var(--r-2);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 1.4px) 0 0 / 8px 8px,
    var(--surface-2);
}

.size.is-default .box i {
  border-color: var(--accent-line);
}

.size b {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.size span {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: -8px;
}

/* ---------------------------------------------------------------- instalar */

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px 64px;
  align-items: start;
}

@media (max-width: 960px) {
  .install {
    grid-template-columns: 1fr;
  }
}

.reqs {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.req {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.req span:last-child {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
  text-align: right;
}

/* o comando de instalação em destaque: abertura e fechamento */
.install-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
}

.code.cmd {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  border-color: var(--line-strong);
  background: var(--surface);
}

.code.cmd pre {
  padding: 10px 50px 10px 16px;
  font-size: 0.875rem;
}

.code.cmd .copy {
  top: 50%;
  transform: translateY(-50%);
}

.cta .code.cmd {
  text-align: left;
}

.code pre [data-line].sh::before {
  content: '$ ';
  color: var(--accent);
}

.variants {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.variant {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-2);
}

.variant code {
  font-size: 0.8125rem;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.code-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.code-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.code-step > span {
  font-size: 0.875rem;
  color: var(--text-2);
}

.code-step > span b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-3);
  margin-right: 8px;
}

.code {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-2);
}

.code pre {
  margin: 0;
  padding: 14px 52px 14px 16px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/*
 * Um comando por linha; se quebrar, a continuação recua. A quebra de linha do
 * HTML entre os comandos colapsa, quem separa é o bloco.
 */
.code pre:has([data-line]) {
  white-space: normal;
}

.code pre [data-line] {
  display: block;
  white-space: pre-wrap;
  padding-left: 1.5em;
  text-indent: -1.5em;
}

.code .p {
  color: var(--text-4);
  user-select: none;
}

.code .d {
  color: var(--text-3);
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease);
}

.copy:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.copy svg {
  width: 14px;
  height: 14px;
}

.copy .ok {
  display: none;
  color: var(--accent);
}

.copy.is-done .ok {
  display: block;
}

.copy.is-done .ic {
  display: none;
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- opções */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

thead th {
  border-top: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-2);
}

td:first-child {
  white-space: nowrap;
}

td code {
  font-size: 0.8125rem;
  color: var(--text);
  padding: 2px 6px;
  border-radius: var(--r-1);
  background: var(--surface-3);
  border: 1px solid var(--line);
}

td:last-child {
  color: var(--text-2);
}

/* ---------------------------------------------------------------- exemplos */

.examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .examples {
    grid-template-columns: 1fr;
  }
}

.example {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
}

.example p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- cta final */

.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
  padding: clamp(4rem, 9vw, 7.5rem) var(--page-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(55% 70% at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(55% 70% at 50% 50%, #000 0%, transparent 80%);
}

.cta img.mark {
  width: 48px;
  height: auto;
}

/* ---------------------------------------------------------------- rodapé */

.footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer .brand img {
  height: 20px;
}

.footer .brand img.brand-skills {
  height: 24px;
}

.footer small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer nav {
  display: flex;
  gap: 4px;
}

/* ---------------------------------------------------------------- breadcrumb */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
}

.crumbs a {
  color: var(--text-2);
  transition: color var(--motion-fast) var(--ease);
}

.crumbs a:hover {
  color: var(--text);
}

.crumbs svg {
  width: 12px;
  height: 12px;
}

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 48px);
  border: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox[open] {
  display: flex;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: lb-fade-in 320ms var(--ease-out) both;
}

.lightbox.is-closing::backdrop {
  animation: lb-fade-out 200ms var(--ease-in) both;
}

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: min(1600px, 100%);
  max-height: 100%;
  animation: lb-in 380ms var(--ease-out) both;
}

.lightbox.is-closing figure {
  animation: lb-out 200ms var(--ease-in) both;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  border-radius: var(--r-4);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
}

.lightbox figcaption {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
  text-align: center;
}

.lightbox .close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(17, 17, 17, 0.9);
  color: var(--text);
  cursor: pointer;
  animation: lb-fade-in 320ms var(--ease-out) both;
  transition:
    background-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

.lightbox .close:hover {
  background: var(--text);
  color: var(--accent-ink);
}

.lightbox .close svg {
  width: 18px;
  height: 18px;
}

@keyframes lb-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes lb-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    filter: blur(6px);
  }
}

@keyframes lb-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

/* ---------------------------------------------------------------- entrada */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 560px) {
  .nav .brand-lockup {
    display: none;
  }

  .nav .brand-mark {
    display: block;
  }

  .nav-link.hide-sm {
    display: none;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer nav {
    margin-left: -12px;
  }

  .step {
    padding: 20px;
  }

  .stage-caption {
    left: 10px;
    bottom: 10px;
    height: 26px;
    padding: 0 10px;
    font-size: 0.6875rem;
  }

  th,
  td {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* comando que quebra só entre as partes, nunca no meio de uma flag */
.nw {
  white-space: nowrap;
}

/* ---------------------------------------------------------------- destaque dos títulos */

/*
 * Lendo um título: uma seleção verde atravessa cada linha, segura e solta.
 * O mesmo efeito do coleoni.com (coleoni_digital, .text-sweep). As linhas só
 * existem enquanto ele roda: o site.js mede a quebra, monta uma .sweep-line por
 * linha e, no fim, devolve o título ao HTML original.
 */
.sweep-line {
  position: relative;
  display: block;
}

.sweep-inner {
  position: relative;
  display: inline-block;
}

.text-sweep {
  position: absolute;
  /* caixa maior que a linha nos dois lados, para o recorte não comer
     ascendentes e descendentes; o padding devolve o texto ao lugar exato */
  top: -0.25em;
  left: 0;
  width: max-content;
  max-width: 100%;
  padding-block: 0.25em;
  color: var(--bg);
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  user-select: none;
  animation: text-sweep 2000ms var(--sd, 0ms) both;
}

/* o verde fica na caixa inline, como uma seleção de verdade */
.text-sweep::after {
  background: var(--accent);
  content: attr(data-text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@keyframes text-sweep {
  0% {
    clip-path: inset(0 100% 0 0);
    animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
  }
  30% {
    clip-path: inset(0 0 0 0);
    animation-timing-function: linear;
  }
  62% {
    clip-path: inset(0 0 0 0);
    animation-timing-function: cubic-bezier(0.55, 0, 0.25, 1);
  }
  100% {
    clip-path: inset(0 0 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-sweep {
    display: none;
  }
}

/* ---------------------------------------------------------------- seletor de idioma */

.lang {
  position: relative;
}

.lang-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lang-btn .chev {
  width: 12px;
  height: 12px;
  margin-left: -2px;
  transition: transform var(--motion-normal) var(--ease);
}

.lang-btn[aria-expanded='true'] {
  color: var(--text);
  background: var(--hover);
}

.lang-btn[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-4);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
  transform-origin: top right;
  animation: menu-in 200ms var(--ease-out) both;
}

.lang-menu.is-closing {
  animation: menu-out 120ms var(--ease-in) both;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-3);
  color: var(--text-2);
  font-size: 0.875rem;
  transition:
    background-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--hover);
  color: var(--text);
  outline: none;
}

.lang-menu a[aria-checked='true'] {
  color: var(--text);
}

.lang-menu a svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
  opacity: 0;
}

.lang-menu a[aria-checked='true'] svg {
  opacity: 1;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

@keyframes menu-out {
  to {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

/* ---------------------------------------------------------------- antes e depois */

.ba {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .ba {
    grid-template-columns: 1fr;
  }
}

.ba-in {
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--bg-2);
  overflow: hidden;
}

.ba-in pre {
  margin: 0;
  max-height: 560px;
  overflow: auto;
  padding: 18px 20px 22px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-wrap;
}

.ba-out {
  display: grid;
  gap: 16px;
}

.ba-out .shot {
  aspect-ratio: 3 / 2;
}

.ba-out .shot img {
  height: 100%;
  object-fit: cover;
}

.ba-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: var(--surface);
  overflow: hidden;
}

@media (max-width: 560px) {
  .ba-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fact {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
}

.fact b {
  font-size: 1.375rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.fact span {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.35;
}

@media (max-width: 560px) {
  .fact:nth-child(3) {
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* grade de seis passos: duas linhas de três */
@media (min-width: 861px) {
  .use-grid.six .use:nth-child(3n + 1) {
    border-left: 0;
  }

  .use-grid.six .use:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}
