/*
 * SEVENTY FX: camada de interação visual
 * Compatível com data-fx, cards glass e a paleta aurora.
 */

:root {
  --fx-orange: #f07a3a;
  --fx-red: #e8453c;
  --fx-teal: #2ec4b6;
}

.button-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-icon {
  stroke-width: 1.9;
}

.service-preview .button-icon {
  width: .9rem;
  height: .9rem;
  stroke-width: 2;
}

/*
 * Header flutuante Seventy FX:
 * a cápsula glass já aparece no primeiro carregamento e permanece ao rolar.
 */
#siteHeader {
  padding: 1rem .85rem 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    padding .38s cubic-bezier(.2, .8, .2, 1),
    background .38s ease,
    border-color .38s ease,
    box-shadow .38s ease;
}

#siteHeader > div {
  position: relative;
  width: min(72rem, calc(100vw - 1.7rem));
  max-width: none;
  margin-inline: auto;
  padding: .62rem 1rem .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .72);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(46, 196, 182, .035),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  transition:
    max-width .38s cubic-bezier(.2, .8, .2, 1),
    margin .38s cubic-bezier(.2, .8, .2, 1),
    padding .38s ease,
    border-radius .38s ease,
    background .38s ease,
    border-color .38s ease,
    box-shadow .38s ease,
    backdrop-filter .38s ease;
}

#siteHeader.is-scrolled {
  padding: 1rem .85rem 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#siteHeader.is-scrolled > div {
  width: min(72rem, calc(100vw - 1.7rem));
  max-width: none;
  margin-inline: auto;
  padding: .62rem 1rem .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .72);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(46, 196, 182, .035),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

[data-fx~="ai-glow"] {
  border-color: rgba(46, 196, 182, .16);
}

[data-fx~="ai-glow"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 36%,
    rgba(46, 196, 182, .5) 44%,
    rgba(255, 255, 255, 1) 50%,
    rgba(245, 185, 66, .9) 56%,
    transparent 64%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  clip-path: inset(0 0 calc(100% - 24px) 0 round 999px);
  filter:
    drop-shadow(0 0 3px rgba(46, 196, 182, .9))
    drop-shadow(0 0 7px rgba(245, 185, 66, .34));
  animation: seventy-fx-ai-glow 5.4s linear infinite;
}

[data-fx~="ai-glow"] > * {
  position: relative;
  z-index: 1;
}

[data-fx~="ai-glow"]::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)),
    rgba(7, 8, 13, .98);
}

@keyframes seventy-fx-ai-glow {
  0% {
    opacity: .95;
    background-position: 100% 0;
    clip-path: inset(0 0 calc(100% - 24px) 0 round 999px);
  }

  40% {
    opacity: .95;
    background-position: 0 0;
    clip-path: inset(0 0 calc(100% - 24px) 0 round 999px);
  }

  45% {
    opacity: 0;
    background-position: 0 0;
    clip-path: inset(0 0 calc(100% - 24px) 0 round 999px);
  }

  50% {
    opacity: 0;
    background-position: 0 0;
    clip-path: inset(calc(100% - 24px) 0 0 0 round 999px);
  }

  55% {
    opacity: .95;
    background-position: 0 0;
    clip-path: inset(calc(100% - 24px) 0 0 0 round 999px);
  }

  95% {
    opacity: .95;
    background-position: 100% 0;
    clip-path: inset(calc(100% - 24px) 0 0 0 round 999px);
  }

  100% {
    opacity: 0;
    background-position: 100% 0;
    clip-path: inset(calc(100% - 24px) 0 0 0 round 999px);
  }
}

#siteHeader.is-scrolled .btn-primary {
  box-shadow:
    0 8px 24px rgba(240, 122, 58, .25),
    inset 0 1px 0 rgba(255,255,255,.35);
}

@media (max-width: 767px) {
  #siteHeader {
    padding: .9rem .65rem 0;
  }

  #siteHeader > div {
    width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }

  #siteHeader.is-scrolled {
    padding: .9rem .65rem 0;
  }

  #siteHeader.is-scrolled > div {
    width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }
}

/* Homepage minimalista: logo no topo e navegação abaixo da mensagem. */
#siteHeader.homepage-header,
#siteHeader.homepage-header.is-scrolled {
  position: absolute;
  padding: 1.45rem 1.5rem 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#siteHeader.homepage-header > div,
#siteHeader.homepage-header.is-scrolled > div {
  width: min(72rem, calc(100vw - 3rem));
  max-width: none;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#siteHeader.homepage-header > div::before,
#siteHeader.homepage-header.is-scrolled > div::before {
  display: none;
}

#siteHeader.homepage-header img {
  height: 1.55rem;
}

#hero {
  min-height: 100svh;
  padding-top: 9rem;
  padding-bottom: 8rem;
}

#hero > div {
  max-width: 72rem;
}

.hero-home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(3.4rem, 8.4vw, 7.2rem) !important;
  line-height: .88 !important;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.hero-description {
  max-width: 36rem;
  margin-inline: auto;
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  color: rgba(255,255,255,.52);
}

.hero-description[data-after-typewriter] {
  opacity: 0;
  transform: translateY(.65rem);
  transition: opacity .7s ease, transform .7s ease;
}

.hero-description[data-after-typewriter].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: max-content;
  max-width: 100%;
  margin-top: 3.75rem;
  padding: .35rem .45rem .35rem 1.15rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.025)),
    rgba(7,8,13,.58);
  box-shadow:
    0 16px 42px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: rgba(255,255,255,.58);
  font-size: .78rem;
}

