/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  background-color: #000000;
}

body.menu-open {
  overflow: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =====================
   Tipografia
   ===================== */
.fraunces-italic {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

/* =====================
   Container
   ===================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* =====================
   Nav
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.4s ease;
}

.nav.is-scrolled {
  background-color: #000000;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo-img {
  height: 47px;
  width: 80px;
  display: block;
  max-width: none;
}

.nav__links {
  display: flex;
  gap: 80px;
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 0.5;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: #ffffff;
  transition: opacity 0.2s ease;
}

.nav__toggle:hover span {
  opacity: 0.5;
}

/* =====================
   Nav overlay (mobile)
   ===================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-overlay__close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  transition: opacity 0.2s ease;
}

.nav-overlay__close span:first-child { transform: translateY(-50%) rotate(45deg); }
.nav-overlay__close span:last-child  { transform: translateY(-50%) rotate(-45deg); }

.nav-overlay__close:hover span {
  opacity: 0.5;
}

.nav-overlay__nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-overlay__nav a {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: clamp(3rem, 14vw, 6rem);
  line-height: 1.1;
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.nav-overlay.is-open .nav-overlay__nav li:nth-child(1) a { opacity: 1; transform: none; transition-delay: 0.10s; }
.nav-overlay.is-open .nav-overlay__nav li:nth-child(2) a { opacity: 1; transform: none; transition-delay: 0.18s; }
.nav-overlay.is-open .nav-overlay__nav li:nth-child(3) a { opacity: 1; transform: none; transition-delay: 0.26s; }

.nav-overlay__nav a:hover {
  color: rgba(255,255,255,0.4);
}

/* =====================
   Hero
   ===================== */
.hero {
  width: 100%;
  min-height: 100vh;
  padding-top: 64px;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  min-height: calc(100vh - 64px);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: calc(120px + 5%);
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: -1;
}

.hero__bg-video {
  width: 648px;
  height: 1152px;
  display: block;
}

.hero__title {
  font-size: clamp(80px, 13.5vw, 174px);
  font-weight: 300;
  line-height: 0.92;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__col-left {
  position: absolute;
  top: 6vh;
  left: 24px;
  z-index: 1;
}

.hero__desc {
  position: absolute;
  top: calc(6vh + 4em);
  right: 24px;
  width: 220px;
  font-size: 0.8125rem;
  line-height: 1.55;
  z-index: 1;
}

.hero__col-right {
  position: absolute;
  bottom: 6vh;
  right: 24px;
  z-index: 1;
}

/* =====================
   Serviços — Hero
   ===================== */
.servicos-hero {
  padding-top: 64px;
  padding-bottom: 80px;
}

.servicos-hero__inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0 60px;
  align-items: start;
  padding-top: 40px;
}

.servicos-hero__title {
  font-size: clamp(80px, 13.5vw, 174px);
  font-weight: 300;
  line-height: 0.92;
}

.servicos-hero__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  padding-top: 4em;
}

/* =====================
   Serviços — Lista
   ===================== */
.servicos-lista {
  padding-block: 80px 0;
}

.servicos-lista__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  align-items: start;
}

.servicos-lista__col {
  display: flex;
  flex-direction: column;
}

.servicos-lista__label {
  font-size: 0.8125rem;
  margin-bottom: 24px;
}

.servicos-lista__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.servicos-lista__item {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.2;
}

.servicos-lista__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.servicos-lista__fluxo {
  height: 120px;
  margin-top: 132px;
  margin-bottom: 50px;
  object-fit: contain;
  max-width: 100%;
}

.servicos-lista__mag {
  width: 40px;
  height: 40px;
  margin-top: 90px;
  object-fit: contain;
}

.servicos-lista__mag--left  { justify-self: start; }
.servicos-lista__mag--right { justify-self: end; }

.servicos-lista__multiplicacao {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 60px;
}

/* =====================
   Serviços — Imagem
   ===================== */
.servicos-imagem {
  margin-top: 100px;
}

.servicos-imagem__img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================
   Sobre — Hero
   ===================== */
.sobre-hero {
  width: 100%;
  min-height: calc(905px + 64px);
  padding-top: 64px;
  overflow: hidden;
}

.sobre-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  min-height: 905px;
}

.sobre-hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-58%);
  z-index: 0;
  pointer-events: none;
  width: 1009px;
}

.sobre-hero__bg-img {
  width: 100%;
  height: auto;
}

