/* =========================================================
   Mange Marketing — Landing page
   Base de design: 1920px de largura, container de 1110px
   ========================================================= */

:root {
  --bg: #080e15;
  --bg-band: #0e141c;
  --bg-social: #0f1720;
  --bg-footer: #141c27;
  --card: #141b25;
  --card-border: #202937;
  --card-media: #1b2430;
  --pillar: #131825;
  --pillar-border: #273046;

  --primary: #6d7fe1;
  --primary-hover: #7e8fec;
  --primary-light: #a1afff;
  --primary-soft: rgba(109, 127, 225, 0.19);

  --text: #ffffff;
  --muted: #abb0c9;
  --muted-footer: #b3b9bf;

  --container: 1110px;
  --gutter: 24px;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: none; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Elementos compartilhados ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.8px;
  padding: 19.933px 37.967px;
  border-radius: 8.543px;
  background: var(--primary);
  color: #fff;
  font-size: 17.085px;
  line-height: 1.67;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn img { width: 17.085px; height: 17.085px; transition: transform 0.25s var(--ease); }
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(109, 127, 225, 0.45);
}
.btn:hover img { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }

.btn--wide { padding-inline: 79px; }
.btn--sm { padding: 12px 26px; min-width: 159px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  line-height: 1.26;
  letter-spacing: 1.6px;
  white-space: nowrap;
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.26;
  color: var(--text);
}

.divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: #d9d9d9;
  opacity: 0.3;
}

.logo { position: relative; display: block; width: 184.142px; height: 48.408px; }
.logo__mark { position: absolute; left: 0; top: 0; }
.logo__text { position: absolute; left: 32.41%; top: 29.04%; }
.logo--sm { width: 130px; height: 35px; }

/* Palcos decorativos em px fixo, escalados pelo JS (ver main.js) */
.stage-wrap { position: relative; }
.stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  transform: scale(var(--s, 1));
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding: 127px 0 124px;
  overflow: clip;
}