.hero-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.07) 46%, transparent 70%);
  opacity: .7;
}

.hero-nav > * {
  position: relative;
  z-index: 1;
}

.hero-nav .btn-primary {
  margin-left: .15rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  #siteHeader.homepage-header,
  #siteHeader.homepage-header.is-scrolled {
    padding: 1.1rem 1rem 0;
  }

  #siteHeader.homepage-header > div,
  #siteHeader.homepage-header.is-scrolled > div {
    width: min(100%, calc(100vw - 2rem));
  }

  #hero {
    padding-top: 8rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.45rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -.04em;
    text-wrap: balance;
  }

  .hero-title-line,
  .hero-title .text-gradient {
    white-space: normal;
  }

  .hero-title .typewriter-char,
  .hero-title .typewriter-word {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-description[data-after-typewriter] {
    opacity: 1;
    transform: none;
  }

  #hero {
    overflow-x: clip;
  }

  .hero-description {
    max-width: 20rem;
  }

  .hero-nav {
    gap: .7rem;
    margin-top: 3rem;
    padding-left: .85rem;
    font-size: .7rem;
  }
}

/*
 * Na home, o menu completo usa exatamente a cápsula original:
 * logo, links e CTA; apenas fica fixo abaixo da viewport.
 */
#siteHeader.homepage-header,
#siteHeader.homepage-header.is-scrolled {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 2.5rem;
  left: 0;
  padding: 0 .85rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#siteHeader.homepage-header > div,
#siteHeader.homepage-header.is-scrolled > div {
  width: min(72rem, calc(100vw - 1.7rem));
  max-width: none;
  margin-inline: auto;
  padding: .62rem 1rem .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .72);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(46, 196, 182, .035),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

#siteHeader.homepage-header > div::before,
#siteHeader.homepage-header.is-scrolled > div::before {
  display: block;
}

#siteHeader.homepage-header img {
  height: 1.75rem;
}

.hero-nav {
  display: none;
}

body:not(.has-scrolled) .homepage-logos {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.homepage-logos {
  transition: opacity .45s ease, visibility .45s ease;
}

body.has-scrolled .homepage-logos {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 767px) {
  #siteHeader.homepage-header,
  #siteHeader.homepage-header.is-scrolled {
    bottom: 1.5rem;
    padding: 0 .65rem;
  }

  #siteHeader.homepage-header > div,
  #siteHeader.homepage-header.is-scrolled > div {
    width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }

  #siteHeader.homepage-header > div::before,
  #siteHeader.homepage-header.is-scrolled > div::before {
    padding: 1.5px;
  }
}

/* Cards mantêm o fundo e os efeitos de interação, sem borda giratória. */
.fx-card {
  --fx-pointer-x: 50%;
  --fx-pointer-y: 50%;
}

/* Luz radial que acompanha o ponteiro dentro do vidro. */
.fx-pointer {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--fx-pointer-x) var(--fx-pointer-y),
    rgba(255, 255, 255, .13),
    rgba(46, 196, 182, .07) 27%,
    transparent 68%
  );
  opacity: 0;
  transition: opacity .35s ease;
}

.fx-card:hover > .fx-pointer {
  opacity: 1;
}

/* Reflexo único atravessando a superfície, sem ficar repetindo infinitamente. */
.fx-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  z-index: 2;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, .14),
    transparent
  );
  transform: skewX(-18deg);
}

.fx-card:hover > .fx-sheen {
  animation: fx-sheen-pass .85s ease-out;
}

/* O reflexo em movimento no FAQ parece uma linha surgindo e desaparecendo. */
details.fx-card > .fx-sheen {
  display: none;
}

@keyframes fx-sheen-pass {
  to { left: 155%; }
}

/* Halo reservado para ações de conversão. */
.fx-cta {
  position: relative;
  isolation: isolate;
}

.fx-cta::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--fx-orange), var(--fx-red), var(--fx-teal));
  filter: blur(13px);
  opacity: .24;
  animation: fx-cta-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fx-cta-pulse {
  0%, 100% { opacity: .18; transform: scale(.98); }
  50% { opacity: .4; transform: scale(1.035); }
}

/* Movimento sutil do palco de telas no hero. */
.fx-parallax-stage {
  --fx-stage-x: 0px;
  --fx-stage-y: 0px;
  transform: translate3d(var(--fx-stage-x), var(--fx-stage-y), 0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

/* Linha de progresso do processo, atrás dos dots existentes. */
.sticky-progress {
  isolation: isolate;
}

.sticky-progress::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 50%;
  z-index: -2;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .12);
}

.sticky-progress__fill {
  position: absolute;
  top: .5rem;
  left: 50%;
  z-index: -1;
  width: 1px;
  height: calc(100% - 1rem);
  transform: translateX(-50%) scaleY(var(--fx-progress, 0));
  transform-origin: top;
  background: linear-gradient(to bottom, var(--fx-orange), var(--fx-red) 50%, var(--fx-teal));
  transition: transform .45s ease;
  pointer-events: none;
}

.sticky-progress__dot {
  position: relative;
  z-index: 1;
}

