/* ==========================================================================
   Guru Tecnologia — sistema visual do site
   Derivado da identidade das propostas comerciais (PPS2026003_V1):
   capa escura com barra e arcos magenta, páginas de conteúdo claras,
   seções numeradas, tabelas de régua fina e tiles de destaque.
   ========================================================================== */

:root {
  --ink:        #15171b;   /* preto-azulado da capa */
  --ink-soft:   #1c1f25;   /* variação para blocos escuros alternados */
  --magenta:    #e6007e;   /* acento da marca */
  --magenta-dp: #7a1e52;   /* arco escuro da capa */
  --paper:      #ffffff;
  --panel:      #f4f5f7;   /* painel cinza-claro (tiles, callouts) */
  --text:       #1a1d21;   /* texto sobre claro */
  --muted:      #6b7280;   /* texto secundário sobre claro */
  --muted-on-dark: rgba(255, 255, 255, .62);
  --rule:       #e3e5e9;   /* régua fina sobre claro */
  --rule-dark:  rgba(255, 255, 255, .14);

  --shell:      1080px;    /* largura máxima do conteúdo */
  --header-h:   72px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
}

p { margin: 0 0 1em; }

/* ------------------------------------------------------- troca de idioma -- */
/* Só o idioma inativo é escondido; cada elemento mantém seu display natural. */

html[lang="pt"] [data-lang="en"],
html[lang="en"] [data-lang="pt"] { display: none !important; }

/* ------------------------------------------------------------ estrutura -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: var(--header-h);
}

.section--light { background: var(--paper); color: var(--text); }
.section--panel { background: var(--panel); color: var(--text); }
.section--dark  { background: var(--ink);   color: #fff; }

/* --------------------------------------------------------------- header -- */

/* Opaca de propósito: a barra fica ACIMA do hero no fluxo, então fundo
   translúcido revelaria o branco do body e criaria uma faixa cinza no topo. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
  color: #fff;
}

.topbar__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Wordmark "Guru." + TECNOLOGIA, como na capa da proposta. */
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand__word {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
}

.brand__word span { color: var(--magenta); }