.hero__glow {
  position: absolute;
  top: -784px;
  left: calc(50% - 675px);
  width: 1538px;
  height: 1538px;
  border-radius: 50%;
  /* Círculo de 538px com blur de 250px (opacidade 13%) do Figma */
  background: radial-gradient(closest-side,
    rgba(109, 127, 225, 0.057) 0%,
    rgba(109, 127, 225, 0.045) 35%,
    rgba(109, 127, 225, 0.018) 65%,
    rgba(109, 127, 225, 0) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 523px 1fr;
  column-gap: 47px;
  align-items: start;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60.748px;
}
.hero__text { display: flex; flex-direction: column; gap: 22.78px; margin-bottom: -7.6px; }

.hero__title {
  font-size: 45.172px;
  font-weight: 400;
  line-height: 1.3;
}
.hero__title strong { font-weight: 600; }

.hero__lead {
  font-size: 18.984px;
  line-height: 1.67;
  color: var(--muted);
}

.hero__visual {
  /* 708px no 1920; encolhe para não passar da borda direita em telas menores */
  width: min(708px, 50vw - 39px);
  aspect-ratio: 708 / 580;
  margin-top: -17px;
}
.hero__visual .stage { width: 708px; height: 580px; }

.stage__lines {
  position: absolute;
  left: 32px;
  top: 16.23px;
  width: 644px;
  height: 510px;
  display: flex;
  justify-content: space-between;
}
.stage__lines span { width: 1px; height: 100%; background: #d9d9d9; opacity: 0.12; }

.stage__chart {
  position: absolute;
  left: -0.78px;
  top: -135.67px;
  width: 841.646px;
  height: 678.8px;
}

.stage__g {
  position: absolute;
  left: 153.38px;
  top: 45.12px;
  width: 398.267px;
  height: 446.045px;
  object-fit: cover;
  object-position: bottom;
  transform: rotate(-15.51deg);
}

.stage__glow {
  position: absolute;
  left: -61.9px;
  top: 51.33px;
  width: 604.8px;
  height: 604.8px;
  border-radius: 50%;
  /* Equivalente ao círculo de 97px com blur de 127px do Figma, sem a borda dura do filtro SVG */
  background: radial-gradient(closest-side,
    rgba(109, 127, 225, 0.075) 0%,
    rgba(109, 127, 225, 0.045) 42%,
    rgba(109, 127, 225, 0.012) 80%,
    rgba(109, 127, 225, 0) 100%);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

.stage__numbers {
  position: absolute;
  left: 52px;
  top: 545.23px;
  width: 603px;
  display: flex;
  justify-content: space-between;
  font-size: 18.984px;
  line-height: 1.67;
  color: var(--muted);
  opacity: 0.26;
}

.stage__badge {
  position: absolute;
  left: 83px;
  top: 21px;
  width: 188px;
  height: 63px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding-left: 17px;
  border-radius: 12px;
  background: rgba(33, 47, 64, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 16.724px;
  line-height: 1.11355;
}
.stage__badge-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--primary);
}
.stage__badge-text strong { font-weight: 600; margin-left: 2px; }

/* =========================================================
   DE PONTA A PONTA
   ========================================================= */

.reach { padding-bottom: 215px; }

.reach__top {
  width: min(845px, 100%);
  margin-inline: auto;
}

.orbit {
  aspect-ratio: 845 / 463;
  overflow: hidden;
}
.orbit .stage { width: 845px; height: 463px; }
.orbit img { position: absolute; }
.orbit__ring { left: 0; top: 0; width: 845px; height: 845px; opacity: 0.26; }
.orbit__arc { left: 126px; top: 125px; width: 595px; height: 595px; }
.orbit__dot { width: 65px; height: 65px; }
.orbit__dot--left { left: 209px; top: 155px; }
.orbit__dot--right { left: 582px; top: 83px; }
.orbit__icon { width: 28px; height: 28px; }
.orbit__icon--trophy { left: 227px; top: 173px; }
.orbit__icon--growth { left: 600px; top: 101px; }
.orbit__center { left: 385px; top: 93px; width: 76px; height: 76px; }

.reach__heading {
  position: relative;
  /* 185px de sobreposição em 845px de largura (proporcional) */
  margin: -21.89% auto 0;
  max-width: 520px;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.reach__title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.306;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reach__subtitle { font-size: 28px; line-height: 1.306; }

.reach__row {
  margin-top: 93px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.reach__text {
  max-width: 579px;
  margin: 2px 0 0 -9px;
  font-size: 16px;
  line-height: 2.12;
  letter-spacing: -0.16px;
  color: var(--muted);
}

.pillars { display: flex; gap: 19.5px; flex: none; }
.pillar {
  display: flex;
  justify-content: center;
  width: 148px;
  height: 116px;
  padding-top: 28px;
  border: 1px solid var(--pillar-border);
  border-radius: 15px;
  background: var(--pillar);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pillar:hover { border-color: #3a4666; transform: translateY(-3px); }
.pillar__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 16px;
  line-height: 2.12;
  color: var(--muted);
}
.pillar__growth { display: grid; place-items: center; width: 24px; height: 24px; }

/* =========================================================
   SERVIÇOS
   ========================================================= */

.services {
  position: relative;
  background: var(--bg-band);
  padding: 155px 0 157px;
}

.services__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.services__bg img {
  position: absolute;
  left: calc(50% - 1469px);
  top: -406px;
  width: 3049.416px;
  height: 3049.416px;
  object-fit: cover;
  mix-blend-mode: color-dodge;
  opacity: 0.05;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -58.5px;
  width: 117px;
  height: 117px;
  margin-left: -58.5px;
  border-radius: 50%;
}
.scroll-cue__bg {
  position: absolute;
  left: -21px;
  top: -4px;
  width: 159px;
  height: 193px;
  max-width: none;
}
.scroll-cue__arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 14.7279px;
  transform: translate(-50%, -50%) rotate(90deg);
  animation: cue-bob 2.4s var(--ease) infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, -50%) rotate(90deg); }
  50% { transform: translate(-50%, calc(-50% + 5px)) rotate(90deg); }
}

.services__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-align: center;
}
.services__title { max-width: 660px; font-size: 36px; }

.services__grid {
  width: 100%;
  margin-top: 97px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 62px;
  row-gap: 58px;
}

.service {
  position: relative;
  min-height: 406px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card);
  transition: border-color 0.3s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 35px;
  top: 235px;
  width: 82px;
  height: 5px;
  background: var(--primary);
  transition: width 0.4s var(--ease);
}
.service:hover { border-color: #2e3a4f; }
.service:hover::before { width: 120px; }

.service__media {
  position: relative;
  height: 239px;
  margin: -1px -1px 0;
  overflow: hidden;
  background: var(--card-media);
}
.service__media img {
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  object-fit: cover;
  mix-blend-mode: luminosity;
  transition: transform 0.6s var(--ease);
}
.service:hover .service__media img { transform: scale(1.04); }

.service__body { padding: 35px 44px 44px 34px; }
.service__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.51;
  letter-spacing: -0.2px;
}
.service__desc {
  max-width: 445px;
  margin-top: 11px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.16px;
  color: var(--muted);
}