/* Navegação por teclado continua visível sobre os efeitos. */
.fx-card:focus-visible,
.fx-cta:focus-visible,
.sticky-progress__dot:focus-visible {
  outline: 2px solid rgba(245, 185, 66, .9);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .fx-cta::before {
    filter: blur(10px);
  }

  .fx-parallax-stage {
    transform: none !important;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-sheen,
  .fx-cta::before {
    animation: none !important;
    transition: none !important;
  }

  .fx-parallax-stage {
    transform: none !important;
    transition: none !important;
  }

  [data-fx~="ai-glow"]::after {
    animation: none;
  }

  [data-fx~="ai-glow"]::before {
    animation: none;
    opacity: .55;
  }

  .sticky-progress__fill {
    transition: none;
  }
}

/*
 * Header full-width:
 * glass e borda animada ocupam toda a faixa superior, sem cápsula interna.
 */
#siteHeader,
#siteHeader.is-scrolled,
#siteHeader.homepage-header,
#siteHeader.homepage-header.is-scrolled {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border-color: rgba(46, 196, 182, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .66);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

#siteHeader > div,
#siteHeader.is-scrolled > div,
#siteHeader.homepage-header > div,
#siteHeader.homepage-header.is-scrolled > div {
  width: min(72rem, calc(100vw - 3rem));
  max-width: none;
  margin-inline: auto;
  padding: .78rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#siteHeader img {
  height: 2rem;
}

#siteHeader.homepage-header img,
#siteHeader.homepage-header.is-scrolled img {
  height: 2rem;
}

[data-fx~="ai-glow"]::after {
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .018)),
    rgba(7, 8, 13, .52);
}

@media (max-width: 767px) {
  #siteHeader,
  #siteHeader.is-scrolled,
  #siteHeader.homepage-header,
  #siteHeader.homepage-header.is-scrolled {
    padding: 0;
  }

  #siteHeader > div,
  #siteHeader.is-scrolled > div,
  #siteHeader.homepage-header > div,
  #siteHeader.homepage-header.is-scrolled > div {
    width: calc(100vw - 2rem);
    padding: .72rem 0;
    border-radius: 0;
  }

  #siteHeader:not(.homepage-header) > div,
  #siteHeader:not(.homepage-header).is-scrolled > div {
    width: 80vw;
    max-width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }

  #siteHeader img {
    height: 1.9rem;
  }

  #siteHeader.homepage-header img,
  #siteHeader.homepage-header.is-scrolled img {
    height: 1.9rem;
  }
}

/*
 * Estado inicial da home: cápsula inferior.
 * O estado com scroll continua usando o header full-width acima.
 */
#siteHeader.homepage-header:not(.is-scrolled) {
  top: auto;
  right: 0;
  bottom: 2.5rem;
  left: 0;
  padding: 0 .85rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#siteHeader.homepage-header:not(.is-scrolled) > div {
  width: min(72rem, calc(100vw - 1.7rem));
  padding: .62rem 1rem .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .72);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(46, 196, 182, .035),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

#siteHeader.homepage-header:not(.is-scrolled)::before,
#siteHeader.homepage-header:not(.is-scrolled)::after,
#siteHeader.homepage-header.is-scrolled > div::before,
#siteHeader.homepage-header.is-scrolled > div::after {
  display: none;
}

#siteHeader.homepage-header:not(.is-scrolled) > div::after {
  display: block;
  border-radius: 999px;
}

@media (max-width: 767px) {
  #siteHeader.homepage-header:not(.is-scrolled) {
    bottom: 1.5rem;
    padding: 0 .65rem;
  }

  #siteHeader.homepage-header:not(.is-scrolled) > div {
    width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }
}

/*
 * Transição contínua da home:
 * a cápsula acompanha o scroll e expande até ocupar toda a faixa superior.
 */
#siteHeader.homepage-header {
  top: 0;
  bottom: auto;
  transform: translateY(var(--home-y, 0px));
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}

#siteHeader.homepage-header:not(.is-scrolled) {
  top: var(--home-y, 0px);
  bottom: auto;
  transform: none;
}

#siteHeader.homepage-header.is-scrolled {
  transform: none;
  top: 0;
  will-change: auto;
}

#siteHeader.homepage-header,
#siteHeader.homepage-header.is-scrolled {
  border-radius: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, calc(.1 * var(--home-progress, 0))),
      rgba(255, 255, 255, calc(.035 * var(--home-progress, 0)))
    ),
    rgba(7, 8, 13, calc(.66 * var(--home-progress, 0)));
  border-color: rgba(46, 196, 182, calc(.16 * var(--home-progress, 0)));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, calc(.28 * var(--home-progress, 0))),
    inset 0 1px 0 rgba(255, 255, 255, calc(.12 * var(--home-progress, 0)));
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

#siteHeader.homepage-header > div,
#siteHeader.homepage-header.is-scrolled > div {
  width: var(--home-width, min(72rem, calc(100vw - 1.7rem)));
  max-width: none;
  padding: .62rem 1rem .62rem 1.15rem;
  border-radius: var(--home-radius, 1000px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: width, border-radius;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, calc(.12 * (1 - var(--home-progress, 0)))),
      rgba(255, 255, 255, calc(.035 * (1 - var(--home-progress, 0))))
    ),
    rgba(7, 8, 13, calc(.72 * (1 - var(--home-progress, 0))));
  box-shadow:
    0 16px 42px rgba(0, 0, 0, calc(.34 * (1 - var(--home-progress, 0)))),
    0 0 0 1px rgba(46, 196, 182, calc(.035 * (1 - var(--home-progress, 0)))),
    inset 0 1px 0 rgba(255, 255, 255, calc(.14 * (1 - var(--home-progress, 0))));
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

#siteHeader.homepage-header:not(.is-scrolled)::before,
#siteHeader.homepage-header:not(.is-scrolled)::after,
#siteHeader.homepage-header.is-scrolled > div::before,
#siteHeader.homepage-header.is-scrolled > div::after {
  display: none;
}