.brand__sub {
  margin-top: 5px;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainnav a {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.mainnav a:hover,
.mainnav a:focus-visible { color: #fff; border-bottom-color: var(--rule-dark); }

.mainnav a.is-active { color: #fff; border-bottom-color: var(--magenta); }

.langbtn {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}

.langbtn:hover { border-color: var(--magenta); background: rgba(230, 0, 126, .12); }

/* ----------------------------------------------------------------- hero -- */
/* Réplica da capa: barra magenta à esquerda, arcos finos ao fundo. */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 132px 0 108px;
  scroll-margin-top: var(--header-h);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--magenta);
}

.hero__arcs {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 900px;
  max-width: 92vw;
  height: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  opacity: .85;
}

.hero .shell { position: relative; z-index: 1; }

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(2.15rem, 5.6vw, 4rem);
  letter-spacing: -.035em;
  line-height: 1.04;
  max-width: 17ch;
  margin-bottom: 28px;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 60ch;
  margin-bottom: 18px;
}

.hero__note {
  font-size: 1rem;
  color: var(--muted-on-dark);
  max-width: 72ch;
  margin-bottom: 38px;
}

.btn {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 2px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.btn--accent { background: var(--magenta); color: #fff; }
.btn--accent:hover { background: #ff2a97; transform: translateY(-1px); }

/* Ação secundária do hero: link, não botão — não compete com o CTA. */
.hero__demo {
  display: inline-block;
  margin-left: 24px;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--magenta);
}

.hero__demo:hover { color: var(--magenta); }

/* --------------------------------------------- cabeçalho numerado (01 …) -- */

.sechead { margin-bottom: 52px; }

.sechead__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.sechead__num {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--magenta);
}

.sechead h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.sechead__rule {
  height: 3px;
  background: var(--text);
  margin-top: 14px;
}

.section--dark .sechead__rule { background: #fff; }

.sechead__meta {
  margin: 14px 0 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .sechead__meta { color: var(--muted-on-dark); }

/* ------------------------------------------------------------- conteúdo -- */

.prose { max-width: 72ch; }

.prose > p {
  font-size: 1.06rem;
  line-height: 1.7;
}

.prose > p:first-child {
  font-size: 1.2rem;
  line-height: 1.6;
}

.subhead {
  margin: 52px 0 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .subhead { color: var(--muted-on-dark); }

/* Lista termo/descrição com régua fina — padrão das tabelas da proposta. */

.deflist {
  margin: 18px 0 0;
  border-top: 1px solid var(--rule);
}

.deflist__row {
  display: grid;
  grid-template-columns: minmax(200px, 270px) 1fr;
  gap: 8px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.section--dark .deflist,
.section--dark .deflist__row { border-color: var(--rule-dark); }

/* Sobre o painel cinza a régua precisa de um passo a mais de contraste. */
.section--panel .deflist,
.section--panel .deflist__row,
.section--panel .projects,
.section--panel .project { border-color: #dcdee3; }

/* Coluna de termo mais larga — usada quando os rótulos são longos
   (princípios éticos). */
.deflist--wide .deflist__row { grid-template-columns: minmax(230px, 330px) 1fr; }

.deflist__term {
  font-weight: 700;
  letter-spacing: -.005em;
}

.deflist__desc { color: var(--muted); }

.section--dark .deflist__desc { color: var(--muted-on-dark); }

/* Faixa de fechamento (modelos de engajamento) */

.strip {
  margin-top: 44px;
  border-left: 4px solid var(--magenta);
  background: var(--panel);
  padding: 20px 26px;
}

/* Em seção cinza o bloco inverte para branco, e vice-versa. */
.section--panel .strip { background: var(--paper); }
.section--dark  .strip { background: rgba(255, 255, 255, .06); }

.strip__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.strip p { margin: 0; font-weight: 600; }

/* -------------------------------------------------------------- projetos -- */

.projects { border-top: 1px solid var(--rule); }

.project {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}

.project__head {
  display: flex;
  align-items: baseline;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.project h3 { font-size: 1.4rem; }

/* Produto próprio: hierarquia deliberadamente abaixo dos projetos de cliente. */
.project h4 { font-size: 1.15rem; }

.project__link { text-decoration: none; border-bottom: 2px solid var(--magenta); }
.project__link:hover { color: var(--magenta); }

/* Rótulo sóbrio, como as etiquetas do documento — o magenta fica reservado
   para numeração de seção, barras e tiles. */
.project__when {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.project p { max-width: 76ch; margin-bottom: 0; }

.project p + p { margin-top: 12px; }

/* Tiles de indicadores — equivalentes aos blocos INVESTIMENTO / ESFORÇO / PRAZO */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  margin-top: 30px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.stat {
  background: var(--panel);
  border-top: 3px solid var(--magenta);
  padding: 20px 22px;
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.stat__label {
  margin-top: 6px;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--muted);
}

.stats__note {
  margin: 12px 0 0;
  font-size: .78rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- contato -- */

.contact { max-width: 860px; }

.kv { border-top: 1px solid var(--rule-dark); }

.kv__row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 6px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-dark);
}

.kv__key {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  padding-top: 4px;
}

.kv__val { font-weight: 600; }

.kv__val a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--magenta); }
.kv__val a:hover { color: var(--magenta); }

.kv__val small {
  display: block;
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted-on-dark);
}

/* ---------------------------------------------------------------- rodapé -- */

.foot {
  background: var(--ink-soft);
  color: var(--muted-on-dark);
  padding: 34px 0;
  border-top: 1px solid var(--rule-dark);
}

.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  flex-wrap: wrap;
  font-size: .82rem;
}

.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.foot a:hover { color: #fff; }

/* ------------------------------------------------------------ responsivo -- */

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .hero { padding: 92px 0 76px; }
  /* .deflist--wide precisa ser repetido aqui: tem especificidade maior que
     .deflist__row e sobreporia este empilhamento. */
  .deflist__row,
  .deflist--wide .deflist__row,
  .kv__row { grid-template-columns: 1fr; gap: 4px; }
  /* Rótulos longos ("Fábrica de software · desde abril de 2015") não cabem em
     uma linha abaixo de ~375px; sem isto o nowrap força rolagem horizontal. */
  .project__when { white-space: normal; }
  .kv__key { padding-top: 0; }
  .contact { gap: 32px; }
}

@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .mainnav { gap: 14px; }
  .mainnav a { font-size: .78rem; }
  /* fit-content para o sublinhado magenta acompanhar o texto, e não esticar
     até a borda como aconteceria com display:block puro. */
  .hero__demo { display: block; width: -moz-fit-content; width: fit-content; margin: 22px 0 0; }
  .hero::before { width: 6px; }
  .sechead { margin-bottom: 36px; }
}

/* --------------------------------------------------------------- foco a11y */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}