.services__cta { margin-top: 73px; }

/* ---------- Faixa de imagens ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip__item {
  position: relative;
  aspect-ratio: 640 / 461;
  overflow: hidden;
  background: var(--bg-band);
}
.strip__item img {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  height: var(--h);
  object-fit: cover;
  mix-blend-mode: luminosity;
}

/* =========================================================
   CASES
   ========================================================= */

.cases { padding-top: 130px; }

.cases__head {
  display: grid;
  grid-template-columns: 635px 509px;
  align-items: start;
  padding-bottom: 36px;
}
.cases__head .tag { margin-bottom: 23px; }
.cases__title { max-width: 445px; }
.cases__text {
  margin-top: 54px;
  font-size: 16px;
  line-height: 1.73;
  letter-spacing: -0.16px;
  color: var(--muted);
}

/* Carrossel de logos: o JS duplica a lista e a faixa desliza 50% em loop */
.clients {
  margin-top: 99px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 64px;
}
.clients.is-marquee .clients__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.clients.is-marquee li { padding-right: 72px; }
.clients:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.clients img {
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease);
}
.clients img:hover { opacity: 1; }

/* =========================================================
   SOBRE NÓS
   ========================================================= */

.about { padding: 205px 0 140px; }

.about__inner {
  display: grid;
  grid-template-columns: 382px 1fr;
  column-gap: 82px;
  align-items: start;
}

.about__photo {
  position: relative;
  margin-top: 6px;
}
.about__img {
  height: 453px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--bg-social);
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.about__caption {
  position: absolute;
  left: 32px;
  top: 425.25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8.65px 11.25px 9px;
  border-radius: 6.921px;
  background: #1a2633;
  white-space: nowrap;
}
.about__caption strong { font-size: 17.301px; font-weight: 400; line-height: 1.26; }
.about__caption span { font-size: 10.381px; line-height: 1.54; letter-spacing: -0.1px; color: var(--primary); }

.about__content { display: flex; flex-direction: column; align-items: flex-start; }
.about__title { max-width: 382px; margin-top: 18px; }

.quote {
  position: relative;
  width: 100%;
  max-width: 646px;
  margin-top: 18px;
  padding: 19px 33px 19px 64px;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  background: rgba(109, 127, 225, 0.12);
}
.quote img { position: absolute; left: 20px; top: 26px; }
.quote p {
  font-size: 15px;
  line-height: 1.54;
  letter-spacing: -0.15px;
  color: var(--primary);
}

.about__text {
  max-width: 648px;
  font-size: 16px;
  line-height: 1.73;
  letter-spacing: -0.48px;
  color: var(--muted);
}
.about__text:first-of-type { margin-top: 45px; }
.about__text + .about__text { margin-top: 18px; }

/* =========================================================
   NOSSO TIME
   ========================================================= */

.team {
  position: relative;
  overflow-x: clip;
  padding: min(545px, 28.39vw) 0 173px;
}
.team__art {
  position: absolute;
  top: 0;
  left: -6px;
  right: -6px;
  aspect-ratio: 1927 / 736;
  pointer-events: none;
}
.team__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  mix-blend-mode: lighten;
}

.team__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team__title { max-width: 746px; margin-top: 14px; }
.team__text {
  max-width: 712px;
  margin-top: 48px;
  font-size: 16px;
  line-height: 1.91;
  letter-spacing: -0.16px;
  color: var(--muted);
}
.team__inner .btn { margin-top: 36px; }

/* =========================================================
   REDES SOCIAIS
   ========================================================= */

.social {
  background: var(--bg-social);
  padding: 135px 0 173px;
}

.social__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 48px;
}
.social__head .btn { margin-top: 8px; }
.social__sub {
  font-size: 16px;
  line-height: 1.91;
  letter-spacing: -0.16px;
  color: var(--muted);
}