#siteHeader.homepage-header:not(.is-scrolled) > div::after {
  display: block;
  border-radius: var(--home-radius, 1000px);
}

/*
 * A borda acompanha a cápsula durante a transição.
 * Só passa para o header inteiro quando a expansão termina.
 */
#siteHeader.homepage-header:not(.is-home-expanded)::before,
#siteHeader.homepage-header:not(.is-home-expanded)::after {
  display: none;
}

#siteHeader.homepage-header:not(.is-home-expanded) > div::before,
#siteHeader.homepage-header:not(.is-home-expanded) > div::after {
  display: block;
}

#siteHeader.homepage-header.is-home-expanded > div::before,
#siteHeader.homepage-header.is-home-expanded > div::after {
  display: none;
}

#siteHeader.homepage-header.is-home-expanded::before {
  display: block;
}

#siteHeader.homepage-header.is-home-expanded::after {
  display: none;
}

#siteHeader.homepage-header,
#siteHeader.homepage-header.is-scrolled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#siteHeader.homepage-header::after,
#siteHeader.homepage-header.is-scrolled::after {
  display: none;
}

#siteHeader.homepage-header > div,
#siteHeader.homepage-header.is-scrolled > div {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .72);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(46, 196, 182, .035),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

@media (max-width: 767px) {
  #siteHeader.homepage-header > div,
  #siteHeader.homepage-header.is-scrolled > div {
    padding: .62rem .8rem;
  }
}

#siteHeader.homepage-header,
#siteHeader.homepage-header.is-scrolled {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#siteHeader.homepage-header > div,
#siteHeader.homepage-header.is-scrolled > div {
  overflow: hidden;
}

@media (min-width: 1024px) {
  #siteHeader.homepage-header > div,
  #siteHeader.homepage-header.is-scrolled > div {
    --home-width: min(640px, 62vw);
    width: var(--home-width);
  }
}

@media (min-width: 1024px) and (pointer: fine) {
  .hero-title.is-typewriter-running .typewriter-char {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    transform: translateY(.18em);
    transition: opacity .22s ease, transform .22s ease;
  }

  .hero-title.is-typewriter-running .typewriter-word {
    display: inline-block;
    padding-inline: .06em;
    margin-inline: -.06em;
    overflow: visible;
    clip-path: none;
    -webkit-mask: none;
    mask: none;
    opacity: 0;
    transform: translateY(.18em);
    transition: opacity .22s ease, transform .22s ease;
  }

  .hero-title.is-typewriter-running .typewriter-word.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-title.is-typewriter-running .text-gradient .typewriter-char {
    white-space: nowrap;
    background: linear-gradient(115deg, #f5d06a 0%, #f07a3a 45%, #e8453c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .hero-title.is-typewriter-running .typewriter-char.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title .text-gradient {
  white-space: nowrap;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-title {
  width: 100%;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .typewriter-char,
  .hero-title .typewriter-word {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-description[data-after-typewriter] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

::selection {
  background: rgba(240, 122, 58, .86);
  color: #07080d;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07080d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f5b942, #f07a3a, #e8453c);
  border: 2px solid #07080d;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f5b942;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #f07a3a #07080d;
  scrollbar-width: thin;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Menu interno: replica a cápsula aberta da home nas páginas internas. */
#siteHeader:not(.homepage-header),
#siteHeader:not(.homepage-header).is-scrolled {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  padding: 1rem .85rem 0;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#siteHeader:not(.homepage-header) > div,
#siteHeader:not(.homepage-header).is-scrolled > div {
  position: relative;
  width: 80vw;
  max-width: none;
  margin-inline: auto;
  padding: .62rem 1rem .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .72);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(46, 196, 182, .035),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

@media (max-width: 1023px) {
  #siteHeader:not(.homepage-header),
  #siteHeader:not(.homepage-header).is-scrolled {
    padding: .9rem .65rem 0;
  }

  #siteHeader:not(.homepage-header) > div,
  #siteHeader:not(.homepage-header).is-scrolled > div {
    width: 80vw;
    max-width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }
}

#hero .case-browser {
  border-radius: 1.35rem;
  overflow: hidden;
  clip-path: inset(0 round 1.35rem);
}

#hero .case-browser__bar {
  border-radius: 1.35rem 1.35rem 0 0;
}

#hero .case-browser > img {
  border-radius: 1.35rem !important;
  clip-path: inset(0 round 1.35rem);
}

.project-thumb {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0c0e16;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.8);
  transition: transform .5s ease, border-color .5s ease;
}

.group:hover .project-thumb {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
}

.project-thumb__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.project-thumb__dot {
  width: .45rem;
  height: .45rem;
  flex: 0 0 .45rem;
  border-radius: 999px;
}

.project-thumb__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c0e16;
}

.project-thumb__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

main .mb-5.flex.h-11.w-11.items-center.justify-center.rounded-xl {
  border-color: rgba(255, 255, 255, .11) !important;
  background-color: rgba(255, 255, 255, .05);
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(ellipse 42% 80% at 8% 0%, rgba(46, 196, 182, .12), transparent 72%),
    radial-gradient(ellipse 36% 90% at 92% 18%, rgba(240, 122, 58, .1), transparent 72%),
    linear-gradient(160deg, rgba(17, 29, 36, .94), rgba(7, 8, 13, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 -24px 70px rgba(7, 8, 13, .28);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 196, 182, .42) 28%,
    rgba(255, 255, 255, .28) 50%,
    rgba(240, 122, 58, .42) 72%,
    transparent
  );
  box-shadow: 0 0 18px rgba(46, 196, 182, .18);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 28rem;
  height: 24rem;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(232, 69, 60, .09), transparent 68%);
  filter: blur(20px);
}

