/* GoWorks — site do selo. Editorial: papel e tinta, cor só no logo, nos ícones e em acentos. */

@font-face {
  font-family: "Inter";
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* marca */
  --violet: #6B3FD4;
  --green: #11813A;
  --ink: #14161A;
  --paper: #FBFAF7;

  /* tema claro */
  --bg: var(--paper);
  --surface: #FFFFFF;
  --text: #14161A;
  --muted: #5B616B;
  --line: #E6E3DC;
  --accent: var(--violet);
  --ok: var(--green);
  --ok-bg: rgba(17, 129, 58, .10);
  --btn: var(--ink);
  --on-btn: var(--paper);
  --tonal: rgba(20, 22, 26, .06);
  --bar: rgba(251, 250, 247, .78);

  --radius: 18px;
  --gutter: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --surface: #1B1E23;
    --text: #ECEDEF;
    --muted: #979DA6;
    --line: #2A2E35;
    --accent: #A48BF0;
    --ok: #4ADE80;
    --ok-bg: rgba(74, 222, 128, .12);
    --btn: #ECEDEF;
    --on-btn: var(--ink);
    --tonal: rgba(255, 255, 255, .07);
    --bar: rgba(20, 22, 26, .78);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: var(--ink);
  --surface: #1B1E23;
  --text: #ECEDEF;
  --muted: #979DA6;
  --line: #2A2E35;
  --accent: #A48BF0;
  --ok: #4ADE80;
  --ok-bg: rgba(74, 222, 128, .12);
  --btn: #ECEDEF;
  --on-btn: var(--ink);
  --tonal: rgba(255, 255, 255, .07);
  --bar: rgba(20, 22, 26, .78);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

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

/* ---------- topo: única peça com vidro ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 var(--gutter);
}
.brand { display: flex; flex-shrink: 0; }
.brand__logo { height: 28px; width: auto; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light { display: none; }
  :root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}

.nav { display: flex; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.topbar__actions { display: flex; gap: 4px; margin-left: auto; }
.nav + .topbar__actions { margin-left: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 600 12.5px/1 "Inter", sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.icon-btn:hover { background: var(--tonal); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#themeToggle svg { transition: transform .5s var(--ease); }
#themeToggle:hover svg { transform: rotate(40deg); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.lang-toggle { gap: 2px; }
.lang-toggle__opt { padding: 4px 6px; border-radius: 6px; color: var(--muted); transition: background .2s, color .2s; }
.lang-toggle__opt.is-active { background: var(--text); color: var(--bg); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 15px/1 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--filled { background: var(--btn); color: var(--on-btn); }
.btn--tonal { background: transparent; color: var(--text); border-color: var(--line); }
.btn--tonal:hover { border-color: var(--muted); }
.btn--small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- layout ---------- */
main { padding: 0 var(--gutter); }
.section { max-width: var(--maxw); margin: 0 auto; padding: 88px 0; border-top: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 14px; }
.section__lead { color: var(--muted); font-size: 18px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__n { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero__title { font-size: clamp(44px, 7.4vw, 84px); font-weight: 750; letter-spacing: -0.045em; line-height: 1.02; margin: 16px 0 24px; }
.hero__title span { display: block; }
.hero__accent { color: var(--muted); }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__art { display: flex; justify-content: center; }
.hero__mark { width: min(380px, 100%); height: auto; overflow: visible; }

/* ---------- como funciona ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.how__step { padding-top: 20px; border-top: 2px solid var(--line); transition: border-color .3s; }
.how__step:nth-child(1) { --c: var(--accent); }
.how__step:nth-child(2) { --c: var(--text); }
.how__step:nth-child(3) { --c: var(--ok); }
.how__step:hover { border-top-color: var(--c); }
.how__n { display: block; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c); margin-bottom: 14px; }
.how__step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.how__step p { color: var(--muted); }

/* ---------- kit de marca ---------- */
.hero--page { grid-template-columns: 1fr; padding-bottom: 40px; }
.kit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kit__item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kit__preview { display: grid; place-items: center; height: 220px; padding: 32px; }
.kit__preview--light { background: var(--paper); }
.kit__preview--dark { background: var(--ink); }
.kit__preview img { max-height: 64px; width: auto; }
.kit__preview .kit__img--stacked { max-height: 140px; }
.kit__preview .kit__img--mark { max-height: 120px; }
.kit__item figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--line); }
.kit__item figcaption span { color: var(--muted); font-size: 14px; }
.kit__item a { color: var(--text); font-weight: 600; text-underline-offset: 4px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.swatch { display: grid; gap: 4px; }
.swatch__chip { height: 96px; border-radius: 14px; background: var(--sw); border: 1px solid var(--line); margin-bottom: 8px; }
.swatch code { font: 500 14px/1.4 ui-monospace, "JetBrains Mono", monospace; color: var(--muted); }
.swatch small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.kit__type { margin-top: 28px; color: var(--muted); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--apps { grid-template-columns: repeat(2, 1fr); }
.grid--oss { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tint, var(--muted)) 45%, var(--line));
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--tint, #000) 55%, transparent);
}
.card--app::before {
  /* fio de cor do app no topo do card */
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--tint);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card--app:hover::before { transform: scaleX(1); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card__title { font-size: 26px; font-weight: 700; }
.card--oss .card__title { font-size: 21px; }
.card__tagline { font-size: 17px; font-weight: 550; }
.card__body { color: var(--muted); flex: 1; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: text-decoration-color .2s;
}
.card__link:hover { text-decoration-color: currentColor; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow, .card:hover .arrow { transform: translate(3px, -3px); }

.app-icon { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; transition: transform .45s var(--ease); }
.card:hover .app-icon { transform: rotate(-6deg) scale(1.05); }
.app-icon img { width: 100%; height: 100%; }
.app-icon--lister { background: #0B0814; }
.app-icon--lister img { padding: 6px; }

.oss-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tonal);
  color: var(--text);
  transition: transform .45s var(--ease);
}
.card:hover .oss-icon { transform: rotate(-6deg); }
.oss-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.chip--ok { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.chip--ok::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
.chip--license { font-family: ui-monospace, "JetBrains Mono", monospace; font-weight: 500; }

@keyframes pulse { 50% { opacity: .35; } }

/* ---------- quem somos ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.manifesto {
  margin-top: 12px;
  font-size: clamp(44px, 6.4vw, 72px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}
.manifesto .m { display: block; }
.manifesto .m:nth-child(1) { color: var(--accent); }
.manifesto .m:nth-child(3) { color: var(--ok); }
.about__copy { display: flex; flex-direction: column; gap: 16px; font-size: 18px; color: var(--muted); }

/* privacidade: o compromisso que atravessa todos os produtos */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 56px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.privacy__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--ok-bg);
  color: var(--ok);
}
.privacy__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy.is-in .privacy__icon svg path:last-child { stroke-dasharray: 12; stroke-dashoffset: 12; animation: draw .7s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.privacy__head h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.privacy__head p { color: var(--muted); }
.privacy__list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.privacy__list li { display: grid; gap: 2px; padding-left: 20px; border-left: 2px solid var(--line); transition: border-color .3s; }
.privacy__list li:hover { border-left-color: var(--ok); }
.privacy__list strong { font-size: 16.5px; }
.privacy__list span { color: var(--muted); }

/* ---------- contato ---------- */
.contact__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.contact-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .2s;
}
.contact-chip:hover { transform: translateY(-3px); border-color: var(--muted); }
.contact-chip svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.contact-chip:hover svg { transform: scale(1.12) rotate(-8deg); }
.contact-chip[data-reason="partnership"] svg { stroke: var(--ok); }
.contact-chip[data-reason="work"] svg { stroke: var(--text); }
.contact-chip strong { display: block; font-size: 16px; }
.contact-chip small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

.contact__email { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact__address { font: 500 17px/1 ui-monospace, "JetBrains Mono", monospace; }
.contact__toast { font-size: 14px; color: var(--ok); min-width: 1px; }
.contact__note { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14.5px; }
.contact__note a { color: var(--text); font-weight: 600; text-underline-offset: 4px; }

/* ---------- rodapé ---------- */
.footer { padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}
.footer__mark { width: 28px; height: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* ---------- movimento ---------- */
/* entrada do hero: texto sobe em sequência */
.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* o símbolo se monta: G pela esquerda, W pela direita, a interseção acende por último */
.gw-g { animation: from-left 1s var(--ease) .15s both; }
.gw-w { animation: from-right 1s var(--ease) .25s both; }
.gw-x { animation: fade .6s ease 1s both; }
.hero__mark { animation: drift 7s ease-in-out 1.6s infinite; }
@keyframes from-left { from { opacity: 0; transform: translateX(-90px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(90px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes drift { 50% { transform: translateY(-8px); } }

/* revelação ao rolar (só quando o JS está ativo) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-4px); }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 40px; }
  .hero__art { order: -1; justify-content: flex-start; }
  .hero__mark { width: 132px; }
  .grid--apps, .grid--oss, .contact__chips, .how, .kit { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 24px; }
  .privacy { grid-template-columns: 1fr; gap: 24px; padding: 24px; margin-top: 40px; }
  .section { padding: 64px 0; }
  .card { padding: 22px; }
  .card--app::before { left: 22px; right: 22px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid--oss { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .brand__logo { height: 24px; }
  .chips { justify-content: flex-start; }
  .card__top { flex-direction: column; }
  .footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .privacy__icon svg path:last-child { stroke-dasharray: none; stroke-dashoffset: 0; }
}