.sobre-hero__title {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

.sobre-hero__col-left {
  position: absolute;
  top: 6vh;
  left: 24px;
  z-index: 1;
}

.sobre-hero__col-right {
  position: absolute;
  top: 6vh;
  right: 24px;
  text-align: right;
  z-index: 1;
}

.sobre-hero__body {
  position: absolute;
  right: 24px;
  bottom: 8vh;
  width: 240px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sobre-hero__body p {
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* =====================
   Sobre — Stack
   ===================== */
.sobre-stack {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
}

.sobre-stack__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Canvas de partículas */
.sobre-stack__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* =====================
   Sobre — Agentes
   ===================== */
.sobre-agentes__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sobre-agentes__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sobre-agentes__title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  border-left: 1.5px solid #ffffff;
  padding-left: 20px;
}

.sobre-agentes__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.sobre-agentes__icon.is-pulsing {
  animation: agente-pulse 0.6s ease forwards;
}

@keyframes agente-pulse {
  0%   { opacity: 1;    transform: scale(1); }
  35%  { opacity: 0.25; transform: scale(0.82); }
  70%  { opacity: 1;    transform: scale(1.08); }
  100% { opacity: 1;    transform: scale(1); }
}

.sobre-agentes__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.sobre-agentes__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sobre-agentes__list li {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* =====================
   Highlights
   ===================== */
.highlights {
  padding-block: 120px 80px;
}

.highlights__inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 40px;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}

.highlights__label span {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  border: 1px solid #ffffff;
  padding: 3px 8px;
  display: inline-block;
}

.highlights__list {
  display: flex;
  flex-direction: column;
}

.highlights__active {
  list-style: none;
  margin-bottom: 16px;
}

.highlights__item {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-block: 2px;
}

.highlights__arrow {
  flex-shrink: 0;
}

.highlights__text::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  opacity: 0;
}

.highlights__text.is-typing::after {
  opacity: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.highlights__done {
  list-style: none;
}

.highlights__item--done .highlights__arrow {
  visibility: hidden;
}

.highlights__item--done .highlights__text {
  color: #3a3a3a;
}

.highlights__item--done .highlights__text::after {
  display: none;
}

/* =====================
   Footer
   ===================== */
.footer__inner {
  display: flex;
  flex-direction: column;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__email {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.footer__email:hover {
  opacity: 0.6;
}

.footer__cube {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  position: relative;
  top: 50px;
}

.footer__cube-img {
  width: 121px;
  height: 118px;
  display: block;
  max-width: none;
  flex-shrink: 0;
}

.footer__icons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer__barra-img {
  width: 232px;
  height: 52px;
  display: block;
  max-width: none;
  flex-shrink: 0;
}

.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
}

.footer__location,
.footer__copy {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* =====================
   Responsividade — Tablet
   ===================== */
@media (max-width: 1024px) {
  .container {
    padding-inline: 32px;
  }

  .nav__links {
    gap: 48px;
  }

  .highlights__inner {
    grid-template-columns: 110px 1fr;
  }
}

/* =====================
   Responsividade — Mobile
   ===================== */
@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  /* Nav */
  .nav__links  { display: none; }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-inline: 16px;
    padding-bottom: 48px;
    min-height: calc(100vh - 64px);
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    opacity: 0.35;
  }

  .hero__bg-video {
    width: 260px;
    height: auto;
  }

  .hero__title { font-size: clamp(52px, 18vw, 80px); }

  .hero__col-left {
    position: static;
    margin-top: 5vh;
    align-self: flex-start;
  }

  .hero__desc {
    position: static;
    width: 100%;
    max-width: 260px;
    align-self: flex-end;
    margin-top: 5vh;
  }

  .hero__col-right {
    position: static;
    align-self: flex-end;
    margin-top: auto;
    padding-top: 5vh;
  }

  /* Serviços hero */
  .servicos-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }

  .servicos-hero__title { font-size: clamp(52px, 18vw, 80px); }

  .servicos-hero__desc {
    padding-top: 0;
    max-width: 280px;
    margin-left: auto;
  }

  /* Serviços lista */
  .servicos-lista__grid {
    grid-template-columns: 1fr;
    gap: 48px 0;
  }

  .servicos-lista__multiplicacao {
    grid-column: 1;
    padding-bottom: 40px;
  }

  .servicos-lista__mag { display: none; }

  .servicos-imagem { margin-top: 48px; }

  /* Sobre hero */
  .sobre-hero {
    min-height: auto;
  }

  .sobre-hero__inner {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 48px;
    gap: 40px;
    overflow: hidden;
  }

  .sobre-hero__bg {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.35;
  }

  .sobre-hero__col-left,
  .sobre-hero__col-right,
  .sobre-hero__body {
    position: static;
  }

  .sobre-hero__col-right {
    text-align: right;
    align-self: flex-end;
  }

  .sobre-hero__body { width: 100%; }

  /* Stack */
  .sobre-stack { padding-top: 64px; }

  .sobre-stack__inner {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .sobre-agentes__title { padding-left: 16px; }

  /* Highlights */
  .highlights { padding-block: 64px 48px; }

  .highlights__inner {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }

  .highlights__item { font-size: 0.875rem; }

  /* Footer */
  .footer__email { font-size: clamp(22px, 7vw, 36px); }

  .footer__top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 40px;
    padding-bottom: 32px;
  }

  .footer__cube {
    justify-content: flex-start;
    top: 0;
  }

  .footer__cube-img {
    width: 80px;
    height: auto;
    max-width: 100%;
  }

  .footer__icons { justify-content: flex-start; }

  .footer__barra-img {
    width: 160px;
    height: auto;
    max-width: 100%;
  }

  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 16px;
  }
}