.site-footer__glow {
  position: absolute;
  top: -12rem;
  left: 8%;
  width: 32rem;
  height: 20rem;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(46, 196, 182, .12), transparent 68%);
  filter: blur(16px);
}

.site-footer > .relative {
  z-index: 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.site-footer__brand {
  max-width: 18rem;
}

.site-footer__logo {
  width: 7.5rem;
  height: auto;
  opacity: .9;
}

.site-footer__brand p {
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, .5);
  font-size: .9rem;
  line-height: 1.65;
}

.site-footer__social {
  display: flex;
  gap: .45rem;
  margin-top: 1.25rem;
}

.site-footer__social a {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1a1208;
  background: linear-gradient(135deg, #f5b942, #f07a3a 58%, #e8453c);
  transition: transform .2s ease, filter .2s ease;
}

.site-footer__social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.site-footer__social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.site-footer__social a:nth-child(2) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-footer__social a:nth-child(2) svg .fill {
  fill: currentColor;
  stroke: none;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  color: rgba(255, 255, 255, .55);
  font-size: .9rem;
}

.site-footer__column h2 {
  margin-bottom: .45rem;
  color: rgba(255, 255, 255, .9);
  font-family: "futura-pt", Futura, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.site-footer__column a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  line-height: 1.45;
  transition: color .2s ease, transform .2s ease;
}

.site-footer__column a:hover {
  color: #fff;
  transform: translateX(2px);
}

.site-footer__column a svg {
  width: .9rem;
  height: .9rem;
  flex: 0 0 .9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.site-footer__arrow {
  color: rgba(255, 255, 255, .8);
  font-size: 1.05rem;
  line-height: 1;
}

.site-footer__partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 3.8rem));
  gap: .5rem;
}

.site-footer__partners span {
  display: inline-flex;
  width: 3.8rem;
  height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .45rem;
  background: rgba(255, 255, 255, .92);
  color: #27303a;
  font-family: "futura-pt", Futura, system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 600;
  line-height: .85;
  text-align: center;
  overflow: hidden;
}

.site-footer__partners span:nth-child(4) {
  background: #5b43ca;
}

.site-footer__partners img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: contain;
  transform: scale(1.14);
}

.site-footer__partners span:nth-child(4) img {
  transform: scale(1.1);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .32);
  font-size: .8rem;
}

/* CTA final estável: o gradiente não muda de intensidade após o carregamento. */
#contato > div > .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

#contato > div > .reveal > .glass-strong {
  background: rgba(7, 8, 13, .22) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

#contato > div > .reveal > .backdrop-blur-xl {
  display: none;
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 3.5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: 22rem;
  }

  .site-footer__column {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mega menu compartilhado do header. */
.mega-nav-item {
  position: relative;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .15rem 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mega-trigger__chevron {
  width: .7rem;
  height: .7rem;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform .25s ease;
}

#siteHeader.mega-services-open .mega-trigger[aria-controls="servicesMenu"] .mega-trigger__chevron,
#siteHeader.mega-blog-open .mega-trigger[aria-controls="blogMenu"] .mega-trigger__chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + .8rem);
  left: 50%;
  z-index: 80;
  width: min(50rem, calc(100vw - 2rem));
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .9);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

#siteHeader.homepage-header:not(.is-scrolled) .mega-menu {
  top: auto;
  bottom: calc(100% + .8rem);
  transform: translate(-50%, 8px);
}

#siteHeader.homepage-header:not(.is-scrolled) .mega-menu.is-open {
  transform: translate(-50%, 0);
}

.mega-menu__intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.mega-menu__eyebrow {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .8);
  font-family: "futura-pt", Futura, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mega-menu__description {
  max-width: 28rem;
  color: rgba(255, 255, 255, .42);
  font-size: .78rem;
  line-height: 1.4;
  text-align: right;
}

.mega-menu__grid {
  display: grid;
  gap: .65rem;
  padding-top: .8rem;
}

.mega-menu__grid--services {
  grid-template-columns: repeat(2, 1fr);
}

.mega-menu__grid--blog {
  grid-template-columns: repeat(2, 1fr);
}

.mega-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: .7rem;
  min-height: 5.4rem;
  padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .035);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.mega-link:hover,
.mega-link:focus-visible {
  border-color: rgba(46, 196, 182, .38);
  background: linear-gradient(135deg, rgba(240, 122, 58, .12), rgba(46, 196, 182, .1));
  transform: translateY(-2px);
  outline: none;
}

.mega-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .55rem;
  color: #b9f14c;
  font-family: "futura-pt", Futura, system-ui, sans-serif;
  font-size: .58rem;
  letter-spacing: .04em;
}

.mega-link strong,
.mega-link small {
  display: block;
}

.mega-link strong {
  color: rgba(255, 255, 255, .88);
  font-family: "futura-pt", Futura, system-ui, sans-serif;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.1;
}

.mega-link small {
  margin-top: .38rem;
  color: rgba(255, 255, 255, .4);
  font-size: .72rem;
  line-height: 1.35;
}

.mega-link__arrow {
  color: rgba(255, 255, 255, .35);
  font-size: .9rem;
  line-height: 1;
  transition: color .22s ease, transform .22s ease;
}

.mega-link:hover .mega-link__arrow,
.mega-link:focus-visible .mega-link__arrow {
  color: #b9f14c;
  transform: translate(2px, -2px);
}