.feed {
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 25px;
}
.feed__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--card);
}
.feed__item img {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  height: var(--h);
  object-fit: var(--fit, cover);
  transition: transform 0.6s var(--ease);
}
.feed__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 21, 0);
  transition: background-color 0.3s var(--ease);
}
.feed__item:hover img { transform: scale(1.04); }
.feed__item:hover::after { background: rgba(8, 14, 21, 0.18); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--bg-footer);
  padding: 50px 0 58px;
  font-family: var(--font-alt);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-top: 16px;
  font-size: 17.67px;
  font-weight: 700;
  line-height: 18.554px;
  letter-spacing: -0.18px;
  transition: opacity 0.2s var(--ease);
}
.back-top img { transform: rotate(-90deg); }
.back-top:hover { opacity: 0.75; }

.footer__line {
  height: 1px;
  margin: 41px 0 0;
  border: 0;
  background: rgba(217, 217, 217, 0.26);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 30px;
}
.footer__legal {
  font-size: 12.321px;
  line-height: 16.941px;
  letter-spacing: 0.37px;
  color: var(--muted-footer);
}
.footer__social { display: flex; gap: 7.6px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 23.692px;
  height: 23.692px;
  border-radius: 6px;
  background: var(--primary);
  transition: background-color 0.2s var(--ease);
}
.footer__social a:hover { background: var(--primary-hover); }

/* =========================================================
   Animações de entrada (só com JS ativo)
   ========================================================= */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue__arrow { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1240px) {
  .hero__inner { grid-template-columns: 1fr; row-gap: 64px; }
  .hero__content { max-width: 560px; }
  .hero__visual { width: min(708px, 100%); margin: 0 auto; }

  .reach__row { flex-direction: column; align-items: center; gap: 48px; }
  .reach__text { margin: 0; max-width: 680px; text-align: center; }

  .cases__head { grid-template-columns: 1fr; row-gap: 24px; }
  .cases__text { margin-top: 0; max-width: 560px; }
}

@media (max-width: 960px) {
  .services__grid { column-gap: 24px; row-gap: 24px; }
  .service__body { padding: 32px 24px 36px; }
  .service::before { left: 24px; }

  .about__inner { grid-template-columns: 1fr; row-gap: 72px; }
  .about__photo { width: min(382px, 100%); margin-inline: auto; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .hero { padding: 72px 0 80px; }
  .hero__content { gap: 40px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 17px; }

  .section-title { font-size: 26px; }
  .services__title { font-size: 28px; }
  .reach { padding-bottom: 140px; }
  .reach__title { font-size: 32px; }
  .reach__subtitle { font-size: 21px; }
  .reach__heading { margin-top: -14%; }
  .reach__row { margin-top: 56px; }
  .pillars { width: 100%; gap: 12px; }
  .pillar { flex: 1; width: auto; }

  .services { padding: 120px 0 100px; }
  .services__grid { grid-template-columns: 1fr; margin-top: 56px; }
  .service { min-height: 0; }
  .services__cta { margin-top: 48px; }

  .strip { grid-template-columns: 1fr; }
  .strip__item:not(:first-child) { display: none; }

  .cases { padding-top: 88px; }
  .clients { margin-top: 56px; }
  .clients.is-marquee li { padding-right: 48px; }
  .about { padding: 120px 0 100px; }

  /* Arte do time ampliada: 250% da largura, centralizada (o excesso é cortado) */
  .team { padding-top: 70vw; }
  .team__art {
    left: 50%;
    right: auto;
    width: 250vw;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
  }
  .team__title { margin-top: 12px; }
  .team__text { margin-top: 24px; }
  .team { padding-bottom: 100px; }

  .social { padding: 88px 0 100px; }
  .social__head { flex-direction: column; }
  .social__head .btn { margin-top: 0; }
  .feed { margin-top: 48px; grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .btn { font-size: 15px; padding: 17px 28px; }
  .btn--wide { padding-inline: 48px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 30px; }
  .pillar { height: 104px; padding-top: 22px; }
  .pillar__inner { font-size: 14px; }
  .quote { padding: 60px 20px 20px; }
  .quote img { top: 20px; }
  .footer__top, .footer__bottom { flex-direction: column; gap: 20px; }
  .back-top { margin-top: 0; }
}
