/* ecossistema v3 (09/10/2026): sem filtros em camadas que se movem. */
@import url("/assets/ecossistema.css");

:root {
  --eco-page-progress: 0;
  --eco-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --eco-deep: #061425;
  --eco-cyan: #62b7ff;
  --eco-mint: #37ddb3;
}

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

body {
  overflow-x: clip;
  background:
    radial-gradient(circle at 100% 35%, rgba(36, 116, 232, 0.045), transparent 28%),
    #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #69aaff;
  outline-offset: 3px;
}

#publicacoes {
  scroll-margin-top: 82px;
}

.eco-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  background: rgba(8, 24, 45, 0.04);
}

.eco-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--eco-cyan), var(--eco-mint));
  box-shadow: 0 0 16px rgba(33, 197, 155, 0.45);
  transform: scaleX(var(--eco-page-progress));
  transform-origin: left center;
  will-change: transform;
}

.nav {
  transition:
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.nav.is-scrolled {
  border-color: rgba(139, 158, 179, 0.24);
  background: rgba(255, 255, 255, 0.965);
  box-shadow: 0 12px 34px rgba(6, 20, 37, 0.075);
}

.hero {
  --eco-light-x: 74%;
  --eco-light-y: 25%;
  --eco-hero-progress: 0;
  min-height: min(820px, calc(100svh - 76px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 121, 237, 0.2), transparent 33%),
    radial-gradient(circle at 15% 110%, rgba(37, 205, 163, 0.13), transparent 34%),
    linear-gradient(146deg, #061425 0%, #081a31 47%, #09213b 100%);
  box-shadow: inset 0 -1px rgba(116, 199, 255, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  inset: -22%;
  opacity: calc(0.5 + (var(--eco-hero-progress) * 0.26));
  background: radial-gradient(
    circle 430px at var(--eco-light-x) var(--eco-light-y),
    rgba(89, 160, 255, 0.2),
    rgba(42, 217, 176, 0.065) 43%,
    transparent 72%
  );
  transform: translate3d(0, calc(var(--eco-hero-progress) * 25px), 0);
  will-change: transform, opacity;
}

.hero::after {
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(116, 175, 222, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 175, 222, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 72% at 78% 46%, #000, transparent 76%);
  transform: translate3d(0, calc(var(--eco-hero-progress) * -18px), 0);
  will-change: transform;
}

.hero > .eyebrow,
.hero > h1,
.hero > .lead,
.hero > .hero-actions,
.hero > .network {
  position: relative;
  z-index: 3;
}

.hero > h1 {
  text-wrap: balance;
}

.hero > h1 em {
  background: linear-gradient(102deg, #a5f5df 10%, #77d7ff 56%, #a8bfff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  color: #c7d5e5;
  text-wrap: pretty;
}

.eco-hero-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
}

.eco-orb,
.eco-beam {
  position: absolute;
  display: block;
  will-change: transform, opacity;
}

.eco-orb {
  border-radius: 50%;
}

.eco-orb--one {
  top: 17%;
  right: 9%;
  width: 7px;
  height: 7px;
  background: #71b4ff;
  box-shadow: 0 0 26px 9px rgba(65, 139, 239, 0.28);
  animation: eco-drift-one 12s ease-in-out infinite alternate;
}

.eco-orb--two {
  right: 28%;
  bottom: 21%;
  width: 5px;
  height: 5px;
  background: #48e1ba;
  box-shadow: 0 0 24px 8px rgba(47, 216, 174, 0.27);
  animation: eco-drift-two 10s ease-in-out infinite alternate;
}

.eco-orb--three {
  left: 8%;
  bottom: 30%;
  width: 4px;
  height: 4px;
  background: #7b9eff;
  box-shadow: 0 0 20px 7px rgba(87, 121, 238, 0.24);
  animation: eco-drift-three 14s ease-in-out infinite alternate;
}

.eco-beam {
  top: -50%;
  right: 11%;
  width: 17%;
  height: 190%;
  opacity: 0.11;
  /* Gradiente radial no lugar de blur(): mesmo brilho sem repintar a cada quadro. */
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(93, 171, 255, 0.38), rgba(48, 220, 176, 0.08) 55%, transparent 78%);
  will-change: transform;
  transform: rotate(17deg) translate3d(calc(var(--eco-hero-progress) * -60px), 0, 0);
}

.hero .button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.hero .button::after {
  content: "";
  position: absolute;
  inset: -90% auto -90% -45%;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-18deg) translateX(-190%);
  transition: transform 560ms var(--eco-ease-out);
}

.hero .button:hover::after,
.hero .button:focus-visible::after {
  transform: skewX(-18deg) translateX(580%);
}

.hero .button.primary {
  box-shadow: 0 16px 36px rgba(12, 114, 90, 0.23);
}

.network {
  align-self: stretch;
  transform: translate3d(0, calc(var(--eco-hero-progress) * 18px), 0)
    scale(calc(1 - (var(--eco-hero-progress) * 0.016)));
  transform-origin: center bottom;
  will-change: transform;
}

.node {
  position: relative;
  overflow: hidden;
  border-color: rgba(177, 210, 242, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    0 18px 45px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(9px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.node::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  opacity: 0.65;
  background: linear-gradient(90deg, transparent, var(--eco-mint), var(--eco-cyan), transparent);
  transform: scaleX(0.22);
  transition: transform 360ms var(--eco-ease-out), opacity 220ms ease;
}

.node:hover {
  border-color: rgba(108, 181, 249, 0.37);
  transform: translateY(-4px);
}

.node:hover::after {
  opacity: 1;
  transform: scaleX(0.82);
}

.node.accent {
  border-color: rgba(156, 243, 220, 0.48);
  background: linear-gradient(145deg, #5ae1bd, #26cba2);
  box-shadow: 0 20px 52px rgba(17, 134, 106, 0.2);
}

.connector {
  overflow: hidden;
  background: rgba(102, 152, 195, 0.42);
}

.connector::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(105, 170, 255, 0.75), var(--eco-mint), transparent);
  transform: translateX(-100%);
  animation: eco-connector-flow 3.4s ease-in-out infinite;
}

.connector::after {
  right: auto;
  left: 0;
  background: #9cf2dc;
  box-shadow: 0 0 14px rgba(55, 221, 179, 0.8);
  transform: translateX(0);
  animation: eco-connector-dot 3.4s ease-in-out infinite;
}

.connector:nth-of-type(2)::before,
.connector:nth-of-type(2)::after {
  animation-delay: 0.55s;
}

.connector:nth-of-type(3)::before,
.connector:nth-of-type(3)::after {
  animation-delay: 1.1s;
}

.section {
  position: relative;
}

.channels {
  background:
    radial-gradient(circle at 92% 12%, rgba(30, 106, 230, 0.07), transparent 27%),
    linear-gradient(180deg, #f4f8fb, #f8fafc);
}

.section-head h2,
.method h2,
.cta h2 {
  text-wrap: balance;
}

.channel-card,
.campaign-card {
  --eco-card-x: 50%;
  --eco-card-y: 50%;
  --eco-card-rx: 0deg;
  --eco-card-ry: 0deg;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
}

.channel-card::after,
.campaign-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 180px at var(--eco-card-x) var(--eco-card-y),
    rgba(74, 147, 255, 0.13),
    transparent 72%
  );
  transition: opacity 220ms ease;
}

.channel-card:hover::after,
.campaign-card:hover::after {
  opacity: 1;
}

.channel-card {
  border-color: rgba(188, 203, 216, 0.72);
  box-shadow: 0 14px 34px rgba(8, 24, 45, 0.035);
}

.channel-card:hover {
  border-color: rgba(72, 142, 245, 0.22);
  box-shadow: 0 24px 64px rgba(8, 24, 45, 0.11);
}

.channel-icon {
  position: relative;
  box-shadow: 0 12px 28px rgba(8, 24, 45, 0.16);
}

.channel-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, transparent);
  border-radius: 18px;
  opacity: 0.62;
}