.mobile-menu-toggle {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .24rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: .75rem;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .05);
}

.mobile-menu-toggle span {
  display: block;
  width: .85rem;
  height: 1px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

#siteHeader.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(.34rem) rotate(45deg);
}

#siteHeader.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

#siteHeader.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-.34rem) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

@media (max-width: 1023px) {
  #siteHeader > div {
    gap: .55rem;
    min-width: 0;
  }

  #siteHeader > div > a:first-child {
    flex-shrink: 1;
    min-width: 0;
  }

  #siteHeader > div > .mobile-menu-toggle {
    flex-shrink: 0;
  }

  #siteHeader > div > .btn-primary,
  #siteHeader > div > .header-cta {
    flex-shrink: 0;
    white-space: nowrap;
    padding-inline: .7rem;
    font-size: .76rem;
    line-height: 1.1;
    gap: .35rem;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + .7rem);
    left: 50%;
    z-index: 80;
    display: flex;
    width: min(calc(100vw - 2rem), 28rem);
    max-height: calc(100vh - 6rem);
    flex-direction: column;
    gap: .15rem;
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1.25rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
      rgba(7, 8, 13, .94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  #siteHeader.homepage-header:not(.is-scrolled) .mobile-menu {
    top: auto;
    bottom: calc(100% + .7rem);
    transform: translate(-50%, 8px);
  }

  #siteHeader.homepage-header:not(.is-scrolled) .mobile-menu.is-open {
    transform: translate(-50%, 0);
  }

  .mobile-menu > a,
  .mobile-menu__group > a {
    display: block;
    padding: .65rem .75rem;
    border-radius: .7rem;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
  }

  .mobile-menu > a:hover,
  .mobile-menu__group > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
  }

  .mobile-menu__group {
    margin: .35rem 0;
    padding: .5rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .025);
  }

  .mobile-menu__group p {
    padding: .2rem .75rem .35rem;
    color: rgba(255, 255, 255, .38);
    font-family: "futura-pt", Futura, system-ui, sans-serif;
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu,
  .mobile-menu,
  .mega-link,
  .mega-trigger__chevron,
  .mega-link__arrow,
  .mobile-menu-toggle span {
    transition: none;
  }
}

/* Os menus são irmãos da cápsula, portanto não podem herdar o layout dela. */
#siteHeader > div.mega-menu {
  position: absolute;
  top: calc(100% + .8rem);
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(50rem, calc(100vw - 2rem));
  max-width: none;
  margin: 0;
  padding: 1.15rem;
  overflow: visible;
  border-radius: 1.45rem;
}

#siteHeader > div.mobile-menu {
  position: absolute;
  right: auto;
  bottom: auto;
  left: 50%;
  margin: 0;
  overflow-y: auto;
}

@media (max-width: 1023px) {
  #siteHeader > div.mobile-menu {
    top: calc(100% + .7rem);
    width: min(calc(100vw - 2rem), 28rem);
    padding: .75rem;
    border-radius: 1.25rem;
  }
}

#siteHeader.homepage-header:not(.is-scrolled) > div.mega-menu {
  top: auto;
  bottom: calc(100% + .8rem);
  transform: translate(-50%, 8px);
}

#siteHeader.homepage-header:not(.is-scrolled) > div.mega-menu.is-open {
  transform: translate(-50%, 0);
}

@media (max-width: 1023px) {
  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu {
    top: auto;
    bottom: calc(100% + .7rem);
    transform: translate(-50%, 8px);
  }

  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu.is-open {
    transform: translate(-50%, 0);
  }
}

/* Maior especificidade para impedir que as regras da cápsula sejam herdadas. */
#siteHeader > div.mega-menu {
  position: absolute;
  top: calc(100% + .8rem);
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(50rem, calc(100vw - 2rem));
  max-width: none;
  margin: 0;
  padding: 1.15rem;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .9);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

#siteHeader > div.mobile-menu {
  position: absolute;
  top: calc(100% + .7rem);
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(calc(100vw - 2rem), 28rem);
  max-width: none;
  margin: 0;
  padding: .75rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
}

@media (max-width: 1023px) {
  #siteHeader.homepage-header:not(.is-scrolled) > div.mega-menu,
  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu {
    top: auto;
    bottom: calc(100% + .8rem);
  }

  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu {
    bottom: calc(100% + .7rem);
  }
}

/* A regra da cápsula da home é mais específica; estes overrides preservam o menu inteiro. */
#siteHeader.homepage-header:not(.is-scrolled) > div.mega-menu,
#siteHeader.homepage-header.is-scrolled > div.mega-menu {
  position: absolute;
  width: min(50rem, calc(100vw - 2rem));
  max-width: none;
  margin: 0;
  padding: 1.15rem;
  overflow: visible;
  border-radius: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    rgba(7, 8, 13, .9);
}

@media (max-width: 1023px) {
  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu {
    position: absolute;
    width: min(calc(100vw - 2rem), 28rem);
    max-width: none;
    margin: 0;
    padding: .75rem;
    overflow-y: auto;
    border-radius: 1.25rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
      rgba(7, 8, 13, .94);
  }
}

/* Correção final de posicionamento para mobile e tablet.
 * Os dropdowns ficam ancorados no header, nunca no fluxo da página.
 */
