:root {
  --orange: #FF5B24;
  --ink: #1E1C1A;
  --paper: #FAF6F1;
  --sand: #F3EDE5;
  --line: #E4DDD4;
  --muted: #8A847D;
  --body: #55504B;
  --dark-line: #3A3632;
  --dark-text: #B8B1A9;

  --f-display: Outfit, sans-serif;
  --f-body: Manrope, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--f-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: opacity .15s, color .15s, border-color .15s; }
a:hover { color: var(--orange); }

ul, ol { list-style: none; margin: 0; padding: 0; }

.mono { font-family: var(--f-mono); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pad { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* ---------- Logo ---------- */
.logo { font-family: var(--f-display); font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.logo__ny { font-weight: 800; color: var(--orange); }
.logo__start { font-weight: 300; }
.logo:hover { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero__runner {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .18;
}

.nav {
  position: relative;
  padding-top: 28px; padding-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.nav__links a:hover, .hero__cta:hover { color: inherit; opacity: .6; }
.nav__cta { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

.hero__body {
  position: relative; flex: 1;
  padding-top: clamp(24px, 6vh, 72px);
  display: flex; flex-direction: column;
}
.hero__main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { font-size: 13px; letter-spacing: .02em; margin-bottom: clamp(20px, 3.5vh, 32px); color: var(--muted); }
.hero__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(44px, min(8.4vw, 12vh), 124px);
  line-height: .94; letter-spacing: -.045em;
  max-width: 14ch; text-wrap: balance;
}
.hero__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px; margin-top: clamp(28px, 5vh, 64px); align-items: end;
}
.hero__lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.hero__cta { font-family: var(--f-display); font-weight: 600; font-size: 20px; border-bottom: 2px solid currentColor; padding-bottom: 4px; }

.hero__services {
  margin-top: clamp(40px, 7vh, 88px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.hero__services li { padding: 22px 0; display: flex; gap: 14px; font-size: 15px; }
.hero__services .mono { font-size: 12px; color: var(--muted); padding-top: 3px; }

/* ---------- Shared section parts ---------- */
.section--sand { background: var(--sand); border-top: 1px solid var(--line); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--orange { background: var(--orange); color: var(--ink); }

.kicker { font-size: 13px; color: var(--orange); }

.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.035em;
  text-wrap: balance;
}
.body { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); max-width: 46ch; text-wrap: pretty; }
.body--42 { max-width: 42ch; }
.body--44 { max-width: 44ch; }

.split-intro {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 24px clamp(40px, 6vw, 96px); align-items: end;
}

.two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 6vw, 96px);
}
.sticky-intro { display: flex; flex-direction: column; gap: 24px; align-self: start; }
/* Only stick once the section is laid out in two columns. */
@media (min-width: 900px) { .sticky-intro { position: sticky; top: 40px; } }

.cols { display: grid; gap: 0 32px; }
.cols--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cols--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cols--spaced { margin-top: clamp(48px, 6vw, 80px); }

.item { border-top: 1px solid var(--ink); padding: 20px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.item--tall { padding-bottom: 32px; }
/* Headings promoted for SEO keep the original look. */
.item__title, .step__title, .product__domain { margin: 0; }
.clients__title { margin: 0; font-weight: 400; }

.item__title { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; }
.item__text { font-size: 15px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

/* ---------- Protheus ---------- */
.modules { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.modules li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.modules .mono { font-size: 12px; color: var(--muted); }
.modules li > span:last-child { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.015em; }

/* ---------- IA & Software ---------- */
.h2-light {
  margin: 24px 0 0;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(34px, 5vw, 72px); line-height: 1.02; letter-spacing: -.035em;
  max-width: 18ch; text-wrap: balance;
}
.h2-light strong { font-weight: 800; }
.split-intro--dark .h2-light { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; }
.body--dark { color: var(--dark-text); }
.software__cols { margin-top: clamp(48px, 7vw, 96px); gap: 0 clamp(24px, 4vw, 56px); }
.item--dark { border-top-color: var(--dark-line); padding: 24px 0; gap: 12px; }
.item--dark .item__title { letter-spacing: 0; }
.item--dark .item__text { line-height: 1.6; color: var(--dark-text); }

.products { margin-top: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 24px; }
.products__label { font-size: 13px; color: var(--muted); }
.products__list {
  /* 2 × 2 on desktop, one column on phones */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 32px;
}
.product { display: flex; flex-direction: column; gap: 10px; color: var(--paper); }
.product:hover { color: var(--paper); }

/* Screenshot in a minimal browser frame. Without an image, the striped
   placeholder shows through. */
.product__shot {
  position: relative; margin-bottom: 12px;
  border: 1px solid var(--dark-line); border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #24211F 0 10px, #2A2725 10px 20px);
  transition: border-color .25s, transform .25s;
}
.product__bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: #2A2725; border-bottom: 1px solid var(--dark-line);
}
.product__bar i { width: 8px; height: 8px; border-radius: 50%; background: #4A4540; }
.product__bar .mono { margin-left: 10px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product__shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  transition: transform .4s ease;
}
.product__shot img.is-missing { visibility: hidden; }
.product:hover .product__shot { border-color: var(--orange); }
.product:hover .product__shot img { transform: scale(1.03); }

.product__domain {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em;
  transition: color .15s;
}
.product:hover .product__domain { color: var(--orange); }
.product__desc { font-size: 15px; line-height: 1.55; color: var(--dark-text); }
.product__arrow { color: var(--orange); font-size: 16px; }

/* ---------- Clientes ---------- */
.clients { border-bottom: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.clients__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px 32px; flex-wrap: wrap; margin-bottom: 32px;
}
.clients__note { margin: 0; font-size: 15px; color: var(--body); }

/* Infinite logo carousel: main.js clones the group so the loop is seamless
   whatever the number of logos. */
.marquee {
  --tile-w: clamp(160px, 18vw, 220px);
  display: flex;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__group { display: flex; flex-shrink: 0; }
.marquee.is-running .marquee__group { animation: marquee var(--duration, 40s) linear infinite; }
.marquee:hover .marquee__group { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.client {
  width: var(--tile-w); aspect-ratio: 2 / 1; flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 6px 10px; /* the 400×200 logo canvas already has its own margin */
  background: var(--paper);
  transition: background .25s;
}
.client:hover { background: var(--sand); }
.client img {
  width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .25s, opacity .25s;
}
.client:hover img { filter: none; opacity: 1; }
.client--placeholder { background: repeating-linear-gradient(135deg, var(--paper) 0 10px, var(--sand) 10px 20px); }
.client .mono { font-size: 11px; color: var(--muted); }

/* Without motion, show the logos as a static wrapped row. */
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee__group { flex-wrap: wrap; flex-shrink: 1; }
  .marquee__group[aria-hidden] { display: none; }
}

/* ---------- Método ---------- */
.metodo__title { margin-top: 24px; text-wrap: initial; }
.step { border-top: 2px solid var(--ink); padding: 22px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.step .mono { font-size: 12px; color: var(--muted); }
.step__title { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.step .item__text { line-height: 1.6; }

/* ---------- Time ---------- */
.skills { align-self: start; }

/* ---------- Contato ---------- */
.contact { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.contact__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(52px, 10vw, 160px); line-height: .9; letter-spacing: -.05em; color: #fff;
}
.contact__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px; align-items: end;
}
.contact__lead { margin: 0; font-size: 18px; line-height: 1.55; max-width: 40ch; }
.contact__mail {
  display: inline-block;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.02em;
  border-bottom: 2px solid var(--ink); padding-bottom: 6px;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: #fff; border-color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--dark-text); }
.footer__inner { padding-top: 36px; padding-bottom: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo--footer { font-size: 24px; color: var(--paper); }
.footer .mono { font-size: 12px; }

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