.live {
  background:
    radial-gradient(circle at 8% 16%, rgba(33, 197, 155, 0.052), transparent 22%),
    #fff;
}

.campaign-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 13px 34px rgba(8, 24, 45, 0.045);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.campaign-card:not(.skeleton):hover {
  border-color: rgba(35, 115, 232, 0.24);
  box-shadow: 0 22px 54px rgba(8, 24, 45, 0.09);
}

.chip {
  min-height: 34px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.chip:hover {
  background: #f4f8ff;
  transform: translateY(-1px);
}

.method {
  background:
    linear-gradient(120deg, rgba(23, 102, 232, 0.035), transparent 32%),
    var(--paper);
}

.method-list li {
  position: relative;
  transition: padding-left 240ms var(--eco-ease-out), border-color 220ms ease;
}

.method-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 2px;
  border-radius: 9px;
  background: linear-gradient(var(--blue), var(--mint));
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 220ms ease, transform 260ms var(--eco-ease-out);
}

.method-list li:hover {
  padding-left: 12px;
  border-color: rgba(64, 134, 231, 0.24);
}

.method-list li:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 112%, rgba(79, 234, 193, 0.3), transparent 35%),
    radial-gradient(circle at 88% -20%, rgba(121, 186, 255, 0.35), transparent 38%),
    linear-gradient(135deg, #105ac9, #176be8 52%, #135ecf);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.cta::before {
  width: 440px;
  height: 440px;
  top: -310px;
  left: 10%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.023),
    0 0 0 110px rgba(255, 255, 255, 0.014);
  animation: eco-ring-drift 12s ease-in-out infinite alternate;
}