@media (max-width: 1023px) {
  #siteHeader:not(.homepage-header) > div.mega-menu,
  #siteHeader:not(.homepage-header).is-scrolled > div.mega-menu,
  #siteHeader.homepage-header.is-scrolled > div.mega-menu,
  #siteHeader.homepage-header:not(.is-scrolled) > div.mega-menu {
    position: absolute;
    top: calc(100% + .8rem);
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(50rem, calc(100vw - 2rem));
    max-width: none;
    margin: 0;
    padding: 1.15rem;
    overflow: visible;
    border-radius: 1.45rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
      rgba(7, 8, 13, .9);
  }

  #siteHeader.homepage-header:not(.is-scrolled) > div.mega-menu {
    top: auto;
    bottom: calc(100% + .8rem);
  }

  #siteHeader:not(.homepage-header) > div.mobile-menu,
  #siteHeader:not(.homepage-header).is-scrolled > div.mobile-menu,
  #siteHeader.homepage-header.is-scrolled > div.mobile-menu,
  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu {
    position: absolute;
    top: calc(100% + .7rem);
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(calc(100vw - 2rem), 28rem);
    max-width: none;
    margin: 0;
    padding: .75rem;
    overflow-y: auto;
    border-radius: 1.25rem;
  }

  #siteHeader.homepage-header:not(.is-scrolled) > div.mobile-menu {
    top: auto;
    bottom: calc(100% + .7rem);
  }

  /* Home com header no topo: ancora o menu no viewport (Safari). */
  #siteHeader.homepage-header.is-scrolled > div.mobile-menu {
    position: fixed;
    top: var(--mobile-menu-top, 4.25rem);
    bottom: auto;
    left: 50%;
    right: auto;
    z-index: 200;
  }

  #siteHeader.homepage-header.is-scrolled > div.mobile-menu:not(.is-open) {
    transform: translate(-50%, -8px);
  }

  #siteHeader.homepage-header.is-scrolled > div.mobile-menu.is-open {
    transform: translate(-50%, 0);
  }
}

/* Formulário de contato compartilhado. */
.contact-form {
  position: relative;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.contact-form__field label {
  color: rgba(255, 255, 255, .68);
  font-family: "futura-pt", Futura, system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 600;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .85rem;
  outline: none;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .055);
  font: inherit;
  font-size: .92rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-form__field input,
.contact-form__field select {
  min-height: 3rem;
  padding: .75rem .9rem;
}

.contact-form__field textarea {
  min-height: 8rem;
  padding: .8rem .9rem;
  resize: vertical;
}

.contact-form__field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .6) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, .6) 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) 1.25rem,
    calc(100% - .75rem) 1.25rem;
  background-repeat: no-repeat;
  background-size: .3rem .3rem, .3rem .3rem;
}

.contact-form__field option {
  color: #e8eaf0;
  background: #12151f;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(255, 255, 255, .28);
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: rgba(46, 196, 182, .62);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, .1);
}

.contact-form__field input:user-invalid,
.contact-form__field select:user-invalid,
.contact-form__field textarea:user-invalid {
  border-color: rgba(232, 69, 60, .72);
}

.contact-form__hint,
.contact-form__status {
  color: rgba(255, 255, 255, .35);
  font-size: .76rem;
  line-height: 1.4;
}

.contact-form__status {
  min-height: 1.1rem;
  color: rgba(185, 241, 76, .85);
}

/* Só a cápsula e os painéis abertos devem capturar o ponteiro. */
#siteHeader {
  pointer-events: none;
}

#siteHeader > .site-header__inner,
#siteHeader > div.mega-menu.is-open,
#siteHeader > div.mobile-menu.is-open {
  pointer-events: auto;
}

#siteHeader > div.mega-menu,
#siteHeader > div.mobile-menu,
#siteHeader .mega-link,
#siteHeader .mobile-menu a,
#siteHeader .mega-trigger,
#siteHeader .btn-primary {
  cursor: pointer;
}

/* Títulos internos se adaptam ao espaço disponível sem órfãos em telas menores. */
.internal-hero-title {
  text-wrap: balance;
}

@media (max-width: 1023px) {
  .internal-hero-title br {
    display: none;
  }
}

.project-hero-actions {
  flex-wrap: nowrap;
}

.service-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: .5rem;
}

.service-hero-actions > a {
  white-space: nowrap;
  padding: .7rem .85rem !important;
  font-size: .82rem !important;
}

@media (min-width: 640px) {
  .service-hero-actions {
    gap: .75rem;
  }

  .service-hero-actions > a {
    padding: .75rem 1.5rem !important;
    font-size: .95rem !important;
  }
}

.project-hero-actions > a {
  white-space: nowrap;
}

@media (max-width: 359px) {
  .project-hero-actions {
    flex-wrap: wrap;
  }
}

.project-browser-viewport > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-browser-viewport > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 767px) {
  .project-browser-viewport {
    height: auto !important;
    aspect-ratio: auto;
  }

  .project-browser-viewport > picture {
    height: auto;
  }

  .project-browser-viewport > picture > img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .blog-hero-section {
    min-height: 0 !important;
    padding-bottom: 1.5rem !important;
  }

  .blog-featured-section {
    padding-top: .5rem !important;
  }
}