.cta::after {
  right: 8%;
  bottom: -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(71, 231, 190, 0.24), transparent 68%);
  animation: eco-aura-drift 9s ease-in-out infinite alternate;
}

.cta .button {
  min-height: 48px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta .button.light:hover {
  box-shadow: 0 18px 40px rgba(5, 39, 89, 0.2);
}

.eco-motion.eco-ready .hero > .eyebrow,
.eco-motion.eco-ready .hero > h1,
.eco-motion.eco-ready .hero > .lead,
.eco-motion.eco-ready .hero > .hero-actions,
.eco-motion.eco-ready .hero > .network {
  animation: eco-hero-enter 760ms var(--eco-ease-out) both;
}

.eco-motion.eco-ready .hero > h1 { animation-delay: 70ms; }
.eco-motion.eco-ready .hero > .lead { animation-delay: 140ms; }
.eco-motion.eco-ready .hero > .hero-actions { animation-delay: 210ms; }
.eco-motion.eco-ready .hero > .network { animation-delay: 290ms; }

.eco-motion.eco-ready .eco-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 680ms var(--eco-ease-out) var(--eco-reveal-delay, 0ms),
    transform 680ms var(--eco-ease-out) var(--eco-reveal-delay, 0ms),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.eco-motion.eco-ready .eco-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.eco-motion.eco-ready .channel-card.eco-reveal.is-visible,
.eco-motion.eco-ready .campaign-card.eco-reveal.is-visible {
  transform:
    perspective(900px)
    translate3d(0, 0, 0)
    rotateX(var(--eco-card-rx))
    rotateY(var(--eco-card-ry));
}

.eco-motion.eco-ready .channel-card.eco-reveal.is-visible:hover,
.eco-motion.eco-ready .campaign-card.eco-reveal.is-visible:hover {
  transform:
    perspective(900px)
    translate3d(0, -7px, 0)
    rotateX(var(--eco-card-rx))
    rotateY(var(--eco-card-ry));
}

.eco-paused *,
.eco-paused *::before,
.eco-paused *::after {
  animation-play-state: paused !important;
}

@keyframes eco-hero-enter {
  from { opacity: 0; transform: translate3d(0, 20px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes eco-connector-flow {
  0%, 14% { opacity: 0; transform: translateX(-100%); }
  48% { opacity: 1; }
  78%, 100% { opacity: 0; transform: translateX(100%); }
}

@keyframes eco-connector-dot {
  0%, 14% { opacity: 0; transform: translateX(0); }
  35% { opacity: 1; }
  78%, 100% { opacity: 0; transform: translateX(clamp(12px, 3.5vw, 51px)); }
}

@keyframes eco-drift-one {
  to { opacity: 0.7; transform: translate3d(-38px, 27px, 0); }
}

@keyframes eco-drift-two {
  to { opacity: 0.75; transform: translate3d(31px, -24px, 0); }
}

@keyframes eco-drift-three {
  to { opacity: 0.62; transform: translate3d(26px, -34px, 0); }
}

@keyframes eco-ring-drift {
  to { opacity: 0.72; transform: translate3d(34px, 20px, 0) rotate(7deg); }
}

@keyframes eco-aura-drift {
  to { opacity: 0.66; transform: translate3d(-26px, -18px, 0) scale(1.12); }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero::after {
    mask-image: linear-gradient(180deg, #000, transparent 82%);
  }

  .eco-beam {
    right: -8%;
    width: 38%;
  }

  .network {
    transform: none;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 76px;
  }

  #publicacoes {
    scroll-margin-top: 72px;
  }

  .hero {
    padding-bottom: 3.6rem;
  }

  .hero::before {
    background: radial-gradient(circle 300px at 82% 18%, rgba(83, 155, 255, 0.21), transparent 72%);
  }

  .eco-orb--three {
    display: none;
  }

  .channel-card,
  .campaign-card {
    transform: none !important;
  }

  .method-list li:hover {
    padding-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .eco-reveal,
  .eco-reveal.is-visible,
  .hero > *,
  .network,
  .channel-card,
  .campaign-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .eco-progress span {
    transition: none !important;
  }
}

/* O blur(1px) dos brilhos do hero não mudava o visual e criava camadas filtradas grandes. */
.glow { filter: none; }

/* Vidro desfocado só no menu fixo. Nos botões e nós do hero o fundo é escuro e
   o desfoque quase não aparecia, mas era refeito a cada quadro de rolagem. */
.hero .button, .node { backdrop-filter: none; -webkit-backdrop-filter: none; }
.node:not(.accent) { background: rgba(255, 255, 255, 0.075); }