/* Aurora mais presente em telas estreitas, sem competir com o conteúdo. */
@media (max-width: 767px) {
  .aurora {
    opacity: 1;
  }

  .aurora-orb.a {
    width: 92vw !important;
    height: 92vw !important;
    top: -4% !important;
    left: -28% !important;
  }

  .aurora-orb.b {
    width: 86vw !important;
    height: 86vw !important;
    top: 18% !important;
    right: -28% !important;
  }

  .aurora-orb.c {
    width: 76vw !important;
    height: 76vw !important;
    bottom: 4% !important;
    left: 18% !important;
  }

  .aurora-orb.d {
    width: 68vw !important;
    height: 68vw !important;
    bottom: 12% !important;
    right: 2% !important;
  }

  .aurora-blob {
    filter: blur(64px) !important;
  }

  .aurora-blob.a {
    --base: .72 !important;
  }

  .aurora-blob.b {
    --base: .64 !important;
  }

  .aurora-blob.c {
    --base: .5 !important;
  }

  .aurora-blob.d {
    --base: .4 !important;
  }

  .aurora-blob::before {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: inherit;
    background: inherit;
    filter: blur(18px);
    opacity: .34;
    transform: scale(.86);
    animation: aurora-mobile-breathe 12s ease-in-out infinite;
    pointer-events: none;
  }

  .aurora-blob.b::before {
    animation-delay: -4s;
    animation-duration: 14s;
  }

  .aurora-blob.c::before {
    animation-delay: -7s;
    animation-duration: 16s;
  }
}

@keyframes aurora-mobile-breathe {
  0%, 100% {
    opacity: .2;
    transform: scale(.86);
  }

  50% {
    opacity: .72;
    transform: scale(1.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob::before {
    animation: none !important;
  }
}

/* A home usa um glow mais discreto para preservar o foco no título. */
@media (max-width: 767px) {
  .homepage-body .aurora-orb.a {
    width: 72vw !important;
    height: 72vw !important;
    top: -12% !important;
    left: -24% !important;
  }

  .homepage-body .aurora-orb.b {
    width: 64vw !important;
    height: 64vw !important;
    top: 18% !important;
    right: -24% !important;
  }

  .homepage-body .aurora-orb.c {
    width: 52vw !important;
    height: 52vw !important;
    bottom: 8% !important;
    left: 20% !important;
  }

  .homepage-body .aurora-orb.d {
    width: 42vw !important;
    height: 42vw !important;
    bottom: 16% !important;
    right: 8% !important;
  }

  .homepage-body .aurora-blob {
    filter: blur(82px) !important;
  }

  .homepage-body .aurora-blob.a {
    --base: .46 !important;
  }

  .homepage-body .aurora-blob.b {
    --base: .4 !important;
  }

  .homepage-body .aurora-blob.c {
    --base: .28 !important;
  }

  .homepage-body .aurora-blob.d {
    --base: .18 !important;
  }

  .homepage-body .aurora-blob::before {
    opacity: .18;
  }
}

.custom-select {
  position: relative;
}

.custom-select__native {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .85rem;
  outline: none;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .055);
  font: inherit;
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.custom-select__trigger:hover,
.custom-select.is-open .custom-select__trigger {
  border-color: rgba(46, 196, 182, .62);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, .1);
}

.custom-select__chevron {
  width: .8rem;
  height: .8rem;
  flex: 0 0 auto;
  stroke: rgba(255, 255, 255, .65);
  stroke-width: 1.5;
  transition: transform .2s ease;
}

.custom-select.is-open .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + .5rem);
  left: 0;
  z-index: 20;
  display: grid;
  gap: .2rem;
  padding: .4rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(10, 12, 19, .96);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.custom-select__menu[hidden] {
  display: none;
}

.custom-select__menu button {
  width: 100%;
  padding: .7rem .75rem;
  border: 0;
  border-radius: .6rem;
  color: rgba(255, 255, 255, .7);
  background: transparent;
  font: inherit;
  font-size: .88rem;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.custom-select__menu button:hover,
.custom-select__menu button:focus-visible {
  outline: none;
  color: #fff;
  background: linear-gradient(100deg, rgba(46, 196, 182, .18), rgba(240, 122, 58, .12));
}

@media (max-width: 767px) {
  .custom-select__menu {
    bottom: auto;
    top: calc(100% + .5rem);
  }
}

/*
 * Header mobile + tablet (até 1023px).
 * Desktop (>= 1024px) permanece inalterado.
 */
@media (max-width: 1023px) {
  #siteHeader nav[aria-label="Navegação principal"] {
    display: none !important;
  }

  #siteHeader.homepage-header,
  #siteHeader.homepage-header.is-scrolled {
    bottom: 1.5rem;
    padding: 0 .65rem;
  }

  #siteHeader.homepage-header > div,
  #siteHeader.homepage-header.is-scrolled > div,
  #siteHeader.homepage-header:not(.is-scrolled) > div {
    width: min(100%, calc(100vw - 1.3rem));
    padding: .62rem .8rem;
    border-radius: 1.35rem;
  }

  #siteHeader.homepage-header > div::before,
  #siteHeader.homepage-header.is-scrolled > div::before {
    padding: 1.5px;
  }
}

@media (min-width: 1024px) {
  #siteHeader nav[aria-label="Navegação principal"] {
    display: flex !important;
  }
}

@media (max-width: 399px) {
  #siteHeader > div {
    gap: .45rem;
    padding-inline: .65rem;
  }

  #siteHeader img {
    height: 1.45rem !important;
  }

  #siteHeader > div > .btn-primary,
  #siteHeader > div > .header-cta {
    padding-inline: .55rem;
    font-size: .7rem;
    gap: .3rem;
  }

  #siteHeader > div > .btn-primary .button-icon,
  #siteHeader > div > .header-cta .button-icon {
    width: .95rem;
    height: .95rem;
  }

  .mobile-menu-toggle {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 359px) {
  #siteHeader > div > .header-cta__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #siteHeader > div > .btn-primary,
  #siteHeader > div > .header-cta {
    padding: .55rem;
    gap: 0;
  }
}
